CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/13/2007 12:43:47 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
jptrue
Asp.Net User
TreeView not Causing Validation3/13/2007 12:43:47 PM

0/0

Hello,

I have a web form with a TreeView and a DetailsView. The DetailsView contains Textboxes with Validation controls associated with them. Validation works for the 'save', 'edit' and 'cancel' Buttons on the DetailsView control (or any other control on the page for that matter), however, the TreeNodes of the TreeView do not cause validation.

How do I get the TreeView and/or TreeNodes to cause validation? 

Any hints would be greatly appreciated.

 

Thanks,

Jeff 

Zhao Ji Ma - MS
Asp.Net User
Re: TreeView not Causing Validation3/16/2007 3:12:02 AM

0/0

Hi,

I'm not sure if I follow you. Do you want the TreeView to trigger the validation. For example, the asp.net web application starts to validate your textbox only when one of the TreeNode is clicked?

 


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
jptrue
Asp.Net User
Re: TreeView not Causing Validation3/16/2007 7:08:46 PM

0/0

Thanks for the reply Zhao,

Let me try to specify. The DetailsView has TextBoxes with Required Field Validation Controls.
If I try to save the data in the DetailsView without completing a field, a javascript popup window says,"You forgot to enter a required field" and the ValidationSummary on the page will be populated with a list of required fields not entered.
In addition, every other control on the page (with the exception of the TreeView control) will cause the javascript popup and ValidationSummary to show if all of the fields are not completed.
It's seem as thought the TreeView control should have a CausesValidation property, but it does not.

I hope this clarifies.
Thanks,
Jeff

Axam
Asp.Net User
Re: TreeView not Causing Validation8/20/2007 7:28:28 PM

0/0

 I too just ran into this problem. My page is divided into 2 section, one with the treeview and the other with fields pertinent to the selected item in the treeview. As it stands Treeview does not have a causes validation attribute which allows users to navigate to another node and leave invalid information for the node they were previously on.

jptrue
Asp.Net User
Re: TreeView not Causing Validation8/21/2007 5:41:39 PM

0/0

I haven't found a satisfactory solution yet.

Let me know if you find anything.

 

Thanks,
Jeff

Axam
Asp.Net User
Re: TreeView not Causing Validation8/21/2007 8:44:03 PM

0/0

 What I've resorted to doing is adding a button with the text "Apply" to the page. This way users may select an item in the treeview, enter information in the available fields and then click apply to save the changes. If the user selects another item in the treeview without first clicking apply, I'm notifying the user that the information they changed has been discarded.
 

While this is by no means a solution to the problem as it involves an extra click from the user and an extra post back, it's what I've had to resort to in the mean time.

 

6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
XSLT 2.0 Programmer's Reference Authors: Michael Kay, Pages: 960, Published: 2004
Pro VB 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1377, Published: 2008
Pro VB 2005 and the .Net 2.0 Platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More Authors: John Viega, Matt Messier, Pages: 762, Published: 2003
Hacker's Challenge 2: Test Your Network Security & Forensic Skills Authors: Mike Schiffman, Bill Pennington, David Pollino, Adam O'Donnell, Pages: 322, Published: 2003
Data Entry and Validation with C# and VB .NET Windows Forms Authors: Nick Symmonds, Pages: 768, Published: 2003
Sams Teach Yourself More Visual Basic .NET in 21 Days Authors: Lowell Mauer, Pages: 608, Published: 2001
Beginning Visual Web Programming in VB .NET: From Novice to Professional Authors: Daniel Cazzulino, Craig Bowes, Victor Garcia Aprea, Mike Clark, James Greenwood, Chris Hart, Pages: 648, Published: 2005
Service-oriented Architecture: A Field Guide to Integrating XML and Web Services Authors: Thomas Erl, Pages: 560, Published: 2004
Usability Evaluation and Interface Design: Cognitive Engineering, Intelligent Agents, and Virtual Reality, Volume 1 Authors: Michael James Smith, Pages: 1592, Published: 2001

Web:
TreeView not Causing Validation - ASP.NET Forums TreeView not Causing Validation. Last post 08-21-2007 4:44 PM by Axam. 5 replies . Sort Posts:. Oldest to newest, Newest to oldest ...
Rad toolbar with cause validation property - telerik Forum I keep cause validation property of Cancel button as False. When i click on Cancel button the selected value property of combobox is not ...
InstEd It! - Release Notes Bug Fix: Specifying recursive hierarchies in the Directory table will not cause infinite loops. Bug Fix: Tables treeview performs a single draw of the node ...
CodeProject: Enhancing TreeView: Customizing LabelEdit. Free ... Input validation. Another thing that is nice to have in a TreeView control .... Interestingly, it does not cause any "nasty" visual effects and works pretty ...
TreeView Support Validation of tree configuration files could be done outside the browser by .... Do not do this test on a remote server. A common cause of the problem you ...
MSDN Visual Studio Team System - Web and Load Testing Testing asp ... Testing asp.net 2 treeview ajax, event validation problem. ... test ajax functionality like this without causing Invalid postback or callback exceptions. ...
Getting TreeView to postback when node is checked/unchecked - ASP ... The postback is causing validation and my AJAX contol validator ... I did not see any 'CausesValidation' property on the Treeview control. ...
Other known limitations, problems, and workarounds Removing a qualification from a role can cause validation errors ... Project Tree view might not properly display updates made to business service object ...
C# - Cause Validation Issue | DreamInCode.net C# - Cause Validation Issue. Get help with this and thousands of other C# topics at ... Populating Tree View nodes from sql server 2000 ...
Beatriz Costa » Are there any tricks that will help me improve ... True data virtualization for TreeView would take into account not only ... validation that’s been asked on the MSDN forums but as far as I know not resolved ...




Search This Site:










customizing the required data to register in my website.

how do you change the border color when mouse hover over a linkbutton?

access denied launching word

mk.bat

anyone decode this?

asp .net web site project template

what runs first: treeview select_change() or page_load()?

determining whethere dataset is null

visual studio 2005 web deployment project - unique version for each dll

how to best prepare for the future

programatically send file to ftp server

gallery module install fails - dnn 3.1 on godaddy

how do i check if there is result in database

cookies in class

calendar recurrence patterns

what is "iis 6.0 native mode"???

some error is not catched by application_error

how to expand a tree node when it's checked?

how to simulate treeview checkbox as radio button?

remove href or oncommand attributes with control?

function in asp.net 2.0

2 database questions: closing connections

project with wap, precompile?

system.nullreferenceexception

using "username" in query

aspcompact

app_code question

why the control name always get duplicated?

how to show c# icons in code window

photos displayed as links

 
All Times Are GMT