|
Have you stepped through the code to make sure that there is data in the dataset ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
yeah I've stepped through the code
i also try to add some debug code
bool bResult = false;
if(myDataAdapter.Fill(myDataSet) > 0)
{
bResult = true;
}
and I monitor the value of bResult, the result is true.
if I use GridView,it works perfectly, so I dont think there is a mistake in transferring from database to dataset,
I suspect the problem when transfering from DataSet to FormView, which i use the same mechanism when i use GridView
set the data source -> FormView.DataSource = DataSet;
bind the data -> FormView.DataBind();
is there anything that I need to add more?
Thanks so much
|
|
|
|
|
I want to integrate QuickBooks with my web site.But I dunno nything bout QuickBooks. I searched the net but the picture is not clear. Can someone guide me how to integrate their service with my online store.
|
|
|
|
|
Download the SDK from Intuit site. In that you can find sample code for connecting with QB and getting required values. There is an On-Screen Reference(OSR) which helps you to know the modules and fields in QB.
Register yourself @ http://developer.intuit.com and proceed.
All the best!
Cheers,
Pranav
|
|
|
|
|
Hey,
u can use CompareValidator validation contol.
<asp:CompareValidator ID="valCompEndDate" runat="server" ControlToCompare="txtStartDate"
ControlToValidate="txtEndDate" Display="Dynamic" ErrorMessage="End Date should not be less than start date."
Operator="GreaterThan" Type="Date"></asp:CompareValidator>
hope it will be helpful for u..
|
|
|
|
|
i am using two dropdown if select one dropdown second shoul show the particular data
|
|
|
|
|
gvpr wrote: if select one dropdown second shoul show the particular data
So what is the question? Read the best practices of posting questions here[^].
|
|
|
|
|
i am having two dropdownlist one drop hava countrylist. if i select one coountry then second one sholud display the all cities of particular country...
|
|
|
|
|
1 - Handle the first dropdowns selected index change event.
2 - Query database to get the cities for the selected country
3 - Bind the results to second dropdown.
|
|
|
|
|
I am certain that MSDN has examples of this. Does google not work where you live ? Don't you have any ASP.NET books, most also cover this.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
gvpr wrote: i am having two dropdownlist one drop hava countrylist. if i select one coountry then second one sholud display the all cities of particular country...
So what is problem you are facing. Any code snippet which is raising problems
|
|
|
|
|
Hi,
I have a web application in where in my default page cs file i didn"t write anything
and i have created an msi using set up and deployment provided by VS 2005 and installed that msi in other machine and when im trying access it thru url im getting the below error....
Server Error in '/Skywebadmin' Application.
--------------------------------------------------------------------------------
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Requested registry access is not allowed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
SecurityException: Requested registry access is not allowed.]
System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +51
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +7460233
System.Security.Cryptography.Utils.get_FipsAlgorithmPolicy() +239
System.Security.Cryptography.RijndaelManaged..ctor() +13
System.Web.Configuration.MachineKeySection.ConfigureEncryptionObject() +232
System.Web.Configuration.MachineKeySection.EnsureConfig() +156
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) +34
System.Web.UI.Page.EncryptStringWithIV(String s, IVType ivType) +83
System.Web.UI.Page.EncryptString(String s) +30
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
|
|
|
|
|
pradeep455 wrote: System.Security.SecurityException: Requested registry access is not allowed.
What part of that error message is unclear?
|
|
|
|
|
Thanks for ur reply...
If you are aware of the solution please let me know.....
|
|
|
|
|
There is no solution. Change your design. Why ASP.NET application requires registry access? Usually hosting providers will not give access to registry. If you have a dedicated server, you can impersonate the user before accessing registry. But it is nasty.
|
|
|
|
|
Sorry the issue is im not accessing any registry..and moreover i did"nt write any code inside cs file ...and i guess by default ASPNET application may require access to registry....
|
|
|
|
|
pradeep455 wrote: SecurityException: Requested registry access is not allowed.]
System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +51
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +7460233
System.Security.Cryptography.Utils.get_FipsAlgorithmPolicy() +239
System.Security.Cryptography.RijndaelManaged..ctor() +13
System.Web.Configuration.MachineKeySection.ConfigureEncryptionObject() +232
System.Web.Configuration.MachineKeySection.EnsureConfig() +156
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) +34
System.Web.UI.Page.EncryptStringWithIV(String s, IVType ivType) +83
System.Web.UI.Page.EncryptString(String s) +30
Looks like your are using some session settings in web.config, and that is trying to access machine key for encrypting session data (Although not sure).
|
|
|
|
|
Hi ,
The below is my web.config... please have a look
Actually the below is web.config for AJAX ENabled ASP.net web application
It"s a plain application ie no code wa written in cs file...
Really im struggling frm 2 days please try to help me out...
below is web.config...
<?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>
<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.
-->
<trust level="Full" originUrl="" processRequestInApplicationTrust="false"/>
<compilation debug="false">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</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>
modified on Friday, January 30, 2009 4:30 AM
|
|
|
|
|
In windows 2003 server in IIs 6.0 when i tried to change the process account of the application pool to Local System through script(because i should not change manually and that(changing process account) should happen when installing MSI itself) it worked fine ie in IIS 6.0 but im strugling how should i change process acount to Local system in IIS 5.0 thru script....
Any way changing process account to Local System is not safe but i cannot
manually go to registry and add the ASPNET account and give read and write access....
And in IIS 5.0 ie in Windows Xp pro if i set Permissions for
HKLM\SYSTEM\CurrentControlSet\Control\Lsa Select this key and add ASPNET machine account with read and write permissions then im able to clear error Where LSA(local Security Authority)...
But as i said i should not do manually....
|
|
|
|
|
i want to access the textbox control in the masterpage from my other page
|
|
|
|