this is d coding at search button on the main web form from where i'm opening a pop up window for a search. i've made global variables search tring, table name and calling form.
Protected Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
Session("SearchString") = "StateCode, StateName"
Session("TableName") = "StateMaster"
Session("CallingForm") = Me
cmdSearch.Attributes.Add("onclick", "window.open('Search.aspx',null,'fullscreen=0,left=508,top=150,height=400,width=350,menubar=no,toolbar=no,resizable=no');return true;")
in the search form i've populated a grid view which has select button, on the select change button
Session("ReturnValue") = GridView1.SelectedRow.Cells(1).Text
Try using the following piece of code before self.close();
window.opener.document.getElementById('<your txtbox name>').text=<the value u want to return>;
But I doubt if you would be able to get the datagrid selected row value in a script.
You have to create the id on the fly and use that.
Alternatively try getting the value from that session variable instead.
Hello i have a script that lets the user to take a photo and then upload it -this was the thread i created https://www.daniweb.com/programming/web-development/threads/508651/how-to-open-camera-and-take-a-photo-scriptBut the photo returns in low res ...