Click here to Skip to main content
15,921,989 members
Home / Discussions / C#
   

C#

 
AnswerRe: char [ ] to float? Pin
enjoycrack22-Sep-05 20:32
enjoycrack22-Sep-05 20:32 
Questionhow to get variable name. (for lmoelleb) Pin
ab.hamad22-Sep-05 18:56
ab.hamad22-Sep-05 18:56 
Questionhow to install Pin
Rajganga22-Sep-05 18:43
Rajganga22-Sep-05 18:43 
AnswerRe: how to install Pin
sreejith ss nair22-Sep-05 19:02
sreejith ss nair22-Sep-05 19:02 
AnswerRe: how to install Pin
23-Sep-05 8:33
suss23-Sep-05 8:33 
Questionsimple webform validation not able to do Pin
jyothi_pradeep_satyam_corp22-Sep-05 18:12
jyothi_pradeep_satyam_corp22-Sep-05 18:12 
AnswerRe: simple webform validation not able to do Pin
sreejith ss nair22-Sep-05 18:54
sreejith ss nair22-Sep-05 18:54 
GeneralRe: simple webform validation not able to do Pin
jyothi_pradeep_satyam_corp23-Sep-05 18:02
jyothi_pradeep_satyam_corp23-Sep-05 18:02 
//textboxes:txtStartDate,txtCurDate,txtEndDate
//ImageButtons:2(one for start date,oth end date)
//Calendar Controls:2(corr to each image button)
//Compare validators:2
//cmpv1:start date>current date
//cmpv2:end date>start date
//made displays of cmpvs none
//used validation summary
//the pbm i mentioned at the end
private void Page_Load(object sender, System.EventArgs e)
{ txtCurDate.Text=System.DateTime.Now.ToShortDateString();
Calendar1.Visible=false;
Calendar2.Visible=false;

}

override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Button2.Click += new System.EventHandler(this.Button2_Click);
this.Calendar1.SelectionChanged += new System.EventHandler(this.Calendar1_SelectionChanged);
this.Calendar2.SelectionChanged += new System.EventHandler(this.Calendar2_SelectionChanged);
this.ImageButton1.Click += new System.Web.UI.ImageClickEventHandler(this.ImageButton1_Click);
this.ImageButton2.Click += new System.Web.UI.ImageClickEventHandler(this.ImageButton2_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
Calendar1.Visible=true;
}

private void ImageButton2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
Calendar2.Visible=true;
}

private void Calendar2_SelectionChanged(object sender, System.EventArgs e)
{
txtEndDate.Text=Calendar2.SelectedDate.ToShortDateString();
}

private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
{
txtStartDate.Text=Calendar1.SelectedDate.ToShortDateString();
}

private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write("form submitted");
}

private void Button2_Click(object sender, System.EventArgs e)
{
txtCurDate.Text="";
txtStartDate.Text="";
txtEndDate.Text="";
}
// i think this would be more clear
//on validation if it is invalid,all the buttons //won't be working b'coz of validation
//but i want my cal ctrls to be hidden
//and to be displayed on click of a button or //doing sth else
// i know this is agnst the basics but is there any //sol

jyothipradeep
GeneralRe: simple webform validation not able to do Pin
jyothi_pradeep_satyam_corp23-Sep-05 18:04
jyothi_pradeep_satyam_corp23-Sep-05 18:04 
GeneralRe: simple webform validation not able to do Pin
jyothi_pradeep_satyam_corp23-Sep-05 18:06
jyothi_pradeep_satyam_corp23-Sep-05 18:06 
QuestionWay to access class member Pin
Libra22-Sep-05 17:38
Libra22-Sep-05 17:38 
AnswerRe: Way to access class member Pin
Luis Alonso Ramos22-Sep-05 18:04
Luis Alonso Ramos22-Sep-05 18:04 
AnswerRe: Way to access class member Pin
sreejith ss nair22-Sep-05 19:47
sreejith ss nair22-Sep-05 19:47 
Questionlistbox iterating Pin
Pyro Joe22-Sep-05 15:24
Pyro Joe22-Sep-05 15:24 
AnswerRe: listbox iterating Pin
Christian Graus22-Sep-05 16:01
protectorChristian Graus22-Sep-05 16:01 
Question[Message Deleted] Pin
levi's22-Sep-05 15:19
levi's22-Sep-05 15:19 
AnswerRe: convert from byte [ ] to char Pin
Christian Graus22-Sep-05 16:04
protectorChristian Graus22-Sep-05 16:04 
QuestionIntPtr to evenlogentry icon Pin
g00fyman22-Sep-05 14:46
g00fyman22-Sep-05 14:46 
QuestionADO to ADO.net question Pin
Steve Messer22-Sep-05 9:43
Steve Messer22-Sep-05 9:43 
QuestionDataGridView Focus Pin
Drew McGhie22-Sep-05 9:29
Drew McGhie22-Sep-05 9:29 
AnswerRe: DataGridView Focus Pin
seee sharp22-Sep-05 17:53
seee sharp22-Sep-05 17:53 
AnswerRe: DataGridView Focus Pin
EKJDBA22-Sep-05 21:09
EKJDBA22-Sep-05 21:09 
QuestionReading a string line by line? Pin
Red_Wizard_Shot_The_Food22-Sep-05 8:32
Red_Wizard_Shot_The_Food22-Sep-05 8:32 
AnswerRe: Reading a string line by line? Pin
Guffa22-Sep-05 8:36
Guffa22-Sep-05 8:36 
AnswerRe: Reading a string line by line? Pin
Heath Stewart22-Sep-05 8:37
protectorHeath Stewart22-Sep-05 8:37 

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.