Click here to Skip to main content
15,892,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: static object reference problem Pin
familyof79-Jul-08 6:06
familyof79-Jul-08 6:06 
GeneralRe: static object reference problem Pin
Christian Graus9-Jul-08 6:21
protectorChristian Graus9-Jul-08 6:21 
GeneralRe: static object reference problem Pin
Christian Graus9-Jul-08 6:25
protectorChristian Graus9-Jul-08 6:25 
GeneralRe: static object reference problem Pin
familyof79-Jul-08 6:34
familyof79-Jul-08 6:34 
GeneralRe: static object reference problem Pin
Christian Graus9-Jul-08 6:35
protectorChristian Graus9-Jul-08 6:35 
GeneralRe: static object reference problem Pin
familyof79-Jul-08 7:22
familyof79-Jul-08 7:22 
GeneralRe: static object reference problem Pin
Christian Graus9-Jul-08 7:23
protectorChristian Graus9-Jul-08 7:23 
Questionput name of picture in database Pin
strawberrysh9-Jul-08 4:49
strawberrysh9-Jul-08 4:49 
I use this code to save name of a picture in a table in database.file uploaded on a server but the name of that picture don't save on a database.
please help me.
protected void uploade_Click(object sender, EventArgs e)<br />
    {<br />
        if (uploadetest.HasFile == false)<br />
        {<br />
            uploadedetail.Text = "plese select youre file";<br />
        }<br />
        else<br />
        {<br />
            string filepath = Server.MapPath("~/pic/" + uploadetest.FileName);<br />
            uploadetest.SaveAs(filepath);<br />
            string FileName = string.Empty;<br />
            FileName = uploadetest.PostedFile.FileName.Substring(uploadetest.PostedFile.FileName.LastIndexOf('\\'));<br />
            <br />
<br />
            string insertsql="INSERT INTO stt (picture) VALUES (@FileName)";<br />
            SqlConnection con = new SqlConnection(connectionString);<br />
            SqlCommand cmd = new SqlCommand(insertsql, con);<br />
            con.Open();<br />
            cmd.CommandText = insertsql;<br />
                con.Close();<br />
<br />
        }<br />
    }

AnswerRe: put name of picture in database Pin
Christian Graus9-Jul-08 4:55
protectorChristian Graus9-Jul-08 4:55 
AnswerRe: put name of picture in database Pin
Mark J. Miller9-Jul-08 6:05
Mark J. Miller9-Jul-08 6:05 
Questionshowing a dropdownlist in gridview Pin
eyeseetee9-Jul-08 4:25
eyeseetee9-Jul-08 4:25 
GeneralRe: showing a dropdownlist in gridview Pin
Christian Graus9-Jul-08 4:35
protectorChristian Graus9-Jul-08 4:35 
GeneralRe: showing a dropdownlist in gridview Pin
eyeseetee9-Jul-08 4:43
eyeseetee9-Jul-08 4:43 
GeneralRe: showing a dropdownlist in gridview Pin
Christian Graus9-Jul-08 4:48
protectorChristian Graus9-Jul-08 4:48 
GeneralRe: showing a dropdownlist in gridview Pin
eyeseetee9-Jul-08 4:50
eyeseetee9-Jul-08 4:50 
GeneralRe: showing a dropdownlist in gridview Pin
Christian Graus9-Jul-08 4:53
protectorChristian Graus9-Jul-08 4:53 
GeneralRe: showing a dropdownlist in gridview Pin
eyeseetee9-Jul-08 5:00
eyeseetee9-Jul-08 5:00 
GeneralRe: showing a dropdownlist in gridview Pin
Christian Graus9-Jul-08 5:03
protectorChristian Graus9-Jul-08 5:03 
QuestionImpement AJAX, Pin
codelinks9-Jul-08 4:25
codelinks9-Jul-08 4:25 
AnswerRe: Impement AJAX, Pin
Christian Graus9-Jul-08 4:34
protectorChristian Graus9-Jul-08 4:34 
GeneralRe: Impement AJAX, Pin
codelinks9-Jul-08 4:40
codelinks9-Jul-08 4:40 
GeneralRe: Impement AJAX, Pin
Christian Graus9-Jul-08 4:48
protectorChristian Graus9-Jul-08 4:48 
GeneralRe: Impement AJAX, Pin
codelinks9-Jul-08 4:55
codelinks9-Jul-08 4:55 
GeneralRe: Impement AJAX, Pin
Christian Graus9-Jul-08 5:04
protectorChristian Graus9-Jul-08 5:04 
AnswerRe: Impement AJAX, Pin
codelinks9-Jul-08 5:10
codelinks9-Jul-08 5:10 

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.