Create Look up Page Data Bound //Opener Page (Look Up page) Step 1 : Add following script in Lookup.aspx page // Lookup.aspx < script language ="javascript" type ="text/javascript"> function GetRowValue(val) { if (val != ' ' ) { val1 = 0; window.opener.document.getElementById( 'ctl00_ContentPlaceHolder1_hdfID' ).value = val; window.opener.document.getElementById( 'ctl00_ContentPlaceHolder1_hdfFlagID' ).value = val1; } window.opener.document.forms[0].submit(); self.close(); } </ script > // in code behinds lookup.aspx.cs Step2 : InGridView- Go to edit item template in grid and select the button field and convert as item template...
ASP.NET || Javascript || Dataobject || Code Solutions Free Open Source code for Developers