View Complete Post
I have an xml file in the below format.
<?xml version="1.0" encoding="utf-8"?><UITemplate><HTML>tr</HTML><HTML>td</HTML><HTML>div</HTML><Control ID="Title" Editable="true" UserControlName="Title.ascx" Visible="true" Enabled="true" ></Control><HTML>/div</HTML><HTML>hr</HTML><HTML>div</HTML><Control ID="Edit" Editable="true" UserControlName="Edit.ascx" Visible="true" Enabled="true"></Control><HTML>/div</HTML><HTML>/td</HTML><HTML>/tr</HTML></UITemplate>
I need to loop through each element and get the value.
Using XmlTextReader iam able to do that but If the tag name is <Control> then i need to get values for ID,Editable,UserControlName,Visible etc.. after that again read node values only if the node is <Content> it should read all the attribute values for that <Content>.
Please help me out
I am hoping that someone can help me get past some problems I am having when using the WPF TreeView control. I have a TreeView that at most can have 3 levels. The levels are defined as Project, Discipline, Person which would look like the
My TreeView is bound to a database using two HierarchicalDataTemplate's and then one DataTemplate (the binding is done in the XAML).
I would like to get is the following information when selecting an item:
How can I crawl XML files and map node values to properties?
For example I have a node called "PostedDate" and want to query all xml files with a specific posted date. Is this possible in MOSS out-of-the box? Do I have to write an extension in c#?
Any help would be very appreciated !! Thanks.
Suppose i have xml variable with value,
DECLARE @t xml
SET @t = '<root><ID>1</ID><ID>2</ID><ID>3</ID></root>'
I want to fetch values of node ID into a resultset like,
how can i achieve this?
Thanks in advance!!
i got some samples and i did autocomplete using jquery , its working well for single input values
but i need to pass multiples values after one by one in the textbox. Is it possible to pass multiple
values in the textbox for autocomplete in jquery in asp.net?
This is quite strange. here is the issue:
1. I'm using a multi-select jqgrid.
2. I have my own delete button to delete multiple orders
When i press the delete button on the pager of my jqgrid, the records are deleted from the database but JqGrid shows some records (4-5). On refreshing the grid, correct numbers of records are shown.
Here is the code:
I'm working with VS2010 Beta2, ASP.NET and Dynamic Data. I'm using VB but will certainly be happy to receive a C# example if necessary.
I used a few of Steve's examples (Writing Attributes and Extension Methods for Dynamic Data and Dynamic Data - Hiding Columns in selected PageTemplates) to create a custom property attribute to be applied to a dynamic data column and want it to accept an array of enum values (each value will represent a dynamic data page template where this column should not be displayed). My new attribute works fine when I hardcode it like this, meaning the HideColumnIn attribute is properly populated with the array of enum values:
<HideColumnIn(PageTemplate.List, PageTemplate.Edit)> _
Public Property My_DD_Column As Object
However, I want to store the values to be used for the HideColumnIn in the DB as integer values that correspond to the
how to pass the value from one page to another page in asp.net with out Using State Management Concepts?
Like 1. cookies
With out using the above should pass the values...
I have one drodownlist which show data based om textbox values...
Let us consider i have
Select Name from table1 where Type IN(@typ)
here @typ is textbox values
here for example textbox will have some thing like this L1,L2,L3..
How to filter Name based and shown in drodownlist based on this L1,L2,L3(on textbox)..
Help me in this
Am reading an XML from web service and storing in a dataset.
then in write to a DataTable as follows
DataTable dtResult1 = dsSearch.Tables["RESULTSET"];
DataTable dtHIT = dsSearch.Tables["HIT"];
DataTable dtField = dsSearch.Tables["FIELD"];
The issue is in the DataTable dtField i can only see 3 columns FieldID,Name,HIT_ID
The corresponding values in the dataTable looks like this for the corresponding fileds
I am unable to get the Field Name values 1,8799f4646b6ed9acde142581a84f75a6 ,234B5F5F-F247-4EB6-9E39-A7B64C7FE1BD,Yes...etc
What would be the cause for this...Any Help
Below is the structure of the XML-
- <RESULTSET FIRSTHIT="1" LASTHIT="10" HITS="10" TOTALHITS="46" MAXRANK="3159" TIME="0.0040">
- <HIT NO="1" RANK="2955" SITEID="0" MOREHITS="0" FCOCOUNT="0">
<FIELD NAME="internalid">8799f4646b6ed9acde142581a84f75a6 </FIELD>
<FIELD NAME="contentids" />
I'm new to xml.
Currently I'm using the SOAP service and MSXML2.ServerXMLHTTP40 to get data from a website.
To retrieve data I'm using the "responseText" method of the MSXML2.ServerXMLHTTP40 class.
My XML tree looks like this. ( part of the tree)
Just need to retrieve the value of the "projectName" & "dataID" from this.
Appreciate if somebody can help me to get the values of the above 2 fields with the relevant code.
Thanking you in advance.
One of my NUnit tests has to read in some values from config files. In my main application this process works perfectly well, however when I run the unit test, the code that reads in the values from the config files doesnt read anything in. Ive tried putting app.config in my unit test project (I even tried web.config) but nothing seems to work. Are there any special steps involved when reading from config files in an nunit test ?
We have a part of our website which is coded in classic asp. This takes the values of a login page (asp.net) which uses
<input type="text" /> to hold the values and then submit them to the asp page using the following line of code -
<input type="submit" value="Login" onClick="this.form.action='<%= SubmitURL() %>/login/login_user.asp?Type=Login&this.form.encoding='application/x-www-form-urlencoded'; this.form.submit();" />
The asp page then retrieves the values using the code -
Value1 = Request.Form("Val1")
We now have a requirement to pre-populate the login values to provide an automated login process but don't want to change the older asp code. When we try to assign values to the input text in the asp.net page by assigning the value runat="server" the login fails as it does not seem to carry over when the page is submitted.
Is there a way where we can pre-populate the html textbox without making it unavailable to the asp page?
If the first Sitemap node is your homepage/default and all other nodes are supposed to be children / grandchildren of the first sitemap node in a web.sitemap, how do I set up my web.sitemap to enable me to display my cssFriendlyMenu with the homepage node along with the nodes that are 1 level down from it at the same time as in :
Home Products Services About us
...or is it not possible to have the first sitemap node displayed along with the nodes that are 1 level down from it? Do I need to have a different starting node rather than my homepage node?
MSDN Magazine July 2004