Saturday, July 21, 2018

how to use dropdownlist in asp.net | Sradha WebCreations

how to use dropdownlist in asp.net

 http://sradhawebcreations.com
front end /user inter face 

="ProductOrderByCustomer.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductOrderByCustomer.aspx.cs" Inherits="ProductOrderByCustomer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 23px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        <table class="style1">
            <tr>
                <td align="center" colspan="2">
                    PRODUCT / SERVICES ENQUIRE</td>
            </tr>
            <tr>
                <td class="style2">
                    Customer Name :</td>
                <td class="style2">
                    <asp:TextBox ID="TextBox1" runat="server" Width="216px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Email Id :</td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server" Width="216px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Mobile No :</td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server" Width="139px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Land Line :</td>
                <td>
                    <asp:TextBox ID="TextBox4" runat="server" Width="138px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    State&nbsp;&nbsp;&nbsp; City&nbsp;&nbsp;&nbsp; Area&nbsp;&nbsp;&nbsp; :</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem>-Slelect State-</asp:ListItem>
                        <asp:ListItem>Bihar</asp:ListItem>
                        <asp:ListItem>Odisha</asp:ListItem>
                        <asp:ListItem>West Bengal</asp:ListItem>
                        <asp:ListItem>Jharkhand</asp:ListItem>
                    </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:DropDownList ID="DropDownList2" runat="server">
                        <asp:ListItem>-Select City-</asp:ListItem>
                        <asp:ListItem>Patna</asp:ListItem>
                        <asp:ListItem>Darbhanga</asp:ListItem>
                        <asp:ListItem>Madhubani</asp:ListItem>
                        <asp:ListItem>BBSR</asp:ListItem>
                        <asp:ListItem>Cuttack</asp:ListItem>
                        <asp:ListItem>Balasore</asp:ListItem>
                        <asp:ListItem>Bhadrak</asp:ListItem>
                    </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:DropDownList ID="DropDownList3" runat="server">
                        <asp:ListItem>-Select Area-</asp:ListItem>
                        <asp:ListItem>Link Road</asp:ListItem>
                        <asp:ListItem>Badambadi</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    Product / Services :</td>
                <td>
                    &nbsp;&nbsp; Catagory :
                    <asp:DropDownList ID="DropDownList4" runat="server" Height="20px"
                        onselectedindexchanged="DropDownList4_SelectedIndexChanged" onclick="DropDownList4_SelectedIndexChanged"
                        Width="160px" AutoPostBack="True">
                    </asp:DropDownList>
&nbsp;<asp:Button ID="Button5" runat="server" onclick="Button5_Click" Text="Description" />
&nbsp;<asp:TextBox ID="TextBox8" runat="server" Height="57px" TextMode="MultiLine" Width="227px"
                        ></asp:TextBox>
&nbsp;&nbsp;
                    <asp:Button ID="Button4" runat="server" Text="Select" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="TextBox5" runat="server" Height="60px" TextMode="MultiLine"
                        Width="468px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Special Interest :</td>
                <td>
                    <asp:TextBox ID="TextBox6" runat="server" Height="53px" TextMode="MultiLine"
                        Width="305px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <br />
                    <asp:Button ID="Button1" runat="server" Height="33px" onclick="Button1_Click"
                        Text="Submit" Width="92px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </table>
   
    </div>
    </form>
</body>
</html>

back end /database  

ProductOrderByCustomer.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web.Security;
using System.Net;
using System.Net.Mail;

public partial class ProductOrderByCustomer : System.Web.UI.Page
{
    SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["dbConnection"].ConnectionString);
    protected void Page_Load(object sender, EventArgs e)
    {
        con.Open();

        if (!IsPostBack)
{
BindContrydropdown();
}
}

    protected void BindContrydropdown()
    {

        SqlCommand cmd = new SqlCommand("select DISTINCT Catagory from ProductByAdmin", con);
        SqlDataReader dr = cmd.ExecuteReader();
        if (dr.Read() == true)
        {
           DropDownList4.DataTextField = "Catagory";
            DropDownList4.Items.Add( dr["Catagory"].ToString());
           // ListBox1.DataTextField = "Catagory";
           // ListBox1.Items.Add(dr["Catagory"].ToString());
        }

        dr.Close();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
    protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
    {
       
    }
    protected void Button5_Click(object sender, EventArgs e)
    {
        if (TextBox8.Text == "" || TextBox8.Text == null)
        {
            TextBox8.Text = DropDownList4.SelectedItem.ToString();
        }
        else
        {
            TextBox8.Text = TextBox8.Text + "\n" + DropDownList4.SelectedValue.ToString();
        }
    }
   
}


how to enscript your connection string in share hosting | Sradha WebCreations

how to enscript your connection string in share hosting panel 
how to secure your database in share hosting panel 

enscript is a computer program that converts text files to PostScript, RTF, or HTML formats. 


  1. Open your website which web.config file you want to enscript.
  2. Click on website folder copy the website path
  3. C:\Users\sradha\Documents\Visual Studio 2010\WebSites\EnscriptWebDemo
  4. Open command prompt cmd C:\
  5. C:\Cd windows
  6. C:\  windows\ cd Microsoft.NET
  7. C:\windows\Microsoft.NET\cd Framework
  8. C:\windows\Microsoft.NET\Framework\cd V4.0.30319
  9. C:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –pef “connectionStrings” “Paste your website file location like above” –prov “DataProtectionConfigurationProvider”
  10. Enter
  11. Encrypting configuration section Succeeded!
  12. Then open
  13.  
  14. Local Connection

<!--<connectionStrings configProtectionProvider="DataProtectionConfigurationProvider">
    <EncryptedData>
      <CipherData>
        <CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA8efXuhXn/k2KirAgCA8auAQAAAACAAAAAAAQZgAAAAEAACAAAACKyAp5peoUwq5MbWjvklQdverTFtuela/sH0cFmRlaaQAAAAAOgAAAAAIAACAAAADE/KMBvZgW5gkiV9g3H/Om1dhyy+UUu2+WdXE3jBXm9vABAAAA/J1t1mcL61Qj42Osg0KFQxyHDS3j63GtmS28tu27SDURxmxDOzn+uvZzlTujOdasd/hhJWF34MjBYgapGIdmgo0e00uhj5/+hwRV6gxazUvjdozhpVCNzRJB6InZ4jhApxsyW1rRxdWN7A1srb5bjvuQ4WKRGEHV/UrmusBcV5Agk4hwOkp3B+ohYWEMnSYQR3UvIcpyaxuxen39rXaE0GFoRMdHZ2+a1NdTosqKkCVWwC2RNf57vdsCS78DmnWVFlzc6k/VRBVOJM/9oj8BX5LBCxw9i6MfzsV8FA4Fp+W5cSq54ZlNuT6TPAn++Y4n8ealR2QoEXGpMcDsCrrJgKkwYjaOP4EUj9B1cT32u7uxZAxuUSib0vDhfRxisSYB9Mx7NhyBlNSYKGu+5ev+RGBTRj+7pJgm8HG+sDy5mFcBcqNeeMhy0nHeLPGZiYgQtTrGRQkDaLTftLDEyp8LtILfxhfpM03FtZgwGCetV2Z1U3U3Dvzd8r4zx8d1CZbad1Rvraso3N/0O+X08QTE1C4DF65fO7emKIQ85VeTDrrt2Jx/Zpdj99+e/RSkrnFUbrfO5TZCCfqldibyew0uur5yS9I93r61TDeXVRyOyAUK0ZaMwM5H5G+Bhu0f+JfhebVCICmTqL3uzao+OO8AQAAAAFjwSn6t6Jb+oDrhcKZzvv/WhIownTWtKjnl1LY5bkL5EYTOKUxhfhJRRK48rsyTw5VyRWW0Jj6KEZFI/WO9hdQ=</CipherValue>
      </CipherData>
    </EncryptedData>
  </connectionStrings>-->








how to add free counter on your website | Sradha Webcrations | how to know how many visitor visit your website in a day

Number of visiters on your website
how to know how many visitor visit your website in a day 



follow this link 


Click here to see the fill list


Choose your style . 
set the number of digits 
select and copy that code and paste it in the website home page or any place you want to count number of visitor . 




Friday, July 20, 2018

How To Add All Social media share buttons in your website and blog | Sradha WebCreations

How To Add All Social media share buttons
 in your website and blog

 http://sradhawebcreations.com/



