Click here to Skip to main content
12,350,971 members (42,191 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 19-Dec-12 2:23am
Shafik505
Comments
Abhishek Pant 19-Dec-12 10:10am
   
web user controls!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You have to use two div tags like this-

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

and put your content inside these div tags.
  Permalink  
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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:
<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:
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:

<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:
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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100