Tag Archives: page

Customize image to fit into the page

Sometimes the image width is bigger than the page. So to set it in pagelayout , alter the attributr size like this: style=”width: 890px;” will control this. <asp:Image ID=”Banner” runat=”server” ImageUrl=”~/images/bannar.jpg”                             style=”width: 890px; vertical-align:middle; text-align:center;” /> The div width … Continue reading

Posted in ASP.NET, Programming | Tagged , , , , | Leave a comment

Error Msg: Server Error in ‘/folder‘ Application … A potentially dangerous Request.Form value was detected

Error Msg: Server Error in ‘/folder‘ Application … A potentially dangerous Request.Form value was detected Solution: Add ValidateRequest=”false” to the <% Page tag for example if you already have: <%@ Page Language=”vb” AutoEventWireup=”false” Codebehind=”MyForm.aspx.vb” Inherits=”Proj.MyForm”%> then this should become: <%@ … Continue reading

Posted in ASP.NET, Programming | Tagged , , , | Leave a comment