473,625 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CustomValidatio n Control

I have a drop down list in my asp page. when I selectg an irem and click on
a button it appears in the Grid view. But when I again come to the same page
and click on the same item from Drop down list it and click on button it
again add the same item onin the Grid view. So I need some validatiobn that
if this item appears in Grid view Don't add in the Grid view. I can use
customValidatio n contro. But I don't know how to use it.
Sep 12 '07 #1
1 1303
Hi bobby,

you should design your page more user friendly. Your drop down list
shouldn't contain items already added to grid view. You can easyly achieve
this in datasource for your drop down list. If content for your drop down
list is defined directly in page you should use handler of grid view's
RowDataBound event to remove items from drop down list.

This is easyer to implement then checking grid view content in custom
validator.

Best regards,
Ladislav

"bobby" wrote:
I have a drop down list in my asp page. when I selectg an irem and click on
a button it appears in the Grid view. But when I again come to the same page
and click on the same item from Drop down list it and click on button it
again add the same item onin the Grid view. So I need some validatiobn that
if this item appears in Grid view Don't add in the Grid view. I can use
customValidatio n contro. But I don't know how to use it.
Sep 13 '07 #2

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

Similar topics

2
1202
by: rodchar | last post by:
hey all, I'm not sure if this is even possible but here goes: if i put a CustomValidator control in my EditItem template column how do i get to it? Or how and where do i write my custom code for the customvalidation control? thanks, rodchar
2
2931
by: kpg | last post by:
Hi all, This should be simple... I have a TextBox1 and a customvalidation control linked to it. I use a client side script to validate the textbox. If the data is not valid I want to return focus to the textbox. I tried document.GetElementByID("TextBox1").focus(); and doucment.Form1.TextBox1.focus(); to no avail.
1
1254
by: zlusca | last post by:
Hi, guys I have asp.net form contain several textbox controls and one field is userName I want to validate this field to make sure there is no other user have the same userName before saving. so I create a customValidator to do that. The strange thing is that customValidator never fired the validation event. Here is the code: in aspx file the control is:
5
4152
by: gane kol | last post by:
Hi I have a set of Yes/No radio buttons with textboxes for each. I need to write a common customvalidation function that checks, if radiobutton "yes" is selected, the value in the corresponding textbox should be greater than 0. For eg: IsVM Qty: <radX0Yes> YES <radX0No> NO Qty: <txt00> IsVM1 Qty: <radX1Yes> YES <radX1Yes> NO Qty: <txt11>
1
1486
by: SAI | last post by:
Should I bind one of the controls to the CustomValidation Object? e.g. bind text box to it. In some cases, I may need to check 2 web object contents. How to do it in one CustomValidation Object? I tried to bind a text box to CustomValidation Object and set the Client Validation to TRUE. Then I write a javascript to validate. It is no any action about the checking. Any suggestion? thanks.
2
4915
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
15
6505
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
1
1387
by: Craig Buchanan | last post by:
I have a Web User Control (.ascx file) that I need to valid using a CustomValidation control. Moreover, I would like use client and server validation, if possible. I have the logic for the server-side validation working correctly. I also have the have the client-side validation working once the control is embedded in a page. I would like to move the validation from the aspx page to the ascx page, but I'm concerned that the...
2
1706
JustRun
by: JustRun | last post by:
Hi, I'm developing a web application using ASP.NET2.0 with C#, I have tried to use custom validation controls to validate my forms, it worked very well in the English language , but when i test it with Arabic it didn't cause the validator consider the Arabic characters as Special Characters (. - ' " ...) which i prevent them in my forms. Is there any idea to make the validation control work with both, English and any other Unicode Language...
0
8253
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
8189
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8692
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
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...
0
8497
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4192
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
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
1499
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.