Click here to Skip to main content
15,922,584 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: datalist Pin
dan!sh 8-Jan-10 20:16
professional dan!sh 8-Jan-10 20:16 
GeneralRe: datalist Pin
mylogics8-Jan-10 20:20
professionalmylogics8-Jan-10 20:20 
GeneralRe: datalist Pin
dan!sh 8-Jan-10 21:31
professional dan!sh 8-Jan-10 21:31 
GeneralRe: datalist Pin
mylogics8-Jan-10 22:29
professionalmylogics8-Jan-10 22:29 
GeneralRe: datalist Pin
sashidhar8-Jan-10 22:49
sashidhar8-Jan-10 22:49 
GeneralRe: datalist Pin
mylogics8-Jan-10 23:02
professionalmylogics8-Jan-10 23:02 
GeneralRe: datalist Pin
sashidhar8-Jan-10 23:11
sashidhar8-Jan-10 23:11 
Questionobjectdatasource with a dal in a seperate assembly Pin
jsmith72908-Jan-10 12:44
jsmith72908-Jan-10 12:44 
QuestionHit counter on a web page Pin
JacSophie8-Jan-10 8:42
JacSophie8-Jan-10 8:42 
AnswerRe: Hit counter on a web page Pin
HarrisonB8-Jan-10 9:29
HarrisonB8-Jan-10 9:29 
GeneralRe: Hit counter on a web page Pin
Abhishek Sur8-Jan-10 10:03
professionalAbhishek Sur8-Jan-10 10:03 
GeneralRe: Hit counter on a web page Pin
JacSophie10-Jan-10 8:01
JacSophie10-Jan-10 8:01 
GeneralRe: Hit counter on a web page Pin
JacSophie9-Jan-10 8:24
JacSophie9-Jan-10 8:24 
GeneralRe: Hit counter on a web page Pin
HarrisonB9-Jan-10 8:56
HarrisonB9-Jan-10 8:56 
GeneralRe: Hit counter on a web page Pin
JacSophie9-Jan-10 12:56
JacSophie9-Jan-10 12:56 
QuestionImage from Database Fields Pin
eddieangel8-Jan-10 6:04
eddieangel8-Jan-10 6:04 
Good morning, most of my work is generally client server so some of the basic ASP.NET questions are a pain for me, so forgive me if this is stupid.

I am trying to load an image on the event of clicking a cell in a gridview. The gridview has a button and I am calling the RowCommand to load the picture. The field for the image name is in the gridview, the code looks like this (Basically)

protected void gvRecords_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "View")
     {
         Int32 rowIndex = Convert.ToInt32(e.CommandArgument.ToString());
         string path = @"Images/Foo/images/";
         string fileName = gvRecords.Rows[rowIndex].Cells[7].Text;
         imgMyRecord.ImageUrl = Server.MapPath(path + fileName);
         imgMyRecord.Height = 250;
         imgMyRecord.Width = 250;
     }
 }


I have tried a static reference in the Mappath, but can't get the image to load. The possible caveat to this is that the "Images" folder referred to above is located on another server and is a virtual directory pointing to a UNC path. So I added the Virtual folder in the app folder pointing to \\server\folder.

Where is my issue? Is the setup of the virtual folder wrong or am I just plain old doing it wrong? Or both?
AnswerRe: Image from Database Fields Pin
Ennis Ray Lynch, Jr.8-Jan-10 10:28
Ennis Ray Lynch, Jr.8-Jan-10 10:28 
Questioncss problem Pin
Spurple8-Jan-10 4:24
Spurple8-Jan-10 4:24 
AnswerRe: css problem Pin
Abhijit Jana8-Jan-10 5:03
professionalAbhijit Jana8-Jan-10 5:03 
Questionstring Encryption and decryption problem Pin
Sudhanshu Mani Tripathi8-Jan-10 3:43
Sudhanshu Mani Tripathi8-Jan-10 3:43 
AnswerRe: string Encryption and decryption problem Pin
Covean8-Jan-10 4:07
Covean8-Jan-10 4:07 
QuestionDeploy Steps Pin
arkiboys8-Jan-10 2:58
arkiboys8-Jan-10 2:58 
AnswerRe: Deploy Steps Pin
Abhijit Jana8-Jan-10 3:40
professionalAbhijit Jana8-Jan-10 3:40 
QuestionHow to convert word document pdf in asp.net ?? Pin
JC.KaNNaN8-Jan-10 2:40
JC.KaNNaN8-Jan-10 2:40 
AnswerRe: How to convert word document pdf in asp.net ?? Pin
annathor8-Jan-10 3:08
annathor8-Jan-10 3:08 

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.