CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/26/2008 4:53:17 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 164 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
Skip_Frog
Asp.Net User
Validation with a Tree View/Form View2/26/2008 4:53:17 PM

0

Hi All,

I have a tree view driving a Form View. The question is how to enforce validation when the Tree View control does not have a CausesValidation property. How do stop the user from changing records before the edit is complete or the record has been validated?

Thanks,

Skip 

 

Skip_Frog
Asp.Net User
Re: Validation with a Tree View/Form View2/26/2008 6:51:38 PM

0

Okay I have made some progress. I have changed the code to now set the select parameter on the SelectedNodeChanged event and look if the page is valid.

Strange problem now is that for some reason after the page becomes invalid the form view stops reponding to the tree view clicks even after the page becomes valid again. It is like the form view loses sync from the treeview.

Ideas?

 

 Protected Sub TreeView1_SelectedNodeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView1.SelectedNodeChanged

        Page.Validate()

        If Page.IsValid Then
            Me.SqlDataSourceTaskDetails.SelectParameters.Item("Id").DefaultValue = TreeView1.SelectedValue
            Me.FormView1.DataBind()
        End If

    End Sub
 
Skip_Frog
Asp.Net User
Re: Validation with a Tree View/Form View2/26/2008 7:24:10 PM

0

After some further examination the SelectedNodeChanged event was not firing after the page became invalid. By adding the Else to set the node selection to False fixed the problem.

 

Protected Sub TreeView1_SelectedNodeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView1.SelectedNodeChanged

        Page.Validate()

        If Page.IsValid Then
            Me.SqlDataSourceTaskDetails.SelectParameters.Item("Id").DefaultValue = TreeView1.SelectedValue
        Else
            TreeView1.SelectedNode.Selected = False
        End If

    End Sub
 
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
JavaServer Faces Authors: Hans Bergsten, Pages: 589, Published: 2004
Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF Authors: Peter Koletzke, Duncan Mills, Pages: 562, Published: 2006
Beginning JavaServer Pages Authors: Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell, Pages: 1262, Published: 2005
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
Data Entry and Validation with C# and VB .NET Windows Forms Authors: Nick Symmonds, Pages: 768, Published: 2003
Designing with Javascript: Creating Dynamic Web Pages Authors: Nick Heinle, Bill Peña, Pages: 216, Published: 2002
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Developing Microsoft Office Solutions: Answers for Office 2003, Office XP, Office 2000, and Office 97 Authors: Ken Bluttman, Pages: 586, Published: 2003
User Interfaces in C#: Windows Forms and Custom Controls Authors: Matthew MacDonald, Pages: 586, Published: 2002
Expertise and Decision Support Authors: George Wright, Fergus Bolger, Pages: 273, Published: 1991

Web:
Validation with a Tree View/Form View - ng.asp-net-forum ... Validation with a Tree View/Form View, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls, ...
Chapter 3. Editors The Diagram view allows you to create complex Tiles files in the form of a diagram. Diagram Mode ... The validation file can also be viewed in a Tree view. ...
Reload CRT Tree UI. CP UIs. SCORM UIs. Persistent Store. Views. Controller/s ... In the form. view per field validation. 5. Instance document validation – parser based ...
Liferay - Forums - Portlet Form Validation using JavaScript Portlet Form Validation using JavaScript. 12/20/07 4:46 AM. I am using Struts Portlet to build my form. The name of ths jsp is View.jsp. ...
Uses of Class org.springframework.validation.BindException (Spring ... Uses of BindException in org.springframework.validation .... This implementation shows the configured form view, delegating to the analogous showForm ...
Ajax Validation Component (Articles) | The Bakery, Everything CakePHP
Here is the validator view ...
Tree View Editing Learning Object Metadata can enter metadata through either form-view or tree view graphical user ..... Validation of the documents for targeted schemas for different versions of LOM ...
Software Download: Form Validation It automatically generates advanced search panel and form validation too. You can view the data in a short list view and in a detail view. ...
UltraXML Author: XML Editor For Authors Full XML Tree view with attributes and text displayed in an easy to read form style view. ... Grouping of attribute headers in the form view for an easy to read ... Complete automatic validation and integrated error highlighting with ...
Chapter 11. More Editors Tree View. In the Tree mode, the different elements of the Tiles file are ... viewer shows forms and their elements for which to define validation rules: ...












advertising and sponsorship opportunities

i need help!

date format problem

rainbow vs dotnetnuke

notification of new dnn releases/patches

dotnetnuke problem

news module for dnn v2

iframe module

ttt authentication module

feature overkill!

custom scheduler

nightlifeportal with news, events and contacts

dnn database versioning and dataprovider support

new user

change text in register form for different coutry laws ?

richtextbox

installing flash file

i really need help

web.config questions upgrading from 3.0.13 to 3.1

change child portal to parent portal.

building 3.1 in visual studio - "not configured for debugging" error?

other database support : want idea

thank you for the 4.0.1 docs in pdf instead of .doc

upgrade to 2 from 1.x

need someone to create some part of my e-business

download module

3.0.4 issue - .net1.2 config error

global.asax error

security error loading assembly (access is denied: 'dot........'

limit specific modules per portal

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT