Wednesday, February 20, 2013

Solution for Button tag not working in ie7 using ASP.NET MVC

Button tags in IE (v. 8, at least) will not work without an 'onclick' handler. Well, at least you can't simply wrap the button in an anchor tag. You can fix this issue with below specified way


Example :


   2: <a href="@Url.Action("Add", "Product", new { id = 0 })" 
   3: onclick="javascript:window.location=this.href">
   5: <input type="submit" id="imgAdd" name="imgAdd" value="imgAdd" 
   6: />
   8: </a> 

Tuesday, February 19, 2013

Solution for ASP.NET Application Is Timeout issue

If your application running long time to respond you might get this issue . You can increase the timeout  times

as using below steps

->Open the IIS
->Go to application pools
->Select the Design Studio related  application pool and click on advance settings
->In process mode section change the Idle timeout to 40 min.
->Reset the IIS
->Test the application