turn Request.QueryString to a string?

Joined
Mar 7, 2008
Messages
3
Reaction score
0
page.asp?u=http://www.imdb.com/title/tt0200465

I'm just trying to strip the end of this QueryString to get tt0200465

<% @Language="javascript" %>
<script language="javascript" runat="server">
if(Request.QueryString("u").Count > 0){
var imdbUrl = Request.QueryString("u").ToString();
var imdbLink = imdbUrl.split('/title/')[1];
Response.Write(imdbLink);
}
</script>

gives me:
Microsoft JScript runtime error '800a01b6'

Object doesn't support this property or method

I've read places QueryStrings are read only? but i'm trying to change it to a string that I can work with... thanks
 
Joined
Mar 7, 2008
Messages
3
Reaction score
0
//bump... still stuck on this :/ if anyone has a solution in classic ASP or VBscript please share... doesn't have to be server side javascript
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,108
Latest member
AlbertEste
Top