Click here to Skip to main content
15,909,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Error Pin
ToddHileHoffer4-Aug-06 2:10
ToddHileHoffer4-Aug-06 2:10 
Generalthanks Pin
Kunal P4-Aug-06 19:42
Kunal P4-Aug-06 19:42 
Questionhi Pin
jeevanchowlur4-Aug-06 1:44
jeevanchowlur4-Aug-06 1:44 
AnswerRe: hi Pin
Not Active4-Aug-06 2:05
mentorNot Active4-Aug-06 2:05 
QuestionProblem with Mozilla browser Pin
VenkataRamana.Gali4-Aug-06 1:41
VenkataRamana.Gali4-Aug-06 1:41 
QuestionProblem with office automation Pin
IamADotNetGuy4-Aug-06 1:02
IamADotNetGuy4-Aug-06 1:02 
AnswerRe: Problem with office automation Pin
Ista4-Aug-06 3:26
Ista4-Aug-06 3:26 
QuestionIs it possible to select date from the calendar and put the date to the detailsview? Pin
blurMember3-Aug-06 23:48
blurMember3-Aug-06 23:48 
The subject is abit incorrect.

Let me describe briefly;
I am doing a project in .NET 2.0. C#. I have DetailsView control where user can add date and occasion to the database, thus display it in a gridview. But I wish that user can select the date from the calendar instead of typing. What is the correct syntax to write the code when the date is selected from the calendar?

<code> protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
//DetailsView1. = Calendar1.SelectedDate.ToString("dd MMM yyyy");
}</code>

the source from design view
<code>
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" AutoGenerateRows="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="Index" DataSourceID="ObjectDataSource2" DefaultMode="Insert" ForeColor="Black" GridLines="None">
<FooterStyle BackColor="Tan" />
<EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
<Fields>
<asp:BoundField DataField="Date" HeaderText="Date" DataFormatString="{0:MM/dd/yy}" HtmlEncode="False" SortExpression="Date" />
<asp:BoundField DataField="Occasion" HeaderText="Occasion" SortExpression="Occasion" />
<asp:CommandField ShowInsertButton="True" />
</Fields>
<HeaderStyle BackColor="Tan" Font-Bold="True" />
<AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:DetailsView></code>


thanks in advance. Much appreciated.
AnswerRe: Is it possible to select date from the calendar and put the date to the detailsview? Pin
Mike Ellison4-Aug-06 2:58
Mike Ellison4-Aug-06 2:58 
GeneralRe: Is it possible to select date from the calendar and put the date to the detailsview? Pin
blurMember6-Aug-06 16:27
blurMember6-Aug-06 16:27 
QuestionHow to Access DNS MX Record. Pin
Murthy India3-Aug-06 23:44
Murthy India3-Aug-06 23:44 
AnswerRe: How to Access DNS MX Record. Pin
Ista4-Aug-06 3:50
Ista4-Aug-06 3:50 
Questionhow to close webform through window user control Pin
rah_sin3-Aug-06 22:43
professionalrah_sin3-Aug-06 22:43 
AnswerRe: how to close webform through window user control Pin
Mike Ellison4-Aug-06 2:59
Mike Ellison4-Aug-06 2:59 
AnswerRe: how to close webform through window user control Pin
l0kke4-Aug-06 3:21
l0kke4-Aug-06 3:21 
Questionopenning the form in placeholder in vb.net asp.net Pin
amaneet3-Aug-06 22:10
amaneet3-Aug-06 22:10 
AnswerRe: openning the form in placeholder in vb.net asp.net Pin
kiran kumar[Intelligroup]3-Aug-06 23:30
kiran kumar[Intelligroup]3-Aug-06 23:30 
GeneralRe: openning the form in placeholder in vb.net asp.net Pin
amaneet4-Aug-06 0:54
amaneet4-Aug-06 0:54 
GeneralRe: openning the form in placeholder in vb.net asp.net [modified] Pin
kiran kumar[Intelligroup]4-Aug-06 1:33
kiran kumar[Intelligroup]4-Aug-06 1:33 
AnswerRe: openning the form in placeholder in vb.net asp.net Pin
l0kke4-Aug-06 3:43
l0kke4-Aug-06 3:43 
QuestionError 40 Pin
Jijo BP3-Aug-06 22:07
Jijo BP3-Aug-06 22:07 
AnswerRe: Error 40 Pin
coolestCoder3-Aug-06 23:28
coolestCoder3-Aug-06 23:28 
GeneralRe: Error 40 Pin
Jijo BP4-Aug-06 2:00
Jijo BP4-Aug-06 2:00 
Questionconvert string[] to Guid[] Pin
mbbisht3-Aug-06 20:55
mbbisht3-Aug-06 20:55 
AnswerRe: convert string[] to Guid[] Pin
minhpc_bk4-Aug-06 0:02
minhpc_bk4-Aug-06 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.