1) Script Title: Dynamic Ajax Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm
3) Describe problem:
I've been using the dynamic ajax content in my aspx project and its work well in simple pages with the use of buttons in asp by using this code in .cs
but now when I add sqlcommands to that button to add data in the database I always got an error.Code:protected void Button1_Click(object sender, EventArgs e) { Page.RegisterClientScriptBlock("ajax", "<script type='text/javascript'>ajaxpage('New.aspx', 'content')</script>"); }
and here's the error
Server Error in '/WebSite' Application.
The state information is invalid for this page and might be corrupted.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.
i want to execute the sqlcommand and an laod the result in same div content.
please help me. Thanks in advance!



Reply With Quote
Bookmarks