javascript - Opening a GridView Row in the same window as Parent Page while retaining my values? -


मेरे पास एक asp.net gridview के लिए यह VB.NET कोड है:

  संरक्षित उप GridView3_RowDataBound (इस वस्तु के रूप में, ई System.Web.UI.WebControls.GridViewRowEventArgs के रूप में) हैंडल GridView3.RowDataBound तो e.Row.RowType = DataControlRowType.DataRow फिर e.Row.Cells (1) .Attributes ( "onmouseover") = " this.style.cursor = 'हाथ'; this.style.textDecoration = 'रेखांकन'; " ई। आरओ। सील्स (1)। विशेषताएँ ("ऑन-हाउसआउट") = "this.style.textDecoration = 'none';" मंद सूचकांक के रूप में पूर्णांक = e.Row.RowIndex e.Row.Cells (1) .Attributes ( "onclick") = "window.open ( 'AreaQuery.aspx? AreaID =" + GridView3.DataKeys (e.Row.RowIndex) । वैल्यू। टॉस्ट्रिंग + "');" अंत यदि समाप्ति उप   

कोड की रेखा:

  ई। रो.केल (1)। विशेषताएँ ("OnClick") = "window.open ('AreaQuery.aspx? AreaID =' + GridView3.DataKeys (ई.रो.रॉ इंडैक्स)। Valal.ToString + "');"   

एक नई विंडो में नए पृष्ठ (पारित मानों के साथ) को खोलता है, मुझे इसकी ज़रूरत है कि वह उसी विंडो में हो, जिस पृष्ठ से यह आता है ... मैं इसे कैसे प्राप्त करूं & amp; यह कैसे लागू किया जाएगा?

इस '_ self'

  & lt; script type = "text / javascript" & gt; Window.open ('YourNewPage.htm', '_self', गलत) & lt; / स्क्रिप्ट & gt;   



Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -