Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01451845
Message ID:
01451923
Vues:
31
>I placed a button on a page in the Page_Load:
>
>
>Button cmdPrint = new Button();
>cmdPrint.Text = "Print";
>
>
>1) When I click it my app navigates to some new default page. I don't want this, I want it to fire the Click event only. How do I prevent
>it from navigating?
>
>
>2) The Click event for my button never fires. What gives?

I think you need to provide more detail. All your code shows is creating a button with some text in it. No siting, no click handling.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform