Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.Htm lDecode((Eval(" WallpaperLink") )) %/>
It still displays the file as: bobs%20image. %20 keeps popping up.
Does anybody have any solutions? Oh yes, I've also tried
URLDecode/Encode
Thanks for the help! 3 2207
I answered this in some other newsgroup where you also posted it. Use
crossposting instead of posting separate copies.
MRW wrote:
Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.Htm lDecode((Eval(" WallpaperLink") )) %/>
It still displays the file as: bobs%20image. %20 keeps popping up.
Does anybody have any solutions? Oh yes, I've also tried
URLDecode/Encode
Thanks for the help!
I'll be honest... this is the only newsgroup I posted to...
Göran Andersson wrote:
I answered this in some other newsgroup where you also posted it. Use
crossposting instead of posting separate copies.
MRW wrote:
Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.Htm lDecode((Eval(" WallpaperLink") )) %/>
It still displays the file as: bobs%20image. %20 keeps popping up.
Does anybody have any solutions? Oh yes, I've also tried
URLDecode/Encode
Thanks for the help!
My apologies... when I originally posted my question, I did not see it
posted. Thinking an error occured, I tried again. I now see that it
DID post correctly....
Göran Andersson wrote:
I answered this in some other newsgroup where you also posted it. Use
crossposting instead of posting separate copies.
MRW wrote:
Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.Htm lDecode((Eval(" WallpaperLink") )) %/>
It still displays the file as: bobs%20image. %20 keeps popping up.
Does anybody have any solutions? Oh yes, I've also tried
URLDecode/Encode
Thanks for the help!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris Fink |
last post by:
Hello,
Does anyone know of a way to handle broken href image tags either by using
the html img tag or the asp:image server control? For example, if my src
attribute is broken, I would like to display an alternate image, ie one that
blends in with the background instead of the standard eye sore x.
I would imagine I could use the...
|
by: tperri |
last post by:
I have an HTML table with several fields like this:
<A href="Savings.aspx?category=Food"><asp:imagebutton id="imgFood"
ImageUrl="images\buttons\btn-food-i.gif" runat="server"></asp:imagebutton></A>
When the user sees these buttons, they will currently be on the
savings.aspx?category=whatever page, and when they click another button to...
|
by: DavidS |
last post by:
I have HTML web page with <asp:Image id=img_L runat=server ImageAlign=Top
Visible=True Width=y Height=x></asp:Image>. For some images, less than 128K
I can view image. Other image files > 128K, image is not viewable - comes up
with X in picture box. Is there size restriction. How can I remove this -
or how can I show images > 128K in web...
|
by: Satya |
last post by:
Hi all,
The following code is throwing a run time error "The server tag is not well
formed.
"
<ItemTemplate>
<asp:HyperLink Runat="server" ID="lnkFile"
NavigateUrl="javascript:OpenImage('<%#
DataBinder.Eval(Container.DataItem,"FileName") %>');"><%#
|
by: Joe |
last post by:
Hello All,
I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton
(SearchButton) server controls. The user can type search text in
SearchTextBox and click SearchButton and the web server performs a database
query and displays the results. All of this works fine.
I want the user to be able to press the Enter key...
| |
by: R.A.M. |
last post by:
Hello,
Could anyone help me to handle <asp:Image> click in behind code?
I have:
<asp:Image ID="DotNETImage" ImageUrl="Images/DotNET_360x280.jpeg"
AlternateText="Microsoft .NET version 2.0" Width="360" Height="280"
runat="server" />
which I need to handle when clicked. I tried:
|
by: jackiepatti |
last post by:
QUESTION:
I have a web page containing a form that contains an image instead of a
submit button, e.g.
<form name='myform' action='get' method='otherpage.asp'>
<input type='image' src='picture.gif' name='myimage' id='myimage'>
</form>
When forms with image types are submitted, the value is not returned;
instead, when the form is submitted,...
|
by: MRW |
last post by:
Hello!
I'm taking a file name from a database and using the <asp:imagetag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:
<asp:Image runat=server ImageUrl=<%#
HttpUtility.HtmlDecode((Eval("WallpaperLink"))) %/>
It still displays the file as: bobs%20image. %20...
|
by: Steve Kiss |
last post by:
Is there a way to add javascript functionality, onmouseover to be specific, to an image defined with <asp:Image />?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |