Hello,
I am opening a popup window with this function:
Here is the code that fires the onclick event:
As you can tell, I attempting to pass two parameters PassContractKey and strContractHistoryKey. I have the value of the first one and see it in the url of the resulting window. What I need help with is the second one.
The way that I am getting the value of the second one is by using the RowSelectorColumn. Here is my question: How can I use this same newWindowEvent function to grab this information? In VB.Net I would grab it this way:
This may not be a clear explanation, so if I need to fill in any blanks please let me know. Any help is greatly appreciated!!!
Rudy
I am opening a popup window with this function:
Code:
function newWindowEvent(Page)
{
var winl = (screen.width - 400)/2;
var wint = (screen.height - 400)/2;
var settings = "height=400,width=400,toolbar=1,location=1,top="+wint+",left="+winl+"";
var x = window.open(""+Page+"","sub",settings);
x.focus();
}
Here is the code that fires the onclick event:
Code:
btnUpdateEvent.Attributes.Add("onclick", "newWindowEvent('salPopupEvent.aspx?contractkey=" + PassContractKey + "&contracthistorykey=" + strContractHistoryKey + "', 'txtbox');")
As you can tell, I attempting to pass two parameters PassContractKey and strContractHistoryKey. I have the value of the first one and see it in the url of the resulting window. What I need help with is the second one.
The way that I am getting the value of the second one is by using the RowSelectorColumn. Here is my question: How can I use this same newWindowEvent function to grab this information? In VB.Net I would grab it this way:
Code:
Dim rscParty As RowSelectorColumn = RowSelectorColumn.FindColumn(grdContractParties)
Dim selectedIndex, intCheck As Integer
' Check to see if any radio buttons have been selected
intCheck = rscParty.SelectedIndexes.Length
If intCheck > 0 Then
selectedIndex = rscParty.SelectedIndexes(0)
End If
Dim ContractPartyKey As String = grdContractParties.DataKeys(selectedIndex).ToString
This may not be a clear explanation, so if I need to fill in any blanks please let me know. Any help is greatly appreciated!!!
Rudy