working with ASP:HYPERLINK

  • Thread starter Thread starter nicknack
  • Start date Start date
N

nicknack

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.
 
Did u try to set NavigateUrl property?

--
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hi.
i have navigition url set but its not what i wanted.
i wanted that when i click a button it will simulate a click on the
hyperlink.
any way - its loo like there isn't an option to do that.

maybe i'll change it with a link button :(

thanks any way.

nicknack כתב:
 
Then use
hyperlink1.Attributes.Add("OnClick", "ClickMe()");
where ClickMe() is your javascript function

--
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

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

Back
Top