Click here to Skip to main content
15,881,027 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDisplay details in a table while sending mail Pin
anujose16-Mar-07 21:18
anujose16-Mar-07 21:18 
AnswerRe: Display details in a table while sending mail Pin
Ziyad Mohammad18-Mar-07 20:32
Ziyad Mohammad18-Mar-07 20:32 
QuestionIssues in Word Automation Pin
Sankara Narayana16-Mar-07 21:16
Sankara Narayana16-Mar-07 21:16 
AnswerRe: Issues in Word Automation Pin
Vasudevan Deepak Kumar19-Mar-07 5:38
Vasudevan Deepak Kumar19-Mar-07 5:38 
QuestionAccess OLE Object........ Pin
Are Jay16-Mar-07 11:41
Are Jay16-Mar-07 11:41 
QuestionRemember me is not working Pin
subhsam16-Mar-07 11:23
subhsam16-Mar-07 11:23 
QuestionWhere is the code hiding? Pin
Nostromo7716-Mar-07 11:19
Nostromo7716-Mar-07 11:19 
QuestionBind XMLdatasource to in Memory XPathDocument Pin
GaryWoodfine 16-Mar-07 8:10
professionalGaryWoodfine 16-Mar-07 8:10 
Hi,
I'm trying to bind the XMLDatasource to a XPATHDocument that I have retrieved from the database.

Does anybody know how to do this? I have tried everything but can't seem to get it right?
I am trying the asp:menu control to an xml that I am pulling straight from the DB

<asp:Menu ID="mnItem" runat="server" DataSourceID="XmlDataSource1">
</asp:Menu>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" XPath="MenuItems/MenuItem"></asp:XmlDataSource>


using (SqlConnection oConn = new SqlConnection(ConfigurationManager.ConnectionStrings["CMS"].ConnectionString))
using (SqlCommand oComm = new SqlCommand("sfspGetPageMenuItems", oConn))
{
oComm.CommandType = CommandType.StoredProcedure;
oConn.Open();
SqlParameter oParam = new SqlParameter("@PageID",SqlDbType.Int);
oParam.Value = 1;
oComm.Parameters.Add(oParam);
XPathDocument xdoc = new XPathDocument(oComm.ExecuteXmlReader());
XmlDataSource1.DataFile = xdoc;
}

Kind Regards,
Gary


My Website || My Blog || My Articles

AnswerRe: Bind XMLdatasource to in Memory XPathDocument Pin
GaryWoodfine 19-Mar-07 13:52
professionalGaryWoodfine 19-Mar-07 13:52 
QuestionLearning asp.net Pin
chancomsats16-Mar-07 7:07
chancomsats16-Mar-07 7:07 
AnswerRe: Learning asp.net Pin
Jesse Squire16-Mar-07 7:23
Jesse Squire16-Mar-07 7:23 
AnswerRe: Learning asp.net Pin
Michael Sync16-Mar-07 21:29
Michael Sync16-Mar-07 21:29 
AnswerRe: Learning asp.net Pin
Vasudevan Deepak Kumar19-Mar-07 5:50
Vasudevan Deepak Kumar19-Mar-07 5:50 
Questionfile upload with progress indicator Pin
Naveed Kamboh16-Mar-07 6:15
Naveed Kamboh16-Mar-07 6:15 
AnswerRe: file upload with progress indicator Pin
Jesse Squire16-Mar-07 6:51
Jesse Squire16-Mar-07 6:51 
GeneralRe: file upload with progress indicator Pin
Naveed Kamboh16-Mar-07 16:24
Naveed Kamboh16-Mar-07 16:24 
AnswerRe: file upload with progress indicator Pin
Vasudevan Deepak Kumar19-Mar-07 5:48
Vasudevan Deepak Kumar19-Mar-07 5:48 
GeneralRe: file upload with progress indicator Pin
Naveed Kamboh20-Mar-07 1:46
Naveed Kamboh20-Mar-07 1:46 
Questionrequiredfieldvalidator issue Pin
Ridge Howison16-Mar-07 5:48
Ridge Howison16-Mar-07 5:48 
AnswerRe: requiredfieldvalidator issue Pin
kubben16-Mar-07 6:33
kubben16-Mar-07 6:33 
GeneralRe: requiredfieldvalidator issue Pin
Ridge Howison16-Mar-07 7:31
Ridge Howison16-Mar-07 7:31 
GeneralRe: get control id from the content page Pin
Sylvester george16-Mar-07 4:30
Sylvester george16-Mar-07 4:30 
GeneralRe: get control id from the content page Pin
srinandan..16-Mar-07 4:53
srinandan..16-Mar-07 4:53 
Questiona probelm i'm struggling with from last 2 days not getting any clue.. Pin
yogita charhate16-Mar-07 4:29
yogita charhate16-Mar-07 4:29 
AnswerRe: a probelm i'm struggling with from last 2 days not getting any clue.. Pin
Marcus J. Smith16-Mar-07 4:46
professionalMarcus J. Smith16-Mar-07 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.