|#355750 Author: Rajapandian Member Level: Gold Member Rank: 234 Date: 13/Mar/2009 Rating: Points: 2|
In aspx page before that textbox add below line.
<em id="mandatory" style="color:Red">*</em>
|#355752 Author: Shreekumar Member Level: Gold Member Rank: 0 Date: 13/Mar/2009 Rating: Points: 2|
Here's the code for .aspx file
< asp:TextBox ID="YourId" runat="server" > < /asp:TextBox >
< span style="color: red" > * < /span >
Shreekumar. S. S
Hobby web developer
Specialized in ASP.Net 2.0, SQL Server 2000, C#, AJAX
|#355766 Author: Babu Akkandi Member Level: Gold Member Rank: 54 Date: 14/Mar/2009 Rating: Points: 2|
this is another way to implement,
place Requirefield validator control next to the each Textbox which are all mantatory,
set following property in Requirefield validator control, thru property window(F4)
errormessage = "*"
controltovalidate = textboxname
when you submit the value, if the value is missed in the text box, then it will display "*" in red color, as you expects.
Hope it Helps!
Note: Plz rate this answer, if it helped you!!
Thanks and Regards,