• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

.ASP C# Update button the forward to the next page

Hello,

I have created an update button on a new page from a Data Navigate URL Fomatting string. which is the following "AccNum.aspx?AccNum={0}" and I've come from page "Default.aspx"

In the programming "onclick" the update sends a SQL query and then the page is blank after completion.
But I want the update got to go back to the previous page. How is this possible?

I have attached the current code for the button

Thanks
Ian
protected void UpdateButton_Click(object sender, EventArgs e)
{
 String updateSQL;
 updateSQL = "UPDATE..."        
 AccessDataSource1.SelectCommand = updateSQL;
}

Open in new window

0
ShockUK
Asked:
ShockUK
1 Solution
 
zkeownCommented:
response.redirect(String.Format(""AccNum.aspx?AccNum={0}"", variable));  ?
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now