Data Controls :: How To Use XML File To Store Offline Data
Oct 17, 2013
I am developing a application which is social related, and medical also, where there are lots of offline data which we have to show per user, insted of asking database for all the data, to reduce the preassure on the db server, i have thought of using xml for the offline data source.
When a user logs in, the old data will be loaded from the xml file from his folder which approx of ( less than 1 mb) each file). the updated info will be fetched from the db with the index of that table.
Can we use xml in getting data using writer and reader in vs 2012.
Is it better to store images directly in a database or to just store the name of the file in the db and display that file? I would think that just storing the filename of the image would keep the db size low...
I am trying to store data from an XML file to a table in my database, but I keep getting the same error.
This is my code from the cs file:
[Code]....
And this is my error:
Violation of PRIMARY KEY constraint 'PK_Areas'. Cannot insert duplicate key in object 'dbo.Areas'.
The statement has been terminated.
In my XML file I have both existing rows and new rows for the database table. I'm guessing I have to do something to sort out the the rows that are not already in the database, but so far I have been unsuccessful to figure this out.
website using text file to store data and display it using html codings. The requested website must be able to do the following functions:
1) Browse for template using txt file and select the txt file as template. (Font-styles, headers, tables....etc) 2) Browse for txt file that stores the data and display them in a so called table format categorized properly. 3) Able to do a search function and store the search results in a new txt file. (Which means a new txt file is created everytime someone performs a search and the search results is stored in the new created txt file)
Is there any website with informations/tutorials on these?
Its related to datatable in gridview store in session and then session retrive and store to database. basically i am using gridview here creating new row for button click and these row adding untill user's last entry then submit all these entry to database. so i want to use session variable to store this data temporarily and after final entry user click on submit button and all data shold be save in db.
I am using Visual Studio 2008 Express and I wish to select a file for downloading. I have seen websites that when you select the file for download, a small browser appears to ask you where you which to store this data to.How do I get that component ?? I know the path on the web design where my data is store, and if its must be a hyperlink, I can make a hyperlink to that path.All I wasnt is when the user select the file he wish to download, a small browser appears to ask where he was that store to.Can someone tell me what I need to do to get that ?
I have one parent gridview where each record will link to its details page (another child gridview in modal popup). May I know how do I store the values of the child gridview temporary (maybe in session) and repopulate the data into the parent gridview? Current problem is: once I click save in the child modalpop gridview, it binds the parent gridview before the child gridview data is stored in session. I want to store the data temporary until user click save in the parent gridview.
I had displayed data in a gridview..Now I want to store all the data in a database table..How can I do that?..For eg: I have 2 columns named col1 and col2 and have 10 rows of data..I want to store the data in a table which has 2 columns to store col1 and col2 data..How can I store all the 10 rows of data in a single button click event?
I have OrderFilm.aspx that bind films information from database and I want use cookie in this page and users can order their film with different quality:
this is table:
Id Name 720P 1080P 720Price 1080Price
1 Spectre.2015 1 1 200$ 300$ 2 Water Fall 1 1 150$ 200$
I want if users click on film name from orderfim.aspx ( i.e:Spectre.2015 )and go to film.aspx and select 720P checkbox it save in cookie that users select 720P for Spectre.2015 ...
here I wrote:
HttpCookie cookie = new HttpCookie("orderFilm"); if (cb720P.Checked) { cookie["Film720p"] = cb720P.Text; } if (cb1080P.Checked) { cookie["Film1080P"] = cb1080P.Text; } cookie["FilmName"] = Lblname.Text; Response.Cookies.Add(cookie); lblMessage.Text = GetCookies();
but problem is that in orderfilm.aspx page if users click in other film name(i.e:WaterFalll) and go to Film.aspx page and checked 720p checkbox It delete their last selected cookie and just set their new cookie:
and attention that here I use querystring in orderfilm.aspx:
<asp:HyperLink ID="HyperLink3" runat="server" CssClass="LBP3In" NavigateUrl='<%#"film.aspx?ID="+Eval("ID")%>' Target="_blank">click to order</asp:HyperLink>
Here I store the hierarchy data for the Organosation. Under_Level_ID denotes under which Level_ID the current Level is lying. e.g. for Branch the hierarchy in above table will be likeHO-->REGION-->Branch & for ZONE the hierarchy will be same as branch. Now my problem is I need all the hierarchy below a given Level. i.e. if am passing 132 as level then the SP should return me all the hierarchy elements lik Zone, Branch, fgfgfhf, Cluster,