Posts

Showing posts from June, 2014

Featured Post

Smart Product designer

Image
download and purchase link: https://alkanyx.com/item/49/Smart+Product+designer

Live preview : http://smartproductdesigner.000webhostapp.com/

Smart Product Designer is a  tool to create your own product and get directly from your website. It is well documented, very easy to customize and use. It is build using most advance technologies including javascript, jQuery and html5.
Features Choose different product from collectionAdd custom texts to product.Change text colorChange the size and font of the TextLet the user drag, move or remove elementsAdd images to product selected from art gallery or browse it from systemDesign both frontside and back-sideShows preview while designingDownload designVery easy to customize and useHere is the purchase link : https://alkanyx.com/item/49/Smart+Product+designer

Adding AJAX HTMLEditorExtender control in webform

Image
Here are the steps to add ajax HMTLEditorExtender control in webform.
1.In VS 2013 open Tools > Library Package Manager > Package Manager Console.
2.Enter command : PM> Install-Package AjaxControlToolkit . This will download and add AjaxControlToolkit.dll reference with your website.
3.Add following tags in web.config  -
<configSections>
    <sectionGroup name="system.web">
      <section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
    </sectionGroup>
  </configSections>
<sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
      <providers>
        <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
      </providers>
    </sanitizer>

<configSections> should be the first child …

Implementing Validation group in ASP.NET

Image
Sometimes we have multiple sections in our web forms for validation. These sections need their separate validation. For example I have two sections - one to insert a category and other one to update existing category name.

For inserting category the  text box is txtNewCategory and for updating category text box is txtUpdateCategory. Both have RequiredFieldValidator validation control.

In this case we want that when validation of txtNewCategory happens then txtUpdateCategory should not be validated and vice versa.

This can be achieved by creating Validation Group. Here is the example  -

<asp:TextBox ID="txtNewCategory" runat="server">
</asp:TextBox>
<asp:RequiredFieldValidator ID="reqFieldCategory" runat="server"  ValidationGroup="GrpNewCategory" ControlToValidate="txtNewCategoryName" ErrorMessage="Please enter new category name">
</asp:RequiredFieldValidator>

 <asp:Button ID="btnCatego…