I just wanna find out if there\'s a way to put my onClick event inside .cs:
btnLogin.Click += new EventHandler( btnLogin_Click );
will assign the btnLogin_Click event handler to the button's Click event.
however, I would point out that assigning a handler in the markup of the aspx page does not "expose your codes", as the HTML rendered down to the client doesn't have any of that information in it.