.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Storing configuration data

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :SharePoint


I'm developing an EventHandler that requires configuration data for each list.

I created  a CustomAction in List ViewToolbar and redirect users to a HandlerConfigurationPage.aspx. 

My question is, where can I save configuration data ?  One option is creating a hidden config.xml in the list and reading values from EventHandler. 


any ideas ? 






View Complete Post

More Related Resource Links

Storing User Data



I'm trying to get the current logged in UserId Value, using this code

Protected Sub UserProfileDataSource_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles UserProfileDataSource.Selecting      ' Get a reference to the currently logged on user      Dim currentUser As MembershipUser = Membership.GetUser()      ' Determine the currently logged on user's UserId value      Dim currentUserId As Guid = CType(currentUser.ProviderUserKey, Guid)      ' Assign the currently logged on user's UserId to the @UserId parameter      e.Command.Parameters("@UserId").Value = currentUserId End Sub

But, I getting an error (NullReferenceException), I did set a url authorization on the page that i try to get the logged in user information, witch is info.aspx, and I made the login.aspx control to be redirected to the info.aspx after the login process, But the info.aspx  only shows me (access in denied), how can i make this page knows that i am already logged in?

Web Q&A: Storing SQL Data, URL Query Length, and More


Find out the best way to store large amounts of XML data in SQL Server, along with the performance implications. What's the maximum length of an XML query to SQL Server in a URL?

Edited by Nancy Michell

MSDN Magazine May 2003

Storing data into property

Hi, I have written a property globally on page load i am storing setting some value into that property but on button click i am not able to retrieve the data. Is there any alternate way to save the data other than viewstate or sessionstate. Ex: Partial Class _Default Inherits System.Web.UI.Page Private s As String Public Property Test() As String Get Return s End Get Set(ByVal value As String) s = value End Set End Property Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then s = "Test" End If End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click s = "Champ" End Sub Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click MsgBox(s.ToString()) End Sub End Class

Storing multiple data types in a class?

I need help writing a class that will contain three values per item.  I'll be passing parameters to a report: Parameter Name, Data type (int, string, date, etc), and Value. When I pass those values to the report using the class they should be in original form (i.e. an integer should be a numeric, a string should be a string, etc.).  I can do it converting the data's value to strings on one end, and reconverting to the original data type on the other, which seems like a lot of runaround. Is there a simple way?  Also, if I'm able to store & retrieve the data in it's native format I don't need the "Data type" stored. Any help or tips will be appreciated.

Storing and retrieving historic data

Hi, I am looking at making my database historic and would like some pointers. Data older than 1 year does not need to be kept so every 12 months, data is "recycled". So far I have come up with the following using DATEPART and all data is in the same table (tables simplified): 1. When I insert records: INSERT INTO [Table] VALUES (newid(), @FKID, @Value, GETDATE()) 1. When I update records: UPDATE [Table] SET [Column] = @Value WHERE [FK] = @FKID AND (DATEPART(month, GETDATE()) = DATEPART(month, [TimeStamp])) 2. When I select records: SELECT * FROM [Table] WHERE [FK] = @FKID AND (DATEPART(month, GETDATE()) = DATEPART(month, [TimeStamp])) 3. WHEN I delete records: DELETE FROM [Table] WHERE [FK] = @FKID AND (DATEPART(month, GETDATE()) = DATEPART(month, [TimeStamp]))   Is this efficient? I was looking at partitioning, but I am not sure that it would be feasible as I want to recycle data every 12 months. Or is there a better way to do it? Regards, James

Is sharepoint good for storing relation data ?

Hi I would like to start discussion or find your opinion around "if sharepoint 2007 is a good platform to store relational data"? I found that quite often bussness doesn't feel that and push dev to create solution for relation data on top of sharepoint infrastructe. On the end we get huge customization with make everybody frustrated and those poor dev gays are blame for that. I believe that needs for relation data in particular solution draws clear line between apps build on top of Sharepoint or apps build with use of good old SQL database. Can I get your opinion around that ? I have three years expieriance with SharePoint and this is my personal opinion. If you could share your thoughts then for sure this would be helpfull for me and for other dev to show to the bussness why we somethimes suggesting them to go diffrent way. To build this discussion on some example let say that we need to build solution where: we have product table (with details around products) with contain two relation fields : user by country, owner by country we have country table (dictionary for countries), which contain field pointing to the region we have region table (dictionary for regions) we have few diffrents tables describing diffrent types of docs associated to products (like specyfication, safty documents, test documents) and let say there there goanna be a lot

Storing large data in Session State

Hi, We have a scenario where we need to store large tables of data on Session in asp.net page. on a highlevel we have to store following data  1> A table (table 1) with 1000 rows and 8 to 10 columns. 2> A table(table 2) with 500 rows and 8 to 10 columns (actually user can add the data from table 1 to table 2, so as user keeps on adding from table 1 we remove the data and put it in table 2) 3> Another table(table 3) with 1000-1200 rows each having 3 columns. We are having a webfarm, so we need to store it in either SateServer of Oracle DB, please advise which one is better. What would be the performance implications of storing such huge data on the server. One more thing is at any point of time max of 70 -80 people will be accessing our website, so will this cause any performance degradation? Thanks in anticipation Harsha

Storing Data in database


Hi everyone,

I'm try to create a news site in my website. How can i store this kind of large text below in the database.

8 Questions Every Business Analyst Should Ask

It does not matter what project you are going to undertake. It is not important what industry you are going to be assessing. What is important is you know what you are going to do. You must as questions. You must find what it is the client wants. Presented is a list of obvious questions every good business analyst should know the answer to when starting a project.

1. What problem is this business having that you hope to solve by developing this project? It should be obvious as to why you would ask that question. If you do not understand what the problem is then you can not help to solve it. Also, when reading the project program it may not be clear as to what the client actually wants. The scope may only tell you what they would like to see happen. It could and often times is not focused on what the true issues are.

2. What is the business doing at present to alleviate or solve the issue? What has been tried in the past? You must understand what the client is doing in order to understand what mus

storing data in web form


Hi i am beginner in web development..I have a question regarding storing of data in web pages..


I have created 2 pages one is login.aspx and Default.aspx ..Whenver user enters information in login page and creates submit button it will go to Default.aspx page...there is back button in default.aspx ..when i click this it goes to login.aspx page..


My question is when i click back button why cant i see data i entered in login.aspx page? what setting i need to use inorder to see data.




Storing session data continuouly




Is it possible to store gridview session data after each postback. I have a gridview and a checkbox within. Each time a user clicks the checkbox, I like to store the gridview ID in a session. After browsing through various pages, I like this session data to continuously store the information up to 20mins?


How can I continously store the session variable. Please can someone provide a sample? Say a text box and if I enter 1 click on a hyperlink (where session variable is stored) return back to the page, enter 2 click hyperlink then I should get in the session 12?

Any one know how to do this? Please provide code in VB.

THanks! Nijojo

Data Source Configuration Wizard not showing in VS2008 web applications


 When I use VS2008 to create a new form application, I am able to go to the Data menu select "Show Data Sources" then the "Data Sources" window appears. Then I am able to "Add New Data Source" and so on.


But when I create a new Web Application. I can not do that.

Am I not able to create a Data Source on web applications???


Data Sources in Configuration Files



In an Integration Services project, I can see there's a section for Data Sources which is used for defining shared data sources for all the packages. In addition, each package can define connection managers of its own, and these managers can be configured using configuration files for the packages. My question is whether I can also use the configuration files to configure the shared data sources and how.



Storing XML data in multiple related tables at one shot


Hi, I am looking for some ways to store data in multiple related tables in one shot using the advanced features in SQL Server 2005. The store operation will always be the insertion into the different but related tables.


The scenario is something like this. I have an input XML data, on which I apply XSLT to convert them in relational format and to make it compatible with a dataset schema which I created from the related tables from the database. Then I load the refined XML data into a dataset. I am looking out for some ways to store the dataset in one shot into the database in relational format without breaking records parent-child relationship. Thanks in advance for your suggestions and feedback.


Storing and Pulling data in DB to get Google Map location


I have this simple project which needs to show location on a google map by pulling data from the DB.

I am using asp.net, mysql DB, google map and i found out from some website that i needed to use ajax. 

The process is like this
1. I have a event form where i have multiple fields to fill in and it includes a Location/Venue fields which i can enter a location by Name(Not the Co-ordination). I am located in Singapore. So all fields will be stored into the DB.

2. I have a webpage displaying a table of the data from the same DB, and it comes with a embedded Google Map. On the table, the value of the Location column will be Hyperlinked, and when i click it, it will act as a search query in the embedded google map and locate the address without reloading the page again(which i believe i gotta use iframe?)

I hope to get suggestions or references from you guys as i have been searching up and down for it... Thanks

storing data into DataSet from excel file using Oledb provider


I'm stroing data into DataSet from excel file using Oledb provider in asp.net c# application.

query: SELECT * FROM [Sheet1$]

everything is working fine but my concern is that 1st row should be skiped and 2nd row should be used for heading and rest for datarow.

I need help on urgent basis.


Storing Temporary Data


I was looking for an example of creating a wizard with a series of questions in a WPF Browser Application. The idea would be to store each answer in a temp location/memory provide a summary at the end of the wizard and then commit the answers to a database on Finish.

So far I have programmed this using WPF navigation having a main wizard page with a frame and two buttons, Each question in the wizard is a new page which is navigated to using the buttons. I am unsure how to store the data as the wizard progresses, i.e can I find the control on each wizard page and store the values in application or is there a better way to do it 

Main Wizard Page 

	<telerik:RadMenu HorizontalAlignment="Stretch" Name="radMenu1" VerticalAlignm

Best way to manage SQL Server Package Configuration data

I inherited approximately 150 SSIS packages doing various ETL operations. They use a custom table that requires that we add a new column when a package requires a new type of config data storage.
As part of an upgrade from 2005 to 2008 and a partial rewrite effort I am exploring, among other changes, switching from storing config data in the flat/wide table I mentioned to using SQL Server Package Configurations to manage configuration data. What do you think of the following?
  1. Having two Package Configurations per SSIS package. Both will be pointed to the same database containing only the config table, but with different filters. One filter will be specific to the package that will contain package-specific configuration data and one will be called "global" which will contain configuration data that all packages share (things like "default alert email" should Armageddon ensue during package execution).
  2. How best to manage configuration data when moving a brand new package from DEV to STAGING to PRODUCTION?
  3. How best to manage properties for the connection object used to initially connect to the Package Configuration database/table?


Make everything as simple as possible, but not simpler.
-Albert Einstein

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend