Server-Side Control - Embedded Server-Side Code - Inline

M

Mythran

<asp:hyperlink ... navigateurl="<%=MyClass.MySharedMethod%>" ...

Anyone know how to do something similar to the above?

Thanks,
Mythran
 
J

Jakub

MyHyperlink.NavigateUrl = MyClass.MySharedMethod;

in code behind, Page_Load for example

(you cannot use webcontrols together with "Response.Write")
 
M

Mythran

Jakub said:
MyHyperlink.NavigateUrl = MyClass.MySharedMethod;

in code behind, Page_Load for example

(you cannot use webcontrols together with "Response.Write")

Umm, yeah, I know about the code behind...

I was talking about webcontrols and response.write inline, and the rest of
yer message answered that ;)

Thanks,
Mythran
 

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,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top