Friday, 13 June 2014

Difference between @Html.TextBox, @Html.TextBoxFor & @Html.EditorFor

These are html helpers, which renders html input tag in which the type attribute is set to text.@Html.TextBox("example") This is the basic format of html helper for textbox. The html  @Html.TextBoxFor("example")@Html.EditorFor("example") ...

Saturday, 7 June 2014

Debugger not activated - Firebug

Open the Firebug window.Click on the Firebug icon in the upper-left corner of the window and go to the menu item:   Options > Reset All Firebug OptionsActivate Firebug. ...

Friday, 6 June 2014

The database '*\DATABASE1.MDF' cannot be opened because it is version 706. This server supports version 655 and earlier. A downgrade path is not supported. Could not open new database '*\DATABASE1.MDF'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)

Version 706 is a database file from Sql Server 2012Version 665 is a database file from Sql Server 2008R2 ...

Tortoise workbench ignore certain files with hgignore

There may be cases where we want to ignore certain files before committing in mercurial distributed revision control system. We can ignore files using hgignore file. hgignore file resides in the root folder.Open the fileRight - click on file and open (CTRL + SHIFT + T). OR Take terminal...

Wednesday, 19 March 2014

Logging Tools Log4Net vs ELMAH

Both needs configuration files.Log4NetSimple general purpose logging tool.Easy to integrate.Creates text file.Log levels: DEBUG, INFO, WARN, ERROR, FATAL.ProsHighly configurable logging framework.Best used by calling explicitly through code.Can implement exception handling with handlers.Output: file, console, email.Thread-safe.Will not throw unexpected exceptions at run-time potentially causing application to crash.ConsNot reliable. ELMAH...

Thursday, 13 March 2014

Remove first character from string C#

Use substring() method.string str = "/a.txt";str = str.substring(1);Outputa.txt ...

URL querystring with multiple parameters not working - Browser compatibility Issue

When passing multiple parameters as query string, the redirection will work properly in Internet Explorer. This is because the special character '&' is escaped automatically.But in Mozilla, Chrome it will not work.www.example.com/controller/action?a=1&b=2In order to work we need to escape the ampersand special character using Razor syntax @Html.Raw(string).www.example.com/controller/action?a=1&b=2 ...

iOS

Cannot install applications because the certificate is not valid. - iOS 7.1 Enterprise App

Is it rediculous? May be or not. Might be for more security.Any way this error is showing in iOS 7.1. When we see this in first time we will get confused.Install errorError The above alert is coming while installing applications in iOS 7.1.AnalysisFrom iOS 7.1 Apple is enabled...

Saturday, 1 March 2014

How to check .NET Framework version installed in your PC

For checking which .NET Framework is installed in your PC, follow the below stepsSteps:Click on Start.Type regedit in  Search and files area.You will see Registry Editor popup window.Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.You will see different version which are already installed.Check the latest version installed in your PC. :) ...

Monday, 24 February 2014

Cross platform mobile development tools

ProsCode reusable.Easily accessible to plugins.Easy for web developers.(HTML5, CSS3)Reduce development cost.Support for enterprise and cloud services.Easy Deployment.ConsMight not support every features of OS or device.Can’t Always Use Your Own Tools: Most frameworks want users to use their own development tools and suites, and that can mean that a...

HTML Tags - DIV vs TABLE instead of DIV or TABLE

DIV/TABLE are HTML tags which can populate data inside the markup language. Most of us have come across the situation, where we have to choose between DIV and TABLE. Both have there own way of presenting data inside the HTML. Ofcourse TABLE tag gives easier way of displaying...

Methods for passing values from one page to another

1. '''Query String''' ['''''GET Method''''']Passing variables using query string, which means the values are passed along with the URL.http://www.example.com/page2.php?a=2&b=4&c=6This can be achieved using one of the form method submission 'GET'.So You can see that using GET method the values can be sent through query string, and ofcourse the...

Pages (3)123 »