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.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="java script:sayHello();" runat=server
id=hyperlink1></asp:HyperLink>
or you use an asp:LinkButton its a hyperlink with postback functionality :).
"nicknack" <roezohar@.gmail.com> wrote in message
news:1162447474.647573.252990@.h48g2000cwc.googlegroups.com...
> 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 =D7=9B=D7=AA=D7=91:
> 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=3D"java script:sayHello();" runat=3Dserver
> id=3Dhyperlink1></asp:HyperLink>
> or you use an asp:LinkButton its a hyperlink with postback functionality =
:).
>
> "nicknack" <roezohar@.gmail.com> wrote in message
> news:1162447474.647573.252990@.h48g2000cwc.googlegroups.com...
Monday, March 26, 2012
working with ASP:HYPERLINK
Labels:
asp,
asphyperling,
asphyperlink,
clicked,
code,
net,
page,
possiblei,
working
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment