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
S

siva pinnaka

@siva pinnaka
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • xml Feed
    S siva pinnaka

    Dim dtData As DataTable = New DataTable() dtData.Columns.Add(New DataColumn("symbol",Type.GetType(String))) dtData.Columns.Add(New DataColumn("matchPrice",Type.GetType(String))) dtData.Columns.Add(New DataColumn("matchTime",Type.GetType(String))) Dim settings As XmlReaderSettings = New XmlReaderSettings() settings.IgnoreWhitespace = True settings.IgnoreComments = True Dim xmlFile As String = System.IO.Path.Combine(Request.PhysicalApplicationPath,"test.xml") Using reader as XmlReader = XmlReader.Create(xmlFile, settings)) While (reader.Read()) If (reader.NodeType = XmlNodeType.Element And reader.LocalName = "stock" ) Then Dim row As DataRow = dtData.NewRow() row("symbol") = reader.GetAttribute("symbol") reader.ReadToFollowing("matchPrice") row("matchPrice") = reader.ReadElementContentAsString("matchPrice","") reader.Read() row("matchTime") = reader.Value dtData.Rows.Add(row) End If End While End Using GridView1.DataSource = dtData GridView1.DataBind() Thanks, Siva Pinnaka

    ASP.NET regex xml help question

  • Format Columns in DataGrid Edit Mode
    S siva pinnaka

    one way is using templateitems. Thanks

    ASP.NET question

  • xml Feed
    S siva pinnaka

    I am giving code below. This used asp.net 2.0 DataTable dtData = new DataTable(); dtData.Columns.Add(new DataColumn("symbol",typeof(string))); dtData.Columns.Add(new DataColumn("matchPrice",typeof(string))); dtData.Columns.Add(new DataColumn("matchTime",typeof(string))); XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreWhitespace = true; settings.IgnoreComments = true; string xmlFile = System.IO.Path.Combine(Request.PhysicalApplicationPath, "test.xml"); using (XmlReader reader = XmlReader.Create(xmlFile, settings)) { while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.LocalName == "stock") { DataRow row = dtData.NewRow(); row["symbol"] = reader.GetAttribute("symbol"); reader.ReadToFollowing("matchPrice"); row["matchPrice"] = reader.ReadElementContentAsString("matchPrice",""); reader.Read(); row["matchTime"] = reader.Value; dtData.Rows.Add(row); } } } GridView1.DataSource = dtData; GridView1.DataBind(); Thanks

    ASP.NET regex xml help question

  • Unable to get client entered data from webcontrol
    S siva pinnaka

    did you check for !Page.IsPostBack in page_load function when you load default value. otherwise control gets initialized to default value always. Thanks

    ASP.NET database question javascript html sysadmin

  • textbox problem in GridviewRow
    S siva pinnaka

    Is it template item? otherwise look Cell values of gridview row in debug mode.you can identify the problem. Thanks

    ASP.NET help

  • VS.NET can't find namespace
    S siva pinnaka

    Did you add reference to system.web.services dll. Thanks, Siva

    ASP.NET csharp visual-studio help question

  • Going back to previous page
    S siva pinnaka

    when user clicks button to load data you can save datasource in session like below. Session["GridData"] = ds in page_load function of page1 you have to write code like below. if(Session["GridData"] != null && Request.UrlReferrer.ToString() == "Page2") { DataGrid1.DataSource = (DataSet) Session["GridData"]; DataGrid1.DataBind(); } Thanks

    ASP.NET question

  • Session problem
    S siva pinnaka

    by default enablesessionstate is true. Incase it is false,you can enable sessionstate at page level by setting enablesessionstate of page directive to true. Thanks

    C# visual-studio help csharp data-structures debugging

  • Going back to previous page
    S siva pinnaka

    Quickest way is to store contents of datagrid in session. if calling page is page2 then populate grid from session. Thanks

    ASP.NET 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