Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
yvette
Yak Posting Veteran
74 Posts |
Posted - 2010-09-14 : 22:53:38
|
Hi, i develop my final year project with asp.net c# and sql server 2008.HTML code<asp:TextBox ID="txtDOB" runat="server" Width="57px"></asp:TextBox> <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" onselectionchanged="Calendar1_SelectionChanged" SelectedDate="09/15/2010 10:42:26" Width="200px"> <SelectedDayStyle BackColor="#FF6600" Font-Bold="True" ForeColor="#66FFFF" /> <SelectorStyle BackColor="#9966FF" ForeColor="Red" /> <WeekendDayStyle BackColor="#FFFFCC" /> <TodayDayStyle BackColor="Red" ForeColor="#6600FF" /> <OtherMonthDayStyle ForeColor="#808080" /> <DayStyle ForeColor="#FF5050" /> <NextPrevStyle VerticalAlign="Bottom" /> <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" /> <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" /> </asp:Calendar>Code behind protected void Calendar1_SelectionChanged(object sender, EventArgs e) { txtDOB.Text = Calendar1.SelectedDate.Date.ToString(); } Above is mt code.it works but how if i want to hide the calendar with a button and i want to change the format of the date become date(not date time) and dd-mm-yyyy???izzit possible???Thanks... |
|
Sachin.Nand
2937 Posts |
|
yvette
Yak Posting Veteran
74 Posts |
Posted - 2010-09-15 : 02:54:08
|
quote: Originally posted by Idera I would suggest you to use Ajax Toolkit calendar control.Have a look herehttp://www.asp.net/ajaxlibrary/act_Calendar_Simple.ashxLimitations live only in our minds. But if we use our imaginations, our possibilities become limitless. PBUH
Thanks for reply.i have other question.if textbox,string DOB = txtDOB.text;but if use HTML input(text)???what should i put??? |
|
|
jafrywilson
Constraint Violating Yak Guru
379 Posts |
Posted - 2010-09-15 : 03:11:59
|
What is your need? |
|
|
yvette
Yak Posting Veteran
74 Posts |
Posted - 2010-09-15 : 03:27:25
|
quote: Originally posted by jafrywilson What is your need?
Thanks for reply...I solve it.But i've other question.How to link two table in sql server 2008.Let say i have one table name Employee and other table name is Profile.Both table have Employee id. But the employee id in Employee table is auto generate.Thanks.. |
|
|
jafrywilson
Constraint Violating Yak Guru
379 Posts |
Posted - 2010-09-15 : 05:31:42
|
use union all ... or make inner join |
|
|
|
|
|