"JIMCO Software" <co*******@jimc osoftware.com> wrote in
news:OW******** ******@TK2MSFTN GP10.phx.gbl:
Kevin Spencer wrote: JavaScript is on the client side. The client sends an HTTP Request to
the server. The server side classes can see the Request. They send a
Response to the client as a Web Page. So, JavaScript is client-side,
and ASP.Net is server-side, and never the twain shall meet. All they
can do is send messages back and forth, via Request and Response.
Although you could look into AJAX or XMLHttp to get the data.
You can use this javascript function to parse the query string:
function getParameter(qu eryString, parameterName)
{
// Add "=" to the parameter name (i.e. parameterName=v alue)
var parameterName = parameterName + "=";
if ( queryString.len gth > 0 )
{
// Find the beginning of the string
begin = queryString.ind exOf ( parameterName );
// If the parameter name is not found, skip it, otherwise
return the value
if ( begin != -1 )
{
// Add the length (integer) to the beginning
begin += parameterName.l ength;
// Multiple parameters are separated by the "&" sign
end = queryString.ind exOf ( "&" , begin );
if ( end == -1 )
{
end = queryString.len gth
}
// Return the string
return unescape ( queryString.sub string ( begin, end ) );
}
// Return "null" if no parameter has been found
return "null";
}
}
ScriptID = getParameter(wi ndow.top.locati on.search, "ScriptID") ;
--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
Newmarket Volvo Sucks!
http://newmarketvolvo.tripod.com