Click here to Skip to main content
16,004,727 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: listview freeze column Pin
_AK_22-Apr-08 20:47
_AK_22-Apr-08 20:47 
GeneralRe: listview freeze column Pin
aravindakumar22-Apr-08 23:13
aravindakumar22-Apr-08 23:13 
GeneralRe: listview freeze column Pin
Vasudevan Deepak Kumar24-Apr-08 0:35
Vasudevan Deepak Kumar24-Apr-08 0:35 
GeneralConvert an xml into excel using c# Pin
SreejithAchutan22-Apr-08 20:27
SreejithAchutan22-Apr-08 20:27 
GeneralRe: Convert an xml into excel using c# Pin
Christian Graus22-Apr-08 20:31
protectorChristian Graus22-Apr-08 20:31 
GeneralRe: Convert an xml into excel using c# Pin
SreejithAchutan22-Apr-08 20:55
SreejithAchutan22-Apr-08 20:55 
GeneralRe: Convert an xml into excel using c# Pin
Christian Graus22-Apr-08 23:28
protectorChristian Graus22-Apr-08 23:28 
GeneralUpload file problem [modified] Pin
Mike Hankey22-Apr-08 20:08
mveMike Hankey22-Apr-08 20:08 
Hey y'all,

I am uploading a file to a directory in my root named "Pictures" and it works fine.
I also add a title , url, and name of the picture in a XmlDatasource, and this works fine.

In my masterPage.master file I have;

<div id="image-area">
<a id="linkPart" runat="server" href="http://www.pic_site.com>
<img id="imagePart" runat="server" src="pictures/pic.jpg" alt="Image of the Day" /></a>
<p id="captionPart" runat="server">The rules according to Luna</p>
</div>

And in my masterPage.master.cs code behind file I have;

XmlNode elem = GetRandomPictureNode();
linkPart.HRef = elem.SelectSingleNode("url").InnerText;
str = elem.SelectSingleNode("file").InnerText;
string path = Server.MapPath("~/pictures/");
imagePart.Src = path + str;
captionPart.InnerText = elem.SelectSingleNode("title").InnerText;

The value that gets put into .Src is correct but the image doesn't display I get the alt "Image of the Day" instead?

P.S. The link and title work fine its just the image that doesn't work!

What the heck have I overlooked or don't understand?
Any help appreciated!
Mike


Semper Fi
http://www.hq4thmarinescomm.com[^]
My Site


modified on Wednesday, April 23, 2008 9:19 AM
AnswerRe: Upload file problem Pin
samMaster22-Apr-08 21:06
samMaster22-Apr-08 21:06 
Generali want add one more setup file in .net Setup because Pin
Piyush Vardhan Singh22-Apr-08 19:52
Piyush Vardhan Singh22-Apr-08 19:52 
GeneralRe: i want add one more setup file in .net Setup because Pin
Spunky Coder22-Apr-08 20:20
Spunky Coder22-Apr-08 20:20 
GeneralRe: i want add one more setup file in .net Setup because Pin
Piyush Vardhan Singh22-Apr-08 20:31
Piyush Vardhan Singh22-Apr-08 20:31 
GeneralRe: i want add one more setup file in .net Setup because Pin
Spunky Coder22-Apr-08 21:18
Spunky Coder22-Apr-08 21:18 
GeneralRe: i want add one more setup file in .net Setup because Pin
Piyush Vardhan Singh22-Apr-08 21:31
Piyush Vardhan Singh22-Apr-08 21:31 
GeneralRe: i want add one more setup file in .net Setup because Pin
Spunky Coder22-Apr-08 22:09
Spunky Coder22-Apr-08 22:09 
GeneralRe: i want add one more setup file in .net Setup because Pin
Piyush Vardhan Singh22-Apr-08 22:33
Piyush Vardhan Singh22-Apr-08 22:33 
GeneralProgress Bar in asp.net Pin
trilokharry22-Apr-08 19:32
trilokharry22-Apr-08 19:32 
GeneralRe: Progress Bar in asp.net Pin
Christian Graus22-Apr-08 20:26
protectorChristian Graus22-Apr-08 20:26 
Generalupload and download file Pin
trilokharry22-Apr-08 19:25
trilokharry22-Apr-08 19:25 
GeneralRe: upload and download file Pin
Christian Graus22-Apr-08 20:25
protectorChristian Graus22-Apr-08 20:25 
Generalcheckboxlist Pin
meghamaharshi22-Apr-08 19:19
meghamaharshi22-Apr-08 19:19 
GeneralRe: checkboxlist Pin
Piyush Vardhan Singh22-Apr-08 20:06
Piyush Vardhan Singh22-Apr-08 20:06 
GeneralRe: checkboxlist Pin
_AK_22-Apr-08 20:44
_AK_22-Apr-08 20:44 
GeneralRe: checkboxlist Pin
mr.mohsen22-Apr-08 21:37
mr.mohsen22-Apr-08 21:37 
GeneralAlert Header Change Pin
NitinTiwari0222-Apr-08 19:17
NitinTiwari0222-Apr-08 19:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.