Evilripper ‘ s Blog

A programmer’s work is never done

  • Home
  • Downloads
  • News
  • About Me

19

Jun

Catturare Enter Componente <Asp:Login>

Posted by evilripper  Published in CSharp, development, vb.net

Aspx ha un sacco di materiale già fatto, tuttavia quando si devono fare delle modifiche comportamentali minime risultano essere difficili o  particolari da implementare… per esempio mi son ritrovato di catturare l’evento del tasto enter nel componente di login di aspx e per fare questa cosa occorre scrivere nell’onload della pagina contenitore questo codice:
c#

  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3. Control ctl = MyLogin.FindControl("LoginButton");
  4. MyLogin.Attributes.Add("onkeypress", String.Format("javascript:return WebForm_FireDefaultButton(event, ‘{0}’)", ctl.ClientID));
  5. }

Vb

  1. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2. Dim ctl As Control = userLogin.FindControl("LoginButton")
  3. userLogin.Attributes.Add("onkeypress", String.Format("javascript:return WebForm_FireDefaultButton(event, ‘{0}’)", ctl.ClientID))
  4. End Sub
no comment

Multilanguages

  • English
  • Italiano
Dicembre 2008
L M M G V S D
« Nov    
1234567
891011121314
15161718192021
22232425262728
293031  

Affiliates & Sponsor

Add to Technorati Favorites

BlogItalia.it - La directory italiana dei blog

Tophost Hosting

565 commenti spam
bloccato da
Akismet

Locations of visitors to this page

Blogroll

  • Rocco Blog
  • Ghetto Rimini
  • jumping head shot
  • vinoitaliano.net
  • Balla Con Noi
  • www.giourbinati.it
  • www.gyf.it
  • Lastchaos Italia
  • lu01 rock band
  • www.michelefocchi.com
  • CappellaiMatti
  • www.wizardtale.org

Categories

  • database (1)
  • development (10)
    • CSharp (3)
    • delphi (2)
    • javascript (1)
    • php (4)
    • vb.net (1)
  • hardware (3)
  • internet (19)
    • cms (1)
    • google (4)
    • wordpress (1)
  • linux (5)
    • gentoo (4)
  • software (3)
  • videogames (4)
    • unreal tournament 3 (1)
  • winXp (1)

Archives

  • Novembre 2008 (4)
  • Settembre 2008 (3)
  • Giugno 2008 (3)
  • Maggio 2008 (1)
  • Aprile 2008 (1)
  • Marzo 2008 (1)
  • Febbraio 2008 (4)
  • Gennaio 2008 (4)
  • Dicembre 2007 (2)
  • Novembre 2007 (4)
  • Ottobre 2007 (7)
  • Settembre 2007 (7)
  • Agosto 2007 (2)
  • Luglio 2007 (1)
  • Giugno 2007 (2)

Recent Entries

  • Call to undefined function: bcdiv()
  • Windows Xp si riavvia? E’ stato AVG :-D
  • Chi vuole un xbox a 99 euro?
  • Download Call Of Duty World At War Beta-Demo
  • C# Split con una String e non con un Char
  • Installare Samba On Gentoo
  • Installare Subversion Gentoo - How To
  • Catturare Enter Componente <Asp:Login>
  • Firefox 3 Download Day!!
  • Spegnere WinXp da riga di comando

Recent Comments

  • chinese new year firework in Tema Dark Per WinXP
  • 2005 new year in Tema Dark Per WinXP
  • christmas songs silent night in Tema Dark Per WinXP
  • break christmas girl party in Tema Dark Per WinXP
  • christmas co craft worker in Tema Dark Per WinXP
  • adding comment in picture in Tema Dark Per WinXP
  • marco di pietro in Virgin Radio Su WinAmp / Windows Media Player
  • Evilripper in Guida SingleClick - Teleassistenza Internet UltraV…
  • ghostfox in Guida SingleClick - Teleassistenza Internet UltraV…
  • Cheereecor in Apple iPhone Virtuale
  • Random Selection of Posts

    • 8 Settembre Vaffanculo Day Beppe Grillo
    • Reiser Colpevole Di Aver Ucciso La Moglie
    • Installare Samba On Gentoo
    • Php Debugger Eclipse
    • About Me
    • Urlencode Javascript - Urldecode Php
    • Geshi Plugin (Code Highlighter) Wordpress
    • Installare Subversion Gentoo - How To
    • Catturare Enter Componente <Asp:Login>
    • Applicazione Pratica di SUDO
© 2008 Evilripper ‘ s Blog is proudly powered by WordPress
Theme designed by Roam2Rome