Click here to Skip to main content
15,896,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to find Reciprocal URL Pin
N a v a n e e t h26-Nov-07 20:00
N a v a n e e t h26-Nov-07 20:00 
Questionhow to retrive database records without using DataTable,DataReader or DataSet Pin
Dharti Gajjar26-Nov-07 19:20
Dharti Gajjar26-Nov-07 19:20 
AnswerRe: how to retrive database records without using DataTable,DataReader or DataSet Pin
N a v a n e e t h26-Nov-07 19:37
N a v a n e e t h26-Nov-07 19:37 
GeneralRe: how to retrive database records without using DataTable,DataReader or DataSet Pin
Dharti Gajjar26-Nov-07 19:40
Dharti Gajjar26-Nov-07 19:40 
GeneralRe: how to retrive database records without using DataTable,DataReader or DataSet Pin
N a v a n e e t h26-Nov-07 19:54
N a v a n e e t h26-Nov-07 19:54 
Questionhow can i upload the file in the server Pin
Ravi_2126-Nov-07 19:03
Ravi_2126-Nov-07 19:03 
AnswerRe: how can i upload the file in the server Pin
_AK_26-Nov-07 19:04
_AK_26-Nov-07 19:04 
AnswerRe: how can i upload the file in the server Pin
Naik A2Ze26-Nov-07 19:13
Naik A2Ze26-Nov-07 19:13 
hi frd...this is code for upload image.....Rose | [Rose]


string sPath;
sPath="../Images/Logo.jpg";
if(BuildersLogoFile.PostedFile!=null)
{
HttpPostedFile photoFile=BuildersLogoFile.PostedFile;
int photoLength=photoFile.ContentLength;
string fileName=Path.GetFileName(photoFile.FileName);
if(photoLength==0)
{
Label1.Text="There was not any file uploaded";
return;
}
if(File.Exists(Server.MapPath(sPath+fileName)))
{
Label1.Text="File already exists";
return;
}
if(Path.GetExtension(photoFile.FileName).ToLower()!=".jpg")
{
Label1.Text="The file must have extension of JPG";
return;
}

byte[] myData=new byte[photoLength];
photoFile.InputStream.Read(myData,0,photoLength);

int file_append=0;
while (System.IO.File.Exists(Server.MapPath(sPath + fileName)))
{
file_append++;
fileName = System.IO.Path.GetFileNameWithoutExtension(photoFile.FileName) + file_append.ToString() + ".jpg";
}

FileStream newFile=new FileStream(Server.MapPath(sPath+fileName),FileMode.Create);
newFile.Write(myData,0,myData.Length);
newFile.Close();
buildersClass.BuildersLogo=sPath+fileName;
}


Vijay

Questionhow i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 18:50
jagan12326-Nov-07 18:50 
AnswerRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
Michael Sync26-Nov-07 18:53
Michael Sync26-Nov-07 18:53 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 19:20
jagan12326-Nov-07 19:20 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
Michael Sync26-Nov-07 19:59
Michael Sync26-Nov-07 19:59 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 20:06
jagan12326-Nov-07 20:06 
AnswerRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
_AK_26-Nov-07 19:03
_AK_26-Nov-07 19:03 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 19:13
jagan12326-Nov-07 19:13 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
_AK_26-Nov-07 19:16
_AK_26-Nov-07 19:16 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 19:30
jagan12326-Nov-07 19:30 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
_AK_26-Nov-07 19:37
_AK_26-Nov-07 19:37 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 19:54
jagan12326-Nov-07 19:54 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
_AK_26-Nov-07 20:14
_AK_26-Nov-07 20:14 
GeneralRe: how i can view the last genarated row of a grid view when grid view is in the panel Pin
jagan12326-Nov-07 19:55
jagan12326-Nov-07 19:55 
QuestionImage Upload in specific location Pin
Ravi_2126-Nov-07 18:47
Ravi_2126-Nov-07 18:47 
AnswerRe: Image Upload in specific location Pin
Michael Sync26-Nov-07 18:54
Michael Sync26-Nov-07 18:54 
AnswerRe: Image Upload in specific location Pin
Ravi_2126-Nov-07 18:59
Ravi_2126-Nov-07 18:59 
GeneralRe: Image Upload in specific location Pin
_AK_26-Nov-07 19:04
_AK_26-Nov-07 19:04 

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.