By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,054 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,054 IT Pros & Developers. It's quick & easy.

returning and binding xml to a web control

P: n/a
I had a great post with great responses on the topic and it disappeared
when I removed my last response in an attempt to clarrify a question...

somewhat noob here.

Will I be able to bind a web control to class object that returns xml?
and if so, how does one return xml from a method. Here's my missguided

public class test
public static ???XmlCharacterData??? Gogetit(string name)
string conn = "Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirecto ry|\\xx.mdf;Integrated
Security=True;User Instance=True";
using (SqlConnection connection = new SqlConnection(conn))
SqlCommand cmd = new SqlCommand("select * from book2 for
xml path", connection);
cmd.CommandType = CommandType.Text;
XmlReader xr = cmd.ExecuteXmlReader();


Thanks for any help or information. If you have a simple working
example, that would be awesome!

Sep 22 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.