Click here to Skip to main content
15,894,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to convert audio/video files to swf? Pin
wajans9-Sep-08 22:08
wajans9-Sep-08 22:08 
AnswerRe: How to convert audio/video files to swf? Pin
AhsanS9-Sep-08 22:59
AhsanS9-Sep-08 22:59 
Questionhow to get all employee ids into array? Pin
shankarcbe9-Sep-08 21:44
shankarcbe9-Sep-08 21:44 
AnswerRe: how to get all employee ids into array? Pin
Gamzun10-Sep-08 0:17
Gamzun10-Sep-08 0:17 
QuestionDicom viewer in dot net Pin
Khawar Abbas19-Sep-08 21:42
Khawar Abbas19-Sep-08 21:42 
Questionupload and download file Pin
niki_nilu9-Sep-08 21:09
niki_nilu9-Sep-08 21:09 
AnswerRe: upload and download file Pin
N a v a n e e t h9-Sep-08 21:11
N a v a n e e t h9-Sep-08 21:11 
GeneralRe: upload and download file Pin
niki_nilu9-Sep-08 21:33
niki_nilu9-Sep-08 21:33 
hi yes i took input file control.
but where i will see that uploaded file.


my code is--
if (File1.PostedFile != null) //Checking for valid file
       {
           // Since the PostedFile.FileNameFileName gives the entire path we use Substring function to rip of the filename alone.
           string StrFileName = File1.PostedFile.FileName.Substring(File1.PostedFile.FileName.LastIndexOf("\\") + 1);
           string StrFileType = File1.PostedFile.ContentType;
           int IntFileSize = File1.PostedFile.ContentLength;
           //Checking for the length of the file. If length is 0 then file is not uploaded.
           if (IntFileSize <= 0)
               Response.Write("<font color='Red' size='2'>Uploading of file " + StrFileName + " failed </font>");
           else
           {
               File1.PostedFile.SaveAs(Server.MapPath(".\\" + StrFileName));
               Messagebox.Show("Your file was uploaded successfully");
               //Response.Write("<font color='green' size='2'>Your file " + StrFileName + " of type " + StrFileType + " and size " + IntFileSize.ToString() + " bytes was uploaded successfully</font>");
           }
       }


Gayatri

GeneralRe: upload and download file Pin
AhsanS9-Sep-08 21:37
AhsanS9-Sep-08 21:37 
GeneralRe: upload and download file Pin
N a v a n e e t h9-Sep-08 21:39
N a v a n e e t h9-Sep-08 21:39 
GeneralRe: upload and download file Pin
Manas Bhardwaj9-Sep-08 21:39
professionalManas Bhardwaj9-Sep-08 21:39 
Questionpopup Pin
niki_nilu9-Sep-08 20:46
niki_nilu9-Sep-08 20:46 
AnswerRe: popup Pin
Manas Bhardwaj9-Sep-08 21:18
professionalManas Bhardwaj9-Sep-08 21:18 
AnswerRe: popup Pin
AhsanS9-Sep-08 21:23
AhsanS9-Sep-08 21:23 
GeneralRe: popup Pin
niki_nilu9-Sep-08 23:20
niki_nilu9-Sep-08 23:20 
GeneralRe: popup Pin
AhsanS9-Sep-08 23:35
AhsanS9-Sep-08 23:35 
GeneralRe: popup Pin
P. S. Pundeer10-Sep-08 1:12
P. S. Pundeer10-Sep-08 1:12 
QuestionText Box Which Allow user to Enter only 2 number Before : and 2 num after : Pin
Member 46590019-Sep-08 20:45
Member 46590019-Sep-08 20:45 
AnswerRe: Text Box Which Allow user to Enter only 2 number Before : and 2 num after : Pin
N a v a n e e t h9-Sep-08 21:17
N a v a n e e t h9-Sep-08 21:17 
GeneralRe: Text Box Which Allow user to Enter only 2 number Before : and 2 num after : Pin
Member 46590019-Sep-08 21:22
Member 46590019-Sep-08 21:22 
GeneralRe: Text Box Which Allow user to Enter only 2 number Before : and 2 num after : Pin
N a v a n e e t h9-Sep-08 21:32
N a v a n e e t h9-Sep-08 21:32 
GeneralRe: Text Box Which Allow user to Enter only 2 number Before : and 2 num after : Pin
Member 465900110-Sep-08 0:02
Member 465900110-Sep-08 0:02 
AnswerRe: Text Box Which Allow user to Enter only 2 number Before : and 2 num after : Pin
meghamaharshi11-Sep-08 1:45
meghamaharshi11-Sep-08 1:45 
Questionscreen sharing over Internet Pin
harunbagwan9-Sep-08 20:39
harunbagwan9-Sep-08 20:39 
AnswerIgnore Repost Pin
Manas Bhardwaj9-Sep-08 21:14
professionalManas Bhardwaj9-Sep-08 21:14 

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.