Click here to Skip to main content
15,922,315 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: customizing account Pin
mmm!@#6-Aug-07 18:31
mmm!@#6-Aug-07 18:31 
AnswerRe: customizing account Pin
Edwin Syarief2-Aug-07 22:50
Edwin Syarief2-Aug-07 22:50 
AnswerRe: customizing account Pin
Bino B3-Aug-07 6:57
Bino B3-Aug-07 6:57 
Questionhow to write feedback form in asp.net v1.1 Pin
aurorae1282-Aug-07 21:58
aurorae1282-Aug-07 21:58 
AnswerRe: how to write feedback form in asp.net v1.1 Pin
Christian Graus2-Aug-07 22:37
protectorChristian Graus2-Aug-07 22:37 
AnswerRe: how to write feedback form in asp.net v1.1 Pin
Talal Sultan2-Aug-07 22:38
Talal Sultan2-Aug-07 22:38 
GeneralRe: how to write feedback form in asp.net v1.1 Pin
aurorae1286-Aug-07 3:58
aurorae1286-Aug-07 3:58 
GeneralRe: how to write feedback form in asp.net v1.1 Pin
Talal Sultan8-Aug-07 3:47
Talal Sultan8-Aug-07 3:47 
Hi,

yes, it is best to place all the processing code in a code-behind page, which holds a class representing your web form. If you are using Visual Studio 2003 (for framework 1.1), the code-behind page will be added automatically when you create a web form. If your page name is myPage.aspx, the code behind page will be called myPage.aspx.cs.

When you add a button on your web form, if you double-click on it, Visual Studio will automatically attach an event delegate to the button event. Something like this this.btnSubmit.Click += new System.EventHandler(this.btnSubmit_Click); will be put in a method that was generated by Visual Studio called InitializeComponent().

btnSubmit_Click represents a method that will be executed when a user clicks on the submit button (called btnSubmit in this case.) The method skeleton code will also be generated for you and will look like this: protected void btnSubmit_Click(object sender, EventArgs e) The code to send the email should be placed in that method, where the information from the form can also be collected to be put in the mail message.

You need to do some search online to see some examples of pages in order to better understand the concept.

Talal

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook

QuestionQuery join probs.., Pin
Member 38798812-Aug-07 21:33
Member 38798812-Aug-07 21:33 
AnswerRe: Query join probs.., Pin
T.EDY2-Aug-07 22:22
T.EDY2-Aug-07 22:22 
AnswerRe: Query join probs.., Pin
Edwin Syarief2-Aug-07 23:07
Edwin Syarief2-Aug-07 23:07 
QuestionGrid View Header and Footer Pin
mpavas2-Aug-07 21:32
mpavas2-Aug-07 21:32 
AnswerRe: Grid View Header and Footer Pin
Talal Sultan2-Aug-07 21:55
Talal Sultan2-Aug-07 21:55 
GeneralRe: Grid View Header and Footer Pin
mpavas2-Aug-07 22:12
mpavas2-Aug-07 22:12 
AnswerRe: Grid View Header and Footer Pin
Talal Sultan2-Aug-07 22:28
Talal Sultan2-Aug-07 22:28 
GeneralRe: Grid View Header and Footer Pin
mpavas2-Aug-07 22:59
mpavas2-Aug-07 22:59 
GeneralRe: Grid View Header and Footer Pin
Talal Sultan2-Aug-07 23:15
Talal Sultan2-Aug-07 23:15 
GeneralRe: Grid View Header and Footer Pin
mpavas2-Aug-07 23:39
mpavas2-Aug-07 23:39 
QuestionCreate notepad in runtime asp.net Pin
praveenkumar_mca2-Aug-07 21:11
praveenkumar_mca2-Aug-07 21:11 
AnswerRe: Create notepad in runtime asp.net Pin
Christian Graus2-Aug-07 21:26
protectorChristian Graus2-Aug-07 21:26 
AnswerRe: Create notepad in runtime asp.net Pin
Edwin Syarief2-Aug-07 23:13
Edwin Syarief2-Aug-07 23:13 
Questionconver the c# code to corresponding vb.net code Pin
biswa472-Aug-07 20:43
biswa472-Aug-07 20:43 
AnswerRe: conver the c# code to corresponding vb.net code Pin
Christian Graus2-Aug-07 21:33
protectorChristian Graus2-Aug-07 21:33 
AnswerRe: conver the c# code to corresponding vb.net code Pin
Imran Khan Pathan2-Aug-07 23:31
Imran Khan Pathan2-Aug-07 23:31 
Questionneed validation Expression string Pin
Imran Khan Pathan2-Aug-07 20:19
Imran Khan Pathan2-Aug-07 20:19 

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.