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
E

EssamDev

@EssamDev
About
Posts
6
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • connection string
    E EssamDev

    hi the connection string will change to the last user why?because you put it in static variable it's means that this variable is shared for all users of application .so when any user assign it,it has only the last value. for example if we have static variable called x.the first user assign it by 5 .the second user assign it by 10. it becomes 10 not 5 . don't use static variable in this case. Essam

    ASP.NET help database

  • gridview
    E EssamDev

    hi you can use this simple code String conString="data source=localhost\SQLEXPRESS;initial catalog=New;integrated security=true"; SqlConnection cn = new SqlConnection(conString); SqlCommand cmdFillGrid = new SqlCommand("select * from myTable", cn); SqlDataAdapter adapter = new SqlDataAdapter(cmdFillGrid); DataSet ds = new DataSet(); adapter.Fill(ds, "myTable"); GridView1.DataSource = ds.Tables["myTable"]; GridView1.DataBind(); Essam Moustafa

    ASP.NET

  • Get specific value from DetailsView
    E EssamDev

    hi my brother the code that i wrote is in c# you can convert it in vb.net easily. you don't need that the detailsview is postback or not because the code that i wrote can be implemented in ListBox Or DropDownList_SelectedIndexChanged Event if you try my code your problem will be solved. Essam Moustfa

    ASP.NET css question

  • Get specific value from DetailsView
    E EssamDev

    hi after you fill your control as(listbox) you put this code in ListBox1_SelectedIndexChanged sqlconnection cn=new sqlconnection(); cn.ConnectionString = conString; SqlCommand cmd1 = new SqlCommand("select * from myTable where ID="+ListBox1.SelectedValue.ToString(), cn); SqlDataAdapter ad = new SqlDataAdapter(cmd1); dataset ds=new dataset(); ad.Fill(ds, "v"); DetailsView1.DataSource = ds.Tables["v"]; DetailsView1.DataBind(); TextBox1.Text = DetailsView2.Rows[1].Cells[1].Text; you can replace listbox with dropdownlist your brother Essam Moustafa

    ASP.NET css question

  • how we create autogenerated textbox in gridview
    E EssamDev

    hi i want help you but your question is not clear plz write again your question clearly. Essam Moustafa

    ASP.NET css help

  • Get specific value from DetailsView
    E EssamDev

    hi your code is correct and i tried it under a button,the page runs without errors. tell me where you put your code? if you put it in load event,take care because you will have an error if the detailsview isn't filled in load event. try your code in button click event. thanks Essam Moustafa

    ASP.NET css question
  • Login

  • Don't have an account? Register

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