troubleshooting Question

Problem using Ajax

Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates asked on
C#ASP.NETAJAX
4 Comments1 Solution441 ViewsLast Modified:
Hi Experts,

I am working on ASP.net 2.0 using C#. I wanted to use ajax control on my aspx user control

When submit button is clicked, I donot wanted to refresh complete aspx page. I just wanted to refresh user control.

I wanted text in aspx page remain as it is and aspx page should not reload. It should reload the User control when button is clicked in user control itself.

Also, I am unable to print text "Processing..." when submit button is clicked inside aspx user control and ajax is called.

Please find code and result of the page attached.

Copying output and required output below as well

RESULTS:

Result at the time of page load

Page (!Page.IsPostBack) Load time is: 11:50:33
Page (Page_Load) Load time is: 11:50:33
Click the button!

Result after button click at the first time

Page (Page_Load) Load time is: 11:52:08
Hello, world - this is a fresh message from ASP.NET AJAX! The time right now is: 11:52:13

Result after button click at the second time

Page (Page_Load) Load time is: 11:53:07
Hello, world - this is a fresh message from ASP.NET AJAX! The time right now is: 11:53:12


Required Output after button click
Page (!Page.IsPostBack) Load time is: 11:50:33
Page (Page_Load) Load time is: 11:50:33
Hello, world - this is a fresh message from ASP.NET AJAX! The time right now is: 11:53:12



Please suggest

Regards


ajaxQuestion.txt
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros