Click here to Skip to main content
15,900,378 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Postback causing problem Pin
yesu prakash12-Aug-09 0:33
yesu prakash12-Aug-09 0:33 
GeneralRe: Postback causing problem Pin
greendragons12-Aug-09 1:38
greendragons12-Aug-09 1:38 
QuestionCrystal Report Problem Please Help Pin
Andile.M11-Aug-09 7:38
Andile.M11-Aug-09 7:38 
AnswerRe: Crystal Report Problem Please Help Pin
David Mujica11-Aug-09 8:02
David Mujica11-Aug-09 8:02 
QuestionVery Wierd quesrystring encryption problem Pin
gfrenkel111-Aug-09 7:10
gfrenkel111-Aug-09 7:10 
AnswerRe: Very Wierd quesrystring encryption problem Pin
Abhijit Jana11-Aug-09 7:25
professionalAbhijit Jana11-Aug-09 7:25 
QuestionStreaming image resources from DLL to an ASP.NET page without IHttpHandler Pin
Petri Lehtonen11-Aug-09 5:01
Petri Lehtonen11-Aug-09 5:01 
Questionmultiple DropDownList refreshing Pin
romeodamian11-Aug-09 2:51
romeodamian11-Aug-09 2:51 
Hi,

i have the following code:

   <asp:GridView ID="GridViewDetailLocuriMunca"
            runat="server"
            AutoGenerateColumns="False"
            DataKeyNames="id"
            DataSourceID="LocuriMuncaDataSource"
            AllowPaging="True"
            AllowSorting="True"
            OnRowUpdating="GridViewDetail_RowUpdating"
            Caption="Locuri de munca">
            <Columns>
                  <asp:CommandField
                        ShowEditButton="True"
                        ButtonType="Image"
                 

                  <asp:TemplateField HeaderText="grupa" SortExpression="grupa_cod" Visible="True">
                        <edititemtemplate>
                          
                              <asp:DropDownList ID="DropDownListGrupaEdit"
                                    runat="server"
                                    DataSourceID="CodGrupaLocuriMuncaDataSource"
                                    DataTextField="cod"
                                    DataValueField="id"
                                    AutoPostBack="true"
                                    SelectedValue='<%# Bind("grupa_id") %>'>
                              </asp:DropDownList>

                        </edititemtemplate>
                        <ItemTemplate>
                              <asp:Label ID="grupa_cod"
                                    runat="server"
                                    Text='<%# Bind("grupa_cod") %>'>
                              </asp:Label>
                        </ItemTemplate>
                       
                  </asp:TemplateField>

                  <asp:TemplateField HeaderText="comp." SortExpression="comp_cod" Visible="True">
                        <ItemTemplate>
                              <asp:Label ID="comp_cod"
                                    runat="server"
                                    Text='<%# Bind("comp_cod") %>'>
                              </asp:Label>
                        </ItemTemplate>

                        <EditItemTemplate>
                              <asp:DropDownList ID="DropDownListCompEdit"
                              DataTextField="Cod"
                              DataValueField="ID"
                              DataSourceID="SqlDataSourceComp"
                              AutoPostBack="true"
                              EnableViewState="true"
                              OnDataBound="myDataBoundComp"
                              runat="server"
                              Enabled="True" />
                              <asp:SqlDataSource runat="server" ID="sqlDataSourceComp"
                                 ConnectionString="<%$ ConnectionStrings:DecontariConnectionString %>"
                                    SelectCommand="SELECT comp.cod, comp.id FROM [nGrupeLocuriMunca] lm, [nCompartimente] comp WHERE (comp.id = lm.comp_id AND lm.id = @grupa_id)"
                                    >
                                    <SelectParameters>
                                          <asp:ControlParameter
                                                Name="grupa_id"
                                                ControlID="DropDownListGrupaEdit"
                                                PropertyName="SelectedValue" />
                                    </SelectParameters>                                   
                              </asp:SqlDataSource>
                        </EditItemTemplate>
                  </asp:TemplateField>              

                  <asp:TemplateField HeaderText="centru cost" SortExpression="cc_cod">
                        <ItemTemplate>
                              <asp:Label ID="cc_cod"
                                    runat="server"
                                    Text='<%# Bind("cc_cod") %>'>
                              </asp:Label>
                        </ItemTemplate>

                        <EditItemTemplate>
                              <asp:DropDownList ID="ddlCentreCost"
                              DataTextField="Cod"
                              DataValueField="ID"
                              DataSourceID="SqlDataSourceCC"
                              AutoPostBack="true"
                              EnableViewState="true"
                              OnDataBound="myDataBindCost"
                              runat="server"
                              Enabled="True" />
                              <asp:SqlDataSource runat="server" ID="sqlDataSourceCC"
                                 ConnectionString="<%$ ConnectionStrings:DecontariConnectionString %>"
                                    SelectCommand="SELECT cc.cod cod, cc.id id FROM [nCentreCost] cc, [nCompartimente] comp WHERE (cc.cp_id = comp.cp_id AND cc.activ = 1 AND comp.id = @comp_id)"
                                    >
                                    <SelectParameters>
                                          <asp:ControlParameter
                                                Name="comp_id"
                                                ControlID="DropDownListCompEdit"
                                                PropertyName="SelectedValue"
                                                />
                                    </SelectParameters>                                   
                              </asp:SqlDataSource>
                        </EditItemTemplate>
                  </asp:TemplateField>              

            </Columns>
      </asp:GridView>

