Click here to Skip to main content
15,890,527 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionBrowser TimeOut Pin
attalurisubbu29-Sep-08 5:14
attalurisubbu29-Sep-08 5:14 
AnswerRe: Browser TimeOut Pin
whatUrunning.com29-Sep-08 5:22
whatUrunning.com29-Sep-08 5:22 
AnswerRe: Browser TimeOut Pin
Brij29-Sep-08 18:26
mentorBrij29-Sep-08 18:26 
GeneralRe: Browser TimeOut Pin
Prasanna Kumar Pete29-Sep-08 23:42
Prasanna Kumar Pete29-Sep-08 23:42 
Questiongridview onclick Pin
eyeseetee29-Sep-08 4:25
eyeseetee29-Sep-08 4:25 
AnswerRe: gridview onclick Pin
whatUrunning.com29-Sep-08 4:33
whatUrunning.com29-Sep-08 4:33 
AnswerRe: gridview onclick Pin
nelsonpaixao29-Sep-08 13:44
nelsonpaixao29-Sep-08 13:44 
Questionfileuplode control file uploda problem [modified] Pin
UD(IA)29-Sep-08 4:23
UD(IA)29-Sep-08 4:23 
i have this code to upload a file file is upload name is id of the field for unique but now when i go for this folder there is no file type show. i want that if i store .rar than show .rar, if user store .zip show .zip extension, if user store .png show .png how can i do this. plz some one help me? my code is given above plz check is its right or not and what made change to convert like i want. i got file extension but now i would like to know when i show this path in link button how to load client when click on this link plz some one help me in this topic. thanks in advance. Big Grin | :-D

protected void btn_add_issue1_Click(object sender, EventArgs e)
    {
        DataTable tbl1 = dt.filltbl("select * from tbl_issue where id=-1", "new1");
        DataRow row1 = tbl1.NewRow();
        row1["issue_id"] = ViewState["max"].ToString(); ;
        row1["prefix"] = ViewState["prefix"].ToString();
        row1["Project_id"] = Convert.ToInt32(ddl_projects.SelectedValue);
        row1["project_name"] = Convert.ToString(ddl_projects.SelectedItem);
        row1["issue_title"] = txt_issue.Text;
        row1["issue_type"] = Convert.ToString(ddl_issue.SelectedItem);
        row1["issue_desc"] = FreeTextBox1.Text;
        row1["status"] = "Open";
        row1["svdate"] = DateTime.Now.Date.ToShortDateString();
        row1["svtime"] = DateTime.Now.ToShortTimeString();
        tbl1.Rows.Add(row1);
        dt.update(tbl1, "select * from tbl_issue");
        
        fillissueid();
        FreeTextBox1.Text = "";
        txt_issue.Text = "";
        
        object max = dt.getmax("select max(id) from tbl_issue");
        if (fu_attachment.FileName != "")
        {
            DataTable tblco = dt.filltbl("select * from tbl_issue where id=" + max, "maxx");
            DataRow r1 = tblco.Rows[0];
            string a = Convert.ToString(max);
            string str = "~/Data1/";
            str = Server.MapPath(str);
            str = str + a ;
            fu_attachment.SaveAs(str);
            r1["issue_attach"] = "~/Data1/" + a ;
            dt.update(tblco, "select * from tbl_issue");
        }
        Page.RegisterStartupScript("myrest", "<script>alert('New issue was added successfully');</script>");
        Response.Redirect("default.aspx");
    }
Big Grin | :-D

I will do my best?
Integrated Solutions, Bikaner (Raj.), India

modified on Monday, September 29, 2008 10:50 AM

QuestionGrouping relevant data together while iterating throug them Pin
J-Cod3r29-Sep-08 4:00
J-Cod3r29-Sep-08 4:00 
AnswerRe: Grouping relevant data together while iterating throug them Pin
Lea Hayes30-Sep-08 10:44
Lea Hayes30-Sep-08 10:44 
QuestionASP.NET, AJAX, and JavaScript Pin
Lea Hayes29-Sep-08 3:58
Lea Hayes29-Sep-08 3:58 
AnswerRe: ASP.NET, AJAX, and JavaScript Pin
Lea Hayes30-Sep-08 10:38
Lea Hayes30-Sep-08 10:38 
QuestionNumeric Autogeneration Pin
srinivaskonijeti29-Sep-08 2:41
srinivaskonijeti29-Sep-08 2:41 
AnswerRe: Numeric Autogeneration Pin
eyeseetee29-Sep-08 2:49
eyeseetee29-Sep-08 2:49 
GeneralRe: Numeric Autogeneration Pin
J4amieC29-Sep-08 3:44
J4amieC29-Sep-08 3:44 
GeneralRe: Numeric Autogeneration Pin
eyeseetee29-Sep-08 4:20
eyeseetee29-Sep-08 4:20 
AnswerRe: Numeric Autogeneration Pin
Blue_Boy29-Sep-08 2:53
Blue_Boy29-Sep-08 2:53 
AnswerRe: Numeric Autogeneration Pin
HemJoshi29-Sep-08 2:59
HemJoshi29-Sep-08 2:59 
GeneralRe: Numeric Autogeneration Pin
ednrg1-Oct-08 3:47
ednrg1-Oct-08 3:47 
GeneralRe: Numeric Autogeneration Pin
HemJoshi2-Oct-08 20:47
HemJoshi2-Oct-08 20:47 
AnswerRe: Numeric Autogeneration Pin
Brij29-Sep-08 3:00
mentorBrij29-Sep-08 3:00 
AnswerRe: Numeric Autogeneration Pin
Ashfield29-Sep-08 3:23
Ashfield29-Sep-08 3:23 
Questionget parameter in html Pin
ptvce29-Sep-08 0:59
ptvce29-Sep-08 0:59 
AnswerRe: get parameter in html Pin
Brij29-Sep-08 1:23
mentorBrij29-Sep-08 1:23 
GeneralRe: get parameter in html Pin
ptvce29-Sep-08 1:48
ptvce29-Sep-08 1:48 

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.