Why Does DotNetNuke Have Validation Disabled

Feb 25, 2010

Can anyone shed some light on why DotNetNuke comes configured with request validation and event validation disabled? They're both off at the web.config level for a default install which seems to be a regressive approach. Are there any sound reasons for this and what is the functional impact on DotNetNuke if they're turned back on?

Obviously appropriate input validation should be happening in code anyway but the native .NET framework behaviour is always a nice fallback.

View 2 Replies


Similar Messages:

C# - How To Handle Validation When JavaScript Is Disabled

Apr 4, 2011

I'm using some of the typical ASP.NET's Validation Controls in my website. Now I'm trying to disable the JavaScript in my browser to test my application and of course the Validation Controls no longer works. I think it's best to try to make them work using one of the solutions down here instead of reinvesting the wheel and build a validation layer for the page or my objects -Am I thinking right?-

What do you think of these options and why:

Include in clicked button's event a code to check if the page is valid and if not explicitly call the Page.Validate(); method Check if whether the JavaScript is enabled and if not I should call Page.Validate();

View 3 Replies

C# - RequiredFieldValidator Causes Validation On Server Even If Validator Is Disabled

Mar 28, 2011

I have a user control with a label and a field. I add the user control dynamically to a page at run time. There could be many user controls which are built dynamically from data I get from the data base. The data describes the label name and if the text box should be completed.. ie is it required. I have a submit on the main page which has a validation group.All the validators on the user controls have the same validation group. So far so good I hope.

The user control has a RequiredFieldValidator for the text box and looks all like this. The validator is enabled by default.

<asp:TextBox ID="dfControl" runat="server" Text="" ToolTip="ucsAlphanumericEntryDC" Width="95%" CausesValidation="true"/>
<asp:RequiredFieldValidator ID="rfvContol" runat="server" ErrorMessage="Value is required" EnableClientScript="true"
ValidationGroup="ValidateContols" ControlToValidate="dfControl" Display="Dynamic" Enabled="true"></asp:RequiredFieldValidator>

When I dynamically load the control I check a parameter to tell me if the field is required or not. The paramater is from the database which represents the control that I am about to draw. If the Field NOT a required field I disable the validation in the page_preRender.. also tried it in load.

if (!DisplayRequired)
{
rfvContol.EnableClientScript = false;
rfvContol.Enabled = false;
dfControl.CausesValidation = false;
}

So far so good. This all works on the client side validation for only the user controls with the Display Required set to true, leaving the Validator enabled.however on posting page from a submit button which I have wired to the same validation group as the user controls, I check the IsValid on the submit and if its false I dont save anything. But when the page re-renders on the client.. I have error messages on all the user controls, saying that they are required... even though I disabled some of them that where not required. the View state is default on the control which I assume to be on.

I also tried not redrawing the controls with the validators, by enclosing the code in a if(!IsPostBack)

why the validators fire when they are disabled on the first page load but dont get disabled on the postback.

View 1 Replies

Web Forms :: How To Work With Validation Controls If Javascript Disabled

Mar 24, 2011

if i turn off the java script in any browser will validation controls will work and if yes then how to work by disabling the java script

View 1 Replies

Web Forms :: Textbox Server Validation If JavaScript Is Disabled?

Jul 30, 2010

I am trying to make ONE thing work. The form currently have TWO Textboxes and ONE CustomValidator(connected to the first textbox). I simply want once I enter less than 4 characters in the first Textbox and tab out to the second Textbox and if Javascript is DISABLED then the server side code should stop me. I can achieve what I am trying to do if I use a button but I need to do it in the fashion I am trying decribing because if I have for example 20 textboxes on the form I want the user to see after each data entry that his validation was successful or not. Here is a sample of my code.

[code]....

View 4 Replies

MVC :: Client Side Validation - Doesn't Disabled Elements

Jun 17, 2010

Using MicrosoftMvcValidation.js, it seems like disabled html elements are validated on the client-side. I am not sure how much sense that makes given that such elements will not be submitted by the form and I probably consider it a bug. (By the way, MicrosoftMvcJQueryValidation.js does not validate disabled elements.)

