I have an asp:hyperling in my page and I'm trying to make it "clicked"
from my code behind.
Is this possible?
I also tried it with JS but its look like the hyperlink doesn't have a
"click()" method :(
Any body have an idea?
Thanks in advance,
Roy.if you are trying with javascript, it is possible by pointing the
NavigateUrl of the Hyperlink to a javascript function viz
function sayHello()
{
alert('Hello Now');
}
<asp:HyperLink NavigateUrl="javascript:sayHello();" runat=server
id=hyperlink1></asp:HyperLink>
or you use an asp:LinkButton its a hyperlink with postback functionality :).
"nicknack" <roezohar@.gmail.comwrote in message
news:1162447474.647573.252990@.h48g2000cwc.googlegr oups.com...
Quote:
Originally Posted by
Hello.
I have an asp:hyperling in my page and I'm trying to make it "clicked"
from my code behind.
Is this possible?
I also tried it with JS but its look like the hyperlink doesn't have a
"click()" method :(
>
Any body have an idea?
>
>
Thanks in advance,
>
Roy.
>
thanks. i'll will check that out :)
Onwuka Emeka ???:
Quote:
Originally Posted by
if you are trying with javascript, it is possible by pointing the
NavigateUrl of the Hyperlink to a javascript function viz
>
function sayHello()
{
alert('Hello Now');
}
>
<asp:HyperLink NavigateUrl="javascript:sayHello();" runat=server
id=hyperlink1></asp:HyperLink>
>
or you use an asp:LinkButton its a hyperlink with postback functionality :).
>
>
"nicknack" <roezohar@.gmail.comwrote in message
news:1162447474.647573.252990@.h48g2000cwc.googlegr oups.com...
Quote:
Originally Posted by
Hello.
I have an asp:hyperling in my page and I'm trying to make it "clicked"
from my code behind.
Is this possible?
I also tried it with JS but its look like the hyperlink doesn't have a
"click()" method :(
Any body have an idea?
Thanks in advance,
Roy.
0 comments:
Post a Comment