Click here to Skip to main content
15,912,069 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionForce a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 6:29
PDTUM20-Apr-10 6:29 
AnswerRe: Force a PostBack? Page will not repopulate after first Click Pin
daveyerwin20-Apr-10 6:50
daveyerwin20-Apr-10 6:50 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 7:02
PDTUM20-Apr-10 7:02 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
Not Active20-Apr-10 7:20
mentorNot Active20-Apr-10 7:20 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 7:39
PDTUM20-Apr-10 7:39 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
Not Active20-Apr-10 8:44
mentorNot Active20-Apr-10 8:44 
AnswerRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 9:26
PDTUM20-Apr-10 9:26 
GeneralRe: Force a PostBack? Page will not repopulate after first Click Pin
daveyerwin20-Apr-10 7:26
daveyerwin20-Apr-10 7:26 
PDTUM wrote:
I have written a page that accepts new information and then repopulates the page when a button is clicked. This is a simple task in C#, but seems very complicated in ASP.net. The code seems to work fine on the first click, but the after the first click, the page no longer repopulates.






PDTUM wrote:
This page is brought up from a click event on another page's GridView and is supposed to populate information accordingly.




Well I might be a little confused on exactly which is the first click.
But anyways what you need is code like this ...
protected void Page_Load(object sender, EventArgs e)    {
    if (Page.IsPostBack)
            { 
                LabelVersion label gets deincremented here
            }     

    medDate = CreateMedicalDate(medDate);
        //Load the results for the requested AE
        //Pass the values for the selected AE from the AE Summary Page        
id = Request.QueryString["Id"];
        Screening_Number = Request.QueryString["Screening_Number"];
        Site_Number = Request.QueryString["Site_Number"];


and so on ...
AnswerRe: Force a PostBack? Page will not repopulate after first Click Pin
PDTUM20-Apr-10 9:27
PDTUM20-Apr-10 9:27 
Questionwhen checkboxes is selected the data should be store in two tables Pin
developerit20-Apr-10 3:16
developerit20-Apr-10 3:16 
AnswerRe: when checkboxes is selected the data should be store in two tables Pin
Brij20-Apr-10 3:30
mentorBrij20-Apr-10 3:30 
AnswerRe: when checkboxes is selected the data should be store in two tables Pin
Ashfield20-Apr-10 9:19
Ashfield20-Apr-10 9:19 
AnswerRe: when checkboxes is selected the data should be store in two tables Pin
nagendrathecoder21-Apr-10 1:22
nagendrathecoder21-Apr-10 1:22 
QuestionCustom control in popups Pin
Michael O.20-Apr-10 1:21
Michael O.20-Apr-10 1:21 
AnswerRe: Custom control in popups Pin
Brij20-Apr-10 1:53
mentorBrij20-Apr-10 1:53 
AnswerRe: Custom control in popups Pin
Jamil Hallal20-Apr-10 21:51
professionalJamil Hallal20-Apr-10 21:51 
QuestionInitializing ASP.NET Pin
Yoyosch20-Apr-10 0:39
Yoyosch20-Apr-10 0:39 
AnswerRe: Initializing ASP.NET Pin
Morgs Morgan20-Apr-10 0:43
Morgs Morgan20-Apr-10 0:43 
GeneralRe: Initializing ASP.NET Pin
Yoyosch20-Apr-10 0:54
Yoyosch20-Apr-10 0:54 
AnswerRe: Initializing ASP.NET Pin
Brij20-Apr-10 0:53
mentorBrij20-Apr-10 0:53 
GeneralRe: Initializing ASP.NET Pin
Yoyosch20-Apr-10 1:11
Yoyosch20-Apr-10 1:11 
GeneralRe: Initializing ASP.NET Pin
Brij20-Apr-10 1:13
mentorBrij20-Apr-10 1:13 
AnswerRe: Initializing ASP.NET Pin
Avinash_Mane20-Apr-10 0:55
Avinash_Mane20-Apr-10 0:55 
AnswerRe: Initializing ASP.NET Pin
Jamil Hallal20-Apr-10 21:48
professionalJamil Hallal20-Apr-10 21:48 
Questiondropdown list Pin
Morgs Morgan20-Apr-10 0:09
Morgs Morgan20-Apr-10 0:09 

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.