View Complete Post
I have a XMLDataSource somewhat like:
<bookstore> <author>author1</author> <publication>publication1</publication> <book> <genre>Thriller</genre> <name>ABC</name> </book> <book> <genre>Romance</genre> <name>XYZ</name> </book> <book> <genre>Horror</genre> <name>000</name> </book></bookstore>
I am storing these in a asp:formview. I am able to store author and publication values but not sure how can I store the value of book name? Actually I just want to use condition that I need to store "name" if "genere=Romance". something like this. I know we can use contition/expression in XPath method but if it is an attribute like <book genere="romance">. Can someone throw light on this question.
I have a page in my website where there is very little code-behind. I only have two lines of code in Page_Load() and the rest of the code is declarative ASP.NET code. I have a FormView control which uses a SqlDataSource to get some order information. The SqlDataSource calls a stored procedure called usp_GetOrderDetails, here's the code for the SqlDataSource:
<asp:SqlDataSource ID="sdsFormOrderDetails" runat="server" ConnectionString="<%$ ConnectionStrings:ForexDB %>" ProviderName="<%$ ConnectionStrings:ForexDB.ProviderName %>" SelectCommand="usp_GetOrderDetails" SelectCommandType="StoredProcedure" UpdateCommand="usp_UpdateOrder" UpdateCommandType="StoredProcedure" > <SelectParameters> <asp:ControlParameter Name="orderId" ControlID="grdOrders" PropertyName="SelectedDataKey.Value" /> </SelectParameters> <UpdateParameters> <asp:ControlParameter Name="orderId" ControlID="frmOrderDetails" PropertyName="SelectedValue" /> </UpdateParameters> </asp:SqlDataSource>
XPath is emerging as a universal query language. With XPath, you can identify and process a group of related nodes in XML-based data sources. XPath provides an infrastructure that is integral to XML support in the .NET Framework. The XPath navigation model is even used under the hood of the XSLT processor. In this article, the author reviews the implementation details of the XPath navigator and the XSLT processor and includes practical examples such as asynchronous transformations, sorted node-sets, and ASP.NET server-side transformations.
MSDN Magazine July 2003
Edited by Nancy Michell
MSDN Magazine September 2001
I am trying to pull all of the associated data from a SharePoint list row to an InfoPath form repeating table. I would like to select 1 unique value from the
row and have the other fields auto-populate with the associated data from that row.
SharePoint Columns and also names of InfoPath fields 1, 2, 3, 4, 5, 6, 7.
I have a dropdown that is connected to column 1 and I would like to select 1 and have it populate the rest of the fields from that row.
I am currently doing this with information and C# code from: