How to: ?????
-
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
-
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
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 -
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
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