Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open different websites depending on the field value

Status
Not open for further replies.

softboy12

ISP
Feb 19, 2004
66
CH
Hi all

i have a web Based (ASP) MS SQL Customer DB which works fine, now i need the following function:


i have a field called "Domainreg" i the DB

so if the field is true (1) it shoud opens the browser a go directly to an URL, otherwise if it's false another URL shoud be called

see code below

-----------------------------------------------------------
If x_Domainreg THEN
.......
-----------------------------------------------------------

how can i do this with asp or do i need WSH or something similiar for this job?


best regards

E.Altherr



 
Server.Transfer "path"
or
Response.Redirect "path"

Should do the trick for you. Main objective in the differences is the transfer retains form collection val's but that doesn't seem to be a need. Note if you write tot he header the buffer must be set for Response.Redirect usage. I've been converted to Server.Transfer for a bunch of reasons for all my redirections. I would suggest that method over all

___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
 
next question:

how can open a separate window for response.redirect

which means, if the value is true, the Response.Redirect works, but i need the new URL in a separat Browser Window

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top