Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Dear All,

I am working asp.net with Crystal Report. I have Report List in one page and All the Report Related Controls Loding dynamically on the Second Page. How Can i Marge Together on One aspx page.

One User Control for Report List another for Report Controls. I want to Show both User Control on One aspx page.

When I will selct the Report, The Report Controls dynamically will be loeaded Right Side on the Same Page.

You guys have any idea.Any Suggestion is highly appreciated.

Thanks in Advance.

Shafik
Posted
Comments
Abhishek Pant 19-Dec-12 10:10am    
web user controls!

You have to use two div tags like this-

HTML
<div style="float:left;width:50%;" />
<div style="float:right;width:50%;" />


and put your content inside these div tags.
 
Share this answer
 
v2
you can use iframe for that. Like for left side you can use your control and right side you can call your report page in iframe.

from parent side to child side you can pass parameter of your button through url.

like for example:

parent page:

client side:
XML
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>


 </head>
 <body>
     <form  method="post" runat="server">

 <iframe id="iFrmChild" runat="server" width="300px" height="100px">
 </iframe>
     <asp:Button Text="Send Parameter1" ID="btnSendParam" runat="server"
         onclick="btnSendParam_Click" />
          <asp:Button Text="Send Parameter2" ID="Button1" runat="server"
         onclick="btnSendParam2_Click" />
         </form>
 </body>
</html>

server side:
C#
protected void Page_Load(object sender, EventArgs e)
      {

      }

      protected void btnSendParam_Click(object sender, EventArgs e)
      {
          try
          {
              iFrmChild.Attributes.Remove("src");
          }
          catch (Exception)
          {}
          iFrmChild.Attributes.Add("src", "iframePage.aspx?id=1");
      }
      protected void btnSendParam2_Click(object sender, EventArgs e)
      {
          try
          {
              iFrmChild.Attributes.Remove("src");
          }
          catch (Exception)
          {}
          iFrmChild.Attributes.Add("src", "iframePage.aspx?id=2");
      }



iframe page:

client side:

XML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">


 </head>
    <body>
        <br/>
        <br/>
        <asp:Label Text="" ID="lblurlValue" runat="server" />
    </body>
</html>



server side:
C#
protected void Page_Load(object sender, EventArgs e)
       {
           if (this.Context.Request["id"] != null)
           {
               string urlId = this.Context.Request["id"].ToString();
               lblurlValue.Text = urlId;
           }
       }



this idea can be one solution.

Thank you
Rashed::Bangladesh.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900