Last post Oct 25, 2007 11:24 PM by chetan.sarode
Oct 23, 2007 06:40 PM|spikeypaul|LINK
I modified the function OpenPopupPage to the following:
function OpenPopupPage (pageUrl, controlID, isPostBack, titleid)
popUp=window.open(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack+'&titleid='+titleid,'popupcal', 'width=250,height=300,left=200,top=250');
I call it from a page called mainpage.aspx
Oct 23, 2007 07:19 PM|foreachbiscuit|LINK
Your concatentation code looks ok.
So the most likely reason is that the call into the function is sending null or an empty string into the titleid parameter.
Therefore the value of gridview1.SelectedDataKey.value.tostring
may be at fault (your "tostring" does not look right here either.. it should perhaps be gridview1.SelectedDataKey.Value.ToString() )
I suggest that if you are able to debug you should insert a line before the popUp assignment:
alert( titleid );
This will pop up a message box with the value of titleid as the function is called.
Oct 23, 2007 11:37 PM|chetan.sarode|LINK
Use gridview1.SelectedDataKey.Value.ToString() instead of gridview1.SelectedDataKey.value.tostring
C# is Case sensetive
Oct 24, 2007 12:35 AM|spikeypaul|LINK
i know for a fact that 'gridview1.selecteddatakey.value.tostring' works because when the page is generated and I pass the mouse over the image button I can see under IE status bar that it displays all four values. I am using the VB version.
Oct 24, 2007 04:45 AM|foreachbiscuit|LINK
I suggest that you look to empoy the alert() i suggested so that you can debug the value of titleid.
If so, then this is why the titleid querystring is not available, it has no value so it not part of the collection or is blank.
Oct 24, 2007 12:29 PM|spikeypaul|LINK
Problem solved, thanks for your input. It turns out that the script.js file was not updating, so it only returned 2 querystrings( the original code had only 2 parameters). Once I deleted all temporary files and restarted the application everything worked
Oct 25, 2007 11:24 PM|chetan.sarode|LINK