Click here to Skip to main content
15,911,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
I m using 5 different user controls on same page, i.e I have created
5 pages with .ascx files,having some text boxes on each page
their names are as
1. signup1.ascx
2. signup2.ascx
3. signup3.ascx
4. signup4.ascx
5. signup5.ascx
textbox of each .ascx file persorm some task on textChanged.
and m using these controls on page names as
signup.aspx which is my startup page of applycation, so when m typing some text on textbox of signup1.ascx file all the pages post back, I want that if m typing in textbox of signup1.ascx file then only this page should be post back, and other remains same
Posted
Updated 14-Feb-11 17:56pm
v2
Comments
Monjurul Habib 14-Feb-11 8:32am    
Please share your code to help you out.

I'm not sure exactly what you want. If you post some code, it would be helpful.

I'm guessing that your 5 controls all use the same callback function. One thing to do would be to use a different callback function for each control.

There are other, possibly better ways to fix this as well, but they depend more on how you are implementing, so without a code example to start from, I'm not sure which one is best to show you.
 
Share this answer
 
Comments
nilesh.d.mankar 14-Feb-11 23:57pm    
Hello, I have edit my question , please go through it.
Kirankumar Ballapalli 15-Feb-11 0:44am    
Hi,
Use the Ajax concept.Place the update panel control in your page.
Then it will shows the postback.

Regards,
Kiran.
nilesh.d.mankar 15-Feb-11 1:17am    
Hello kiran,
I have used update panel in .ascx page as well as in .aspx page, bt it cant help me, please give me some more idea
place Ajax update panel in your aspx page and put your ascx file inside it.
 
Share this answer
 
Comments
nilesh.d.mankar 15-Feb-11 3:04am    
thanks for support,
bt its not working. please elaborate your ans
Praveen Kumar Upadhyay 15-Feb-11 3:48am    
please provide your sample code then it wud help us to solve.
You cannot avoid it. It's part of Page life cycle.

What maximum you can do is set a flag before postback and based on the flag avoid executing code present in the PageLoad.
As such, execution would definitely pass on through all the user controls page load.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900