0
Posted on 3:31 AM by Softminer and filed under ,

using Strongly Typed Html Helpers will map the model to the view and it will help to have compile time checking of the views.

in views instead of using
<%=Html.TextBox("username", Model.UserName)%>

you can use

<%= Html.TextBoxFor( m => m.UserName)%>

in controller:

public ActionResult LogOn(string userName, string password)

use

public ActionResult LogOn(LoginViewModel loginviewModel)

moreover you dont need to use ValueProvider["UserName"].AttemptedValue to access Html value and you can use model directly.

and for adding attribute
<%= Html.TextBoxFor(model => model.UserName , new { @calss="SingleTextBox" }) %>
0
Posted on 1:44 AM by Softminer and filed under

I was trying to record some web test via Internet explorer 8 and the problem was that the plugin is not loaded. the problem was that "Microsoft Web Test Recorder Helper" was disable.

so to fix this , go to TOOLS -> Manage Add-ons and Enable the "Microsoft Web Test Recorder Helper" and try to restart IE.



for more infomation you can visit
Diagnosing and fixing Web Test recorder bar issues.
1
Posted on 8:01 AM by Softminer and filed under

this is the html code to embed Losvegas map:

<html>
<body>
<div id='earthMap' style="position:relative; width:400px; height:400px;">
</div>
<script charset="UTF-8" type="text/javascript" 
    src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=en-us">
</script>
<script type="text/javascript">
    var map = null;
    var mapID = '';
    // map from losvegas
    map = new VEMap('earthMap');
    map.LoadMap(new VELatLong(36.17, -115.14), 10 ,'i' ,true);
     
</script>

</body>
</html>



1
Posted on 2:31 AM by Softminer and filed under ,

sometime facebook can not fetch your image in your page. to add image to your link you can use :

<link rel="image_src" href="http://media.clickonf5.org/image/logo.png" />

facebook will cache the facebook pages, if you want to refresh the cache you can add some parameter to your page like mypage.html?t=! or using URL Linter

URL Linter
http://developers.facebook.com/tools/lint/

read more +,+
1
Posted on 6:56 AM by Softminer and filed under ,

XAML browser applications (XBAPs) combines features of both Web applications and rich-client applications. Like Web applications, XBAPs can be deployed to a Web server and started from Internet Explorer or Firefox.
Create an HTML page that contains a hyperlink to open the deployment manifest, which is the file that has the .xbap extension.


<html> 
  <head></head>
  <body> 
    <a href="WpfBrowserApplication1.xbap">Click this link to launch the application</a>
  </body> 
</html>

In Visual Studio, open the project properties.

On the Security tab, click Advanced.

The Advanced Security Settings dialog box appears.

Make sure that the Grant the application access to its site of origin check box is checked and then click OK.


On the Debug tab, select the Start browser with URL option and specify the URL for the HTML page that contains the XBAP.


In Internet Explorer, click the Tools button and then select Internet Options.

The Internet Options dialog box appears.

Click the Advanced tab.

In the Settings list under Security, check the Allow active content to run in files on My Computer check box.




Click OK.
0
Posted on 8:27 AM by Softminer and filed under , ,








First Download the latest version of BlogEngine from following URL
http://blogengine.codeplex.com/

by defualt BlogEngine is using XmlBlogProvider. therefore all data is saved in APP_DATA in XML files.

to change it to SQL Server follow the instructions:

create a Database in SQL Server 2005 or 2008.

Run the SQL script on you Database, the script is in this Folder:
BlogEngine.Web\setup\SQLServer\

Replace SQLServerWeb.config with Web.config

change the connection string in Web.config to your DB connection

change the blogProvider from XmlBlogProvider to DbBlogProvider

<BlogEngine>
<blogProvider defaultProvider="DbBlogProvider">
<providers>
 <add name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider, BlogEngine.Core"/>
 <add name="DbBlogProvider" type="BlogEngine.Core.Providers.DbBlogProvider, BlogEngine.Core" connectionStringName="BlogEngine"/>
</providers>
</blogProvider>
</BlogEngine>


The appliction should be runnable now.

PS: for importing Post you can use
bin/BlogImporter.asmx
call the service with WCF TestClient
0
Posted on 5:50 AM by Softminer and filed under ,

Elmah:
Error Logging Modules and Handlers for ASP.NET

Error Handling in MVC with ELMAH
Error Logging Modules and Handlers for ASP.NET

Pingdom
Be the first to know when your website is down

Host Tracker
website monitoring service

LinqPad
Convert Linq to SQL