Click here to Skip to main content
16,019,423 members

Comments by Member 11197134 (Top 4 by date)

Member 11197134 10-Sep-16 17:47pm View    
Thanks a lot sir. This worked for me.
Member 11197134 8-Sep-16 16:02pm View    
Yes Sir. Thanks for the reply. But I got this code and tried. Its working fine if i create a chart separatly and print to pdf file. But I have a requirement as i mentioned earlier in my question. my chart is in cell of gridview. I want to print complete gridview to pdf. Pelase help me in that.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" Width="700px" OnRowDataBound="GridView1_RowDataBound">
<columns>
<asp:BoundField HeaderText="Username" DataField="Username" ItemStyle-Width="120px" />
<asp:TemplateField HeaderText="marks Report">
<itemtemplate>
<div>
<asp:Chart ID="Chart1" runat="server" Width="550px" Height="200px">
<series>
<asp:Series Name="Series1"
LegendText="LEVEL 1" IsValueShownAsLabel="false" ChartArea="ChartArea1"
MarkerBorderColor="#DBDBDB">
<asp:Series Name="Series2"
LegendText="LEVEL 2" IsValueShownAsLabel="false" ChartArea="ChartArea1"
MarkerBorderColor="#DBDBDB" >
<asp:Series Name="Series3"
LegendText="LEVEL 3" IsValueShownAsLabel="false" ChartArea="ChartArea1"
MarkerBorderColor="#DBDBDB">


<chartareas>
<asp:ChartArea Name="ChartArea1">



</div>



Member 11197134 2-Jun-16 15:04pm View    
did you got the answer about how to fire an event after the timer is completed?
Member 11197134 1-Jun-16 13:24pm View    
Deleted
protected void timer1_tick(object sender, EventArgs e)
{
int rem_minutes = (Int32)DateTime.Parse(Session["timeout"].ToString()).Subtract(DateTime.Now).TotalMinutes;
if (sdur < rem_minutes)
Button1.Attributes.Add("Enabled", "False");

else
Button1.Attributes.Add("Enabled", "True");
if (0 > DateTime.Compare(DateTime.Now, DateTime.Parse(Session["timeout"].ToString())))
{
lblTimer.Text = string.Format("Time Left: 00:{0}:{1}", ((Int32)DateTime.Parse(Session["timeout"].ToString()).Subtract(DateTime.Now).TotalMinutes).ToString(), ((Int32)DateTime.Parse(Session["timeout"].ToString()).Subtract(DateTime.Now).Seconds).ToString());

}
else
{
timer1.Enabled = false;

Response.Redirect("Logout.aspx");

}



}
In the above code , I want Button1 to be disabled until timer count down to "sdur" minutes. But The button behavior is not changing. Please help. I also tried Button1.Enabled=true; still no effect. Thanks in advance