Click here to Skip to main content
15,909,898 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to get value from javascript on page load event Pin
Arun Jacob3-Aug-09 21:07
Arun Jacob3-Aug-09 21:07 
GeneralRe: how to get value from javascript on page load event Pin
rahul.net113-Aug-09 21:08
rahul.net113-Aug-09 21:08 
Questionplease help me Pin
sivasampathkumar3-Aug-09 19:49
sivasampathkumar3-Aug-09 19:49 
AnswerRe: please help me Pin
Christian Graus3-Aug-09 19:51
protectorChristian Graus3-Aug-09 19:51 
AnswerYou are too stupid to use a computer Pin
Christian Graus3-Aug-09 20:21
protectorChristian Graus3-Aug-09 20:21 
QuestionServer Application Unavailable error in IIS 5.1 Pin
Chesnokov Yuriy3-Aug-09 19:41
professionalChesnokov Yuriy3-Aug-09 19:41 
AnswerRe: Server Application Unavailable error in IIS 5.1 Pin
Abhijit Jana3-Aug-09 19:46
professionalAbhijit Jana3-Aug-09 19:46 
Questiondoes not contain definition for row index [modified] Pin
haleemasher3-Aug-09 19:41
haleemasher3-Aug-09 19:41 
i want to update a gridview which contain textboxes and a dropdownlist. i use this code to update a dropdownlist in gridview by running this code it show an error does not contain definition for row index
    protected void GridView1_RowUpdating(object sender, GridViewUpdatedEventArgs e)
{
        string struName =(DropDownList)(GridView1.Rows[e.RowIndex].Cells[4].FindControl("Drop")).SelectedValue;
        e.NewValues["Active"] = struName;
       // e.Cancel = false; 

    }


<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="TransactionTypeID" DataSourceID="SqlDataSource3" 
    
        style="top: 345px; left: 390px; position: absolute; height: 133px; width: 187px; z-index: 1" 
        onrowupdated="GridView1_RowUpdating">
        <Columns>
            <asp:BoundField DataField="TransactionTypeID" HeaderText="TransactionTypeID" 
                ReadOnly="True" SortExpression="TransactionTypeID" />
            <asp:BoundField DataField="Transaction" HeaderText="Transaction" 
                SortExpression="Transaction" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="Category" HeaderText="Category" 
                SortExpression="Category" />
                <asp:TemplateField HeaderText="User Name"> 
            <ItemTemplate> 
<asp:Label ID="lbl1" runat="server" Text='<%# Bind("Active")%>' /> 
</ItemTemplate> 
<EditItemTemplate> 
<asp:DropDownList ID="Drop" runat="server" AppendDataBoundItems="true" 
 AutoPostBack="True" SelectedValue='<%# Bind("Active")%>'> 
<asp:ListItem Value="Yes"></asp:ListItem> 
<asp:ListItem Value ="No"></asp:ListItem>
</asp:DropDownList> 
</EditItemTemplate> 
</asp:TemplateField> 

        </Columns>
</asp:GridView>


modified on Tuesday, August 4, 2009 1:59 AM

AnswerRe: does not contain definition for row index Pin
Abhijit Jana3-Aug-09 19:48
professionalAbhijit Jana3-Aug-09 19:48 
GeneralRe: does not contain definition for row index Pin
haleemasher3-Aug-09 20:16
haleemasher3-Aug-09 20:16 
Questionpositioning controls on web page without using table Pin
S.Aijaz3-Aug-09 19:38
S.Aijaz3-Aug-09 19:38 
AnswerRe: positioning controls on web page without using table Pin
Abhijit Jana3-Aug-09 19:55
professionalAbhijit Jana3-Aug-09 19:55 
Questionproperty classes Pin
rajni_nanu3-Aug-09 19:13
rajni_nanu3-Aug-09 19:13 
AnswerRe: property classes Pin
Abhijit Jana3-Aug-09 19:26
professionalAbhijit Jana3-Aug-09 19:26 
AnswerRe: property classes Pin
John-ph3-Aug-09 19:30
John-ph3-Aug-09 19:30 
Questionusername and password Pin
rajni_nanu3-Aug-09 19:12
rajni_nanu3-Aug-09 19:12 
AnswerRe: username and password Pin
Abhijit Jana3-Aug-09 19:23
professionalAbhijit Jana3-Aug-09 19:23 
GeneralRe: username and password Pin
rajni_nanu6-Aug-09 0:09
rajni_nanu6-Aug-09 0:09 
AnswerRe: username and password Pin
John-ph3-Aug-09 19:27
John-ph3-Aug-09 19:27 
GeneralRe: username and password Pin
rajni_nanu6-Aug-09 0:12
rajni_nanu6-Aug-09 0:12 
QuestionShowing Data Vertically Pin
Srikanth19873-Aug-09 19:06
Srikanth19873-Aug-09 19:06 
AnswerRe: Showing Data Vertically Pin
Mike Ellison3-Aug-09 19:11
Mike Ellison3-Aug-09 19:11 
QuestionRe: Showing Data Vertically Pin
Srikanth19873-Aug-09 19:29
Srikanth19873-Aug-09 19:29 
AnswerRe: Showing Data Vertically Pin
Mike Ellison4-Aug-09 2:50
Mike Ellison4-Aug-09 2:50 
AnswerRe: Showing Data Vertically Pin
Abhijit Jana3-Aug-09 19:22
professionalAbhijit Jana3-Aug-09 19:22 

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.