Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Response.Cache.SetAllowResponseInBrowserHistory(false);
Response.Cache.SetNoStore();
Important codings & concepts in web & window applications using microsoft technologies.
Monday, January 23, 2012
Friday, January 13, 2012
File upload more than 4 mb issue solving code
<configuration>
<system.web>
<httpRuntime maxRequestLength="2147483645"
enable = "true"
requestLengthDiskThreshold="512" useFullyQualifiedRedirectUrl="true"
executionTimeout="45"
versionHeader="1.1.4128"/>
</system.web>
</configuration>
Friday, January 6, 2012
Get corresponding compare column values from datatable using Linq
public static List<object> GetCorrespondingColumnValue(DataTable dsdatatable, string strCompareColumnName, string strCompareValue, string strReturnColumnName)
{
List<object> x = (from r in dsdatatable.AsEnumerable()
where (string)r[strCompareColumnName] == strCompareValue.ToString()
select r[strReturnColumnName]).ToList();
return x;
}
Subscribe to:
Posts (Atom)