473,394 Members | 4,052 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,394 software developers and data experts.

Rendering imageurl html

Hi all!

I'm having some trouble using user controls.

Situation:

An apsx page contains an user control (Control A) that contains
another user control(Control B). Control B is located in the subfolder
"Controls" and has some imagebutton server controls. I want to set the
imageurl of these image controls directly into the html using:

<code>

<ASP:IMAGEBUTTON runat="server" id="btnTest"
imageurl='<%=Session["imgprefix"]%>images/test.gif'/>

</code>

the html output from .NET :

<code>

<input type="image" name="ctrlA:ctrlB:btnTest"
id="ctrlA_ctrlB_DownButton"
src="Controls/<%=Session[&quot;imgPrefix&quot;]%>images/test.gif"
align="Middle" border="0" />

</code>

Anybody has a clue why the src attribute is rendered like this?

Thanks in advance,
Jeroen
Nov 18 '05 #1
2 1677
Have you checked whether your aspx page is asp compatable?

Freddy
"Jeroen Klooster" <je************@hotmail.com> wrote in message
news:77**************************@posting.google.c om...
Hi all!

I'm having some trouble using user controls.

Situation:

An apsx page contains an user control (Control A) that contains
another user control(Control B). Control B is located in the subfolder
"Controls" and has some imagebutton server controls. I want to set the
imageurl of these image controls directly into the html using:

<code>

<ASP:IMAGEBUTTON runat="server" id="btnTest"
imageurl='<%=Session["imgprefix"]%>images/test.gif'/>

</code>

the html output from .NET :

<code>

<input type="image" name="ctrlA:ctrlB:btnTest"
id="ctrlA_ctrlB_DownButton"
src="Controls/<%=Session[&quot;imgPrefix&quot;]%>images/test.gif"
align="Middle" border="0" />

</code>

Anybody has a clue why the src attribute is rendered like this?

Thanks in advance,
Jeroen

Nov 18 '05 #2
you can not <%= %> inside a control tag. use the more restrictive <%# %>
-- bruce (sqlwork.com)
"Jeroen Klooster" <je************@hotmail.com> wrote in message
news:77**************************@posting.google.c om...
Hi all!

I'm having some trouble using user controls.

Situation:

An apsx page contains an user control (Control A) that contains
another user control(Control B). Control B is located in the subfolder
"Controls" and has some imagebutton server controls. I want to set the
imageurl of these image controls directly into the html using:

<code>

<ASP:IMAGEBUTTON runat="server" id="btnTest"
imageurl='<%=Session["imgprefix"]%>images/test.gif'/>

</code>

the html output from .NET :

<code>

<input type="image" name="ctrlA:ctrlB:btnTest"
id="ctrlA_ctrlB_DownButton"
src="Controls/<%=Session[&quot;imgPrefix&quot;]%>images/test.gif"
align="Middle" border="0" />

</code>

Anybody has a clue why the src attribute is rendered like this?

Thanks in advance,
Jeroen

Nov 18 '05 #3

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

Similar topics

1
by: David Berman | last post by:
I'm having a problem with the ImageButton class. I want to set the ImageURL to an asp page, like: Thumbnail.ImageURL = "getpicturefromdatabase.aspx?INDEX=52&GALLERY=12"; The problem is, when...
3
by: matthias s. | last post by:
Hi there, I'm building a usercontrol to provide language selection options. The availabe languages are retrieved dynamically and should be shown as flags (ImageButtons) in a table. But I've...
1
by: Nathan Sokalski | last post by:
I am using the ImageUrl property of the Hyperlink control to create a graphical Hyperlink. However, I want to change the size of the image I am using, but the generated HTML places the width/height...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
3
by: ramesh | last post by:
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into...
0
by: Juan R. | last post by:
Since the idea of encoding mathematics using MathML is being very far from popular due to a number of factors -expensive tools, bad accesibility of generated code, unusual verbosity, lack of...
1
by: Ricardo Quintanilla G. | last post by:
how to override the rendering method of a whole asp.net applicaction? i want to not include spaces between html elements. As example, then rendering produce that: == == == == <html> <body>...
0
by: pabloazorin | last post by:
I developed a Date Picker web control using C# and .net framework 1.1 I added my control to Visual Studio 2003 IDE toolbar. When I drag and drop my control to design web page, the control renders...
2
by: mikeachamberlain | last post by:
Hi. I have an <asp:Imagecontrol in which I am databinding the ImageURL attribute. The URL is another ASPX page that provides the binary source of the image, The problem is that ASP.NET is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.