I would like to pass two parameters(strLocation and strParent) on double click event. If its a single parameter its working fine but i cant pass more than one. Im registring the event on databound. Does anyone see whats wrong with my code below:
C#: RadGrid2_ItemDataBound
item.Attributes.Add("OnDblClick", "return LocationOpenWindow('" + strLocation+ ',' + strParent + "');");
JavaScript:
function LocationOpenWindow(strLocation,strParent){
var value = document.getElementById('<%=tboSiteID.ClientID%>').value;
window.open("frmLocation.aspx?ID=" + strLocation + "&SiteID=" + value + "&IDS=" + strParent ,"", "location=0,status=0,scrollbars=0,width=545,height=450");}
On Calling the parameters
lngLocationID = Convert.ToInt64(Request.QueryString["ID"]);
lngSiteID = Convert.ToInt64(Request.QueryString["SiteID"]);
ParentID = Convert.ToInt64(Request.QueryString["IDS"]);
error mesage is in correct format on the first line.
i dont think the javascript is wrong since i have tested it with constant values. The error is on Adding the double click event, where there is more than one argument.
Thank you.
C#: RadGrid2_ItemDataBound
item.Attributes.Add("OnDblClick", "return LocationOpenWindow('" + strLocation+ ',' + strParent + "');");
JavaScript:
function LocationOpenWindow(strLocation,strParent){
var value = document.getElementById('<%=tboSiteID.ClientID%>').value;
window.open("frmLocation.aspx?ID=" + strLocation + "&SiteID=" + value + "&IDS=" + strParent ,"", "location=0,status=0,scrollbars=0,width=545,height=450");}
On Calling the parameters
lngLocationID = Convert.ToInt64(Request.QueryString["ID"]);
lngSiteID = Convert.ToInt64(Request.QueryString["SiteID"]);
ParentID = Convert.ToInt64(Request.QueryString["IDS"]);
error mesage is in correct format on the first line.
i dont think the javascript is wrong since i have tested it with constant values. The error is on Adding the double click event, where there is more than one argument.
Thank you.