Click here to Skip to main content
15,886,823 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: WCF / Single instance / multple concurrency question Pin
Expert Coming20-Sep-12 13:57
Expert Coming20-Sep-12 13:57 
GeneralRe: WCF / Single instance / multple concurrency question Pin
Luca Dominici20-Sep-12 21:36
Luca Dominici20-Sep-12 21:36 
GeneralRe: WCF / Single instance / multple concurrency question Pin
Expert Coming24-Sep-12 8:21
Expert Coming24-Sep-12 8:21 
GeneralRe: WCF / Single instance / multple concurrency question Pin
Luca Dominici24-Sep-12 21:10
Luca Dominici24-Sep-12 21:10 
QuestionAjax Tab Events And Gridview help Pin
HimalR820-Sep-12 1:57
HimalR820-Sep-12 1:57 
AnswerRe: Ajax Tab Events And Gridview help Pin
jkirkerx21-Sep-12 10:52
professionaljkirkerx21-Sep-12 10:52 
GeneralRe: Ajax Tab Events And Gridview help Pin
HimalR825-Sep-12 11:42
HimalR825-Sep-12 11:42 
GeneralRe: Ajax Tab Events And Gridview help Pin
jkirkerx25-Sep-12 12:53
professionaljkirkerx25-Sep-12 12:53 
HimalR8 wrote:
yes i think it was firing twice

I know it was firing twice, that's what it does by design in asp.net.

When using the form tag on your webform, and ....

When you click on the tab, a postback is generated to the server, so the page loads again and posts back textboxe values and such to the server, the server responds, and sends back the page, in which the page loads again, and I think the the event fires again.

So on Page.load or the onLoad overide
If you don't check for the postback state, new data will always load over and over and over, wiping out the values set by the user
protected sub page_load
   If !(page.ispostback) {
     'Load Data now
   }
}

And on events such as button clicks,

For the tab, I used the select or swtich statement, so it can be expanded for other values
protected void tabContainer1_ActiveTabChanged(object sender, EventArgs e) {
    if (page.ispostback) {
            
        switch (tabContainer1.ActiveTabIndex) {
            case 0:
            txtCompanyname.text="";
            break;

        }

    }
}

QuestionMVC v MVVM Pin
eddieangel19-Sep-12 12:22
eddieangel19-Sep-12 12:22 
AnswerRe: MVC v MVVM Pin
John-ph25-Sep-12 20:09
John-ph25-Sep-12 20:09 
QuestionUsing Jquery in DataList Pin
mrkeivan19-Sep-12 9:04
mrkeivan19-Sep-12 9:04 
AnswerRe: Using Jquery in DataList Pin
AmitGajjar19-Sep-12 20:55
professionalAmitGajjar19-Sep-12 20:55 
QuestionFiltering in header Pin
byka19-Sep-12 1:40
byka19-Sep-12 1:40 
AnswerRe: Filtering in header Pin
Sandeep Mewara19-Sep-12 9:30
mveSandeep Mewara19-Sep-12 9:30 
Questionlearning asp.net c# linq Pin
Tải CH Play18-Sep-12 21:49
Tải CH Play18-Sep-12 21:49 
AnswerRe: learning asp.net c# linq Pin
Sandeep Mewara18-Sep-12 22:19
mveSandeep Mewara18-Sep-12 22:19 
GeneralRe: learning asp.net c# linq Pin
Richard MacCutchan18-Sep-12 23:20
mveRichard MacCutchan18-Sep-12 23:20 
GeneralRe: learning asp.net c# linq Pin
Sandeep Mewara19-Sep-12 1:32
mveSandeep Mewara19-Sep-12 1:32 
QuestionHow to Create and Access Session Variables Pin
ASPnoob18-Sep-12 20:22
ASPnoob18-Sep-12 20:22 
AnswerRe: How to Create and Access Session Variables Pin
Sandeep Mewara18-Sep-12 22:25
mveSandeep Mewara18-Sep-12 22:25 
AnswerRe: How to Create and Access Session Variables Pin
jkirkerx19-Sep-12 10:04
professionaljkirkerx19-Sep-12 10:04 
GeneralRe: How to Create and Access Session Variables Pin
gopal pradhan8-Nov-12 23:25
gopal pradhan8-Nov-12 23:25 
AnswerRe: How to Create and Access Session Variables Pin
niranjan47923-Sep-12 21:15
niranjan47923-Sep-12 21:15 
QuestionTurning a VS2010 project into a control Pin
Syntax 40418-Sep-12 13:35
Syntax 40418-Sep-12 13:35 
AnswerRe: Turning a VS2010 project into a control Pin
Sandeep Mewara18-Sep-12 22:55
mveSandeep Mewara18-Sep-12 22:55 

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.