Click here to Skip to main content
14,923,486 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: hi,how to save user changes header colors and font size in web application? Pin
Sandeep Mewara8-Mar-10 9:43
mvaSandeep Mewara8-Mar-10 9:43 
QuestionHow to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 4:57
Memberlaziale8-Mar-10 4:57 
AnswerRe: How to get the index of the gridview with click of asp button Pin
Brij8-Mar-10 5:24
mentorBrij8-Mar-10 5:24 
GeneralRe: How to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 5:39
Memberlaziale8-Mar-10 5:39 
GeneralRe: How to get the index of the gridview with click of asp button Pin
Brij8-Mar-10 7:49
mentorBrij8-Mar-10 7:49 
AnswerRe: How to get the index of the gridview with click of asp button Pin
Abhijit Jana8-Mar-10 5:38
professionalAbhijit Jana8-Mar-10 5:38 
GeneralRe: How to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 5:48
Memberlaziale8-Mar-10 5:48 
AnswerRe: How to get the index of the gridview with click of asp button Pin
jayantbramhankar9-Mar-10 9:51
Memberjayantbramhankar9-Mar-10 9:51 
try this,

Add commandArgument in <asp:button> tag
<asp:Button ID="Button1" runat="server" Text='<%#Eval("YourDataFiled")%>'

                CommandArgument = "Button1"  OnClick = "Button1_Click" />


c# code

protected void Button1_Click(object sender, EventArgs e)
 {
     Button button = (Button)sender;

     string CommandName = button.CommandName;

     string CommandArgument = button.CommandArgument;
     int index = Int32.parse(button.CommandArgument);


 }


Hope this helps.
QuestionSpecial character Diplay problem Pin
Syed Shahid Hussain8-Mar-10 4:31
MemberSyed Shahid Hussain8-Mar-10 4:31 
AnswerRe: Special character Diplay problem Pin
Brij8-Mar-10 5:35
mentorBrij8-Mar-10 5:35 
GeneralRe: Special character Diplay problem Pin
Syed Shahid Hussain9-Mar-10 0:47
MemberSyed Shahid Hussain9-Mar-10 0:47 
AnswerRe: Special character Diplay problem Pin
Sandeep Mewara8-Mar-10 9:48
mvaSandeep Mewara8-Mar-10 9:48 
GeneralRe: Special character Diplay problem Pin
Syed Shahid Hussain9-Mar-10 0:46
MemberSyed Shahid Hussain9-Mar-10 0:46 
QuestionCustom Events on Custom Controls and fire it Pin
Julien Lacoste8-Mar-10 4:04
MemberJulien Lacoste8-Mar-10 4:04 
QuestionHow to Fill GridView Fast Pin
Manish_Kumar_Nayak8-Mar-10 1:07
MemberManish_Kumar_Nayak8-Mar-10 1:07 
AnswerRe: How to Fill GridView Fast Pin
Abhijit Jana8-Mar-10 1:31
professionalAbhijit Jana8-Mar-10 1:31 
AnswerRe: How to Fill GridView Fast Pin
Anurag Gandhi8-Mar-10 1:59
professionalAnurag Gandhi8-Mar-10 1:59 
AnswerRe: How to Fill GridView Fast Pin
Brij8-Mar-10 2:34
mentorBrij8-Mar-10 2:34 
AnswerRe: How to Fill GridView Fast Pin
R. Giskard Reventlov8-Mar-10 2:41
MemberR. Giskard Reventlov8-Mar-10 2:41 
QuestionGetting Error "Internal .Net Framework Data Provider error 12." Pin
krishnaveer8-Mar-10 0:10
Memberkrishnaveer8-Mar-10 0:10 
QuestionHow to call Activex Control methods using javascripts? Pin
Prasadsm8-Mar-10 0:04
MemberPrasadsm8-Mar-10 0:04 
AnswerRe: How to call Activex Control methods using javascripts? Pin
Anurag Gandhi8-Mar-10 2:04
professionalAnurag Gandhi8-Mar-10 2:04 
GeneralRe: How to call Activex Control methods using javascripts? Pin
Prasadsm8-Mar-10 2:17
MemberPrasadsm8-Mar-10 2:17 
QuestionSend email with Cc and Bcc using smtpmail class smtpmail.smtpserver 127.0.0.1 Pin
Member 42883237-Mar-10 23:39
MemberMember 42883237-Mar-10 23:39 
AnswerRe: Send email with Cc and Bcc using smtpmail class smtpmail.smtpserver 127.0.0.1 Pin
Abhijit Jana8-Mar-10 0:33
professionalAbhijit Jana8-Mar-10 0:33 

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.