asp.net - How to directly Pass Gridview row cell value in UID and Article without using textbox -


if (ispostback) {     gridviewrow grdrow = (gridviewrow)((linkbutton)sender).namingcontainer;      //iframe1.attributes.add("src", "drawing.aspx?uid=" + grdrow.cells[0].text + "&article=" + grdrow.cells[1].text + "&testdrawing= kkk");     //iframe1.attributes.add("src", "drawing2.aspx?uid=" + grdrow.cells[0].text + "&article=" + grdrow.cells[1].text);     //iframe1.attributes.add("src", "drawing2.aspx?uid=" + textbox1.text + "&article=" + textbox2.text);     iframe1.attributes.add("src", "drawing2.aspx?uid=" + textbox1.text + "&article=" + textbox2.text + "&testdrawing= kkk");     //iframe1.attributes.add("src", "drawing2.aspx?uid=" + grdrow.cells[0].text + "&article=" + grdrow.cells[1].text) + "&testdrawing= kkk");     textbox1.text = grdrow.cells[0].text;     textbox2.text = grdrow.cells[1].text;     //gridviewrow row = gridview1.selectedrow;     //textbox1.text = gridview1.selectedrow.cells[0].text;     //textbox2.text = gridview1.selectedrow.cells[1].text; } 

i feel misunderstanding question if understand question correctly replace:

iframe1.attributes.add("src", "drawing2.aspx?uid=" + textbox1.text + "&article=" + textbox2.text + "&testdrawing= kkk"); 

with

iframe1.attributes.add("src", "drawing2.aspx?uid=" + grdrow.cells[0].text + "&article=" + grdrow.cells[1].text + "&testdrawing= kkk"); 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -