1) Code Behind :
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "ClientScript", "ShowPopup();", true);
2) aspx:
<div id="dialog-modal" title="Basic modal dialog" style="display: none">
<asp:Button ID="btngoalbased" runat="server" Text="Goal Based" Style="width: auto;
background: #600ABD; color: white; text-align: center; height: 34px; border: none;"
OnClick="btngoalbased_Click" UseSubmitBehavior="false" />
<br />
<asp:Button ID="btnholisticplan" runat="server" Text="Holistic Planning" Style="width: auto;
background: #600ABD; color: white; text-align: center; height: 34px; border: none;"
OnClick="btnholisticplan_Click" UseSubmitBehavior="false" />
<%-- <a href="RiskProfiler.aspx" id="riskprofiler">Risk Profiler</a>
<br />
<a id="holisticplanner" runat="server">Holistic Planning</a>--%>
</div>
<asp:UpdatePanel ID="uppanel" runat="server">
<ContentTemplate>
<table width="100%" cellpadding="10" cellspacing="0">
<tr>
<td width="30%">
<a href="NewLeads.aspx">
<img src="../images/add_leads.png" width="300" height="35" /></a>
</td>
<td width="36%">
<a href="TrackLeads.aspx">
<img src="../images/track_lead.png" width="300" height="35" /></a>
</td>
<td width="34%">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E6FFFF" class="text">
<div class="tracklead">
<asp:GridView ID="dgvContent" AllowSorting="true" CellPadding="5" BorderStyle="None"
AllowPaging="true" Width="100%" CellSpacing="5" PageSize="10" AutoGenerateColumns="false"
runat="server" OnPageIndexChanging="dgvContent_PageIndexChanging" PagerSettings-Mode="Numeric"
PagerSettings-PageButtonCount="4" OnRowCommand="dgvContent_RowCommand" OnRowDataBound="dgvContent_RowDataBound">
<RowStyle />
<AlternatingRowStyle />
<PagerStyle HorizontalAlign="Left" CssClass="pager" />
<HeaderStyle BackColor="#F1A626" />
<EmptyDataTemplate>
No Record Found
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="LeadId" HeaderText="Lead Id" HeaderStyle-Height="35" HeaderStyle-ForeColor="Black" />
<asp:BoundField DataField="Name" HeaderStyle-ForeColor="Black" HeaderStyle-Height="35"
HeaderText="Name" />
<asp:BoundField DataField="Phone" HeaderText="Phone" HeaderStyle-Height="35" HeaderStyle-ForeColor="Black" />
<asp:BoundField DataField="LeadCategoryName" HeaderText="Status" HeaderStyle-Height="35"
HeaderStyle-ForeColor="Black" Visible="false" />
<asp:TemplateField HeaderText="Lead Status" HeaderStyle-ForeColor="Black">
<ItemTemplate>
<asp:Label ID="lblLeadId" runat="server" Text='<%# Eval("LeadId") %>' Visible="false" />
<asp:Label ID="lblleadstatus" runat="server" Text='<%# Eval("LeadCategoryId") %>'
Visible="false" />
<asp:DropDownList runat="server" ID="ddlleadstatus" AutoPostBack="true" OnSelectedIndexChanged="ddlleadstatus_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="LeadCategoryId" HeaderText="LeadCategoryId" HeaderStyle-Height="35"
HeaderStyle-ForeColor="Black" Visible="false" />
<asp:BoundField DataField="ReferredBy" HeaderText="Referred By" HeaderStyle-ForeColor="Black" />
<asp:TemplateField HeaderText="Start Planning" HeaderStyle-ForeColor="Black">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/track1.jpg"
CausesValidation="false" CommandName="start" CommandArgument='<%#Eval("LeadId")+","+ Eval("Name")%>'
Text="Start Plan" ToolTip="Start Planning" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<table style="height: 15px; text-align: left; vertical-align: top; width: 100%;">
<tr>
<td style="width: 200px; height: 20px; text-align: center; vertical-align: middle;">
<b><i>
<%=dgvContent.PageIndex + 1%>of<%=dgvContent.PageCount%></i></b>
</td>
</tr>
</table>
<asp:HiddenField ID="hdfclientid" runat="server" />
</div>
</td>
<td valign="top" bgcolor="#FCEBCF">
<div style="width: 400px; height: 500px;">
<asp:Chart ID="Chart1" runat="server" Height="200px" Width="300px">
<Titles>
<asp:Title ShadowOffset="3" Name="Items" />
</Titles>
<Series>
<asp:Series Name="Default" />
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderWidth="0">
<AxisX>
<MajorGrid Enabled="False" />
</AxisX>
<AxisY>
<MajorGrid Enabled="False" />
</AxisY>
</asp:ChartArea>
</ChartAreas>
<Legends>
<asp:Legend Alignment="Center" Docking="Right" IsDockedInsideChartArea="false" IsTextAutoFit="true"
Name="Default" LegendStyle="Table">
</asp:Legend>
</Legends>
</asp:Chart>
</div>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="dgvContent" EventName="RowCommand" />
</Triggers>
</asp:UpdatePanel>
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "ClientScript", "ShowPopup();", true);
2) aspx:
<div id="dialog-modal" title="Basic modal dialog" style="display: none">
<asp:Button ID="btngoalbased" runat="server" Text="Goal Based" Style="width: auto;
background: #600ABD; color: white; text-align: center; height: 34px; border: none;"
OnClick="btngoalbased_Click" UseSubmitBehavior="false" />
<br />
<asp:Button ID="btnholisticplan" runat="server" Text="Holistic Planning" Style="width: auto;
background: #600ABD; color: white; text-align: center; height: 34px; border: none;"
OnClick="btnholisticplan_Click" UseSubmitBehavior="false" />
<%-- <a href="RiskProfiler.aspx" id="riskprofiler">Risk Profiler</a>
<br />
<a id="holisticplanner" runat="server">Holistic Planning</a>--%>
</div>
<asp:UpdatePanel ID="uppanel" runat="server">
<ContentTemplate>
<table width="100%" cellpadding="10" cellspacing="0">
<tr>
<td width="30%">
<a href="NewLeads.aspx">
<img src="../images/add_leads.png" width="300" height="35" /></a>
</td>
<td width="36%">
<a href="TrackLeads.aspx">
<img src="../images/track_lead.png" width="300" height="35" /></a>
</td>
<td width="34%">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E6FFFF" class="text">
<div class="tracklead">
<asp:GridView ID="dgvContent" AllowSorting="true" CellPadding="5" BorderStyle="None"
AllowPaging="true" Width="100%" CellSpacing="5" PageSize="10" AutoGenerateColumns="false"
runat="server" OnPageIndexChanging="dgvContent_PageIndexChanging" PagerSettings-Mode="Numeric"
PagerSettings-PageButtonCount="4" OnRowCommand="dgvContent_RowCommand" OnRowDataBound="dgvContent_RowDataBound">
<RowStyle />
<AlternatingRowStyle />
<PagerStyle HorizontalAlign="Left" CssClass="pager" />
<HeaderStyle BackColor="#F1A626" />
<EmptyDataTemplate>
No Record Found
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="LeadId" HeaderText="Lead Id" HeaderStyle-Height="35" HeaderStyle-ForeColor="Black" />
<asp:BoundField DataField="Name" HeaderStyle-ForeColor="Black" HeaderStyle-Height="35"
HeaderText="Name" />
<asp:BoundField DataField="Phone" HeaderText="Phone" HeaderStyle-Height="35" HeaderStyle-ForeColor="Black" />
<asp:BoundField DataField="LeadCategoryName" HeaderText="Status" HeaderStyle-Height="35"
HeaderStyle-ForeColor="Black" Visible="false" />
<asp:TemplateField HeaderText="Lead Status" HeaderStyle-ForeColor="Black">
<ItemTemplate>
<asp:Label ID="lblLeadId" runat="server" Text='<%# Eval("LeadId") %>' Visible="false" />
<asp:Label ID="lblleadstatus" runat="server" Text='<%# Eval("LeadCategoryId") %>'
Visible="false" />
<asp:DropDownList runat="server" ID="ddlleadstatus" AutoPostBack="true" OnSelectedIndexChanged="ddlleadstatus_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="LeadCategoryId" HeaderText="LeadCategoryId" HeaderStyle-Height="35"
HeaderStyle-ForeColor="Black" Visible="false" />
<asp:BoundField DataField="ReferredBy" HeaderText="Referred By" HeaderStyle-ForeColor="Black" />
<asp:TemplateField HeaderText="Start Planning" HeaderStyle-ForeColor="Black">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/track1.jpg"
CausesValidation="false" CommandName="start" CommandArgument='<%#Eval("LeadId")+","+ Eval("Name")%>'
Text="Start Plan" ToolTip="Start Planning" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<table style="height: 15px; text-align: left; vertical-align: top; width: 100%;">
<tr>
<td style="width: 200px; height: 20px; text-align: center; vertical-align: middle;">
<b><i>
<%=dgvContent.PageIndex + 1%>of<%=dgvContent.PageCount%></i></b>
</td>
</tr>
</table>
<asp:HiddenField ID="hdfclientid" runat="server" />
</div>
</td>
<td valign="top" bgcolor="#FCEBCF">
<div style="width: 400px; height: 500px;">
<asp:Chart ID="Chart1" runat="server" Height="200px" Width="300px">
<Titles>
<asp:Title ShadowOffset="3" Name="Items" />
</Titles>
<Series>
<asp:Series Name="Default" />
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderWidth="0">
<AxisX>
<MajorGrid Enabled="False" />
</AxisX>
<AxisY>
<MajorGrid Enabled="False" />
</AxisY>
</asp:ChartArea>
</ChartAreas>
<Legends>
<asp:Legend Alignment="Center" Docking="Right" IsDockedInsideChartArea="false" IsTextAutoFit="true"
Name="Default" LegendStyle="Table">
</asp:Legend>
</Legends>
</asp:Chart>
</div>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="dgvContent" EventName="RowCommand" />
</Triggers>
</asp:UpdatePanel>
No comments:
Post a Comment