Click here to Skip to main content
16,005,080 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExport to Excel Pin
Assaf8229-Jun-08 4:29
Assaf8229-Jun-08 4:29 
AnswerRe: Export to Excel Pin
rp_suman29-Jun-08 5:12
rp_suman29-Jun-08 5:12 
QuestionCalling javascript function from C# code behind on droplistbox change.... Pin
Jacob Dixon29-Jun-08 4:24
Jacob Dixon29-Jun-08 4:24 
AnswerRe: Calling javascript function from C# code behind on droplistbox change.... Pin
Christian Graus29-Jun-08 14:42
protectorChristian Graus29-Jun-08 14:42 
GeneralRe: Calling javascript function from C# code behind on droplistbox change.... Pin
Jacob Dixon29-Jun-08 16:09
Jacob Dixon29-Jun-08 16:09 
GeneralRe: Calling javascript function from C# code behind on droplistbox change.... Pin
Christian Graus29-Jun-08 19:12
protectorChristian Graus29-Jun-08 19:12 
Questiona question about workflow Pin
ptvce28-Jun-08 22:08
ptvce28-Jun-08 22:08 
Questionimage upload Pin
mary_sa28-Jun-08 21:47
mary_sa28-Jun-08 21:47 
hi asp.net 2005
the work I want to do is this:
the customer select his image from the dialog and show the picture on the page than save that in database.
whatever I did:
controls : input(file) , image,button1(for show picture) , button2(for save)
code:
button1_click()
{
if (File1.PostedFile!=null)
{
Image1.ImageUrl = File1.PostedFile.FileName;
}
}
button2_click()
{
MemoryStream ms = new MemoryStream();
File1.PostedFile.SaveAs(File1.PostedFile.FileName);

byte[] arr = ms.GetBuffer();
ms.Close();
//can't attach ms to save file

SqlCommand com = new SqlCommand(); com.CommandText = "insert into Employees(photo) values(@photo);
com.Parameters.Add("@photo", SqlDbType.Image).Value = arr;

}
result upper code:not show picture and not save
please guid me or if you know other way show me.
AnswerRe: image upload Pin
N a v a n e e t h29-Jun-08 7:19
N a v a n e e t h29-Jun-08 7:19 
GeneralRe: image upload Pin
mary_sa29-Jun-08 22:16
mary_sa29-Jun-08 22:16 
GeneralRe: image upload Pin
N a v a n e e t h29-Jun-08 22:22
N a v a n e e t h29-Jun-08 22:22 
GeneralRe: image upload Pin
mary_sa30-Jun-08 4:19
mary_sa30-Jun-08 4:19 
QuestionWould you obfuscate your code before deploying it? Pin
Waleed Eissa28-Jun-08 20:02
Waleed Eissa28-Jun-08 20:02 
AnswerRe: Would you obfuscate your code before deploying it? Pin
N a v a n e e t h29-Jun-08 7:12
N a v a n e e t h29-Jun-08 7:12 
AnswerRe: Would you obfuscate your code before deploying it? Pin
Mark Churchill29-Jun-08 17:12
Mark Churchill29-Jun-08 17:12 
QuestionCreate object from a database Pin
MrColeyted28-Jun-08 15:33
MrColeyted28-Jun-08 15:33 
AnswerRe: Create object from a database Pin
N a v a n e e t h28-Jun-08 17:03
N a v a n e e t h28-Jun-08 17:03 
QuestionCreating a forumn grid like code project Pin
Richard Blythe28-Jun-08 10:46
Richard Blythe28-Jun-08 10:46 
AnswerRe: Creating a forumn grid like code project Pin
Christian Graus28-Jun-08 12:44
protectorChristian Graus28-Jun-08 12:44 
QuestionImages not showing at run time Pin
Richard Blythe28-Jun-08 10:44
Richard Blythe28-Jun-08 10:44 
AnswerRe: Images not showing at run time Pin
Christian Graus28-Jun-08 12:45
protectorChristian Graus28-Jun-08 12:45 
GeneralRe: Images not showing at run time Pin
Richard Blythe29-Jun-08 16:55
Richard Blythe29-Jun-08 16:55 
QuestionCascade Style Sheet Pin
aecordoba28-Jun-08 7:59
aecordoba28-Jun-08 7:59 
AnswerRe: Cascade Style Sheet Pin
Guffa28-Jun-08 8:10
Guffa28-Jun-08 8:10 
GeneralRe: Cascade Style Sheet Pin
aecordoba28-Jun-08 11:02
aecordoba28-Jun-08 11:02 

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.