Click here to Skip to main content
15,914,162 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: database backup Pin
Abhishek Sur22-Dec-09 21:36
professionalAbhishek Sur22-Dec-09 21:36 
GeneralRe: database backup Pin
mylogics22-Dec-09 21:41
professionalmylogics22-Dec-09 21:41 
GeneralRe: database backup Pin
mylogics22-Dec-09 22:37
professionalmylogics22-Dec-09 22:37 
GeneralRe: database backup Pin
Abhishek Sur22-Dec-09 22:41
professionalAbhishek Sur22-Dec-09 22:41 
Questionreturn value wont save Pin
baselanfouqa22-Dec-09 20:47
baselanfouqa22-Dec-09 20:47 
AnswerRe: return value wont save Pin
Vimalsoft(Pty) Ltd22-Dec-09 20:56
professionalVimalsoft(Pty) Ltd22-Dec-09 20:56 
GeneralRe: return value wont save Pin
baselanfouqa22-Dec-09 22:39
baselanfouqa22-Dec-09 22:39 
GeneralRe: return value wont save Pin
Vimalsoft(Pty) Ltd22-Dec-09 22:53
professionalVimalsoft(Pty) Ltd22-Dec-09 22:53 
GeneralRe: return value wont save Pin
baselanfouqa23-Dec-09 2:53
baselanfouqa23-Dec-09 2:53 
AnswerRe: return value wont save Pin
Abhishek Sur22-Dec-09 21:25
professionalAbhishek Sur22-Dec-09 21:25 
Questionvisitors management code Pin
SEKHAR REYYI22-Dec-09 20:46
SEKHAR REYYI22-Dec-09 20:46 
AnswerRe: visitors management code Pin
Vimalsoft(Pty) Ltd22-Dec-09 20:51
professionalVimalsoft(Pty) Ltd22-Dec-09 20:51 
QuestionHow to Open PDF files Directly by ASP.net Page. Pin
shiva.kore22-Dec-09 19:33
shiva.kore22-Dec-09 19:33 
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 

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.