Click here to Skip to main content
15,905,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all....
i'm using a link button for postback..
i want to display a popup window and wants user to fill some data before postback...
i want to read that data at client side and should be able to postback..
could someone help me here..


Thank You..!
Posted

Write your controls inside a Div and implement property OnClientClick="return JavascriptFunctionName()" for linkbutton and write Javascript function to show the Div and on click of close button inside the Div read all values at client side and do postback.

That's All.
 
Share this answer
 
Comments
Tuduru Sai Krishna 6-Nov-13 4:55am    
Thank you mr.Raj Parashar..
But i want postback to be happen on behalf of linkbutton...
And I have a total of 26 linkbuttons in my page..
Raj Parashar 6-Nov-13 5:01am    
all the buttons will refer to same script and will open the same popup. You do not need to write 26 popups and postback also will happen with the only single button. If you want to catch which button was clicked then maintain a hidden field and store the id of the clicked button in the hidden field from Javascript at the time of opening popup. I think it shud work now.
You should use - Ajax ModalPopupExtender[^].
For a complete article - ASP.NET AJAX Control Toolkit ModalPopupExtender Control in Action[^].

Please read the Properties and Documentation first. Then try it out.
 
Share this answer
 
Comments
Tuduru Sai Krishna 6-Nov-13 4:58am    
ok Mr.Tadit Dash..
I will Try..
Thank you..!
Okay... Good.

Please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...

Thanks,
Tadit

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