and my problem is that when i change the value for the first list: DropDownListGrupaEdit, only the second
list is updated: DropDownListCompEdit ... The last one does not refresh at all, but only when i try to select a value that is not actual in the list ...


How can i solve this issue ?
Blush | :O    Blush | :O    Blush | :O    Blush | :O    Blush | :O    Blush | :O    Blush | :O
QuestionExpression - Evaluate - Very Urgent Pin
sekannak11-Aug-09 2:38
sekannak11-Aug-09 2:38 
AnswerDon't be rude Pin
Not Active11-Aug-09 2:45
mentorNot Active11-Aug-09 2:45 
AnswerRe: Expression - Evaluate - Very Urgent Pin
Arindam Sinha11-Aug-09 2:58
Arindam Sinha11-Aug-09 2:58 
AnswerRe: Expression - Evaluate - Very Urgent Pin
logiclabz11-Aug-09 3:01
logiclabz11-Aug-09 3:01 
QuestionPopulating a crystal report using Stored procedure Pin
LucBite11-Aug-09 2:35
LucBite11-Aug-09 2:35 
AnswerRe: Populating a crystal report using Stored procedure Pin
Venkatesh Mookkan11-Aug-09 16:11
Venkatesh Mookkan11-Aug-09 16:11 
Questionhow to render grid in divs? Pin
mr_muskurahat11-Aug-09 2:31
mr_muskurahat11-Aug-09 2:31 
AnswerRe: how to render grid in divs? Pin
Mike Ellison11-Aug-09 2:41
Mike Ellison11-Aug-09 2:41 
QuestionHow to generate missing PageName.aspx.designer.cs Pin
Chesnokov Yuriy11-Aug-09 1:44
professionalChesnokov Yuriy11-Aug-09 1:44 
AnswerRe: How to generate missing PageName.aspx.designer.cs [modified] Pin
l.czibolya11-Aug-09 3:11
l.czibolya11-Aug-09 3:11 
AnswerRe: How to generate missing PageName.aspx.designer.cs Pin
Abhijit Jana11-Aug-09 3:24
professionalAbhijit Jana11-Aug-09 3:24 
GeneralRe: How to generate missing PageName.aspx.designer.cs Pin
Chesnokov Yuriy11-Aug-09 3:28
professionalChesnokov Yuriy11-Aug-09 3:28 
QuestionRemember Me Pin
janani1311-Aug-09 1:41
janani1311-Aug-09 1:41 
AnswerRe: Remember Me Pin
Mike Ellison11-Aug-09 2:36
Mike Ellison11-Aug-09 2:36 
GeneralRe: Remember Me Pin
janani1311-Aug-09 2:41
janani1311-Aug-09 2:41 
QuestionFlash Player!! Pin
Sr...Frank11-Aug-09 1:24
Sr...Frank11-Aug-09 1:24 
AnswerRe: Flash Player!! Pin
Arindam Sinha11-Aug-09 1:34
Arindam Sinha11-Aug-09 1:34 

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.