response.redirect and dopostback pbm

Posted by Oswaldlily under ASP.NET on 2/1/2015 | Points: 10 | Views : 596 | Status : [Member] | Replies : 3
I have used dopostback in JavaScript._dopostback(page,command arguments).but after this response.redirect not working. How to overcome this pbm




Responses

Posted by: Jitendrasoft09 on: 2/1/2015 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,

Check what you have mentioned in _dopostback event and assign uniqueid for your control which to be postback.

Please refer below link for more details-
http://forums.asp.net/t/1120053.aspx?__doPostBack+not+firing+the+Button+Click+event

Jitendra Kumar
If my post helps you, plz mark as an answer.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/1/2015 [Member] Starter | Points: 25

Up
0
Down
I'm using the dopostback for closing the browser. In this case what shd be my I'd to pass

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 2/1/2015 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,

Once postback being happend with dopostback,request reaches to server already so need manual event to call the respose.redirect. Need to refresh or fire the page event with window.onload event. Please refer below link for more details.

http://stackoverflow.com/questions/807878/javascript-that-executes-after-page-load

Jitendra Kumar
If my post helps you, plz mark as an answer.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response