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.