473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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

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

Anyone know how to do something similar to the above?

Thanks,
Mythran
Nov 19 '05 #1
2 1048
MyHyperlink.NavigateUrl = MyClass.MySharedMethod;

in code behind, Page_Load for example

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

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:#V**************@tk2msftngp13.phx.gbl...
<asp:hyperlink ... navigateurl="<%=MyClass.MySharedMethod%>" ...

Anyone know how to do something similar to the above?

Thanks,
Mythran

Nov 19 '05 #2

"Jakub" <ja*****@centrum.cz> wrote in message
news:em****************@TK2MSFTNGP09.phx.gbl...
MyHyperlink.NavigateUrl = MyClass.MySharedMethod;

in code behind, Page_Load for example

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

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:#V**************@tk2msftngp13.phx.gbl...
<asp:hyperlink ... navigateurl="<%=MyClass.MySharedMethod%>" ...

Anyone know how to do something similar to the above?

Thanks,
Mythran



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
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aquarius2431 | last post by:
Hi!, I don't think I have posted to this group before. Have been using PHP on my webserver for a few months now and finding that I like it quite a bit. Here is a question that just occurred...
4
by: Stephen | last post by:
I have code which checks whether a datagrid is empty and if it is it shows a panel on my page. If its not empty then Im using the server.transfer to go to another page so as im able to use the...
0
by: M Wagner | last post by:
Hello NG! I need a control, that generates code at design-time. Drag&Drop control to a place at the codebehind-file. After this it should generate a code to this place. How can I do this? I...
0
by: MS Newsgroups | last post by:
Hi, I am trying to create a table that adds cells through a for each loop. In each cell i would like to create a image control. I have manged to get the control created, but my problem is how to...
3
by: MattGood | last post by:
Hi! I can't show a ascx-control in a correct manner when the ascx-control uses another ascx-control, the IsPostBack and ViewState's etc. don't seems to work, problably because there can only be...
4
by: bruce.1 | last post by:
It's my understanding that the next version of Visual Studio and ASP.NET will have the code-behind inline with the HTML, in the same file. It's also my understanding that Visual Studio will...
10
by: Lynn McGuire | last post by:
Is there anyway to force code to be inline other than making that code a macro ? We have about 100 lines of code that is duplicated using a macro in about a dozen places. We would rather make...
1
by: Niron kag | last post by:
Hi, I am writing in .net 1.1 asp.net program in c#. In the code behind I declared a reference html control (frame): HtmlControl rightFrame = (HtmlControl)mainFrame.FindControl("frmRight"); ...
0
by: Marcin Krol | last post by:
Right, I didn't realize before that Python interpreter has its own signal handling routines. Now I am able to handle signals in Python code, but it still barfs on exit: import time import...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.