Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Syntax? passing url parameters in asp

Reply
Thread Tools

Syntax? passing url parameters in asp

 
 
TNGgroup
Guest
Posts: n/a
 
      08-24-2004
Hi,

I have some troubles with the correct syntax, hope to get some help.
This is the intention:
This is the code I'd like to use.

url: http://webserver/ta.asp?artnr=04001

Code ta.asp:
strSql = "Select * from ta where ta_nr = %artnr%"
<!-- include file = "%artnr% & .asp"-->

Thx in advance


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      08-24-2004


TNGgroup wrote:

> I have some troubles with the correct syntax, hope to get some help.
> This is the intention:
> This is the code I'd like to use.
>
> url: http://webserver/ta.asp?artnr=04001


In ASP code you can read
Request.QueryString("artnr")



--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
TNGgroup
Guest
Posts: n/a
 
      08-24-2004
thx, works, but the include file, still doesn't work ?
any suggustion on this one

artfilename = Request.QueryString("artnr")
<!-- include file = response.write(artfilename) & " .asp"-->



"Martin Honnen" <> wrote in message
news:OywkI#...
>
>
> TNGgroup wrote:
>
> > I have some troubles with the correct syntax, hope to get some help.
> > This is the intention:
> > This is the code I'd like to use.
> >
> > url: http://webserver/ta.asp?artnr=04001

>
> In ASP code you can read
> Request.QueryString("artnr")
>
>
>
> --
>
> Martin Honnen
> http://JavaScript.FAQTs.com/



 
Reply With Quote
 
TNGgroup
Guest
Posts: n/a
 
      08-24-2004
Hmm.. ok than we try it this way...

Thx

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:...
> cant use a variable as an inclide name since the includes happen first.
> There is a bunch of stuff on www.aspfaq.com on this but basically you have
> to include them all but only parse the needed one....
>
> if Req.Que("var") = "1" then
> <include>
> else
> <include>
> end if
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "TNGgroup" <> wrote in message
> news:412add43$0$320$...
> > Hi,
> >
> > I have some troubles with the correct syntax, hope to get some help.
> > This is the intention:
> > This is the code I'd like to use.
> >
> > url: http://webserver/ta.asp?artnr=04001
> >
> > Code ta.asp:
> > strSql = "Select * from ta where ta_nr = %artnr%"
> > <!-- include file = "%artnr% & .asp"-->
> >
> > Thx in advance
> >
> >

>
>



 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-24-2004
http://www.aspfaq.com/show.asp?id=2042

Bob Barrows
TNGgroup wrote:
> thx, works, but the include file, still doesn't work ?
> any suggustion on this one
>
> artfilename = Request.QueryString("artnr")
> <!-- include file = response.write(artfilename) & " .asp"-->
>
>
>
> "Martin Honnen" <> wrote in message
> news:OywkI#...
>>
>>
>> TNGgroup wrote:
>>
>>> I have some troubles with the correct syntax, hope to get some help.
>>> This is the intention:
>>> This is the code I'd like to use.
>>>
>>> url: http://webserver/ta.asp?artnr=04001

>>
>> In ASP code you can read
>> Request.QueryString("artnr")
>>
>>
>>
>> --
>>
>> Martin Honnen
>> http://JavaScript.FAQTs.com/


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
TNGgroup
Guest
Posts: n/a
 
      08-24-2004
I checked the article, now the Server.Execute("2.htm") command
works fine, I'm just thinking, is it not possible to send a variable to
this command like Server.Execute("<variable>" & ".htm") or is it the same
as include file command ?

TNGgroup

"Bob Barrows [MVP]" <> wrote in message
news:...
> http://www.aspfaq.com/show.asp?id=2042
>
> Bob Barrows
> TNGgroup wrote:
> > thx, works, but the include file, still doesn't work ?
> > any suggustion on this one
> >
> > artfilename = Request.QueryString("artnr")
> > <!-- include file = response.write(artfilename) & " .asp"-->
> >
> >
> >
> > "Martin Honnen" <> wrote in message
> > news:OywkI#...
> >>
> >>
> >> TNGgroup wrote:
> >>
> >>> I have some troubles with the correct syntax, hope to get some help.
> >>> This is the intention:
> >>> This is the code I'd like to use.
> >>>
> >>> url: http://webserver/ta.asp?artnr=04001
> >>
> >> In ASP code you can read
> >> Request.QueryString("artnr")
> >>
> >>
> >>
> >> --
> >>
> >> Martin Honnen
> >> http://JavaScript.FAQTs.com/

>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>



 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-24-2004
Yes, a variable can be used. See the example in online help which can be
found at:
http://msdn.microsoft.com/library/en...m_seromexe.asp

Bob Barrows
TNGgroup wrote:
> I checked the article, now the Server.Execute("2.htm") command
> works fine, I'm just thinking, is it not possible to send a variable
> to this command like Server.Execute("<variable>" & ".htm") or is it
> the same as include file command ?
>
> TNGgroup
>
> "Bob Barrows [MVP]" <> wrote in message
> news:...
>> http://www.aspfaq.com/show.asp?id=2042
>>
>> Bob Barrows
>> TNGgroup wrote:
>>> thx, works, but the include file, still doesn't work ?
>>> any suggustion on this one
>>>
>>> artfilename = Request.QueryString("artnr")
>>> <!-- include file = response.write(artfilename) & " .asp"-->
>>>
>>>
>>>
>>> "Martin Honnen" <> wrote in message
>>> news:OywkI#...
>>>>
>>>>
>>>> TNGgroup wrote:
>>>>
>>>>> I have some troubles with the correct syntax, hope to get some
>>>>> help. This is the intention:
>>>>> This is the code I'd like to use.
>>>>>
>>>>> url: http://webserver/ta.asp?artnr=04001
>>>>
>>>> In ASP code you can read
>>>> Request.QueryString("artnr")
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Martin Honnen
>>>> http://JavaScript.FAQTs.com/

>>
>> --
>> Microsoft MVP -- ASP/ASP.NET
>> Please reply to the newsgroup. The email account listed in my From
>> header is my spam trap, so I don't check it very often. You will get
>> a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing parameters in URL Alan Harris-Reid Python 26 02-05-2010 03:29 AM
passing parameters from source page to destination page via URL a.mustaq@gmail.com ASP .Net 4 03-09-2007 08:55 AM
getting values from URL such as http://groups.google.co.uk/groups?q=parameters+url+asp.net&start=10&hl=en&lr=& anonymous ASP .Net 1 05-08-2005 03:58 PM
url rewriting when the url contains parameters Gaurav Agarwal Java 2 01-31-2005 11:15 AM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57