calendaer date settings

Posted by Raghuldrag under ASP.NET on 3/27/2013 | Points: 10 | Views : 683 | Status : [Member] | Replies : 4
Hai freinds,
I my application preparing daywise activites enitre month of students(performance of that month for student)
my aspcode:
Date(calender)
name(text)
class(dropdown)
performance(text)
activity(text)

add(submit)

my doubt is Ravi is my student i m inserting is performance for feb month,so i started the calender choose feb1 name,class,performance,activities after fill all details click add buttons means calender automaticly ll show the next day
how to make code in c# or asp.net
tell me




Responses

Posted by: aswinialuri-19361 on: 3/27/2013 [Member] Starter | Points: 25

Up
0
Down
hi
you will use day render event
on that you willuse like this
if (e.Day.DayNumberText.ToString()=="25")
{
e.Cell.Attributes.Add("onclick", "javascript:alert('today is my birth day')");
}
Thanks&Regards


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jitendrasoft09 on: 3/27/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
There are following code working fine as expected requirement.

Calendar1.SelectedDate.AddDays(1);
Calendar1.VisibleDate = Calendar1.SelectedDate.AddDays(1);
Calendar1.SelectedDate = Calendar1.SelectedDate.AddDays(1);


Jitendra Kumar
If my post helps you, plz mark as an answer.

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raghuldrag on: 3/27/2013 [Member] Starter | Points: 25

Up
0
Down
hai friends,
if suppose i m used jquery date picker how to add 1 day from selected date


$(function() {
$("#txtDeDate").datepicker();


});

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sriramnandha on: 5/12/2013 [Member] Starter | Points: 25

Up
0
Down
protected void Btn_Submit_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(contour);
DateTime startdate = Convert.ToDateTime(TextBox_startdate.Text);
string inserttour = "insert into tourprogram(startdate,fromplace,toplace)values('" + startdate + "','" + TextBox_fromplace.Text + "','" + TextBox_toplace.Text + "')";

con.Open();
SqlCommand cmd = new SqlCommand(inserttour, con);
cmd.ExecuteNonQuery();
con.Close();
showgrid();

}

sriram

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response