Pulling Similar Data From Multiple Information Sources?

Feb 1, 2011

So I have been trying to follow serenarules posts about persistence layers, but I seem to be missing something.

The persistence layer is an architectural layer whose job is to provide an abstract interface to information storage mechanism(s).

This makes sense to me, but I am still having a hard time with this.

So in what cases is this necessary? When you are pulling similar data from multiple information sources?

View 7 Replies


Similar Messages:

Forms Data Controls :: Gridview Which Sources Information Dynamically From Database?

Sep 20, 2010

I have a gridview which sources information dynamically from database.

Here when i go for the default "AllowSorting" flag equal to true, i am able to achieve sorting of all displayed columns except the textBox control column whose values refreshes to zero.

View 2 Replies

Using The Single *.rpt File With Multiple Data Sources?

Aug 26, 2010

I've created a set of CrystalReports (*.rpt files) for an ASP.NET web app on a development server. I call each report using the following code:

[Code]....

When I transfer the *.rpt files to a different server, the reports display data from the development server; even when I change "Constants.DatabaseName" to point to the new server. It seems like the *.rpt file saves the database connection information from the ODBC File DNS used when creating the report.Has anyone experienced this problem? I'm looking for a solution so I don't have to create multiple copies of my *.rpt files for each server environment (i.e., Dev, Test and Production servers).

View 2 Replies

Access :: Pulling Information From The Database?

Jan 15, 2010

I recently designed a website for a school, I have their result in my database, I am using Northwind. What I want to do is, since all the result are in the data, I want to input a students name, exam number and some numbers in a card(exam scratch card, which they will purchase) they will purchase. When they input these details, the students results will be pulled out from the database.

Just like exam result portal, where you will look up your result with, your name, school number and numbers from the scratch card.

View 6 Replies

C# - Combine Data From Multiple Sources - Display In ASP GridView

Feb 5, 2010

I am writing a currency converting module for one of our applications. I have a list of products, a list of currencies we are interested in seeing prices for, and a list of currency rates. I want the user to be able to select which currencies from the list they see in the GridView. I also want to be able to amend my list of currencies and include a new currency, without having to make additional changes to this module. So my GridView display has to be "dynamic". Essentially I am planning on ending up with a GridView that has the following columns:

Part No - Description - USD Price - AUD Price - GBP Price

The USD price would be static as it's our base currency, the AUD and GBP are user selected and could have potentially any number of currencies listed. I would normally use a DataSet and DataTables for this work, but I am sure there is a "better" way to do it using System.Collections.Generics. Right now I have all of the data I need in List collections, but there does not seem to be a way to define how these collections relate to each other, or combine these collections into one so it can be bound to a GridView. Should I be looking at something other than List to achieve this or do I need to go back to my original approach of a DataSet and DataTables.

**UPDATE / SOME CODE**

I will explain a little bit more about what I have setup so far.

1) List of Products & Currencies - These come from an SQL DB via LINQ, so they can be any of the System.Collections.Generics objects, e.g. List, IEnumerable etc.

2) Currency Rates - These I am pulling from the European Bank public XML file. I download the file, strip the data I need out of it and currently store that as a List object.

I could store the currency rates in the database table as well, but then I have to have some sort of background process that goes and updates the rates each day. This way the rates only get updated when someone accesses the report function (which is only going to happen occasionally). So I would rather grab the latest rates "on demand". What I know I need to end up with is some object that has the following structure:

PartNo - Description - Base Price - Currency Price 1, Currency Price 2, Currency Price 3

Where the number of Currency Prices is undefined, as it's based on what currencies the user wants the report to display. It's the undefined part that I am struggling with, essentially how can I create a structured object, that I don't know the complete structure of until runtime?

View 1 Replies

Model Binding Multiple Data Sources On One View Page?

Feb 23, 2011

I have one view page (MyView.aspx) and many data sources to bind on this page. Lets say it has Books, Publishers, Comments, etc. Each one of those has an object which provides a List, List, etc. In my view, what are my optiosn for multilple model biding? I want to check to see if each one is empty, and then enumerate it. But I can't check Model.Count() because wouldn't Model be made of all those objects if I set the page to inheriet from? What are my options? Should I load each content area in a control/partial view? Or can I just dump each object into ViewData and then check the count by casting in the view?

View 2 Replies

Web Forms :: Pulling Information From Another Webform - Passing Parameters

Nov 29, 2010

I'm creating a pseudo invoicing system. I've got a webform where users can pick such informaiton as days, companies, etc to pull the information to create the invoice for and then they click a submit button. I'm wondering what the easiest method would be to get this information. I've had success with such commands as:

DropDownList SourceTextBox = (DropDownList)Page.PreviousPage.FindControl("DropDownList2");

but how can you pull this information through the SQLDataSource tools? When I choose to alter the "WHERE" in the sql clause to a control items in the previous page are not accessible.

