Accroding to your description,as far as I think,you could add parameters in the Redirect.
Since you don't post your codes to us,I create a demo.
If you have other problems,I suggest you could tell us more details of you requirment and post your full codes to us.It will help us to solve your problems.
Protected Sub DropDownList1_SelectedIndexChanged(sender As Object, e As EventArgs)
Response.Redirect(Request.Url.AbsolutePath + "?action=changed")
End Sub
Result:
Best regards,
Yijing Sun
ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
Member
103 Points
796 Posts
Change url after postback
May 11, 2020 11:06 AM|kengkit|LINK
how can i amend the url to index.aspx?action=changed while SelectedIndexChanged is triggered?
All-Star
53691 Points
24030 Posts
Re: Change url after postback
May 11, 2020 11:18 AM|mgebhard|LINK
Your requirement is not totally clear but you can redirect in the event.
Contributor
4040 Points
1568 Posts
Re: Change url after postback
May 12, 2020 01:52 AM|yij sun|LINK
Hi kengkit,
Accroding to your description,as far as I think,you could add parameters in the Redirect.
Since you don't post your codes to us,I create a demo.
If you have other problems,I suggest you could tell us more details of you requirment and post your full codes to us.It will help us to solve your problems.
More details,you could refer to below codes:
Code-Behind:
Protected Sub DropDownList1_SelectedIndexChanged(sender As Object, e As EventArgs) Response.Redirect(Request.Url.AbsolutePath + "?action=changed") End Sub
Result:
Best regards,
Yijing Sun