all share buttons.aspx



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="all share buttons.aspx.cs" Inherits="all_share_buttons" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   // this code will be written in the java script for share buttons
<script type="text/javascript" src="http://100widgets.com/js_data.php?id=72"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
    </div>
    </form>
</body>
</html>





how to add daily weather report in your website | Sradha webcreations

how to add daily weather report 
in your website & blog




  http://sradhawebcreations.com/

Weather for your site .choose and -àclick ok

  http://sradhawebcreations.com/

Click continue Ã 

  http://sradhawebcreations.com/

Choose for type of city (24 forecast 5 city)

Type your city name— I put My city cuttack click search

  http://sradhawebcreations.com/


Type your city name—cuttack click search

  http://sradhawebcreations.com/

Type bhubaneswaràclick search

Type puriàsearch
Type Sambalpur—click search
Type balasoreà click search

  http://sradhawebcreations.com/

set your color you want to put 

  http://sradhawebcreations.com/

Click continueà
  http://sradhawebcreations.com/

Enter your email address and accept the live feed services agreement
Click get Script Ã 

  http://sradhawebcreations.com/

Copy the code
<div style="font: 10px Tahoma;padding:3px;"><a style="color:#000000;text-decoration:none" href="http://freemeteo.com" >Weather by Freemeteo.com</a></div>
<script>
//Live weather feeds by freemeteo.com
//The use of this script is bound by Freemeteo’s Live Feed Service Agreement, as is published in the following url: http://www.freemeteo.com/default.asp?pid=178&la=1
// You are not allowed to change or delete any part of this script.
// Main body background color : FFFFFF
// Main body fonts color : 000000
// Header/Footer background color : 6699FF
// Header/Footer fonts color : FFFFFF
cIfrm="4";
gid="778446_20120825_103250";
</script>
<script src="http://www.freemeteo.com/templates/default/HTfeeds.js" type="text/javascript"></script>


  Paste that code in the location where you want to display that plugin (Div tag)

Run that file in browser  Ã 

after put above code in website that page looks like
  http://sradhawebcreations.com/














How To Add Skype Button in your website | Sradha WebCreations

How To Add Skype Button in your website or Blog


follow this link



put your skype name

 http://sradhawebcreations.com/



 http://sradhawebcreations.com/


 Web html

<!--
Skype 'Skype Me™!' button
http://www.skype.com/go/skypebuttons
-->
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:sradha?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" width="153" height="63" alt="Skype Me™!" /></a>


Email Html
<a href="skype:sradha?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" width="153" height="63" alt="Skype Me™!" /></a>
<br /><a href="http://www.skype.com/go/download">Get Skype</a> and call me for free.<br /><br />


Saturday, July 7, 2018

Sarada Devi Institute of Medical Sciences | Sradha WebCreations

    

Sarada Devi Institute Of Medical Science


Sarada Devi Institute of Medical Sciences (School of Pharmacy) was started in 2017 with D. Pharmacy Course under the management of Bharat Nirman Charitable Trust, Bhubaneswar. The college had envisioned as premier institute of Pharmacy Education and preparing students with orientation for National and International needs. As a part of development, an independent college building with 21st Century infrastructure has been developed. The institutions are committed for excellence in Pharmacy Education with the culmination of team work by the experienced teaching staff with good educational practices. The institutions are committed also to the philosophy of Learn How to Learn. Students are made to involve in in-house scaling up of formulations through pilot plant operations, which have been established. The institutions have been attracting a large number of students not only from other states of our country but also from other countries.


Vision

Commitment to promote the institute as a center of excellence in the field of health education.

Mission

To provide quality education, training and research in pharmaceutical sciences to meet the needs of students, pharmacists, pharmaceutical organisations, and health care professionals.

Objectives


The Principal

  • Sarada Devi Institute of Medical Sciences,
  • Mahanadi Vihar, Cuttack-753004,
  • Odisha, India.
  • Tel : +91-671-6543297,
  • Fax : +91-671-2443297
  • Email : saradadevigroup@hotmail.com

The Chairman

  • Sarada Devi Institute of Medical Sciences,
  • Mahanadi Vihar, Cuttack-753004,
  • Odisha, India.
  • Tel : +91-671-6543297,
  • Mobile: +91-9238328284
  • Fax : +91-671-2443297
  • Email : saradadevigroup@hotmail.com