o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Server SIde Validation Issue -

Hello,

I have several client side validation controls that cause an error message to be displayed in the validation summary control.

For one control, custom control, I am required to do SERVER SIDE VALIDATION.

I have the follwing code:

Code:
protected void  validatePass_ServerValidate(object source, ServerValidateEventArgs args)
{
    if (txtPass.Text != "Mohit")
    { validatePass.IsValid = false;
    validatePass.ErrorMessage = "Wrong Password!";
    }
    else validatePass.IsValid = true;

}
When I enter the wrong password though I do not see the custom control generate any error message and I do not see any error message in the summary control either.

Any assisatance would be appreciated.

 

disable server-side validation -
Hi. I would like to know if you can turn off server-side validation for validation controls. I read on the MS website that it is true, but I can't find any examples. I know that for the CustomValidator control you can just omit the OnServerValidate property, but what about the other va


Server Side Validation -
Hello, I have made a custom control for a text field. I have to do server side validation for it. I just want it to see if a password equals a given value, if not validation should fail. Can someone provide me with some pseudo script as I am new to ASP.NET. Thanks.


[2005] Force server validation -
I've got some server-side validation that I'm having trouble getting to fire. I have a textbox, a RequiredFieldValidator, a RegularExpressionValidator, and a CustomValidator. The RegularExpressionValidator and RequiredFieldValidator work just fine. My form does not get processed if


validation on a user control when clicking a button on different user control -
Hi, I am maintaining page where a user control is initialized dynamically. The user control UC1 has a customvalidator using server side validation. When the postback is caused by a button inside the user control UC1 causes the postback, the customvalidator works fine and I get m


help me in server side validation please -
hi, i have 5 textboxes in my form. i am using asp:textbox.so in first textbox i want to type only numbers,in second textbox i want to type only alphabets and in third email validation.so please give me coding and idea to do in server side pleaseeeeee


Server SIde Validation Issue -
Hello, I have several client side validation controls that cause an error message to be displayed in the validation summary control. For one control, custom control, I am required to do SERVER SIDE VALIDATION. I have the follwing code: Code: protected void validatePas


How to avoid a potentially dangerous client input value -
Hi ! I have some doubts about this subject. 1. Now I only use javascript client side form validation. I need to use always server validation ? 2. Is it a recommended practice of using server validation with javascript code and regular expressions? 3. Is it better to maint


Which is the best method of Validating in web applicaiton... -
Hi all, Basically i am windows Programmer means working only desktop application. so entirely new to the web application. I have a basic idea about that. Can any one tell me how to handle the validation part in the web application (Asp.NET) like Client side validation using java scr


Button enabling during validation -
(This question is a combination of ASP.Net (VS 2003) and javascript. The code in question is mostly javacript.) If I'm not clear initially, please let me know. This is a little beyond me, and I'm having trouble trying to firgure out where to start. What I have is a webform th


Validation Help.. -
I have a problem, it is I need to validate a Textbox so that it accepts only the numeric value. In ASP I had used client validation for that. In .NET please help me to achive the same. Also let me know both the ways to achive this i.e., from client side as well as from server side and


Validation in client side -
Hello All I am new to ASP.Net. I am using VS2005. I have designed a data entry form. I want to do validations for some of the controls. I want to do the validation check at client side. If i click on the Save Button it should validate the fields at client and if it is error free, it h


Datagrid client-side validation -
My aspx page contains a datagrid, which is editable. The client would like to do all datagrid (individual cells) validation client-side, rather than server-side. Does anyone have an example of this using the datagrid? Thanks


Issue with client-server app -
Ok this may seem wierd but I have a client server app( not that part). The Server side of it is written in VB6. I am converting the code of the client side over to VB.Net. I am just about done with it. They were using Winsock to talk to each other. Is it possible for me to get the Sock


Finally Finished! -
I finally finished my custom control in .NET. Overview: 1) It's a textbox that allows for a RequiredField Validator or Custom Validator or both. 2) It has custom nested properties (Like the Font property) for the RequiredField Validator and Custom Validator to set the various pr


Validating datagrid -
I'm editing records in a datagrid (one at a time). Everytings works fine, but now I have to validate the input of the user. First of all you have the client-side : I tried the validation controls on the datagrid template columns. This worked, but the grid turned out extremly ug


[2005] Client side validation...GONE -
Client side validation has stopped working on my localhost. I've noticed that C:\inetpub\wwwroot\aspnet_client\2_0_50727 is empty unlike it's 1.1 equivalent. I've tried running aspnet_reg.exe -i again. And I've looked for WebUIValidation.js in C:\windows\asp.... to no avail.


CustomValidator Question -
Is it possible to use the CustomValidator on the client side? Also can you make server side validation pop up the messagebox?


Newbie SQL Server question -
Hi all, I am about to convert a VB app using Access to SQL server. The app uses a split db ie. a client side db and a server side db. My question relates the the client side db. If this is converted to SQL server db, the client machine should have the required files to run the


Validation control in asp.net -
i am new to asp.net i have few fundamental doubts. Please clarify these doubts and help me to solve the problems. 1.i want validation has to happen in client side for that i make validator controls Enable Client Script to true.By making this property to true is it really happened


Advise on validation techniques -
Im writing a white paper for my company about how to handle page validations in asp.net pages. Our problem is that we don't have a common strategy for handling validations... some devs use server based validation methods, some use the built in client side validations. Which do YOU u


Need a Server page to e-mail me -
Im strictly a client side developer but now Im doing something personal. So I need to do a server side function. Basically, all I need to do is take the info from the submited form and mail it to my e-mail address. I dont need any validation cause Im gonna do all that client side and n


Validation Control Question -
I am using a Validation control to check if a user has entered in a date in a textbox. the issue I am having is that when I click the edit button the validation control fires before the user gets a chance to see the data. Is there a way to make the validation control not fire again


ASP.NET client processing vs server processing -
Hi, all, Just a opinion question for you guys. Should I make all my contols (buttons, text boxes, etc.) in my asp.net app server side controls or does it make sense to have a combination of both server side and client side? Reason I ask is that I was reading one book in with the a


submit button problems -
How can I have a form on an ASP page that when submited preforms a client side form validation javascript and inside the java script call a server side vbscript then if the vbscript is successful go back to the javascript. Thank you


national product..tiered up -
Writing a fairly complex application ( a new one ) that will be rolled out to clients in europe, mexico, and the us. My previous application didn't make much use of a db class or dll's for that matter. I want to take that route and ensure a robust system on this next project. I


client side form validation w/javascript on a ASP page -
howdy, I want to verify that a user has entered numbers into a form using javascript before the page is sent back to the server. any suggestion on how to do this? I can do the asp page and the form validation page(one asp,one html w/javascript) but I can't combine the two. I will


Cursor vanishing at random when tabbing -
I've just been asked to look at an app where the cursor vanishes intermitantly when tabbing through text fields. If I tab straight through the form there's no problem. However, if I change a field and then tab sometimes the cursor vanishes, and sometimes it is okay. This is particu


SQL-Server Validation Text -
Hello Everybody, How (if it is possible) can i write a validation text like in Access? I know that i can use constraint expression but i also want to send error message if there was no validation. Thank you in advance, ERAN


probelem regarding validation on my ASPX form. -
Dear friends, I have a probelem regarding validation on my ASPX form. All the controls used are server side (runat=server attribute) I have used RequiredFieldValidator to check empty fields.At the same time i have aslo used a javascrript on Button click(Butoon is also server s


Javascript form validation in aspx page -
Can anyone tell me how I can perfor client side validation in javascript on a form in an aspx page. All the scripts I use to use in classic asp dont seem to stop the submision of the form. Is this because of the runat="server" in the form tag ? Any ideas, urls e.t.c wo


fouriers law -
I see no one wants to help me with my programming issue :P. Maybe u can help with this. If u got square plate, three isothermal side. The other side has fluid at some temperature interacting with that side. Q(rate) = h(transfer coeff)*A*(delta T) If u take the average te


asp.net validation not work -
asp.net validation work in my localhost but we i uploaded my web sit on server by ftp acount the validation not work how can i make it work by using ft Account because i cann't make any change in the server setting


How i register ocx at client side -
i have created on ocx control using vb6. And i have registered this at server side. it works fine at server side. but when i called same at client side. it wont work why? Can you help me?


Question on validation controls. -
Hi, I have a textbox control, and below two validation controls. Textbox validation control1 validation control2 One validation control requires text and the other uses a reg expresion. The thing is that, if it´s only the second validation control that fires off, a space


DSN or ODBC web pages -
I am new to ODBC and DSN. Can anyon explain the two? I am developing a web page and need to connect to a access database. This is for our intranet where many users will be accessing. What is the best way of connecting to the database? Can you provide the sytax? I am not too sure


How do I post formdata into a database (server -side) -
If I have an HTML form that I have created, how do I post the formdata into a sever side database? The form has no validation BTW.


NDS validation -
I posted before about domain validation but now they tell me that I will need NDS validation instead. Does anyone know of APIs that will perform NDS validation of a Username and Password?


Server Side Code dependent on JavaScript -
Is there a way I can launch a Server Side function from JavaScript? On a Button Click, I am using JavaScript to print to current page. When the print has been sent, I want to run a Server Side Function to update a record (which also changes the screen so I have to wait until it prin


PWS (no, not PMS) Does it really work -
The company I work for does not do any significant Web development. Anxious to learn the technology, I loaded Personal Web Server on my home machine (NT WORKSTATION). It loads OK, but it seems somewhat simplistic, and appears to have a lot of bugs (it hangs a lot). While I can get it t


how to register an active x control in framework as server side control. -
i m making a simple Webusercontrol in C# in which i added some server side webforms control. in my form i want to Add a DT Picker control which is as an OCX ( MSCOMCTL32.OCX ) i.e. Windows Common control so i select it in Add Component and add it in Web Froms , it comes on web user con