Click here to Skip to main content
15,886,632 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey,

Does Buttons inside asp panel postback,I think they don't.Is there a way by which we can do something to make the page post back on button click event inside asp panel?...

SQL
I am using a rad grid,and some buttons that are outside grid for editing.The values inside selected row is shown inside asp panel which slides under the grid on button click,where user edit values and then there is a save button inside that panel which saves edited values to that row.I want that button click event to refresh the page or postback,which is why my grid does'nt show updated values.
It shows updated values when i select another row and click on edit and page postbacks,then previously  updated values are shown.



Thanks
Posted
Updated 4-Oct-10 2:36am
v2
Comments
saini arun 4-Oct-10 7:54am    
You mean "update panel"?
m@dhu 4-Oct-10 8:00am    
If it is asp panel postback occurs.
AmitChoudhary10 4-Oct-10 8:14am    
No,i am talking about asp:panel under standard tools...

As i said postback occurs if the button is inside asp:Panel. Did you check the button outside the panel Does postback takes place??
 
Share this answer
 
Comments
AmitChoudhary10 4-Oct-10 8:37am    
Yes,the buttons which are outside it does postBack...
AmitChoudhary10 4-Oct-10 8:40am    
on this button click i want postback,which does the updation in the rows of the grid..
m@dhu 4-Oct-10 8:45am    
panel does not effect postback on button click. As the button is inside the Radgrid debug(use breakpoints) the code why it is not causing postback.
May not be exact.. why dont you redirect to same page and check?
AmitChoudhary10 4-Oct-10 8:59am    
Redirecting worked man,but don't know why it's not doing postback.When i'll place my grid and panel under asp:UpdatePanel,Will it refresh without a postback?...In case of redirect.
Check your code.. on top of your page you might be using RAD control that works like a UPDATE PANEL.. your ASP PANEL name might be defined in that to be treated as AJAX..
remove your panel name from there..
 
Share this answer
 
Comments
AmitChoudhary10 4-Oct-10 12:25pm    
Thanks man,That's what i was doing wrong.
For update panel, look at the last post in below link...

http://forums.asp.net/t/1098549.aspx[^]
 
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