Click here to Skip to main content
15,886,258 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Referance error Pin
Abhijit Jana18-Nov-09 18:06
professionalAbhijit Jana18-Nov-09 18:06 
QuestionTFS BuildDefinition - Environment based dlls Pin
student_rhr18-Nov-09 12:50
student_rhr18-Nov-09 12:50 
AnswerRe: TFS BuildDefinition - Environment based dlls Pin
The Man from U.N.C.L.E.18-Nov-09 13:28
The Man from U.N.C.L.E.18-Nov-09 13:28 
GeneralRe: TFS BuildDefinition - Environment based dlls Pin
student_rhr18-Nov-09 13:40
student_rhr18-Nov-09 13:40 
GeneralRe: TFS BuildDefinition - Environment based dlls Pin
The Man from U.N.C.L.E.18-Nov-09 22:10
The Man from U.N.C.L.E.18-Nov-09 22:10 
QuestionRemove character from string problem ASP.NET VB Pin
rbren9018-Nov-09 12:22
rbren9018-Nov-09 12:22 
AnswerRe: Remove character from string problem ASP.NET VB Pin
PunkIsNotDead18-Nov-09 13:42
PunkIsNotDead18-Nov-09 13:42 
Questionchild listview Pin
Tauseef A18-Nov-09 11:59
Tauseef A18-Nov-09 11:59 
hi guys

i am working on parent child list view , in which i am showing a child list view
which is shown upon click on linkbutton in parent listview ,
but listview is not visible at runtime upon clickink link button , got attaches
the objectdatasource at runtime no exception but child list view is not shown , please help.
child listview is hidden its shown upon orderclick labelbutton in parent listview,
there is just a bar shown upon button click but not proper listview .



<body>
      <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
      <div>
      <p>
      <strong>Select Customer</strong>
      <asp:DropDownList ID ="dpcustomers" runat ="server"
                  DataSourceID="customerdatasource" Width ="150px" AutoPostBack="True"
               ></asp:DropDownList>
            <asp:Label ID="lblp" runat="server" Text="." Visible="False"></asp:Label>
            </p>
        
            <asp:ObjectDataSource ID="customerdatasource" runat="server"
                  SelectMethod="GetAllCustomers" TypeName="BAL.CustomerBAL">
            </asp:ObjectDataSource>
      </div>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     
      <ContentTemplate>
     
      <asp:ListView ID   = "lstview" runat ="server" SkinID ="3"
                  DataSourceID="orderdatasource" onitemcommand="lstview_ItemCommand"
                  >
  
      <LayoutTemplate>
     
      <table id ="itemplaceholdercontainer" runat = "server"   cellpadding ="6">
      <tr runat = "server" >
      <th style = " background :white">
      </th>
      <th>
      Order ID
      </th>
      <th>
      Customer ID
      </th>
      <th>
      Order Date
      </th>
      <th>
      Ship Address
      </th>
      <th>
      Ship Country
      </th>
      <th>
      Orders
      </th>
      </tr>
      <tr runat ="server" id ="itemPlaceholder"></tr>
      <tr>
      <td>
      <asp:LinkButton ID = "addnewlink" runat ="server" Text = "Add New"></asp:LinkButton>
      </td>
      </tr>
      </table>
     
      </LayoutTemplate>
     
      <ItemTemplate >
      <tr>
      <td>
         <asp:LinkButton ID="EditButton" CommandName="Edit" runat="server" Text="Edit"></asp:LinkButton>
         <asp:LinkButton ID="DeleteButton"   OnClientClick="return confirm('Delete Record?');" CommandName="Delete" CommandArgument='<%# Eval("CustomerID")%>' runat="server" Text="Delete"></asp:LinkButton>
      </td>
      <td>
      <asp:Label ID   = "lblorderid" runat ="server" text = '<%#Eval("orderid")%>'></asp:Label>
      </td>
      <td>
      <asp:Label ID   = "lblcustomerid" runat ="server" text = '<%#Eval("customerid")%>'></asp:Label>
      </td>
      <td>
      <asp:Label ID   = "orderdate" runat ="server" text = '<%#Eval("orderdate")%>'></asp:Label>
      </td>
      <td>
      <asp:Label ID   = "shipaddress" runat ="server" text = '<%#Eval("shipaddress")%>'></asp:Label>
      </td>
      <td>
      <asp:Label ID   = "shipcountry" runat ="server" text = '<%#Eval("shipcountry")%>'></asp:Label>
      <td>
      <asp:LinkButton ID="lbOrders" runat="server" Text="Orders"   CommandName ="order" CommandArgument='<%#Eval("orderid") %>' />
      </td>
      </td>
      </tr>
      <%--Order List View--%>
      <tr   visible ="false"   runat ="server" id = "roworders" style =" background :lightgrey">
   <td colspan ="7">
      <asp:ListView ID = "lvorders" runat ="server">
      <LayoutTemplate >
      <table runat ="server" id = "tbllstview">
      <tr>
      <th>
      Order ID
      </th>
      <th>
      Product ID
      </th>
         <th>
      Unit Price
      </th>
      <th>
