Wednesday, June 25, 2014

How to display content or div only on Homepage of wordpress websites

Introduction: In this article today I will explain how we can display content or div only on Homepage of wordpress websites

Description:
Some time in wordpress we have to show content or div only on home page of website.
e.g. I have to show pic/photo in footer only on home page. To fulfill the requirement we can create new home page template(home.php) or simply add a php code in footer.php file of theme. Here I have add the below given code in footer.php file:

Thursday, June 5, 2014

Fill dropdownlist with days, month and year in asp.net

Introduction: In this article today I will explain how we can fill dropdownlist with days, month and year in asp.net

Description:


Add a webform to application and design the .aspx page as mention below:
  <fieldset style="width:400px">
    <legend>Fill Dropdownlist with Year,Month and Date Example</legend>
    Year: <asp:DropDownList ID="ddlyear" runat="server" AutoPostBack="True"
            onselectedindexchanged="ddlyear_SelectedIndexChanged" ></asp:DropDownList>
          
    Month: <asp:DropDownList ID="ddlmonth" runat="server" AutoPostBack="True"
            onselectedindexchanged="ddlmonth_SelectedIndexChanged">
        </asp:DropDownList>
      
    Day: <asp:DropDownList ID="ddlday" runat="server">
        </asp:DropDownList>
    </fieldset>