How to config SMTP Server in web.config file
http://rayaspnet.blogspot.com/2009/08/how-to-config-smtp-server-in-webconfig.html
How to test your email function without SMTP server?
http://rayaspnet.blogspot.com/2011/02/how-to-test-your-email-function-without.html
Where to set up session timeout in asp.net web.config?
http://rayaspnet.blogspot.com/2010/04/where-to-set-up-sessioin-timeout-in.html
Make ASP.NET project compile/load time faster
http://rayaspnet.blogspot.com/2010/12/make-aspnet-compileload-time-faster.html
How to handle 404 error in ASP.NET
http://rayaspnet.blogspot.com/2010/04/how-to-handle-404-file-does-exist-in.html
What is maximum upload file size in asp.net, and how to set up, MaxRequestLength
http://rayaspnet.blogspot.com/2011/02/what-is-maximum-upload-file-size-in.html
Wednesday, February 23, 2011
Tuesday, February 22, 2011
A very light-weight Database Access Layer, 400 lines
A very light-weight Database Access Layer, 400 lines
Datagrid example by JQuery template in ASP.NET MVC
Datagrid example by JQuery template in ASP.NET MVC
How to filter out space in textbox by JQuery?
How to filter out space in textbox by JQuery?
$("#<%=TextBox.ClientID %>").keyup(function () {
var trimspace = $("#<%=TextBox.ClientID %>").val().trim();
$("#<%=TextBox.ClientID %>").val(trimspace);
});
var trimspace = $("#<%=TextBox.ClientID %>").val().trim();
$("#<%=TextBox.ClientID %>").val(trimspace);
});
Sunday, February 20, 2011
How to deal with exception: "A potentially dangerous Request.Form value was detected from the client" in ASP.NET Webform
Cause: the content user posts in the textbox includes bracket: < >. "Request validation detects potentially malicious client input and throws this exception to abort processing of the request"
You can turn off this validation by:
Reference:
http://msdn.microsoft.com/en-us/library/system.web.httprequestvalidationexception.aspx
You can turn off this validation by:
<location path="pagename.aspx"> <system.web> <httpRuntime requestValidationMode="2.0" /> <pages validateRequest="false" /> </system.web> </location>
Reference:
http://msdn.microsoft.com/en-us/library/system.web.httprequestvalidationexception.aspx
Subscribe to:
Posts (Atom)