rahigoswami 0 Light Poster

suppose i have same table like the previous one now i want that user can select a stat date and end date from the calender and it will check into the database display the data like the previous one

my source view

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewLog.aspx.cs" Inherits="manage_logs._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<p>
Manage Logs ( View Log)</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
<asp:Label ID="Label2" runat="server"
style="z-index: 1; left: 231px; top: 123px; position: absolute; height: 19px; width: 81px"
Text="Start Date"></asp:Label>
</p>
<p>
&nbsp;</p>
<asp:Calendar ID="Calendar1" runat="server"
style="z-index: 1; left: 351px; top: 32px; position: absolute; height: 205px; width: 9px">
</asp:Calendar>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<asp:Calendar ID="Calendar2" runat="server"
onselectionchanged="Calendar2_SelectionChanged"
style="z-index: 1; left: 348px; top: 260px; position: absolute; height: 205px; width: 9px">
</asp:Calendar>
<p>
<asp:Label ID="Label3" runat="server"
style="z-index: 1; left: 232px; top: 288px; position: absolute" Text="End Date"></asp:Label>
</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click1"
style="z-index: 1; left: 303px; top: 522px; position: absolute; height: 26px; width: 91px; margin-bottom: 62px"
Text="Submit" />
</p>
<p>
&nbsp;</p>
</form>
</body>
</html>

my code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;


namespace manage_logs
{
public partial class _Default : System.Web.UI.Page
{
//StreamReader myReader = new StreamReader("logfile");


protected void Page_Load(object sender, EventArgs e)
{

}

protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{

}

protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{

}

protected void Button1_Click(object sender, EventArgs e)
{


}

protected void Calendar2_SelectionChanged(object sender, EventArgs e)
{

}

protected void Button1_Click1(object sender, EventArgs e)
{


}

protected void Calendar1_SelectionChanged1(object sender, EventArgs e)
{

}


}
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.