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

ASP.NET

 
GeneralRe: problem in gridview Pin
Amit Spadez29-Mar-10 19:01
professionalAmit Spadez29-Mar-10 19:01 
Questionimplement error handling in webproject and logging errrors Pin
Hemant Thaker29-Mar-10 3:05
Hemant Thaker29-Mar-10 3:05 
AnswerRe: implement error handling in webproject and logging errrors Pin
PSK_29-Mar-10 3:25
PSK_29-Mar-10 3:25 
AnswerRe: implement error handling in webproject and logging errrors Pin
Abhijit Jana29-Mar-10 17:34
professionalAbhijit Jana29-Mar-10 17:34 
Questionadd splitbutton in asp.net page Pin
Abdul Rahman Hamidy29-Mar-10 1:28
Abdul Rahman Hamidy29-Mar-10 1:28 
QuestionAccess another computer through C#.net Pin
BK Komal28-Mar-10 23:03
BK Komal28-Mar-10 23:03 
AnswerI need urgent help. Pin
Not Active29-Mar-10 1:43
mentorNot Active29-Mar-10 1:43 
Questionviewstate of dynamic text boxs Pin
test-0928-Mar-10 22:39
test-0928-Mar-10 22:39 
  private void Descriptiontable()
    {

        DescriptionClass dcss = new DescriptionClass();
        dcss.ProjectIDp = Convert.ToInt32(Session["ProjectId"].ToString());
        // dcss.ProjectIDp = Convert.ToInt32(ProjectIDText.Text);
        DataSet ds = new DataSet();
        dtDesc = dcss.DynamicDataSet().Tables[0];

        dtDesc.Columns.Add("DescriptionName1");
        dtDesc.Columns.Add("Date1");
        dtDesc.Columns.Add("Description1");
        int intID = 1;
        foreach (DataRow drow in dtDesc.Rows)
        {
            drow["ProjectID"] = intID++;
            drow["DescriptionName1"] = "qwe";
            drow["Date1"] = "";
            drow["Description1"] = "asdasd";
        }
        Session["dtDesc"] = dtDesc;
        if (dtDesc.Rows.Count == 0)
        {
            adddescription();
        }
        else
        {
            Bindrepeater();
        }
    }

    private void adddescription()
    {
        dtDesc = (DataTable)Session["dtDesc"];
        DataRow descRow = dtDesc.NewRow();
        //  descRow["ProjectID"] = dtDesc.Rows.Count + 1;
        descRow["DescriptionName"] = "";
        descRow["Date"] ="";
        descRow["Description"] = "";
        dtDesc.Rows.Add(descRow);
        Session["dtDesc"] = dtDesc;
        Bindrepeater();
    }

    private void Bindrepeater()
    {
        if (Session["dtDesc"] == null)
        {
            Descriptiontable();
        }
        dtDesc = (DataTable)Session["dtDesc"];
        DataView dv = dtDesc.DefaultView;
        if (dv.Count == 0)
        {
            adddescription();
        }
        Rptdescription.DataSource = dv;
        Rptdescription.DataBind();
    }
//button click event
adddescription();


This is how im creating dynamic textboxes in repeater...
But how do i store viewstate of those textboxs on btnclick event...
so that values of text boxs may not dissappear on post back....
AnswerRe: viewstate of dynamic text boxs Pin
Arun Jacob28-Mar-10 22:57
Arun Jacob28-Mar-10 22:57 
GeneralRe: viewstate of dynamic text boxs Pin
test-0928-Mar-10 23:03
test-0928-Mar-10 23:03 
GeneralRe: viewstate of dynamic text boxs Pin
Arun Jacob28-Mar-10 23:05
Arun Jacob28-Mar-10 23:05 
Questionhow to insert empty values from text boxes to database Pin
developerit28-Mar-10 22:13
developerit28-Mar-10 22:13 
AnswerRe: how to insert empty values from text boxes to database Pin
Vimalsoft(Pty) Ltd28-Mar-10 22:15
professionalVimalsoft(Pty) Ltd28-Mar-10 22:15 
AnswerRe: how to insert empty values from text boxes to database Pin
Amit Patel198528-Mar-10 22:16
Amit Patel198528-Mar-10 22:16 
AnswerRe: how to insert empty values from text boxes to database Pin
R. Giskard Reventlov28-Mar-10 22:27
R. Giskard Reventlov28-Mar-10 22:27 
AnswerRe: how to insert empty values from text boxes to database Pin
Arun Jacob28-Mar-10 23:10
Arun Jacob28-Mar-10 23:10 
GeneralRe: how to insert empty values from text boxes to database Pin
developerit29-Mar-10 1:49
developerit29-Mar-10 1:49 
GeneralRe: how to insert empty values from text boxes to database Pin
Sneha Bisht29-Mar-10 2:04
Sneha Bisht29-Mar-10 2:04 
GeneralRe: how to insert empty values from text boxes to database Pin
R. Giskard Reventlov29-Mar-10 2:32
R. Giskard Reventlov29-Mar-10 2:32 
Questionpass javascript variable to javascript function Pin
Abdul Rahman Hamidy28-Mar-10 21:43
Abdul Rahman Hamidy28-Mar-10 21:43 
AnswerRe: pass javascript variable to javascript function Pin
Vimalsoft(Pty) Ltd28-Mar-10 22:05
professionalVimalsoft(Pty) Ltd28-Mar-10 22:05 
GeneralRe: pass javascript variable to javascript function Pin
Abdul Rahman Hamidy28-Mar-10 22:17
Abdul Rahman Hamidy28-Mar-10 22:17 
GeneralRe: pass javascript variable to javascript function Pin
Vimalsoft(Pty) Ltd28-Mar-10 22:27
professionalVimalsoft(Pty) Ltd28-Mar-10 22:27 
AnswerRe: pass javascript variable to javascript function Pin
PSK_28-Mar-10 22:19
PSK_28-Mar-10 22:19 
GeneralRe: pass javascript variable to javascript function Pin
Abdul Rahman Hamidy28-Mar-10 22:26
Abdul Rahman Hamidy28-Mar-10 22:26 

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.