Is there any way I can disable (pun intended) the validation of disabled elements? E.g., assuming I have a reference to an html element in javascript, is there some way I can "remove" it or disable it from the client-side validation machinery?

View 6 Replies

Jquery - Disabled Button / Disables Validation For Button.

Mar 31, 2010

I have an aspx page that contains a checkbox, and a button. The button is disabled by default until the user checks the checkbox. It looks like when I add the attribute enabled="false" to the button, it removes the validation. When the button is enabled, I still want the validation to work. Here is the code and markup for the different parts.

Checkbox:

<asp:CheckBox runat="server" ID="termsCheckBox" />
<label style="display: inline;">
I agree to the Terms & Conditions</label> [code]....

View 2 Replies

How To Install Dotnetnuke 5.4

Jun 24, 2010

I am new to DotNetNuke configuration side.

I want to download dotnetnuke 5.4 and want to install on my machine.

Environment:

OS Version: Win Vista
.Net: VS.Net 2008
SQL Server 2005

View 1 Replies

What Is The Best Way To Include JQuery In DotNetNuke 4.8.x

Aug 20, 2010

I'm using DotNetNuke 4.8.x and want to utilize jQuery. Could anyone possibly suggest me on what is the best way to integrate jQuery into DNN? I won't be able to upgrade DNN version to 5 which has built-in support for jQuery.

View 1 Replies

Which CMS Is Easy To Use DotNetNuke Or Umbraco

Feb 22, 2010

We are in the process of implementing a CMS for our project which currently extensively uses asp.net master pages and css. Also the application is data-driven and controls like gridview and listview are used. After a little search we zeroed on two CMS dotnetnuke and umbraco. Now my question is:

Which one of the two CMS is best suited and easy to use?

Do they support integration of existing code and UI's

provide links for further reference.

View 5 Replies

How To Create A Simple Dotnetnuke Module Without DAL

Jun 25, 2010

I want to create a new module in DNN (VB) ... that;

1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module

I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.

I have the development environment already set up with;

1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully

If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out "Hello World!" to the screen ...

View 1 Replies

Making JQuery Work With DotNetNuke?

Jan 14, 2011

I am getting started with DotNetNuke and when I try to use jQuery the same way I use it in any standard ASP.NET page it does not work. For example I am trying to use uploadify which uses jQuery and flash. I can't even get the cancel button to show in the control.

By now I understand there must be a workaround and it is different than simple asp.net

Here is the ascx code:

[code]....

View 2 Replies

Finding DotNetNuke And Subversion Guidelines

Mar 19, 2010

I've Googled, Binged, and here at StackOverflow, looked through the related questions and searched, but I'm not finding what I'm looking for. I've also searched documentation on DNN.

What I'm looking for is any guidance (tutorials, blogs, step-by-step instructions for setting up a repository) etc from people who are experienced in using DotNetNuke with SVN.

We use SVN for all our source control, and have no problem with standard applications, because we pretty much built the repository and directory structure to work with our processes. This means when we do web sites, in Visual Studio, we do file based web sites, rather than setting them up in the local IIS. It just makes things easier for us.

However, with DNN, it appears that even if you get the source code, it is expecting to be set up in the local IIS, which means additional headaches for us.

For example, we are moving all of our source code off our local C drives, and onto a shared drive on a server. This is to enable backups in addition to our normal source control. (This was a management decision). So that means that we need to change the virtual web app when we make the move.

Has anyone come up with a good way to work around this? Can DNN be set up so that the developer web server in Visual Studio can be used, so that we can treat it just like any normal web app? Am I missing something obvious?

View 1 Replies

C# - Creating DotNetNuke Replacement For PortalModuleBase?

Dec 8, 2010

I'm creating a new DotNetNuke module and in the past I inherited from PortalModuleBase. I'm aware that there's a replacement for this now. Can someone tell me what it is? I've had a brief search for it but I haven't found what it is.

View 1 Replies

How To Add DotNetNuke Forum To Default C# Website

Jun 21, 2010

I'm trying to add Forum module to my Web Site , so I add dlls, components and modules and :

[Code]....

so how can add the forum from DNN to my page ? or how to fix this error

View 1 Replies

IIS6 Performance Tuning For DotNetNuke?

Feb 5, 2010

I've been tasked with looking into performance tuning my company's intranet server. It runs DotNetNuke which suffers from poor performance. It also runs a number of other web apps (mix of asp and asp.net).

Could anybody give me a brief list of common performance tweaks that can be made to IIS6?

View 1 Replies

Point Same Database For Different Sites In Dotnetnuke?

Mar 29, 2011

In dotnetnuke, I have two sites located on different location. Now I want to point these two sites to the same database. Is it possible to point to same database.

I even tried pointing it from web.config, but thats not working. I don't want to work with child portals, because i have already created site on other location and all the source codes are under that, but when I create child Portal, it creates new portalnumber folder under portals, and it just has two folders in it, Users and Cache, I dont understand how to place codes, as DNN creates lots of folders while creating new site, which are missing here.

View 1 Replies

C# - Send Message To Module In Different Tab In DotNetNuke?

Nov 8, 2010

I want to create a module that can send a message to another module in different tab.I don't know the target tab Id but I know the target module name. Is there any way to do such a thing?Is Dot net nuke support messaging?

View 1 Replies

Make Skin Settings In Dotnetnuke?

Mar 4, 2011

i installed dotnetnuke in my system, installation is completed successfully, now i want to change skin settings according to my requirement like changing colors,font,logs like that can u help me how can i do this in dotnetnuke.

View 1 Replies

C# -create A Webapplication In Dotnetnuke Framework?

Feb 3, 2010

I am very new to dotnetnuke. and want to know. steps to create and build a webapplication in dotnetnuke.how can we add module using dotnetnuke.how can we handle database in sqlsever 2005 or later on it.

View 1 Replies

Integrating DotNetNuke With An Existing Website?

Feb 14, 2011

As part of a redesign for one of my clients I'd like to move them to DotNetNuke to gain the CMS and blogging features. Their existing site has some custom ecommerce functionality that an off-the-shelf package just can't handle, so I'm inclined to leave it and just re-skin to match the new site.

The challenge is making this all fit together.

I could create two physical web sites in IIS, for example:

www.website.com <-- DNN install

and

shop.website.com <-- Existing ecommerce

This would keep things isolated, but I see a problem with the SSL certificate. It's tied to www.website.com, so now I'd either need two -- one for www. and one for shop. -- or I need a wildcard certificate. Either adds ongoing expenses for the client.

I could try to encapsulate the existing site into a DNN module, but that seems like a lot of work. I could also try doing something tricky with iframes, but again I think this would just further complicate things.

View 2 Replies

How To Open Aspx Page Like Popup In Dotnetnuke

Nov 8, 2010

When user clicks on linkButton it needs to open new window to display some data. I try this:

string url = "~/SomePage.aspx";
string cmd = "window.open('" + url + "', '_blank', 'height=500,width=800,status=yes,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=no,titlebar=no' );";
ScriptManager.RegisterStartupScript(this, this.GetType(), "newWindow", cmd, true);

But it doesn't work. I can't even manually navigate to this page. Opening new window work but it opens the same page in that new window. So, how to display content from SomePage.aspx in this new window?

View 5 Replies

Dotnetnuke - Finding Fimiliar To Manage Project?

Apr 22, 2010

i am trying to build a website usign ASP.NET what is the best resource or way to learn it?

Also do i need DotNetNuke or something similar to manage my project?

View 5 Replies

Web Forms :: Compile And Add Usercontrol At Runtime Like DotNetNuke?

Feb 25, 2010

i think u see DotNetNuke?

you can create a usercontrol then atach it online to your website?

how i can implement this attribute for my portal?

View 3 Replies

Unable To Run WCAT Against DotNetNuke With NTLM Authentication?

Mar 8, 2010

I have a ubr file setup to stress test an internal DotNetNuke site with WCAT:

transaction
{
id = "Intranet Home Page";
weight = 1000;
cookies{clear = true;}

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved