Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: code project image search software Pin
Wes Aday5-Jul-12 5:17
professionalWes Aday5-Jul-12 5:17 
GeneralRe: code project image search software Pin
Dave Kreskowiak5-Jul-12 4:44
mveDave Kreskowiak5-Jul-12 4:44 
QuestionCant find onClick function in C# Pin
Member 90660254-Jul-12 20:47
Member 90660254-Jul-12 20:47 
AnswerRe: Cant find onClick function in C# Pin
Sebastian T Xavier5-Jul-12 1:58
Sebastian T Xavier5-Jul-12 1:58 
GeneralRe: Cant find onClick function in C# Pin
Member 90660255-Jul-12 2:08
Member 90660255-Jul-12 2:08 
GeneralRe: Cant find onClick function in C# Pin
Member 90660255-Jul-12 2:13
Member 90660255-Jul-12 2:13 
AnswerRe: Cant find onClick function in C# Pin
AmitGajjar5-Jul-12 2:01
professionalAmitGajjar5-Jul-12 2:01 
AnswerRe: Cant find onClick function in C# Pin
Alireza C5-Jul-12 10:52
Alireza C5-Jul-12 10:52 
Amit Answer is enough for you to solve your problem but I want to tell you about setting events in Asp.net Forms.
When you create control in Asp.net Form and then you want to create event for that,You can create event code in C# code of Asp.net Page.

Because of this you should set the type of event and name of it by tag in Asp.net page then go to the C# page of it and create the handle code for your event.

For example I want to create onclick event for button in my page.

First you write the button code in Asp.net Page same as this code:

<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />


Then go to C# page and create event for that button same as this code:

C#
protected void Button1_Click(object sender, EventArgs e)
{

}


The important thing is the name of event in the tag and the name event in c# code should be same.

It's very simple and I believe you can do it so if it works let me know.
GeneralRe: Cant find onClick function in C# Pin
AmitGajjar5-Jul-12 17:11
professionalAmitGajjar5-Jul-12 17:11 
GeneralRe: Cant find onClick function in C# Pin
Alireza C5-Jul-12 18:01
Alireza C5-Jul-12 18:01 
QuestionDataset TableNewRow Event [solved] Pin
Midnight Ahri4-Jul-12 16:54
Midnight Ahri4-Jul-12 16:54 
AnswerRe: Dataset TableNewRow Event Pin
OriginalGriff4-Jul-12 21:25
mveOriginalGriff4-Jul-12 21:25 
QuestionRe: Dataset TableNewRow Event Pin
Midnight Ahri4-Jul-12 21:35
Midnight Ahri4-Jul-12 21:35 
AnswerRe: Dataset TableNewRow Event Pin
OriginalGriff4-Jul-12 21:52
mveOriginalGriff4-Jul-12 21:52 
QuestionRe: Dataset TableNewRow Event Pin
Midnight Ahri4-Jul-12 22:22
Midnight Ahri4-Jul-12 22:22 
AnswerRe: Dataset TableNewRow Event Pin
OriginalGriff4-Jul-12 22:34
mveOriginalGriff4-Jul-12 22:34 
AnswerRe: Dataset TableNewRow Event Pin
Midnight Ahri4-Jul-12 23:04
Midnight Ahri4-Jul-12 23:04 
GeneralRe: Dataset TableNewRow Event Pin
OriginalGriff4-Jul-12 23:59
mveOriginalGriff4-Jul-12 23:59 
GeneralHow to Update DataTable to MySql database Without loop Pin
rongvangso74-Jul-12 15:26
rongvangso74-Jul-12 15:26 
GeneralRe: How to Update DataTable to MySql database Without loop Pin
Abhinav S4-Jul-12 16:16
Abhinav S4-Jul-12 16:16 
GeneralRe: How to Update DataTable to MySql database Without loop Pin
amirafoods4-Jul-12 20:25
amirafoods4-Jul-12 20:25 
GeneralSOLVED!! (do the happy dance!) Dictionary Error? (or User Error! more likely) Pin
glennPattonWork34-Jul-12 5:33
professionalglennPattonWork34-Jul-12 5:33 
AnswerRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon4-Jul-12 6:36
mvePete O'Hanlon4-Jul-12 6:36 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
glennPattonWork34-Jul-12 22:37
professionalglennPattonWork34-Jul-12 22:37 
GeneralRe: Dictionary Error? (or User Error! more likely) Pin
Pete O'Hanlon4-Jul-12 23:09
mvePete O'Hanlon4-Jul-12 23:09 

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.