Skip to main content

Posts

Showing posts from October, 2012

ASP.NET default Login page and controller modification for using with Web Service or local method

By default the ASP.NET login page and controls are bound with default methods and its bit uneasy to work with ( at least for some ppl like me). We could make use of same controller and pages with our own mechanism of logging in. 1. Changes on web.config <location path="Login.aspx">     <system.web>       <authorization>         <allow users="*" />       </authorization>     </system.web>   </location>   <location path="Styles">     <system.web>       <authorization>         <allow users="*" />       </authorization>     </system.web>   </location>   <location path="Images">     <system.web>       <authorization>         <allow users="*" />       </authorization>     </system.web>   </location>   <system.web>     <authorization>       <d

ASP.NET - Almost complete use of Datagrid

I was on a need of creating datagrid object on my page with sorting, filtering, updating needs. You could make use of below example for some complex cases (Dropdown, Date selector update columns for relational data table updates, filters, multiple update queries)     <table border="0" cellspacing="0">         <tbody> <tr>         <th>Owner_Name</th>         <th>OS</th>         <th>Type</th>         <th>Status</th>         <th>Action Type</th>         </tr> <tr>         <td><asp:dropdownlist appenddatabounditems="true" autopostback="true" datasourceid="dsPopulateOwner_Name" datatextfield="UNAME" datavaluefield="UID" font-size="11px" id="ddlOwner_Name" runat="server" width="130px">             <asp:listitem text="*" value="%">&