473,379 Members | 1,260 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

RequiredFieldValidator question

Vic
Hi all.

Is is possible to somehow connect a RequiredFieldValidator to an image, so
instead of the RequiredFieldValidator's text, an image would appear?

Thanks in advance.
Nov 17 '05 #1
3 962
Vic wrote:
Hi all.

Is is possible to somehow connect a RequiredFieldValidator to an image, so
instead of the RequiredFieldValidator's text, an image would appear?

Thanks in advance.

I believe you can. I've used <BR> and <B> tags in the ErrorMessage
before, but that was in 1.0. Don't know if 1.1 changed that at all,
wouldn't expect it to....

Try using the <img> tag in the ErrorMessage and see what happens....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 17 '05 #2
Vic
Thanks for your help -- it seems to work.

"Craig Deelsnyder" <cdeelsny@SPAM_BE_GONEyahoo.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl...
Vic wrote:
Hi all.

Is is possible to somehow connect a RequiredFieldValidator to an image, so instead of the RequiredFieldValidator's text, an image would appear?

Thanks in advance.

I believe you can. I've used <BR> and <B> tags in the ErrorMessage
before, but that was in 1.0. Don't know if 1.1 changed that at all,
wouldn't expect it to....

Try using the <img> tag in the ErrorMessage and see what happens....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 17 '05 #3
Vic
Thanks for your help -- it seems to work.

"Craig Deelsnyder" <cdeelsny@SPAM_BE_GONEyahoo.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl...
Vic wrote:
Hi all.

Is is possible to somehow connect a RequiredFieldValidator to an image, so instead of the RequiredFieldValidator's text, an image would appear?

Thanks in advance.

I believe you can. I've used <BR> and <B> tags in the ErrorMessage
before, but that was in 1.0. Don't know if 1.1 changed that at all,
wouldn't expect it to....

Try using the <img> tag in the ErrorMessage and see what happens....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: BK | last post by:
I'm having a really strange problem with and HtmlSelect server control (listbox) and a RequiredFieldValidator that I am trying to use to make sure that someone has items in the listbox. The way...
3
by: Navin | last post by:
Hello friends... On a single asp.net web page i have a single server-side form that contains a couple of user-controls. Each user control has its own functionality and contains server-side textbox...
0
by: Nicolas | last post by:
How can I have only one RequiredFieldValidator to control two TextBox webcontrols so that only one message is displayed <asp:Label id="lbl_UserName" runat="server"></asp:Label><br> <asp:TextBox...
3
by: me | last post by:
Is there any particular reason why a requiredfieldvalidator cant validate a listbox? I have bound the two together but the validator always returns false on isvalid and so does the Page, no matter...
4
by: James | last post by:
Hello, I have a RequiredFieldValidator for several textbox controls on a form. Here's an example with the RequiredFieldValidator. EnableClientScript, Enabled, and Visible are set to true for...
2
by: Fluxray | last post by:
--Background: I have a webform including a datagrid. The datagrid is using template. Its ItemTemplate is used to display a look-up-table with labels. its EditItemTemplate is used to edit a row in...
4
by: Joe | last post by:
Hello, I have created a login page using dotnet. I am using requiredFieldValidator and noticed that the code works fine in IE but not in Netscape, Opera, Mozilla, Firefox, etc. For example...
5
by: Fernando Lopes | last post by:
Hi. I want to show an image in a requiredfield validator instead of "*". So, I 'm set the requiredfieldvalidator attributes like following: <asp:RequiredFieldValidator id=rfvFirstName...
1
by: dotnetjose | last post by:
Hi Folks, I Have a simple page that looks something like this: Please enter your Email address: <RequiredFieldValidator with ErrorMessage: "Required *"> <TEXBOX> <BUTTON>
2
by: Christina | last post by:
Hello !! I am creating a dynamic textbox and want to validate it using the requiredfieldvalidator. These are the steps which I tried: ==================================================== 1)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.