enb141
07-07-2004, 01:41 PM
I want to to a AutoPostBack but unfortunelly ASP:Button doesn't has it so I wanna know if there's a way to do an AutoPostBack from ServerSide?
|
Click to See Complete Forum and Search --> : How to force an AutoPostBack when I click a ASP:Button? enb141 07-07-2004, 01:41 PM I want to to a AutoPostBack but unfortunelly ASP:Button doesn't has it so I wanna know if there's a way to do an AutoPostBack from ServerSide? buntine 07-07-2004, 02:28 PM The Response object contains a server-side redirection method. I have demonstrated below. '| Refresh the page by grabbing the currect documents URL in the ServerVariables collection. Response.Redirect(Request.ServerVariables("SCRIPT_NAME")) Regards, Andrew Buntine. enb141 07-07-2004, 03:43 PM Do you know if that will keep the pas like if you were clicked on a ASP:checkbox with AutoPostBack = "true" ? In other words when I enter to Page_Load it will think that the page is not loaded for first time? buntine 07-08-2004, 12:57 AM Yes, ASP.NET will know that the page has been reloaded. But the code will still be executed, unless you use the Page.IsPostBack method. Regards. enb141 07-09-2004, 10:10 AM Thanks for your help webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |