asp.net

Detect HTML in ASP.NET

(clarification: this is an old question that has been tweaked for admin purposes) There have been a fair amount of questions on this site about parsing HTML from textareas and whatnot, or not allowing HTML in Textboxes. My question is similar: How would I detect if HTML is present in the textbox? Would I need to run it through a regul...

Regular Expression Password Validator

I'm having a hard time trying to create a right regular expression for the RegularExpressionValidator control that allows password to be checked for the following: - Is greater than seven characters. - Contains at least one digit. - Contains at least one special (non-alphanumeric) character. Cant seem to find any results out there too. ...

POET Attack on ASP.Net 4 [dnn]: Is there any way to block it?

Possible Duplicate: How serious is this new ASP.NET security vulnerability and how can I workaround it? I just saw this video that shows a vulnerability in ASP.Net. Is there any way that we can block this kind of attacks? POET Attack on dnn ...

The state information is invalid for this page and might be corrupted in internet explorer

hi all, I have used jquery for mbscrollable it working fine but when i run application in Internet Explorer it gives error on button which redirects to next page. Error is: The state information is invalid for this page and might be corrupted. Server Error in '/maxnetecommerce' Application. The state information is invalid for this p...

URL Rewriting .Net IIS7

Hi, My web app url is e.g. http://domainname/Search/SearchPage.aspx?SearchID=1-0-0-2-3. I have rewriten the url as follows The user may see the following url http://domainname/Search/SearchPage.aspx/1-0-0-2-3/DFDF/FDFDF My code is only conerned with the SearchID. Is there a way that i can ignore anything that comes after /1-0-0-2...

Multiple hops impersonation in .NET and web services

I have old school web service and it is configured to impersonate the caller. Works with no problem. Now I am thinking about adding another more higher level ASP.NET (non-wcf) web service which would be calling the original web service. The question is - will the client identity flow across two hops as in client (1)-> new web service (2...

Folder permission on server while uploading?

I want to upload files in my Asp.net application on server but I have to grant it R/W access so that I or anyone can upload files in it. Is there any way that I write some code or configuration lines in Web.config which solve this permission problem? ...

pass datatable to the mvc view

I was reading: http://stackoverflow.com/questions/2794831 But I have give a compilation error: CS0246: The type or namespace name 'DataTable' could not be found (are you missing a using directive or an assembly reference?) How do I fix this? ...

better quality thumbnail

I am looking c# code which creates better quality higher resolution thumbnail image. i am having an image of dimension(600 * 900) and i need to create thumbnail of dimension (100 * 100) with high quality. ...

is there a format for time only in mysql

is there a format for time only in mysql ...

integrate check names in asp net from exchange web service...

I want to integrate check names option to my web site via web service, which I have connection using web reference to our exchange server (ews services dll)... ...

netSpell SpellChecker in web application

can somebody please explain how to integrate netSpell SpellChecker in a web application ? i having difficulty in doing so as code for windows only is available . ...

properties in asp.net

Could somebody tell me what is the practical use of property, enum and const in c#, asp.net? ...

XSS Best practices for an ASP.NET application

I have downloaded the latest version of the Xss Library, which seems like compiled with .NET 3.5 , but our ASP.NET application works in .NET v2.0 Is it possible to run this library with an ASP.NET v2.0 application. I don't think that will be possible without compiling the ASP.NET app against v3.5 ? Do you think V1.5 of the XSS library ...

regarding sending mail to user

MailMessage message = new MailMessage(); message.From = new MailAddress("[email protected]"); Now for fetching email entered by the user in the textbox, I wrote:- message.To.Add(Convert.ToString(txtEmail)); but this is not working..isn't this the correct way to add email address in "To" ? txtEmail is the textbox's name..Its not givi...

How to put asp.net custom control definitions in separate file?

If one has a lot of custom controls the list of elements withing the element gets quiet long making the web.config tedious to work with. Does anyone know a better/different way of defining custom controls (maybe put them in a separate file like it's possible for appSettings. Thanks. ...

[Microsoft.Practices.ObjectBuilder.CreateNew] <-- wats the use of this method

I have beed assigned to go through a reporting application(Dev in ASP.NET) that follows MVP Pattern and i see that the below line of syntax is used very often. [Microsoft.Practices.ObjectBuilder.CreateNew] can anyone let me know wat exact work this line does. Thanks much, Faraaz. ...

Loading screen in ASP.Net

Hi, I'm building a few webpages in my webapplication which use a webservice. While communicating with the webservice, which can take more than a few seconds, I want to display a loading screen. Something like the jquery dialog, where the background is disabled and a loading image appears in the middel of the webpage. Is this possible ...

What is wrong here? In Vs2010 it works but on IIS6 (MS server 2003) it dont

The exception: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object refe...

How to attach browser and my web Application

Dear All, I am working on the Web application, at time of run the my application open login page but browser disconnect from my application. So I am not able to debug the code. Please help how to stop this disconnectivity between browser and my web application. ...