View Complete Post
I'm trying to build a dataset out of an XML File and an XSD scheme file, but I need the Scheme to change some of the data in the XML DataSet.
For example, I have an empty field in the XML file ("<Price></Price>") but I need my dataset to contain a decimal value of 0.0 for this field if the XML tag is empty. I need to somehow change the value in the dataset in these case to 0.0. When trying to use a decimal element in the XSD scheme, I get the "Input string was not in a correct format" error because it's trying to convert an empty string to decimal. Strangely, if this was an int, there wouldn't be an error..
The commands I'm using are simply:
The XSD scheme has the "default" and "fixed" attributes, but as far as I understand, they only take place when the tag is missing from the XML File, not when it is empty.
The ultimate goal is to have a XML generated dataset with the correct decimal type and default value of 0 when the XML has an empty tag.
Can anyone please help?
I have a data flow task in which I have a dataset containing some rows and now I want to update the rows in a table, not insert them. Is there any way to do that in the task?
I have an WPF .NET 4.0 application which creates a TreeView in the main thread, and databinds it to a DataSet which contains two DataTables. The datatables have a simple relationship between them which represents a two-level tree. When the treeview
is initially drawn, it correctly displays all items from the two datatables as a two level tree.
When the DataTables are updated from the UI thread (add/delete/modify a row), the treeview is refreshed and the changes to the databound DataSet DataTables are visible in the treeview.
If changes to the DataTables are made from a ThreadPool thread, no exceptions are thrown, but the
UI is not updated. I am using a threadpool thread because the changes will be initiated from multiple network devices and processing their data is fairly CPU intensive.
I am assuming that change notifications are not being propogated across threads for DataSets/DataTables. Is this assumption correct? If so, are their recommended best practices to overcome this limitation?
I want to add multiple rows of a gridview if the data for multiple fields are same.
Idea for this is that a user may search a record with some parameter e.g. Sector, plot.
For example 15 records being displayed in gridview.
There should be checkbox before every row and if user wants to update Plot and Flat No that is same for 10 rows out of 15 so he will check the rows and update.
For this a dialog box should appear asking for the parameter i.e. Plot and Flat or something else next time may be it will be City or country. Moreover, there is already an Edit button to update records, when user click it another page open for the record to be updated and whatever he wants to update, it updates.
Hope everone understand the scenario.
I don't want to disturb the already provided Edit functionality and want to provide same record to be updated.
Any idea in this regard would be appreciated.
I've a problem with my Visual Studio.
On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.
Can anyone give me suggestions on how to implement the following requirement?
1. A online wizard (step-by step operation) processes user requests across several ASP.NET pages. The session data is stored in memory until the user submits the request. Once the request is submitted, a XML file is created and the data are passed to XML.
# Case Study: The parent page has a "select" button. Click "select" will pop up a child page. The users can select 1000+ items from a datagrid in the child page. Once the user clicks "confirm", the selected items in the child page will be populated to the selected item gridveiw in the parent page. The user can keep selecting more in the child page and the selected items will be appended to the gridview in the parent page.
- What's the best way to extract strings from a text file and convert to a dataset in memory and then present it in a datagrid in UI?
- What's the best way to persist and manipulate a large dataset across pages? Session? or ViewState? Can it be accomplished by LINQ?
The app doesn't interact with a DB. Once the request is submitted, it will convert the in memory data to a XML file. What technology can be used to accomplished this?&nb