Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem with Multiple Insert in sql server from c# code. Pin
Johndas8-Mar-10 17:43
Johndas8-Mar-10 17:43 
AnswerRe: Problem with Multiple Insert in sql server from c# code. Pin
Sandeep Mewara8-Mar-10 19:49
mveSandeep Mewara8-Mar-10 19:49 
Questionhi,how to save user changes header colors and font size in web application? Pin
pramodgorityala8-Mar-10 7:55
pramodgorityala8-Mar-10 7:55 
AnswerRe: hi,how to save user changes header colors and font size in web application? Pin
#realJSOP8-Mar-10 7:56
mve#realJSOP8-Mar-10 7:56 
AnswerRe: hi,how to save user changes header colors and font size in web application? Pin
Sandeep Mewara8-Mar-10 9:43
mveSandeep Mewara8-Mar-10 9:43 
QuestionHow to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 4:57
laziale8-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
laziale8-Mar-10 5:39 
hello
thx for your reply and here is my code:
backend:

protected void updateNote(object sender, GridViewCommandEventArgs e)
       {
           string selectedIndex = "";
           int index = 0;
        index = Convert.ToInt32(e.CommandArgument);
         //  index = 1;
        //   Button bttn = (Button)sender;

        GridViewRow row = gvOrderNotes.Rows[index];

            ListItem item = new ListItem();
           item.Text = Server.HtmlDecode(row.Cells[3].Text);
           selectedIndex = item.Text;
       }



html:

<ItemTemplate>
                                       <asp:Button runat="server" ID="ChkUpdate" onclick="updateNote" AutoPostBack="true" Width="160%" Text="Update Order"/>
                                       <ajaxToolkit:ConfirmButtonExtender ID="chkUpdateConfirmBtnExtender" runat="server" TargetControlID="chkUpdate" DisplayModalPopupID="modalPopupExtenderChkUpdate"></ajaxToolkit:ConfirmButtonExtender>
                                       <ajaxToolkit:ModalPopupExtender ID="modalPopupExtenderChkUpdate" runat="server" TargetControlID="chkUpdate" PopupControlID="pnlChkUpdate"
                                       OKControlID="chkUpdateOK" CancelControlID="chkUpdateCancel" BackgroundCssClass="modalBackground" />
                                  </ItemTemplate>



Thx for your help one more time.
Laziale
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
laziale8-Mar-10 5:48 
AnswerRe: How to get the index of the gridview with click of asp button Pin
jayantbramhankar9-Mar-10 9:51
jayantbramhankar9-Mar-10 9:51 
QuestionSpecial character Diplay problem Pin
Syed Shahid Hussain8-Mar-10 4:31
Syed 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
Syed Shahid Hussain9-Mar-10 0:47 
AnswerRe: Special character Diplay problem Pin
Sandeep Mewara8-Mar-10 9:48
mveSandeep Mewara8-Mar-10 9:48 
GeneralRe: Special character Diplay problem Pin
Syed Shahid Hussain9-Mar-10 0:46
Syed Shahid Hussain9-Mar-10 0:46 
QuestionCustom Events on Custom Controls and fire it Pin
Julien Lacoste8-Mar-10 4:04
Julien Lacoste8-Mar-10 4:04 
QuestionHow to Fill GridView Fast Pin
Manish_Kumar_Nayak8-Mar-10 1:07
Manish_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
R. Giskard Reventlov8-Mar-10 2:41 
QuestionGetting Error "Internal .Net Framework Data Provider error 12." Pin
krishnaveer8-Mar-10 0:10
krishnaveer8-Mar-10 0:10 
QuestionHow to call Activex Control methods using javascripts? Pin
Prasadsm8-Mar-10 0:04
Prasadsm8-Mar-10 0:04 

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.