Click here to Skip to main content
15,886,664 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: help needed with passing parameters Pin
Brij10-Jun-10 20:39
mentorBrij10-Jun-10 20:39 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:55
Farraj10-Jun-10 20:55 
GeneralRe: help needed with passing parameters Pin
Brij10-Jun-10 21:15
mentorBrij10-Jun-10 21:15 
QuestionProblem with setting a Hyperlink to DataTextFormatString of RadioButtonList Control Pin
AndyASPVB10-Jun-10 10:46
AndyASPVB10-Jun-10 10:46 
QuestionProblem with CSS Pin
AndyASPVB10-Jun-10 10:33
AndyASPVB10-Jun-10 10:33 
AnswerRe: Problem with CSS Pin
PSK_10-Jun-10 15:56
PSK_10-Jun-10 15:56 
Questionaddin to gridview dynamically Pin
the exile10-Jun-10 9:53
the exile10-Jun-10 9:53 
AnswerRe: addin to gridview dynamically [modified] Pin
raju melveetilpurayil10-Jun-10 10:39
professionalraju melveetilpurayil10-Jun-10 10:39 
1:Add textbox items in dataTable
2:Save dataTable in Session
3:Set GridView datasource as dataTable from Session

check this sample code

protected void Button1_Click(object sender, EventArgs e)
    {
        DataTable dt;
        DataRow drow;
        if (Session["datatable"] == null)
        {
            dt = new DataTable();
            
            DataColumn dcol = new DataColumn("Column1", typeof(string));
            //adding column to datatable
            dt.Columns.Add(dcol);
            int rowcount = 0;

            drow = dt.NewRow();
            dt.Rows.Add(drow);
            dt.Rows[rowcount][dcol] = TextBox1.Text;
            //add datatable to session
            Session.Add("datatable", dt);
        }
        else
        {
            dt = (DataTable)Session["datatable"];
            drow = dt.NewRow();
            dt.Rows.Add(drow);
            dt.Rows[dt.Rows.Count-1]["Column1"] = TextBox1.Text;

            //add datatable to session
            Session.Add("datatable", dt);
        }
            //bind gridview
            GridView1.DataSource = dt;
            GridView1.DataBind();
        
    }

makhaai
modified on Thursday, June 10, 2010 5:06 PM

QuestionHow to rewrite global resources value programatically?Or how to create a new global resources file for new language dynamically? Pin
mehran.asg10-Jun-10 8:50
mehran.asg10-Jun-10 8:50 
AnswerRe: How to rewrite global resources value programatically?Or how to create a new global resources file for new language dynamically? Pin
PSK_10-Jun-10 16:05
PSK_10-Jun-10 16:05 
QuestionForms Authentication - weird behavior Pin
Member 391904910-Jun-10 5:57
Member 391904910-Jun-10 5:57 
AnswerRe: Forms Authentication - weird behavior Pin
Dimitri Witkowski10-Jun-10 6:28
Dimitri Witkowski10-Jun-10 6:28 
GeneralRe: Forms Authentication - weird behavior Pin
Member 391904910-Jun-10 6:45
Member 391904910-Jun-10 6:45 
GeneralRe: Forms Authentication - weird behavior Pin
Dimitri Witkowski10-Jun-10 6:49
Dimitri Witkowski10-Jun-10 6:49 
GeneralRe: Forms Authentication - weird behavior Pin
Member 391904910-Jun-10 6:57
Member 391904910-Jun-10 6:57 
GeneralRe: Forms Authentication - weird behavior Pin
Dimitri Witkowski10-Jun-10 7:05
Dimitri Witkowski10-Jun-10 7:05 
QuestionRe: Forms Authentication - weird behavior Pin
Member 391904910-Jun-10 7:22
Member 391904910-Jun-10 7:22 
Questionimage with asp.net and sql Pin
Aljaz11110-Jun-10 5:17
Aljaz11110-Jun-10 5:17 
AnswerRe: image with asp.net and sql Pin
Sandeep Mewara10-Jun-10 19:30
mveSandeep Mewara10-Jun-10 19:30 
GeneralRe: image with asp.net and sql Pin
Aljaz11110-Jun-10 23:42
Aljaz11110-Jun-10 23:42 
QuestionSimple authentication without roles Pin
Hemant Thaker10-Jun-10 4:58
Hemant Thaker10-Jun-10 4:58 
AnswerRe: Simple authentication without roles Pin
R. Giskard Reventlov10-Jun-10 5:09
R. Giskard Reventlov10-Jun-10 5:09 
QuestionRe: Simple authentication without roles Pin
Hemant Thaker10-Jun-10 5:18
Hemant Thaker10-Jun-10 5:18 
AnswerRe: Simple authentication without roles Pin
R. Giskard Reventlov10-Jun-10 5:25
R. Giskard Reventlov10-Jun-10 5:25 
QuestionRe: Simple authentication without roles Pin
Hemant Thaker10-Jun-10 8:31
Hemant Thaker10-Jun-10 8:31 

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.