Click here to Skip to main content
15,887,027 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: gauge control Pin
venu65615-Dec-10 3:53
venu65615-Dec-10 3:53 
GeneralRe: gauge control Pin
Not Active15-Dec-10 4:12
mentorNot Active15-Dec-10 4:12 
GeneralRe: gauge control Pin
Keith Barrow15-Dec-10 5:47
professionalKeith Barrow15-Dec-10 5:47 
AnswerRe: gauge control PinPopular
Pete O'Hanlon15-Dec-10 7:26
mvePete O'Hanlon15-Dec-10 7:26 
QuestionAutoPostBack Event Doesnt get Fired Pin
<<Tash18>>14-Dec-10 18:55
<<Tash18>>14-Dec-10 18:55 
AnswerRe: AutoPostBack Event Doesnt get Fired Pin
NeverHeardOfMe15-Dec-10 0:18
NeverHeardOfMe15-Dec-10 0:18 
GeneralRe: AutoPostBack Event Doesnt get Fired Pin
<<Tash18>>15-Dec-10 17:08
<<Tash18>>15-Dec-10 17:08 
QuestionUser control issues Pin
Swiftain14-Dec-10 18:31
Swiftain14-Dec-10 18:31 
I have a user control with one gridview control on it and the code behind for the user control is shown below
protected void Page_Load(object sender, EventArgs e)
   {
       gvResults.DataSource = theSource;
       gvResults.DataBind();
   }

   private List<string> theSource;

   public List<string> TheSource
   {
       get { return theSource; }
       set { theSource = value; }
   }


When I pass value to the control on the page load I works fine with the data being displayed on the grid as shown by the code below
protected void Page_Load(object sender, EventArgs e)
   {
     string[] myData = {"10", "20", "30"};
     DataPager1.TheSource = myData.ToList();
   }


But when I try to do the same thing by clicking a button, the page shows no data
protected void SearchButton_Click(object sender, EventArgs e)
    {
      string[] myData = {"10", "20", "30"};
      DataPager1.TheSource = myData.ToList();       
    }


DataPager1 is the usercontrol ID.

Any help will be appreciated.
AnswerRe: User control issues Pin
thatraja14-Dec-10 18:43
professionalthatraja14-Dec-10 18:43 
GeneralRe: User control issues Pin
Swiftain14-Dec-10 19:15
Swiftain14-Dec-10 19:15 
GeneralRe: User control issues Pin
thatraja14-Dec-10 20:09
professionalthatraja14-Dec-10 20:09 
GeneralRe: User control issues Pin
Swiftain14-Dec-10 20:13
Swiftain14-Dec-10 20:13 
GeneralRe: User control issues Pin
thatraja14-Dec-10 20:23
professionalthatraja14-Dec-10 20:23 
GeneralRe: User control issues Pin
Swiftain14-Dec-10 20:25
Swiftain14-Dec-10 20:25 
AnswerRe: User control issues Pin
Hiren solanki14-Dec-10 19:31
Hiren solanki14-Dec-10 19:31 
GeneralRe: User control issues Pin
Swiftain14-Dec-10 20:04
Swiftain14-Dec-10 20:04 
GeneralRe: User control issues Pin
Hiren solanki14-Dec-10 20:07
Hiren solanki14-Dec-10 20:07 
AnswerRe: User control issues Pin
Hiren solanki14-Dec-10 21:57
Hiren solanki14-Dec-10 21:57 
GeneralRe: User control issues Pin
Swiftain15-Dec-10 6:29
Swiftain15-Dec-10 6:29 
GeneralRe: User control issues Pin
Hiren solanki15-Dec-10 18:33
Hiren solanki15-Dec-10 18:33 
QuestionTaking Screen Shots in client browsers Pin
Hema Bairavan14-Dec-10 18:15
Hema Bairavan14-Dec-10 18:15 
AnswerRe: Taking Screen Shots in client browsers Pin
Hiren solanki14-Dec-10 18:55
Hiren solanki14-Dec-10 18:55 
AnswerRe: Taking Screen Shots in client browsers Pin
RaviRanjanKr15-Dec-10 3:19
professionalRaviRanjanKr15-Dec-10 3:19 
QuestionProblem While Sending SMS Pin
Ravikant Y. Ninave14-Dec-10 13:54
Ravikant Y. Ninave14-Dec-10 13:54 
AnswerRe: Problem While Sending SMS Pin
RaviRanjanKr15-Dec-10 3:20
professionalRaviRanjanKr15-Dec-10 3:20 

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.