I am inserting some text in texbox and there is range validation set as minimum as 10 and maximun as 100. But when i run the program, though i insert the text atleast or more than 10 characters, it is showing the error message of this range validation. how to set range so that user has to input atleast 10 character minimum ?
I am working on ASP.NET3.5 platform. I have used a file upload control and a asp button to upload a file. Whenever i try to upload a file which contain special characterlike (file#&%.txt) it show crash and give the messeage "Server Error in 'myapplication' Application." A potentially dangerous Request.Files value was detected from the client (filename="...New Text &#.txt"). Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
In my asp .net project, my main page receives URL as a parameter I need to download internally and then process it. I know that I can use WebClient's DownloadFile method however I want to avoid malicious user from giving a url to a huge file, which will unnecessary traffic from my server. In order to avoid this, I'm looking for a solution to set maximum file size that DownloadFile will download.
Then I found this solution online to handle the error if someone tries to upload file bigger than 10 MB
This works great on my local machine but when I try to run it from Production server , It still shows me the "Internet Expolrer cannot display webpage". I just want to display a nice message to user when He tries to upload file larger than 10 MB.
I have created a backend that allows me to update my site content. I am using fckeditor to pull the data from my table in the database. The problem I am having is this: i need to create paging of content so that when the height restriction is met a next btn or numbering system displays to allow the user to click to the next page of content.
I have set up a tinyMCE textBox on an emtpy form. I will now save some written text to a .txt file. When I press the button, I receive an error page and the .txt file is not created. However if I dont write anything in the textBox and press the button, then the .txt file is created and the messageBox is shown.
I have a ListView InsertItemTemplate where there is field (Date) using the AJAX Library CalendarExtender. I want to add some validation to this field, whereby they can't add a date that is later than today. So I have added a RangeValidator and tried to set its MaximumValue to DateTime.Now on Page Load. Unfortuantely it isn't working.