Posts

Showing posts from January, 2013

Open mvc razor action links in new tab.

Yesterday i was caught in a problem of how to open  @html.actionlink in a n ew tab so after a bit of tests i found the solution. You just have to set the html attributes as target =  "_blank" Example: @html.actionlink ("String link text", "Action Name", "Controller Name", "Object Route Values", new{target = "_blank"}) Any qustion, ask in the comments Thanks

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

In daily routine developers often face this error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) So the problem is that your server is stopped, and you have to start it manually.. following is the procedure for windows 7: 1- Go to start and search for SQL server configuration manager 2- In SQL server configuration manager navigate to sql server services tab located on the left side of the page. 3- Right click on the server and start it. 4- Close SQL server configuration manager and restart sql server management studio. 5- You are good to go. if there is any question ask in the comments.