|
|
Question : Post back Url in C#
|
|
I am creating an intranet page and have created a form in which employees can submit an IT Request Form and it's mailed to me. The problem I am having is that I want a success page to pop up once the user presses the submit button. If I just use regular ASP.NET and use the postbackurl="whatever.aspx" The button completely skips all the code that I placed for the click even within the code behind page. Is there anyway I can do this within the button click event via C#?
|
Answer : Post back Url in C#
|
|
Yep. Instead of setting the PostBackUrl, just allow the page to postback to itself as normal. You can then use Response.Redirect("whatever.aspx") or Server.Transfer("whatever.aspx") to move the user on to the next page.
|
|
|
|