|
yaa ur question is right but we are in peak position we cant to update code bcoz if we update this we need to change a lot of code bcoz of that we are not doing that one......any help from ur side...
|
|
|
|
|
I hope you are using stored procedure for loading records. All you have to do is to update that store procedure a bit so that it returns required number of records only.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
hai frnds
i have a issue regarding my webproject .i coded a smtp mail server along with options to attach images . the uploaded images are stored in a folder in web directory. while running in vb 2008 it works
but while running in iis while attaching the images a message reporting that you have no access right to upload into the folder.i try to change the access right of that folder but its not working
i m using iis 5.1 and vb 2008 and IE 5
pls help me
|
|
|
|
|
Thanks for reply...
These links are for ASP.Net and IIS 7.0. I am using VB ASP and IIS 5.0.
Actually during testing(against hacks), one can actually get the internal IP address and the host name. I want to supress that. I tried adding custom header but its just adding another one and not replacing the actual IP or host name.
|
|
|
|
|
d@nish wrote: These links are for ASP.Net and IIS 7.0. I am using VB ASP and IIS 5.0.
you should need to maintion it while you are putting the question first time. Be specific while post that will help you and to get best answer and other to give best !!
Thanks
cheers,
Abhijit
|
|
|
|
|
I using gridview with detailsview....whenever select gridview row..in gridview selectedindexchanged-I need to get datakeyvalue...
I worte following code..like
int s = Convert.ToInt32(GridView1.DataKeys[this.GridView1.SelectedIndex].Value); its saying some error...
anybody knows plz reply me..
Raaj
|
|
|
|
|
r aa j wrote: int s = Convert.ToInt32(GridView1.DataKeys[this.GridView1.SelectedIndex].Value); its saying some error...
What is the use of this ? whay you are taking DataKeys ? what your dataKey Filed Contains ?
cheers,
Abhijit
|
|
|
|
|
hi frnds,
i have two web.confif file which have some different settings for two application. plz can u help to have one web.config file which have all settings which these two different web.config file have . i know its a tedious work to do ..........but plz help me out its urgent request for me.
Below u will find two different web.config file and another question is it possible to have two web.config file for one application
---------------1st-------------------------------------
<?xml version="1.0"?>
<configuration>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<sessionState timeout="15"/>
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
</system.web>
<location allowOverride="true" inheritInChildApplications="true">
<appSettings>
<add key="DialConStr" value="Data Source=HP-SOFTWARE\SQLEXPRESS ; Initial Catalog=dialdb ; Trusted_Connection=true;" />
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
</appSettings>
</location>
</configuration>
---------------2---------------------------------------------------
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<xhtmlConformance mode="Transitional"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
</configuration>
----------------------------------------------------------------------
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
1. Yes one application can have multiple web.config files but they should be placed in different directories.
2. Combining them is not a difficult task. Just make sure that they are placed in correct parent tags
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks for ur concern.
but i am still confuse that if only one aspx page of application is using 2nd one webconfig file from my earlier blog and all other around 30 aspx pages using 1st one webconfig file from my earlier blog how to do that.
how aspx page with know from which config file settings to be used as there is no link code .......................
plz elaborate where to keep both the webconfig file in application
Thanks a lot !
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
If you have pages from different blogs then i would recommend you to place them in different folders and then each folder can have its own web.config file
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
thanks people i joined both the web.config file in one and working fine...........................thanks a lot.........
Thanks & Regards
Manish Singhal
Software Engineer
Maxworth systems(Delhi)
|
|
|
|
|
First put thsi question in right forum. Suitable form for this question would be C# forum not ASP.NET forum
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi All,
I have a requirement wherein I have to provide a datagrid with EDIT/DETLETE/ADD functionality without using the datagrid columns. This I have achieved using buttons but performance wise the app is crashing after loading 1600 records. I need to add 10000 records and be able to EDIT/DELETE them.
Any help is greatly appreciated!..
h
|
|
|
|
|
I will not recommend you to load 1600 records at once in datagrid. It is in itself a performance bottle neck. I would recommend you to optimize the store procedure which you are using to load the records. It should return only those records which are important for the user. Implement paging, and when user clicks on the next page only then load the next records.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Never try to load this amount of records at time, it should definatley be a performance issue. Try to display minimum no of records that reqired. use more filter that can give you some less no of records
Thanks
cheers,
Abhijit
|
|
|
|
|
Thanks Guys! Even I was thinking of the same but my client wont accept. Now i'll have to make them understand.
But still if anyone has any ideas apart from using Paging, please let me know
Sean
|
|
|
|