ASP.NET + VBSCRIPT

G

Guest

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
 
W

William F. Robertson, Jr.

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
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top