Click here to Skip to main content
15,923,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: date query Pin
imranafsari22-Jul-07 19:44
imranafsari22-Jul-07 19:44 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:51
Sonia Gupta22-Jul-07 19:51 
GeneralRe: date query Pin
imranafsari22-Jul-07 20:27
imranafsari22-Jul-07 20:27 
GeneralRe: date query Pin
Amit.Amit.Amit...22-Jul-07 20:29
Amit.Amit.Amit...22-Jul-07 20:29 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 20:42
Sonia Gupta22-Jul-07 20:42 
Questionin my ide there is no form designer code?can u tell me how to do this? Pin
ademsandeepreddy22-Jul-07 18:41
ademsandeepreddy22-Jul-07 18:41 
AnswerRe: in my ide there is no form designer code?can u tell me how to do this? Pin
Christian Graus22-Jul-07 19:05
protectorChristian Graus22-Jul-07 19:05 
Questioncreating folder and uploading file Pin
hurrem22-Jul-07 18:38
hurrem22-Jul-07 18:38 
Hi, I need to create a folder on the server and upload the file to that new folder. The foldername is given by the user.
The problem is that it creates the foler, but don't upload the file and gives an exception. Here is the code:

string username = Membership.GetUser().UserName.ToString();<br />
string path = @"E:\asem\Visual Studio 2005\WebSites\Project\Files\" + username;<br />
        try <br />
        {<br />
            if (Directory.Exists(path)) <br />
            {<br />
            }<br />
            else<br />
            { <br />
              DirectoryInfo di = Directory.CreateDirectory(path);<br />
            } <br />
         String filePath = path + "\\" + pdfUpload.FileName;<br />
         pdfUpload.SaveAs(MapPath(filePath));<br />
         Label1.Text = "File uploaded successfully";<br />
        <br />
        catch (Exception x) <br />
        {<br />
            Label1.Text = x.Message;<br />
        } <br />

It gives me this exception:
x = {"'E:\\asem\\Visual Studio 2005\\WebSites\\Project\\Files\\erbol123\\bank_statment.jpg' is not a valid virtual path."}

thanx!
AnswerRe: creating folder and uploading file Pin
Amit.Amit.Amit...22-Jul-07 19:43
Amit.Amit.Amit...22-Jul-07 19:43 
GeneralRe: creating folder and uploading file Pin
hurrem22-Jul-07 21:02
hurrem22-Jul-07 21:02 
GeneralRe: creating folder and uploading file Pin
hurrem22-Jul-07 21:06
hurrem22-Jul-07 21:06 
QuestionDataset to XML to Menu ? Pin
Shaareable22-Jul-07 17:08
Shaareable22-Jul-07 17:08 
QuestionPage is not showing asp controls after Hosting Pin
Kurian_Kurian22-Jul-07 16:56
Kurian_Kurian22-Jul-07 16:56 
QuestionSingle sign on for application in different domain using different validation keys Pin
sandeep kumar pundhir22-Jul-07 16:18
sandeep kumar pundhir22-Jul-07 16:18 
Questionsend mail in asp.net Pin
mr.mohsen22-Jul-07 12:18
mr.mohsen22-Jul-07 12:18 
AnswerRe: send mail in asp.net Pin
Christian Graus22-Jul-07 12:38
protectorChristian Graus22-Jul-07 12:38 
GeneralRe: send mail in asp.net Pin
mr.mohsen22-Jul-07 12:55
mr.mohsen22-Jul-07 12:55 
GeneralRe: send mail in asp.net Pin
Christian Graus22-Jul-07 13:12
protectorChristian Graus22-Jul-07 13:12 
AnswerRe: send mail in asp.net Pin
Sandeep Kumar22-Jul-07 20:26
Sandeep Kumar22-Jul-07 20:26 
QuestionDropdownlist set without SelecteIndex Property... Pin
Amit Kumar G22-Jul-07 12:01
Amit Kumar G22-Jul-07 12:01 
AnswerRe: Dropdownlist set without SelecteIndex Property... Pin
Christian Graus22-Jul-07 12:08
protectorChristian Graus22-Jul-07 12:08 
AnswerRe: Dropdownlist set without SelecteIndex Property... Pin
mr.mohsen22-Jul-07 12:26
mr.mohsen22-Jul-07 12:26 
GeneralRe: Dropdownlist set without SelecteIndex Property... Pin
Amit Kumar G22-Jul-07 12:40
Amit Kumar G22-Jul-07 12:40 
GeneralRe: Dropdownlist set without SelecteIndex Property... Pin
mr.mohsen22-Jul-07 12:52
mr.mohsen22-Jul-07 12:52 
GeneralRe: Dropdownlist set without SelecteIndex Property... Pin
Amit Kumar G22-Jul-07 12:59
Amit Kumar G22-Jul-07 12:59 

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.