Wednesday 23 October 2013

Failed to create Designer from any web Server Control

For this type of problem you should use same assembly version number in web.config file and add same version assembly in add reference  and use same version assembly in aspx page

<%@ Register assembly="Infragistics4.Web.v13.1, Version=13.1.20131.2157, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.GridControls" tagprefix="igtbl" %>

then version number  13.1.20131.2157 should be same at three places defined above
Web.config File
Add Reference
Aspx Page

Potential Dangerious Request

a potentially dangerous request.form value was detected from the client in asp.net 4.0

Solution :: In web.config file under System.Web write

<compilation debug="false" targetFramework="4.0" /> 
 <httpRuntime requestValidationMode="2.0"/>

Thursday 10 October 2013

Repeater control implementation by tarun developer

dataconnectivity u can give on page load event  means connectionstring

<asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>name</th>
<th>userID</th>
<th>password</th>
<th>dob</th>
</tr>
</HeaderTemplate>

<ItemTemplate>
<tr>
<td><%#DataBinder.Eval(Container.DataItem,"name")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"userID")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"password")%></td>
<td><%#DataBinder.Eval(Container.DataItem,"dob")%></td></tr>
</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>

        </asp:Repeater>

name ,userID,password,dob are table columns in database