Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET + VBSCRIPT

Reply
Thread Tools

ASP.NET + VBSCRIPT

 
 
=?Utf-8?B?QW5hIFJpdGE=?=
Guest
Posts: n/a
 
      10-07-2004
Hello to all.

I’m using a vbs file in a aspx page.

In the page load I add the attribute onclick to a web button control , a sub
define in my vbs file. Something like this:

Btn.attibutes.add(“onclik”,”vbscript:teste )


The sub teste after fill the bookmarks in a word document redirects this
page, like this:

Sub teste()
…………..
Location.href = “webf1.aspx”
End sub

The problem is that the button don’t redirect to the page webf1.aspx.

I try only to redirect to another page in a html page and it works.

My question is, how can I redirect to another page using vbscript on a aspx
page?

Thanks for your help

Ana Rita

 
Reply With Quote
 
 
 
 
William F. Robertson, Jr.
Guest
Posts: n/a
 
      10-07-2004
This might be dumb, but you mistyped "onclick" for the Btn.Attribute.Add
statement. You might want to add some client side debugging statements to
try to track this down to see why.

bill



"Ana Rita" <> wrote in message
news:42611773-5010-4CCC-B67D-...
> Hello to all.
>
> I'm using a vbs file in a aspx page.
>
> In the page load I add the attribute onclick to a web button control , a

sub
> define in my vbs file. Something like this:
>
> Btn.attibutes.add("onclik","vbscript:teste")
>
>
> The sub teste after fill the bookmarks in a word document redirects this
> page, like this:
>
> Sub teste()
> ......
> Location.href = "webf1.aspx"
> End sub
>
> The problem is that the button don't redirect to the page webf1.aspx.
>
> I try only to redirect to another page in a html page and it works.
>
> My question is, how can I redirect to another page using vbscript on a

aspx
> page?
>
> Thanks for your help
>
> Ana Rita
>



 
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
VBScript to generate strong WPA pre shared keys? Wireless Networking 1 11-15-2004 10:30 PM
Problem with a VBScript on XP machines. Drew MCSE 2 12-18-2003 08:25 PM
Microsoft VBScript runtime error '800a0046' Stephen Chau MCSE 3 12-17-2003 08:50 PM
client side vbscript access to server vars? Mike Laskie ASP .Net 1 08-21-2003 03:39 PM
ASP, vbscript and Netscape... sftwrdvlpr ASP .Net 0 06-25-2003 05:12 PM



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