Click here to Skip to main content
15,909,953 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: textbox : textmode = password Pin
Oakman29-Oct-09 3:53
Oakman29-Oct-09 3:53 
AnswerRe: textbox : textmode = password Pin
Nishant Singh29-Oct-09 7:09
Nishant Singh29-Oct-09 7:09 
GeneralRe: textbox : textmode = password Pin
Oakman29-Oct-09 7:59
Oakman29-Oct-09 7:59 
QuestionHow to implement SMS API Pin
farogh haider29-Oct-09 3:29
farogh haider29-Oct-09 3:29 
AnswerRe: How to implement SMS API Pin
dan!sh 29-Oct-09 3:55
professional dan!sh 29-Oct-09 3:55 
AnswerRe: How to implement SMS API Pin
Christian Graus29-Oct-09 12:03
protectorChristian Graus29-Oct-09 12:03 
AnswerRe: How to implement SMS API Pin
Anindita Basak 198612-Dec-11 1:41
Anindita Basak 198612-Dec-11 1:41 
Questionfile upload Pin
m@dhu29-Oct-09 2:51
m@dhu29-Oct-09 2:51 
hi all.,
this is how i inserted images into sql.. and displayed thumbnail in image control..

// button click

byte[] img = new byte[FileUpload1.PostedFile.ContentLength];
            HttpPostedFile postfile = FileUpload1.PostedFile;
            postfile.InputStream.Read(img, 0, (int)FileUpload1.PostedFile.ContentLength);
            System.Drawing.Image img12 = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream);
            SqlCommand cmd = new SqlCommand("insert into image11 (type,name,length,byte) values(@type,@name,@length,@byte)", cnn);
            cmd.Parameters.Add("@type", SqlDbType.VarChar).Value = FileUpload1.PostedFile.ContentType;
            cmd.Parameters.Add("@name", SqlDbType.VarChar).Value = FileUpload1.PostedFile.FileName;
            cmd.Parameters.Add("@length", SqlDbType.VarChar).Value = FileUpload1.PostedFile.ContentLength;
            cmd.Parameters.Add("@byte", SqlDbType.Image, img.Length).Value = img;
            cnn.Open();
            cmd.ExecuteNonQuery();
            cnn.Close();
            DataTable dtTemp = new DataTable("TempImage");//Creating temprory data table which will store image information
            dtTemp.Columns.Add("Image", System.Type.GetType("System.Byte[]"));//Byte Image column
            DataRow dr = dtTemp.NewRow();
            dr[0] = img;//storing binary image information in table.
            dtTemp.Rows.Add(dr);
            Session["dt"] = dtTemp;//storing temprory table in seesion.
            Image1.ImageUrl = "de.aspx?id=0";

im trying get image to a image control
but im unable to retrive that image from database i tried using handler.ashx
AnswerRe: file upload Pin
sashidhar29-Oct-09 5:12
sashidhar29-Oct-09 5:12 
AnswerRe: file upload Pin
SayreCC29-Oct-09 14:44
SayreCC29-Oct-09 14:44 
Questionhow to get checkbox checked in a grid view after page post Pin
santu32129-Oct-09 2:08
santu32129-Oct-09 2:08 
AnswerRe: how to get checkbox checked in a grid view after page post Pin
Abhishek Sur29-Oct-09 2:23
professionalAbhishek Sur29-Oct-09 2:23 
GeneralRe: how to get checkbox checked in a grid view after page post Pin
souravghosh1829-Oct-09 17:43
souravghosh1829-Oct-09 17:43 
QuestionAbout MS Application Block Pin
Ha_8029-Oct-09 2:03
Ha_8029-Oct-09 2:03 
AnswerRe: About MS Application Block Pin
Abhishek Sur29-Oct-09 2:18
professionalAbhishek Sur29-Oct-09 2:18 
QuestionGridview problem Pin
demouser74329-Oct-09 1:39
demouser74329-Oct-09 1:39 
AnswerRe: Gridview problem Pin
padmanabhan N29-Oct-09 1:59
padmanabhan N29-Oct-09 1:59 
AnswerRe: Gridview problem Pin
Abhishek Sur29-Oct-09 2:01
professionalAbhishek Sur29-Oct-09 2:01 
QuestionProblem with GridView: How to change the text of Button in a GridView Cell ? Pin
Purish Dwivedi29-Oct-09 1:21
Purish Dwivedi29-Oct-09 1:21 
AnswerRe: Problem with GridView: How to change the text of Button in a GridView Cell ? Pin
Abhishek Sur29-Oct-09 1:45
professionalAbhishek Sur29-Oct-09 1:45 
GeneralRe: Problem with GridView: How to change the text of Button in a GridView Cell ? Pin
Purish Dwivedi29-Oct-09 2:07
Purish Dwivedi29-Oct-09 2:07 
GeneralRe: Problem with GridView: How to change the text of Button in a GridView Cell ? Pin
Abhishek Sur29-Oct-09 2:12
professionalAbhishek Sur29-Oct-09 2:12 
QuestionRe: Problem with GridView: How to change the text of Button in a GridView Cell ? Pin
Purish Dwivedi29-Oct-09 2:27
Purish Dwivedi29-Oct-09 2:27 
AnswerRe: Problem with GridView: How to change the text of Button in a GridView Cell ? Pin
Abhishek Sur29-Oct-09 2:32
professionalAbhishek Sur29-Oct-09 2:32 
GeneralRe: Problem with GridView: How to change the text of Button in a GridView Cell ? Pin
Purish Dwivedi29-Oct-09 2:42
Purish Dwivedi29-Oct-09 2:42 

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.