I just wanna find out if there\'s a way to put my onClick event inside .cs:
You'll want to use the onServerClick. There's an example of how to do that on MSDN:
Click me! protected void Button1_OnClick(object Source, EventArgs e) { // secret codes go here }