Skip to content
Loading
  
  • class="modal-footer">  
  • "button" class="btn btn-default" data-dismiss="modal">Close  
  •   
  •   
  •   
  •   
  •   
  •   
  •   
  • Give runat="server" attribute properly and from code behind assign the values to that label such as:
    1. DataTable dt = new DataTable();  
    2. dt=GetDetails();//Your implementation of getting data frrom database  
    3. id1.Text=dt.Rows[0]["package"].ToString();  
    4. id2.Text=dt.Rows[0]["Subpackage"].ToString();  
    5. //create your logic behind calculating the price  
    6. id3.Text=price.toString();  
    Hope you get it.
    Thanks.
    0
  • 0
    I m getting the modal popup but I don't know how to show the details using a table in that
    0
  • Rajneesh Chaubey
    0
    I agree with Manav. You can share your code and we'll see where are you stucking?
    It is always good to know that what you have tried.
    Coming to question, second way to doing the same is binding it from code behind. As I have shown you get data from DataTable and bind it to the label in your modal. 
    0
  • 0
    This is my code for booking page .Now onclick of submit button i want a popup which will display the table with column such as( packagename , subpackagename ,cost of transportation,no.of adults, no.of children and total cost) and only one row that should display the value of packagename ,subpackagename that user has selected from dropdown and no.of adults and children user entered and finally calculated value.
     

    BOOK YOURSELF HERE!



    Username:
    Which State you want to explore:
    Goa
    Rajsthan
    Andhra Pradesh
    Arunachal Pradesh
    Assam
    Bihar
    Chattisgarh
    Himachal Pradesh
    Which package you desire to go with:
    Goa
    Rajsthan
    No. of Adults:
    No. of childrens:
    Mode of Transportation:
    Departure date:
    Pickup address:
    Any other messages:


                  
    <%----%>
                    
    <%----%>
    <%--panel body--%>
    <%--panel--%>
    <%--col--%>
    <%-- row--%>
    <%--container--%>
    0