Click here to Skip to main content
15,894,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Questionhtml cleanup Pin
Dhyanga14-Dec-10 7:41
Dhyanga14-Dec-10 7:41 
AnswerRe: html cleanup Pin
Not Active14-Dec-10 9:02
mentorNot Active14-Dec-10 9:02 
GeneralRe: html cleanup Pin
Dhyanga14-Dec-10 9:10
Dhyanga14-Dec-10 9:10 
GeneralRe: html cleanup Pin
Not Active14-Dec-10 9:20
mentorNot Active14-Dec-10 9:20 
GeneralRe: html cleanup (edited) Pin
NeverHeardOfMe14-Dec-10 9:13
NeverHeardOfMe14-Dec-10 9:13 
GeneralRe: html cleanup (edited) Pin
Not Active14-Dec-10 9:18
mentorNot Active14-Dec-10 9:18 

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.