c# - Postback page on query string -


This question has been repeated, when I am getting value in my query string, I have to post page back .

  If I want to post back here (request.jquery string ["hotelid"] = = null) // {  

I How can I post back the page?

You can use it:

  if (request. QueryString ["HotelID"]! = Null) {page_load (sender, e); }   

or this:

  if (request .QueryString ["HotelID"] = null) {Response.Redirect (Page.AppRelativeVirtualPath.ToString () ); }   

Hope this helps :)

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -