יום שני, ינואר 9, 2012
I read nice article with cool solution for Minifying HTML With ASP.NET MVC And Razor.
You can read more here.
You can start use it in you MVC projects, for 25% smaller HTML pages.
יום שני, ינואר 26, 2009
Detect user Browser and Operating System version in ASP.NET is very simple using the C# code:
This code retuns the HttpBrowserCapabilities class that has the information we desire.
Unfortunately the default Browser Caps configuration that come with ASP.NET 2.0 does not include browsers like Google Chrome and I could not find a way of getting the operating system version.
Finally I came up with solution that solve my problem as describe below:
On my ASP.NET application I open new ASP.NET folder: App_Browsers.
I download updated *.browser files that contain the information on the Google Chrome browser and also the operating system version and copy them to the App_Browsers folder. You can get...
יום רביעי, דצמבר 31, 2008
checkBox.disabled = true\false;
chkToTest.Enabled = false;
I'm telling you it will not work!!!!
Do you ask how to solve this bug or behavior?
You just need to set the disabled property of the parent node also. something like this:var checkBox = document.getElementById("chkToTest");
checkBox.disabled = true;
checkBox.parentNode.disabled = true;
I don't know why but when setting the Enabled property of ASP.NET...
יום ראשון, אוקטובר 12, 2008