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
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to: ?????

How to: ?????

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabasetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hounetdev
    wrote on last edited by
    #1

    Using ASP.NET (VB), i have a query function that returns in result. Right know i the function returning a dataset. when i call the function I want to assign the returned value to a textbox. i know it is returning a value because i assigned the result to a datagrid and binded it so it showed it to me. How do I make the returned dataset(result) show up in the textbox? i will put what i have tried below. Sub Button1_Click(sender As Object, e As EventArgs) textbox1.text = MyQueryMethod("emp","task","division","client","04/01/2004","05/25/2004") end sub Thanks, Santana

    F V 2 Replies Last reply
    0
    • H hounetdev

      Using ASP.NET (VB), i have a query function that returns in result. Right know i the function returning a dataset. when i call the function I want to assign the returned value to a textbox. i know it is returning a value because i assigned the result to a datagrid and binded it so it showed it to me. How do I make the returned dataset(result) show up in the textbox? i will put what i have tried below. Sub Button1_Click(sender As Object, e As EventArgs) textbox1.text = MyQueryMethod("emp","task","division","client","04/01/2004","05/25/2004") end sub Thanks, Santana

      F Offline
      F Offline
      FruitBatInShades
      wrote on last edited by
      #2

      What item is your MyQueryMethod returning? If it's a dataset you need to identify which fields/fields you need to pull back. The textbox does not understand what to do with a dataset! I'm surprised the compiler is even letting this run. Definitely a PEBCAK! (Problem Exists Between Keyboard And Chair)
      My First ASP.Net site is now up :) RedRavenRPG

      1 Reply Last reply
      0
      • H hounetdev

        Using ASP.NET (VB), i have a query function that returns in result. Right know i the function returning a dataset. when i call the function I want to assign the returned value to a textbox. i know it is returning a value because i assigned the result to a datagrid and binded it so it showed it to me. How do I make the returned dataset(result) show up in the textbox? i will put what i have tried below. Sub Button1_Click(sender As Object, e As EventArgs) textbox1.text = MyQueryMethod("emp","task","division","client","04/01/2004","05/25/2004") end sub Thanks, Santana

        V Offline
        V Offline
        VenkatFor NET
        wrote on last edited by
        #3

        What do you mean by DataSet in a textbox? Am confused. If you want to see one item in the dataset, you will need to pass it to the function you are calling so that, the function returns just the item you requested for a specific row or a concatenated string etc. Actually, you are talking about an entire off-line database to be shown in a Textbox. Is it logical? Or if you are really mean to put DataSet in a textbox, I can see it as DataSet.GetXML() which gives entire dataset including schema in your textbox. Bhaskara

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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