Quantity
      </th>
      <th>
Discount
      </th>
      </tr>
<tr runat ="server" id ="itemPlaceholder"></tr>
      <tr>
      <td>
      <asp:LinkButton ID = "orderaddnewlink" runat ="server" Text = "Add New"></asp:LinkButton>
      </td>
      </tr>
     
      </table>
     
      </LayoutTemplate>
      <ItemTemplate >
      <tr>
      <td>
      <asp:Label ID   = "lblorderid" runat ="server" text = '<%#Eval("orderid")%>'></asp:Label>
     
      </td>
     
      <td>
      <asp:Label ID   = "Lblproductid" runat ="server" text = '<%#Eval("productid")%>'></asp:Label>
     
      </td>
     
      <td>
      <asp:Label ID   = "unitprice" runat ="server" text = '<%#Eval("productid")%>'></asp:Label>
     
      </td>
     
      <td>
      <asp:Label ID   = "Lblquantity" runat ="server" text = '<%#Eval("quantity")%>'></asp:Label>
     
      </td>
      </tr>
     
     
      </ItemTemplate>
      </asp:ListView>
      </td>
     
      </tr>
     
      </ItemTemplate>
     
      </asp:ListView>
            <asp:ObjectDataSource ID="orderdatasource" runat="server"
                  SelectMethod="GetOrdersByCustomer" TypeName="BAL.CustomerBAL">
                  <SelectParameters>
                        <asp:ControlParameter ControlID="dpcustomers" Name="customer"
                              PropertyName="SelectedValue" Type="String" />
                  </SelectParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
                  SelectMethod="GetOrdersByCustomer" TypeName="BAL.CustomerBAL">
                  <SelectParameters>
                        <asp:ControlParameter ControlID="lblp" Name="customer" PropertyName="Text"
                              Type="String" />
                  </SelectParameters>
            </asp:ObjectDataSource>
      </ContentTemplate>
            <Triggers>
                  <asp:AsyncPostBackTrigger ControlID="dpcustomers"
                        EventName="SelectedIndexChanged" />
            </Triggers>
     
      </asp:UpdatePanel>
      </form>
</body>

Tauseef A Khan
MCP Dotnet framework 2.0.

QuestionUser Controls Pin
samir8018-Nov-09 11:17
samir8018-Nov-09 11:17 
AnswerRe: User Controls Pin
Abhishek Sur18-Nov-09 11:27
professionalAbhishek Sur18-Nov-09 11:27 
Questionwhen you have an example explain it properly please. Pin
macupryk18-Nov-09 10:26
macupryk18-Nov-09 10:26 
AnswerRe: when you have an example explain it properly please. Pin
Abhishek Sur18-Nov-09 10:57
professionalAbhishek Sur18-Nov-09 10:57 
GeneralRe: when you have an example explain it properly please. Pin
macupryk18-Nov-09 11:12
macupryk18-Nov-09 11:12 
GeneralRe: when you have an example explain it properly please. Pin
Abhishek Sur18-Nov-09 11:25
professionalAbhishek Sur18-Nov-09 11:25 
GeneralRe: when you have an example explain it properly please. Pin
macupryk19-Nov-09 1:03
macupryk19-Nov-09 1:03 
QuestionOnclick execute multiple functions mixed .net and javascript functions Pin
WizTAK18-Nov-09 10:06
WizTAK18-Nov-09 10:06 
AnswerRe: Onclick execute multiple functions mixed .net and javascript functions Pin
Abhishek Sur18-Nov-09 11:01
professionalAbhishek Sur18-Nov-09 11:01 
AnswerRe: Onclick execute multiple functions mixed .net and javascript functions Pin
PunkIsNotDead18-Nov-09 12:43
PunkIsNotDead18-Nov-09 12:43 
Questionlistview issue [modified] Pin
Tauseef A18-Nov-09 7:33
Tauseef A18-Nov-09 7:33 
AnswerRe: listview issue Pin
Abhishek Sur18-Nov-09 7:41
professionalAbhishek Sur18-Nov-09 7:41 
QuestionRe: listview issue Pin
Tauseef A18-Nov-09 12:02
Tauseef A18-Nov-09 12:02 
AnswerRe: listview issue Pin
Abhishek Sur18-Nov-09 23:13
professionalAbhishek Sur18-Nov-09 23:13 
AnswerRe: listview issue Pin
ranjan_namitaputra18-Nov-09 8:34
ranjan_namitaputra18-Nov-09 8:34 
Generallistview issue Pin
PunkIsNotDead18-Nov-09 10:00
PunkIsNotDead18-Nov-09 10:00 
GeneralRe: listview issue Pin
Tauseef A18-Nov-09 12:02
Tauseef A18-Nov-09 12:02 

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.