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

ASP.NET

 
AnswerRe: How to Open PDF files Directly by ASP.net Page. Pin
Vasudevan Deepak Kumar22-Dec-09 20:25
Vasudevan Deepak Kumar22-Dec-09 20:25 
GeneralRe: How to Open PDF files Directly by ASP.net Page. Pin
shiva.kore22-Dec-09 20:36
shiva.kore22-Dec-09 20:36 
AnswerRe: How to Open PDF files Directly by ASP.net Page. Pin
Abhishek Sur22-Dec-09 21:33
professionalAbhishek Sur22-Dec-09 21:33 
QuestionMerging common Rows in SSRS Pin
siddisagar22-Dec-09 19:10
siddisagar22-Dec-09 19:10 
Questionexcepted dtd markup was not found ???? Pin
koolprasad200322-Dec-09 19:04
professionalkoolprasad200322-Dec-09 19:04 
QuestionWebpart igoogle Pin
NETLearning22-Dec-09 13:16
NETLearning22-Dec-09 13:16 
AnswerRe: Webpart igoogle Pin
Abhijit Jana22-Dec-09 16:34
professionalAbhijit Jana22-Dec-09 16:34 
QuestionInfragistics WebDataGrid - populating off a button click Pin
TMFoust22-Dec-09 8:36
TMFoust22-Dec-09 8:36 
I am using a DataTable and the Infragistics WebDataGrid on my page. I need to create a list of values that the user enters by making selections from provided list and dropdown boxes.

My issue is that if the user selects anything else, my grid only shows the most recent value, the new ones don't get added, they just replace what's already there.

Additionally, if a new search is initiated, the grid resets.

I know this will be a biting snake, but I am just not seeing it.
Below is the code from my button.

protected void btnAdd_Click(object sender, EventArgs e)
{
    //This button will add the Magazine Code, Magazine Name, Issue Date and OnSale Date to the data grid.
    txtOnSaleDate.Text = "";
    dt = ds.Tables["Schedule"];
    DataRow row = dt.NewRow();
    row["code"] = ddlMagazines.SelectedValue;
    row["name"] = ddlMagazines.SelectedItem.Text;
    if (lstIssueDate.SelectedItem != null)
    {
        if (txtOnSaleDate.Text == "")
        {
            row["issue"] = lstIssueDate.SelectedItem.Text;
            row["onsale"] = lstIssueDate.SelectedValue;
        }
        else
        {
            row["issue"] = "1/1/1980";
            row["onsale"] = txtOnSaleDate.Text;
        }
    }
    else
    {
        row["issue"] = "1/1/1980";
        row["onsale"] = txtOnSaleDate.Text;
    }
    dt.Rows.Add(row);

    wgScheduleList.DataSource = dt;
    wgScheduleList.DataBind();
    wgScheduleList.Visible = true;
    btnSave.Visible = true;
    btnDone.Visible = true;
}


Thanks.
AnswerRe: Infragistics WebDataGrid - populating off a button click Pin
TMFoust22-Dec-09 11:25
TMFoust22-Dec-09 11:25 
QuestionWebpart Pin
NETLearning22-Dec-09 6:18
NETLearning22-Dec-09 6:18 
AnswerCross post: Re: Webpart Pin
Brij22-Dec-09 7:32
mentorBrij22-Dec-09 7:32 
GeneralRe: Cross post: Re: Webpart Pin
NETLearning22-Dec-09 11:33
NETLearning22-Dec-09 11:33 
GeneralRe: Cross post: Re: Webpart Pin
Abhijit Jana22-Dec-09 16:18
professionalAbhijit Jana22-Dec-09 16:18 
Questionwebpart Pin
NETLearning22-Dec-09 5:08
NETLearning22-Dec-09 5:08 
AnswerRe: webpart Pin
Estys22-Dec-09 5:57
Estys22-Dec-09 5:57 
GeneralRe: webpart Pin
NETLearning22-Dec-09 6:03
NETLearning22-Dec-09 6:03 
GeneralRe: webpart Pin
Estys22-Dec-09 7:20
Estys22-Dec-09 7:20 
GeneralRe: webpart Pin
NETLearning22-Dec-09 11:51
NETLearning22-Dec-09 11:51 
GeneralRe: webpart Pin
Estys22-Dec-09 23:13
Estys22-Dec-09 23:13 
Questionreturn value from showmodaldialog Pin
baselanfouqa22-Dec-09 3:48
baselanfouqa22-Dec-09 3:48 
AnswerRe: return value from showmodaldialog Pin
Abhishek Sur22-Dec-09 6:57
professionalAbhishek Sur22-Dec-09 6:57 
GeneralRe: return value from showmodaldialog Pin
baselanfouqa22-Dec-09 19:25
baselanfouqa22-Dec-09 19:25 
Questionautomatically publish on live Pin
Abbas_here22-Dec-09 2:58
Abbas_here22-Dec-09 2:58 
AnswerRe: automatically publish on live Pin
Abhijit Jana22-Dec-09 4:08
professionalAbhijit Jana22-Dec-09 4:08 
GeneralRe: automatically publish on live Pin
Abbas_here22-Dec-09 20:50
Abbas_here22-Dec-09 20:50 

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.