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
>
|