Solved

Gridview disappears when clicking Edit record

Posted on 2014-02-21
3
615 Views
Last Modified: 2014-02-24
I have a drop down list that controls the SelectCommand data of a gridview datasource on SelectedIndexChanged.  The issues is after the data is populated, I select the Edit option for a record, the gridview disappears.  I have tried making it a session variable, but the same thing happens.
  protected void ddlTerm_SelectedIndexChanged(object sender, EventArgs e)
{        
SqlDSApp.SelectCommand = ("SELECT [RFSID], [DID], [DSubmitDate] FROM [Demo] WHERE (DSubmitTerm = '" + ddlTerm.SelectedValue + "')");

            gvRSStudents.DataBind();       
}

Open in new window

Thanks for any help!
0
Comment
Question by:javierpdx
3 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 39879228
This code doesn't help because it doesn't relate to the issue you are having.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 39880654
If a control disappears on post-back, then the problem is usually that you didn't rebind data.
0
 

Author Closing Comment

by:javierpdx
ID: 39883607
Thanks.  I appreciate the help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Trouble with References... 5 22
String manipulation 15 49
Get String split 5 32
index Out OF Range Exception error 4 28
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now