473,769 Members | 8,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validator does'nt work!

Hello,

Here is my file input field:
<INPUT id="ImageFileUp load" style="WIDTH: 353px" type="file"
name="XmlFileUp load" runat="server" width="300" cssclass="Norma lTextBox">

Here is my validator:
<asp:RequiredFi eldValidator Display="Static " id="RequiredSrc " runat="server"
ControlToValida te="ImageFileUp load" CssClass="Norma lRed" />

I select a file and the validator comes with the error messeage.
Why??? It only should do the when there is no file selected!

Can somebody help me?

Thanks!
Nov 17 '05 #1
1 1300
I believe

<asp:RequiredFi eldValidator

will only work with an

<asp:TextBox

and not your HTML <Input

This is also because you can use the validator in code-behind.

-Leeor

"Arjen" <bo*****@hotmai l.com> wrote in message
news:bg******** **@news2.tilbu1 .nb.home.nl...
Hello,

Here is my file input field:
<INPUT id="ImageFileUp load" style="WIDTH: 353px" type="file"
name="XmlFileUp load" runat="server" width="300" cssclass="Norma lTextBox">

Here is my validator:
<asp:RequiredFi eldValidator Display="Static " id="RequiredSrc " runat="server" ControlToValida te="ImageFileUp load" CssClass="Norma lRed" />

I select a file and the validator comes with the error messeage.
Why??? It only should do the when there is no file selected!

Can somebody help me?

Thanks!

Nov 17 '05 #2

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

Similar topics

23
5685
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've reduced my form request to a simple text string entry, instead of my desired optional parameters. As i have been stuck with a single unfathomable glitch for over a year. Basically, if i enter queries such as ; "select * from table" "select * from...
3
4072
by: cv | last post by:
Hello All, I have used MultipartRequest like the following to upload images. MultipartRequest multi = new MultipartRequest(request, "../webapps/coreprogram/dealerlogos", 1024 * 1024); It works fine. But When a user accesses through Internet, this does not work.
10
2319
by: Nick L | last post by:
I'm working on a function which creates a pointers to an array of unsigned ints based off a number read from a file. I then continue to read file names from the file, convert the name to a char* and use it to load an texture from some outside functions. My problem lies in the "for loop", the Code goes as follows. //I create the array of pointers, I'm using 2 just for the sake of an example MapTextures = new unsigned int;
4
4502
by: Field | last post by:
Hi, the following snippet shows once executed this output: 2 2 I'd have rather expected this output: 2 10
2
1214
by: Raghu Raman | last post by:
Hi , am storing the session id in my database when the user signs in.The session_on start is firing nice & am doing my DB operations there & quite working good. But when the user closes the web browser(by clicking the x button) suddenly , i need to delete the particular session id from my DB.But the session_onend doesn't fire.
2
2352
by: lotus | last post by:
HI All.. I'm realtively new to C#. I have MainForm which includes Parent usercontol, and this parent usercontrol also contains child usercontrol. MainForm --> Parent usercontrol --> child usercontrol Parent usercontol has one button to change the child usercontorl's variable.
11
3392
by: Jim | last post by:
Hi, I want to schedule a Python program that reads the command line for input. However, when adding an argument to the command line Python will not pick it up when using Windows scheduled tasks. How do I get it to work? Thanks, Jim
3
1600
by: suvarna1026 | last post by:
Hi,I got traped about an unknown error. I have made HttpUpload Component(OCX) in VB6.0.It is working fine only when I give break point in my application(I mean I can upload file on server only when there is break point in app,otherwise not).Any one knows why so?I tried to give time delay,by inserting for loop,bt it does'nt worked.
4
1597
matheussousuke
by: matheussousuke | last post by:
Hi, I have just uploaded a website to server, it's working fine, at least for one thing, if login to it on my computer (localhost) the login works fine, but if I do the same on webserver, it doesn't work, why? I mean, I already checked user name and password on phpmyadmin from webserver, but if I use it, that doesn't works? May someone help me, please?
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.