Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryPage Validation on Form PagePage Validation on Form Page
Previous
 
Next
New Post
5/18/2007 4:23 PM
 

I have added a button to allow the user to validate the URL they enter for the repository item on the Form page (Form.html,ascx,ascx.vb) using the following code.  The problem I'm having is that the page validation is requiring that all fields be filled in prior to being able to test the URL.  I like the validation and would like it to run when I press the upload button but not when I'm attempting to test the URL, it just makes for a bad flow in the UI.  Any suggestions?

------------------------- In the create input form sub---------------------

 

Dim objButton As New Button"__TESTTRUEURL"

objButton.Text = oRepositoryBusinessController.GetSkinAttribute(xmlDoc,

objButton.CssClass = oRepositoryBusinessController.GetSkinAttribute(xmlDoc,

objButton.CommandName =

"TESTTRUEURL", "Text", Localization.GetString("TestTrueURL", oRepositoryBusinessController.LocalResourceFile))"TESTTRUEURL", "CssClass", "normal")"TestTrueURL"

objButton.EnableViewState =

True

objButton.ToolTip = oRepositoryBusinessController.GetSkinAttribute(xmlDoc,

 

PlaceHolder.Controls.Add(objButton)

----------------------------------------

 

 

 

Private Sub btnTestTrueURL_Click(ByVal sender As Object, ByVal e As System.EventArgs)Dim TrueURLField As TextBox = PlaceHolder.FindControl("__TRUEURL")If Not (TrueURLField.Text.ToString() = vbNullString) Then

Response.Write(

Response.Write(

Response.Write(

 

"<script>" & vbCrLf)"window.open('" & TrueURLField.Text.ToString() & "');" & vbCrLf)"</script>")End If

End Sub

"TESTTRUEURL", "ToolTip", Localization.GetString("TestTrueURLToolTip", oRepositoryBusinessController.LocalResourceFile))AddHandler objButton.Click, AddressOf btnTestTrueURL_Click

objButton.ID =

 
New Post
5/23/2007 4:49 PM
 

For anyone that is following the thread all you need to do to resolve the issue is to set the control's CausesValidation property to false.  objButton.CausesValidatioin = False.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryPage Validation on Form PagePage Validation on Form Page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out