Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerUse Javascript to Open MS-Word Pin
David Mujica8-May-09 4:38
David Mujica8-May-09 4:38 
GeneralRe: Use Javascript to Open MS-Word Pin
dptalt8-May-09 5:18
dptalt8-May-09 5:18 
GeneralRe: Use Javascript to Open MS-Word Pin
David Mujica8-May-09 6:00
David Mujica8-May-09 6:00 
GeneralRe: Use Javascript to Open MS-Word Pin
dptalt8-May-09 6:57
dptalt8-May-09 6:57 
GeneralRe: Use Javascript to Open MS-Word Pin
David Mujica8-May-09 9:42
David Mujica8-May-09 9:42 
QuestionSame look for the ReportViewer control on different browsers Pin
0x000013378-May-09 3:57
0x000013378-May-09 3:57 
Questionvalidation controls [modified] Pin
sritha8-May-09 2:50
sritha8-May-09 2:50 
AnswerRe: validation controls Pin
Vimalsoft(Pty) Ltd8-May-09 3:27
professionalVimalsoft(Pty) Ltd8-May-09 3:27 
Good Afternoon sritha

This can be done in the Following way. On the SelectionChanged event of your calender control enter the following code

protected void Calendar2_SelectionChanged(object sender, EventArgs e)
  {
      txtdateofjoin.Text =Calendar1.SelectedDate.ToShortDateString();
  }
  protected void Calendar1_SelectionChanged1(object sender, EventArgs e)
  {
      txtdateofbirth.Text = Calendar1.SelectedDate.ToShortDateString();
  }


This is for diffent textboxes and drop a "CompareValidator" control from the Validation section of your toolbox and right clikc on it and go to Properties. Please Change the Properties to be exactly as i will show you now

Control To Compare: -->txtdateofbirth
Control To Validate:-->txtdateofjoin
Error Message:-->Date of Join must be Greater than Date of birth
Operator:-->GreaterThan

Well to Test this i had to attempt a postback, so i but a button and never wrote any code for it, and i ran my page and input the dates so that the date of join is equal to the date of birth and i got that Error message in the Error message Property.

This is how we do it in Asp.net without using any javascript.


Kind Regards


Vuyiswa Maseko

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: validation controls Pin
RyanMorris8-May-09 3:33
RyanMorris8-May-09 3:33 
Questiongetting page data on different page of different website....!!! Pin
shail nautiyal8-May-09 2:42
shail nautiyal8-May-09 2:42 
AnswerRe: getting page data on different page of different website....!!! Pin
Abhijit Jana8-May-09 3:13
professionalAbhijit Jana8-May-09 3:13 
QuestionHow can i know whether the string is bold or italic or normal Pin
Satish - Developer8-May-09 1:28
Satish - Developer8-May-09 1:28 
AnswerRe: How can i know whether the string is bold or italic or normal Pin
Abhijit Jana8-May-09 1:44
professionalAbhijit Jana8-May-09 1:44 
GeneralRe: How can i know whether the string is bold or italic or normal Pin
Satish - Developer8-May-09 1:53
Satish - Developer8-May-09 1:53 
GeneralRe: How can i know whether the string is bold or italic or normal Pin
Abhijit Jana8-May-09 2:39
professionalAbhijit Jana8-May-09 2:39 
GeneralRe: How can i know whether the string is bold or italic or normal Pin
Satish - Developer8-May-09 2:41
Satish - Developer8-May-09 2:41 
GeneralRe: How can i know whether the string is bold or italic or normal Pin
Abhijit Jana8-May-09 2:53
professionalAbhijit Jana8-May-09 2:53 
Questionstore a value in class file and get all other class in c# net asp.net Pin
vnsraj8-May-09 1:17
vnsraj8-May-09 1:17 
AnswerRe: store a value in class file and get all other class in c# net asp.net [modified] Pin
Abhijit Jana8-May-09 1:27
professionalAbhijit Jana8-May-09 1:27 
Questiongridview Pin
trimandir prajapati8-May-09 1:10
trimandir prajapati8-May-09 1:10 
AnswerRe: gridview Pin
Abhijit Jana8-May-09 1:22
professionalAbhijit Jana8-May-09 1:22 
Questionreading data from serial port Pin
nikhil12348-May-09 0:40
nikhil12348-May-09 0:40 
AnswerRe: reading data from serial port Pin
Abhijit Jana8-May-09 1:02
professionalAbhijit Jana8-May-09 1:02 
Questionlatest software for dotnet platform Pin
vnsraj8-May-09 0:35
vnsraj8-May-09 0:35 
AnswerRe: latest software for dotnet platform Pin
Ashfield8-May-09 1:23
Ashfield8-May-09 1:23 

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.