D
Daniel Bass
where szStartDate, szEndDate, szStatus, szMsgType,
szClient, szFilter are all strings declared and
containing data as this code executes...
' hook up a refresh event to the refresh button
Dim RefreshScript As New System.Text.StringBuilder
RefreshScript.Append("<SCRIPT
language=""javascript"">")
RefreshScript.Append("function RefreshGrid(
szStartDate, szEndDate, szStatus, szMsgType, szClient,
szFilter )")
RefreshScript.Append("{")
RefreshScript.Append(" alert( ""HOOTS
ALORS!!!"" );")
RefreshScript.Append(" var url
= ""overview.aspx?StartDate="",
szStartDate, ""&EndDate="", szEndDate, ""&Status="",
szStatus,""&MsgType="", szMsgType,""&Client="",
szClient,""&Filter="", szFilter ;""")
RefreshScript.Append(" alert ( "" The URL to
be refreshed iiiissssssss...."");")
RefreshScript.Append(" alert ( url ); ")
RefreshScript.Append("
parent.overview.location.href = url; ")
RefreshScript.Append("}")
RefreshScript.Append("</SCRIPT>")
RegisterClientScriptBlock("RefreshScript",
RefreshScript.ToString)
Dim ProcCall = "javascript:RefreshGrid( """ &
szStartDate & """, """ & _
szEndDate
& """, """ & _
szStatus
& """, """ & _
szMsgType
& """, """ & _
szClient
& """, """ & _
szFilter
& """ );"
btnRefresh.Attributes("onclick") = ProcCall
clicking on the button, "btnRefresh" does nothing.
all i'm trying to do is get a the "overview" frame to
refresh with the listed frames, calling upto the parent,
then back down to the frame in question.
i don't even get the first alert to fire off, so the
function's not even being entered.
i've tried :
- executing the function with no parameters present
- putting the script in script tags on the aspx page
at best if i replace the call to the function with just
an "alert..." call in the attributes.add call, i see the
alert, but only when pressing the button a second time???
why is that?!?!
Thanks!
Dan.
szClient, szFilter are all strings declared and
containing data as this code executes...
' hook up a refresh event to the refresh button
Dim RefreshScript As New System.Text.StringBuilder
RefreshScript.Append("<SCRIPT
language=""javascript"">")
RefreshScript.Append("function RefreshGrid(
szStartDate, szEndDate, szStatus, szMsgType, szClient,
szFilter )")
RefreshScript.Append("{")
RefreshScript.Append(" alert( ""HOOTS
ALORS!!!"" );")
RefreshScript.Append(" var url
= ""overview.aspx?StartDate="",
szStartDate, ""&EndDate="", szEndDate, ""&Status="",
szStatus,""&MsgType="", szMsgType,""&Client="",
szClient,""&Filter="", szFilter ;""")
RefreshScript.Append(" alert ( "" The URL to
be refreshed iiiissssssss...."");")
RefreshScript.Append(" alert ( url ); ")
RefreshScript.Append("
parent.overview.location.href = url; ")
RefreshScript.Append("}")
RefreshScript.Append("</SCRIPT>")
RegisterClientScriptBlock("RefreshScript",
RefreshScript.ToString)
Dim ProcCall = "javascript:RefreshGrid( """ &
szStartDate & """, """ & _
szEndDate
& """, """ & _
szStatus
& """, """ & _
szMsgType
& """, """ & _
szClient
& """, """ & _
szFilter
& """ );"
btnRefresh.Attributes("onclick") = ProcCall
clicking on the button, "btnRefresh" does nothing.
all i'm trying to do is get a the "overview" frame to
refresh with the listed frames, calling upto the parent,
then back down to the frame in question.
i don't even get the first alert to fire off, so the
function's not even being entered.
i've tried :
- executing the function with no parameters present
- putting the script in script tags on the aspx page
at best if i replace the call to the function with just
an "alert..." call in the attributes.add call, i see the
alert, but only when pressing the button a second time???
why is that?!?!
Thanks!
Dan.