Click here to Skip to main content
15,887,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
AnswerRe: How to convert word document pdf in asp.net ?? Pin
HimaBindu Vejella8-Jan-10 3:12
HimaBindu Vejella8-Jan-10 3:12 
GeneralRe: How to convert word document pdf in asp.net ?? Pin
JC.KaNNaN9-Jan-10 6:22
JC.KaNNaN9-Jan-10 6:22 
QuestionDynamically getting values from database to javascript array Pin
dsaikrishna8-Jan-10 1:10
dsaikrishna8-Jan-10 1:10 
AnswerRe: Dynamically getting values from database to javascript array Pin
Not Active8-Jan-10 2:29
mentorNot Active8-Jan-10 2:29 
AnswerOnly cause Mark Said you can't Pin
Ennis Ray Lynch, Jr.8-Jan-10 10:30
Ennis Ray Lynch, Jr.8-Jan-10 10:30 
QuestionA site with multiple languages... Pin
awedaonline8-Jan-10 0:43
awedaonline8-Jan-10 0:43 
AnswerRe: A site with multiple languages... Pin
Abhijit Jana8-Jan-10 1:31
professionalAbhijit Jana8-Jan-10 1:31 
GeneralRe: A site with multiple languages... Pin
awedaonline8-Jan-10 4:28
awedaonline8-Jan-10 4:28 

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.