سؤال

How I can navigate to a web form on button click?

I have a datagrid with user information. I want to open an asp.net web form in the same master pages content place holder, when the user clicks on a row .

Any advice?

هل كانت مفيدة؟

المحلول

Response.Redirect("secondpage.aspx"). This redirects to that page. Save the row number, id, etc. in the session state like Session["rowid"] = 1 or send it as a querystring like secondpage.aspx?rowid=23. You need to save the row information and get that rowid from the second page and load the information for that row.

نصائح أخرى

whithin the button tag : PostBackUrl="~/TargetPage.aspx"

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top