View 1 Replies

Entity Framework - Combine Multiple Data Sources To A Single Repeater?

Mar 9, 2011

I have a repeater like so:

[Code]....

Problem is, I also want to show the viewer the available number of spots in the room. But this requires somehow pull in either the current_occupancy / max_occupancy or in performing a calculation (e.g. max_occupancy - current_occupancy = actual_available) and then returning that with the room.

The end result I'm looking for is to return each room in a button control with text that looks like this:
"Room 1 - 2 Open" "Room 8 - 1 Open" and so on

View 2 Replies

Databases :: Pulling Profile Information From Custom Oracle Table

Jun 4, 2010

I am using asp.net 3.5 and Oracle Providers for membership and roles. Now, using CreateUserWizard i can make user register here but for storing custom information like First name, last name, address etc. i am using couple of custom oracle tables instead of Oracle Profile Provider. In this case, i am using the USERID field which is of GUID type as primary key. Now, my problem is that i dont know how to draw information from my custom oracle tables for those users who are currently logged in. I have searched a lot in this forum and elsewhere where there are many topics relating to it but i failed to follow any of them. So, i would request you to kindly guide me to solve the issue. Oracle Membership

Table(ORA_ASPNET_USERS) USERID=xxxxxxxxxxxxxxx(some guid value) Username=abc and so on.. My Custom Table(UserProfile): USERID RAW(16), --> referenced to USERID field of ORA_ASPNET_USERS table fname varchar2(20) lname varchar2(20) I've the profiles of username "abc" having some userid stored in Userprofile table So, how can i fetch data from UserProfile table for the user "abc" when he is logged in?

View 3 Replies

Forms Data Controls :: Display Gridview Data From Multiple Sources?

Jul 16, 2010

I need to display some data in a gridview. Its shipping data.

Part of the data can come from a generic database query. Static shipping data that can be looked up from the database. Part of the data is external and has to be queryed from USPS. Any suggestions on what is the best way to accomplish this.

Should I just programmatically fill the gridview from the code behind doing the database lookup manual and filling the gridview with manual data then going out and filling the rest of the gridview with the data obtained from the USPS service?

View 2 Replies

Forms Data Controls :: Multiple Data Sources For Datagrid?

Jan 17, 2011

I want to have one datagrid use two different data sources, the two datasaet I use have all the same cloumn names, the only difference is that the come form different databases. I wan tto have the data source be chosen by a dropdown list box. Is this possible or do I have to use two datagrid and just make on invisiable as needed.

View 1 Replies

How To Load An GridView From Multiple Sources Asynchronously

Jan 1, 2010

Here is the situation. I need to hit ~50 servers and grab some data from a file. I then want to display a few rows for each in an ASP.NET GridView control.

I tried doing this with Threads/ThreadPool and successfully gather all the data in session.

What I'd like to do, and what I am having a hard time figuring out, is update the grid for the user after each server is done loading.

If I put the databinding code in the thread, it will only display whatever has loaded by the time the response is sent back to the client. If I take it out of the thread, I'd have to wait until all threads were done to send the response, and that doesn't do what I want.

I seeing some stuff about Asynchronous Client Callbacks, but I'm not sure if that's what I need to be using. I have no idea how to manipulate a GridView from Javascript.

View 4 Replies

C# - Multiple Configuration Sources For Enterprise Library 4.1?

Jun 1, 2010

We use the caching and logging application blocks from entlib 4.1. We want to keep the configuration of those two in seperate files. How can we achieve this?It looks like entlib is always using the selected Source as it configuration.I tried the following:

[code...]

But this doesn't work because the application blocks always use the selected Source attribute value.

View 1 Replies

DataSource Controls :: Select Statement Pulling Multiple Times From Same Row

Jan 5, 2010

[Code]....

I have a select statement that is supposed to be filling grid with information from an income table. It's only supposed to pull if the income is from the current fiscal year or is less than 1 year old. Currently, what it does is pull multiples of rows and also rows from past income years but only if there is a mixture. For instance, if a person has income from 2005 and 2010 what it will show is this

Income 2005
Income 2005
Income 2010
Income 2010
Income 2010

Does anyone know what I've done wrong? BTW, those results are exact, old income is shown twice, current is shown 3X

View 16 Replies

How To Populate Multiple Similar Ddl

May 4, 2010

I have 8 drop down list used for accounting data entry i display 2 rows in a data table one for debit (positive amt) and one for credit (negative amt) the code is simple and repeated so i know i should not be doing it LOL. Would this be the case for a generic fundtion? or....?

[code]....

View 4 Replies

Forms Data Controls :: Similar Controls On Multiple Pages?

May 10, 2010

