Click here to Skip to main content
15,914,010 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Application_End () problem Pin
sana1729-Jan-09 11:12
sana1729-Jan-09 11:12 
AnswerRe: Application_End () problem Pin
N a v a n e e t h29-Jan-09 15:01
N a v a n e e t h29-Jan-09 15:01 
Questionchanging property of some other form's control? Pin
Tarun.Suneja29-Jan-09 7:38
Tarun.Suneja29-Jan-09 7:38 
AnswerRe: changing property of some other form's control? Pin
ToddHileHoffer29-Jan-09 7:48
ToddHileHoffer29-Jan-09 7:48 
AnswerRe: changing property of some other form's control? Pin
Tad McClellan29-Jan-09 11:04
professionalTad McClellan29-Jan-09 11:04 
Question[newbie] Validating a date Pin
jon-8029-Jan-09 6:53
professionaljon-8029-Jan-09 6:53 
AnswerRe: [newbie] Validating a date Pin
N a v a n e e t h29-Jan-09 7:26
N a v a n e e t h29-Jan-09 7:26 
AnswerRe: [newbie] Validating a date Pin
ToddHileHoffer29-Jan-09 7:53
ToddHileHoffer29-Jan-09 7:53 
Questionone webform to other Pin
Tarun.Suneja29-Jan-09 6:33
Tarun.Suneja29-Jan-09 6:33 
AnswerRe: one webform to other Pin
Rutvik Dave29-Jan-09 6:45
professionalRutvik Dave29-Jan-09 6:45 
GeneralRe: one webform to other Pin
Tarun.Suneja29-Jan-09 7:35
Tarun.Suneja29-Jan-09 7:35 
AnswerRe: one webform to other Pin
N a v a n e e t h29-Jan-09 6:54
N a v a n e e t h29-Jan-09 6:54 
AnswerRe: one webform to other Pin
Ashutosh Phoujdar29-Jan-09 21:06
Ashutosh Phoujdar29-Jan-09 21:06 
Question[newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
jon-8029-Jan-09 6:25
professionaljon-8029-Jan-09 6:25 
AnswerRe: [newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
Frauke29-Jan-09 23:35
Frauke29-Jan-09 23:35 
GeneralRe: [newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
jon-8030-Jan-09 8:38
professionaljon-8030-Jan-09 8:38 
AnswerRe: [newbie] System.Web.UI.WebControls.GridView.SelectedRowStyle - Different color? Pin
jon-8030-Jan-09 0:35
professionaljon-8030-Jan-09 0:35 
QuestionFormView last inserted ID into Access database Pin
Mohammad Al Hoss29-Jan-09 2:53
Mohammad Al Hoss29-Jan-09 2:53 
AnswerRe: FormView last inserted ID into Access database Pin
led mike29-Jan-09 4:24
led mike29-Jan-09 4:24 
QuestionFILE UPLOAD control Pin
sana1729-Jan-09 2:29
sana1729-Jan-09 2:29 
ASALAMOALEKUM ALL,

I am using fileupload control in my website to allow user to uplaod a display picture for its profile page.
The problem is fileupload1.filename takes only filename not the whole path and while using the following

fs = new FileStream(@imagename, FileMode.Open, FileAccess.Read);

FileAccess.Read is throwing exception that the requested file is not on the root path i.e;

for eg: if user browse an image to be uploaded from path E:\IMAGES\pic001.jpg

string imagename = fileupload1.filename ....
(it results:- imagename=pic001.jpg)

now at point FileAccess.Read it throws exception that :
"Could not found C:\MyDocuments\Project\pic001.jpeg"

where: C:\MyDocuments\Project is the root path for my project.

PLEASE tell me how to solve thisss so i could upload image file from any path from the system??

Thanks,
Regards,
SANA

$@N@

AnswerRe: FILE UPLOAD control Pin
J4amieC29-Jan-09 2:36
J4amieC29-Jan-09 2:36 
GeneralRe: FILE UPLOAD control Pin
sana1729-Jan-09 8:10
sana1729-Jan-09 8:10 
AnswerRe: FILE UPLOAD control Pin
Paddy Boyd29-Jan-09 2:45
Paddy Boyd29-Jan-09 2:45 
GeneralRe: FILE UPLOAD control Pin
sana1729-Jan-09 8:10
sana1729-Jan-09 8:10 
AnswerRe: FILE UPLOAD control Pin
Karthick_gc29-Jan-09 23:26
Karthick_gc29-Jan-09 23:26 

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.