how i go back to previous page with Parameter

Last Reply on Apr 06, 2016 06:42 AM By Shashikant

Posted on Apr 04, 2016 02:13 AM

Hello every body :)

i'm a beginner in  and c# , 

i have a question :

i have 2 pages :

1- localhost:12345/show_profile.aspx?id=35 

1- localhost:12345/Edit_profile.aspx ( with save button )


i try to redirect 2nd page with parameter (?id=35 ) after button clicked with Delay 3 sec .

i can assign the url to var with url.Ref function ,  and call it but with out delay :(

any body here help me ?

with regads for all fourm members 

Posted on Apr 04, 2016 02:19 AM


You can create simple javascript Function linke below

function redirect() {
    setTimeout(location.href = "Edit Page Url", 3000);

and on button click at the end you can call it like below

this.ClientScript.RegisterStartupScript(this.GetType(), "redirect", "redirect()", true);

I hope this will help you out.

Posted on Apr 05, 2016 11:54 AM

Hello shashikant,


Thank you for your time , it's work but not as i need ,


for example when i wrtire this href ( editprofile.aspx ) it work .


but how i can pass parameter with this url ( editprofile.aspx?Id=30 )


i need this point :)


Best regards :)



Posted on Apr 06, 2016 02:04 AM
icoffe01 says:

 you can pass it.

Posted on Apr 06, 2016 06:31 AM

ok , but every user have uniqe ID , Not all of them have id=35 :)

Posted on Apr 06, 2016 06:42 AM


  1. How to get QueryString Parameter values from URL in JavaScript

Please refer above link and get query string value using javascript and then pass it