I am working on a project in which i have a master Gridview. It has a DetailsView and two GridViews as its children. I want to have the same master and child combination on two more pages in the application. On the first page i just want to change the select command of the master gridview and everything else remails the same. On the second page i want to change the master gridview to a dropdownlist with the same datasource and everything else remains the same.Can anyone please suggest me what would be the best way to go around it. Right now, all these three pages has its own set of codes and if i do any change to one of them then i have to do it in all three pages. I was looking at usercontrols but i think those won't work since i have do to slight modifications(as suggested above).

View 4 Replies

C# - File Upload Multiple Files In .net (similar To Gmail)?

Apr 22, 2010

I have a File Upload Control, so i click the 'Browse' button and when i select a file from the select file dialog, i want the file to be shown as a link below the File Upload Control( somewhat similar to gmail). This file should be seen such a way that it can be deleted, if i wanted to. And also i should be able to upload another file from the File Upload control.All these files should be uploaded to a location when i use a button click event in the end.

View 1 Replies

Using Entity Framework To Connect To Multiple Similar Tables In MVC?

Jun 10, 2010

A relative newcomer to .net MVC2 and the entity framework, I am working on a project which requires a single web application, (C# .net 4), to connect to multiple different databases depending on the route of access, (ie subdomain).

No problem with this in principle and all the logic is written to transform the subdomain into an entity connection and pass this through to the Entity Model.

The problem comes with the fact that the different database whilst being largely similar in structure contain 3 or 4 unique tables bespoke to that instance.

To my mind there are two ways to solve this issue, neither of which i am sure will be possible.

1/ Use a separate entity model for each database. -Attempts down this route have through up conflicts where table/sp names are the same across differnt db's, or implicit conversion errors when I try and put the different models in different namespaces. or

2/ Overwrite the classes which refer to the changeable database objects based on the value of a base controller property.

My question is if either of theser routes can ever work in principle or if i should just give up on the EF and connect to the dtabases directlky using ADO. Perhaps there is another way to solve this problem i haven't thought of?

View 1 Replies

C# - Multiple Asp Requests From Multiple Clients Share Information?

Dec 9, 2010

Imagine a website where individual clients can see each-other's presence - like a social network or a chatroom.

For example:

Client1 connects to my website.The back-end C# code updates a static field to indicate Client1's presence.
Client2 connects to my website.Will the back-end C# code for the second request see the information stored in the static field from the first request? Is there anything I need to do to guarantee that these seperate instances of my ASP application are sharing static data?

View 4 Replies

How To Put Two Data Sources In The Same ListView

Sep 14, 2010

I have a search page get data from two sources:

1- my data base

2- web service function

How to put this two data sources in my list view?

View 1 Replies

SQL Reporting :: ReportViewer Data From 2 Possible Sources?

May 27, 2010

I have a ReportViewer control on an ASP.Net page and an RDLC set up that uses a TableAdapter that pulls one record. This works fine.I'd like to have the *same* RDLC use a different TableAdapter (schema of table is the exact same, but may have multiple records). I've tried putting two DataSets in my RDLC and having the code dynamically select which one to use, but it's not working quite right for me.

View 1 Replies

Pulling Data From Website In .NET And C#

Jun 14, 2010

I have written a web scraping program to go to a list of pages and write all the html to a file. The problem is that when I pull a block of text some of the characters get written as '�'. How do I pull those characters into my text file? Here is my code:

string baseUri = String.Format("http://www.rogersmushrooms.com/gallery/loadimage.asp?did={0}&blockName={1}", id.ToString(), name.Trim());

// our third request is for the actual webpage after the login.
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(baseUri);
request.Method = "GET";
request.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)";
//get the response object, so that we may get the session cookie.
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
// and read the response
string page = reader.ReadToEnd();
StreamWriter SW;
string filename = string.Format("{0}.txt", id.ToString());
SW = File.AppendText("C:\Share\" + filename);
SW.Write(page);
reader.Close();
response.Close();

View 3 Replies

DataSource Controls :: Query Over Two Data Sources?

Jan 12, 2010

I need to create a query which does a join between two tables which are in different databases. I can easily connect to each database, and write queries in each, however, I can't seem to find a way of generating a query which does a join between two tables from different databases.

View 2 Replies

Delete A Record From Two Separate SQL Data Sources?

Aug 17, 2010

I have a slight issue with deleting a record that is stored on two separate SQL servers.

I am using an ASP.NET databound control on a datagrid with delete button commandfield linked to one data source.

Is there a way of deleting the same record from another data source at the same time?

View 4 Replies

Forms Data Controls :: Formview Data - Pulling Data From A SQL Database In Cases The Rows Contain One Or More Null Values

Feb 1, 2011

Using a class component, an Object data source and a formview I am successfully pulliing data from a SQL database. In some cases the rows contain one or more Null values and I would like them to be ignored completely. My simple code follows:-

<%# Eval("add_1") & ","%>
<%# Eval("Add_2") & ","%>
<%# Eval("Add_3") & ","%>

OUTPUT:-

Rose Cottage, 123 New Road, Margate,

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved