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


Similar Messages:

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

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

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

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

Forms Data Controls :: Using Multiple Tables Within A Single DataSet And Single SqlDataSource?

May 19, 2010

I have a stored procedure that returns 3 tables within the single recordset it returns. If I set a SqlDataSource to get data from this procedure, it works, but it only returns the first table. I want to have a GridView display the data from the 2nd or 3rd table using a SqlDataSource, but I can't figure out how to specify a particular table.

While there are some posts discussing this out there, I can't get a definitive answer about whether or not this is even possible (?). In a worst-case scenario, I can create another SP that only returns the 3rd table - but that creates a little maintenance headache that I would prefer to avoid.

View 4 Replies

Perform Multiple Write Operation On A Single File?

Nov 22, 2010

I have a website in asp.net 2.0 which write some thing on a file. But at the same time if another user hit that site it does not work till the first one operation on the file completed after that second one can do operation with the files.

AppConfiguration appConfiguration = new AppConfiguration();
string LogFile =String.Empty;
string sLogFormat =string.Empty;
string sErrorTime =string.Empty;

[Code]....

View 2 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

Data Controls :: Display Multiple Columns In Multiple Lines In Single Column In GridView

Aug 18, 2015

I have a question in gridview, I want to combine my two or more records into a single cell with two rowsfor Example i have a ID, Name, Year Start, and Year End for Column name in database and i want call it into my gridview that the Year Start and Year End will combine to Year like:

In Database

ID Name Year Start Year End

1 Yourname 2010 2015

In Gridview:

ID Name Year

1 Yourname 2010 2015

in a year column i want it to two row..

View 1 Replies

Data Controls :: Display Multiple Columns In Multiple Lines In Single TemplateField Column In GridView?

Aug 18, 2015

I want to bind three column with one row in gridview in asp.net with c#,

i want like this, 

Name | Info
----------------------
name | lastname

        | phone number

        | address

I get this by default

name | last name | phone number | address 

View 1 Replies

Open A Single Worksheet (single Tab) From A Huge Excel File On A Web Browser Using C#

Feb 27, 2010

I have huge excel files that I have to open from web browser. It takes several minutes to load huge file. Is it possible to open a single worksheet (single tab) at a time from excel file that contains many worksheets? I have to do this using C# / asp.net MVC

View 5 Replies

Display Data From Multiple Tables In A Single MVC View?

Nov 30, 2010

I am having a hard time solving the following with an MVC view. My goal is to display data from multiple tables in a single MVC view. The bulk of the data comes from a table called Retailers. I also have another table called RetailerCategories which stores the retailerid from the Retailers table and also a categoryid linking to a Category table. Note that there are multiple records for each retailerid in the RetailerCategories table.

In the view I want to show a list of retailers and with each retailer I want to show the list of categories applicable to them. What would be the best way to accomplish this?

View 2 Replies

Forms Data Controls :: Populate Multiple Ddl From Single Sqldatasource?

Mar 4, 2011

I have a parts table (ID, PartName, Category). I have an Engine table that has 10 columns to specify the 10 main parts that comprise the engine (EngineID, PartA_ID, PartB_ID, PartC_ID...).

I want to make only one trip to the DB to pull all the rows, then filter by category for each PartA, PartB, etc ddl. how to do this?

View 2 Replies

Configuration :: How Many App Domain Created When Multiple Instance Of Multiple Application Is Running On Single

Jan 12, 2011

below written question :

1.) What is the name of the OS process in which App Domain resides.

2.)if suppose There are Three Windows application hosted on a same envoirment and two instance is working for each application at a Time, means now total instance are six .what will happen among the below written cases :

a.) There will be six different app domain in a single OS process

b.) There will three app domain(one for each application) in a single OS process and some Parallel thread will be executed in each app domain for another instance.

c.) There will be Three OS process corresponding to each application.

3.) If eveything will remain same except there are three web application in place of windows in point 2, will there be any change in functioning.

View 1 Replies

DataSource Controls :: Inserting Data Into Multiple Tables From A Single Web Form?

Jun 26, 2010

After creating a dataset, which has CRUD statements generated two or more tables, which Data Control should I use that will allow me to insert data into fields into 2 or more tables from a single web form. I'm trying to create a web form that will allow the user to input student information, such as general information, medical information, etc.

View 3 Replies

Visual Studio :: How To Insert Data Into Multiple Tables On A Single Web Form

Mar 20, 2010

I'd like to build an Asp.Net website using the .net 3.5 framework. I have a SQL Database called "Database.mdf"

View 1 Replies

Forms Data Controls :: Gridview Multiple Hyperlink In A Single Cell?

Feb 23, 2011

How to add individual hyperlink on comma separated values in single cell? For Eg: I have customer name comma separated in a single cell. I want each customer name as a single individual link.

View 2 Replies

Data Controls :: Pass Multiple Values For Single QueryString Parameter

May 7, 2015

i want to pass multiple arrays variable in query string.for example i have three checkbox list Brand ,Price, Attribute any arrays variable may have more than one value key arrays variable are fixed for checkboxlist

1-checkbox list Brand has Brand []arrays variable

2-checkbox list Price has Price []arrays variable

3-checkbox list Attribute has Attribute []arrays variable

now i have selecting two -two from every checkbox list .than i want to query string something like this

www.defualt.aspx?brand[]=samsung=123&apple=11,Price[]=100=12&200=2,Attribute []=camera=1&display=2

View 1 Replies

Data Controls :: Print Multiple GridViews On Single Button Click

Dec 14, 2012

on my webpage  having 5 gridview n when m click on PrintAll ... it combine all record in one gridview .....so wt can i do to get the Gridview as it is on after print .......n m rendering Div nt gridview . attaching code also.

gvincrement.AllowPaging = false;
gvincrement.ShowFooter = false;
// tblpan_cond.Visible = true;
gvincrement.DataSource = Session["key"];
gvincrement.DataBind();

[CODE]...

View 1 Replies

Databases :: Insert / Update Data To Multiple Tables On A Single Button Click

Sep 23, 2010

I need to insert/update data to 3 or more tables on a single button click.What is best method for achieving this?I am using mysql as my DB.

View 2 Replies

Forms Data Controls :: Single Row Below The Current Row Which Is Embedded From Multiple Small Columns?

Apr 23, 2010

i have grid view with one line per row, I added new field with is large text box 100 chars + and I want it to be in single row below the current row which is embedded from multiple small colums, e.g. name, age, address, etc. What is the simplest and correct way to do it, I am using gridview with item template already.

View 4 Replies

Forms Data Controls :: Create Multiple Hyperlinks In Single Column In Gridview?

Mar 23, 2011

I have a requirement to create multiple hyperlinks dynamically in a single GridView Column. The number of hyperlinks are not not known in advance and will depend on the results brought up by a query. How do I create the same?

View 4 Replies







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