没问题。 首先保存这样的用户条目:No problem.First save the user entry like this:string searchValue = textbox1.Text; 然后在重定向到其他页面时,添加:Then on redirect to other page, add this:string queryString = "?searchValue=" + searchValue; //<- Add the query string parameter using '?' - ?[paramaterName]=[value]. If you want to add more than one parameter append '&' and repeat parameter name,value format. e.g. "otherpage.aspx?p1=john&p2=smith".Response.Redirect("OtherPage.aspx" + queryString); 在'OtherPage.aspx'的页面加载中检索参数:In page load of 'OtherPage.aspx' retrieve the parameter :string searchValue = Request.QueryString("searchValue");// Then send this to your query:SqlCommand cmd = new SqlCommand("Select * from table where field1 = " + searchValue);// Orcmd.Parameters.Add("@id", OleDbType.Integer).Value = searchValue; 如果您觉得有帮助,请标记为答案。If you find this helpful, please mark as answer. 这篇关于如何在Gridview中检索重复数据条目Usig Asp.Net C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-23 21:01