Click here to Skip to main content
15,885,782 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionAssigning stored proc param values in GridView's SelectCommand Pin
Christopher Duncan29-Jan-09 2:13
Christopher Duncan29-Jan-09 2:13 
AnswerRe: Assigning stored proc param values in GridView's SelectCommand Pin
ToddHileHoffer29-Jan-09 2:43
ToddHileHoffer29-Jan-09 2:43 
GeneralRe: Assigning stored proc param values in GridView's SelectCommand Pin
Christopher Duncan29-Jan-09 3:03
Christopher Duncan29-Jan-09 3:03 
Question[newbie] controls not aligned within <table></table> Pin
jon-8029-Jan-09 1:13
professionaljon-8029-Jan-09 1:13 
AnswerRe: [newbie] controls not aligned within Pin
ToddHileHoffer29-Jan-09 2:46
ToddHileHoffer29-Jan-09 2:46 
GeneralRe: [newbie] controls not aligned within Pin
jon-8029-Jan-09 3:05
professionaljon-8029-Jan-09 3:05 
Questionhow to fetch values from stock market in asp.net application Pin
rak_kan29-Jan-09 1:12
rak_kan29-Jan-09 1:12 
AnswerRe: how to fetch values from stock market in asp.net application Pin
mr_muskurahat29-Jan-09 2:05
mr_muskurahat29-Jan-09 2:05 
AnswerRe: how to fetch values from stock market in asp.net application Pin
johnsontroye29-Jan-09 9:57
johnsontroye29-Jan-09 9:57 
QuestionFile download Pin
Radhakrishnan G.29-Jan-09 0:50
Radhakrishnan G.29-Jan-09 0:50 
AnswerRe: File download Pin
Guffa29-Jan-09 6:01
Guffa29-Jan-09 6:01 
AnswerRe: File download Pin
Rutvik Dave29-Jan-09 6:52
professionalRutvik Dave29-Jan-09 6:52 

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.