Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Sanjay Jaiswal 1234567

@Sanjay Jaiswal 1234567
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How do we convert a data from database into XMLfile using asp.net with vb.net
    S Sanjay Jaiswal 1234567

    use Query From database Which gives to XML String. For Example: Select * from emp "Emplyee" FOR XML Auto Which gives out put like <Emplyee empid="11" ename="rajan" sal="1.200000000000000e+004" ephone="5654645" eAddress="baneshwor" /> <Emplyee empid="12" ename="pravakar" sal="2.500000000000000e+004" ephone="5654645" eAddress="shantinangar" /> <Emplyee empid="13" ename="nilu" sal="2.500000000000000e+004" ephone="5654645" eAddress="ghattekkulo" /> <Emplyee empid="14" ename="shekhar" sal="2.500000000000000e+004" ephone="5654645" eAddress="ekantakuna" /> <Emplyee empid="15" ename="sunil" sal="2.500000000000000e+004" ephone="5654645" eAddress="budanilakantha" /> <Emplyee empid="16" ename="Nilubhai" sal="2.000000000000000e+003" ephone="123456" eAddress="Kathmandu" />

    ASP.NET csharp asp-net database

  • connectionstring
    S Sanjay Jaiswal 1234567

    <asp:DropDownList ID="ddl" runat="server"></asp:DropDownList>

    ConnectionStringSettingsCollection a = ConfigurationManager.ConnectionStrings;
    ListItem lst = new ListItem();
    foreach (ConnectionStringSettings s in a)
    {
    lst = new ListItem(s.ConnectionString, s.ConnectionString);
    ddl.Items.Add(lst);
    }
    ddl.Items.RemoveAt(0);

    you can use any loop once it is populated in ConnectionStringSettingsCollection. it populates one connection string from machine.config file. so i have removed 1st one. Hope this will be helpful for u. :laugh:

    ASP.NET question data-structures discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups