Forms Data Controls :: Mulitple Detailsviews Using The Same Datasource?

Jun 30, 2010

Each detailsview causes an execution of the same sqldatasource stored procedure which makes performance a problem. The stored procedure executes in 1-2 seconds, but 10 detailsviews on the page greatly slow loading of the page.The sqldatasource returns a single record with average, max, and min values for a large number of items.Each detailsview displays the average, max, and min for one item and are read only detailsviews.Is there any way to share data between detailsvies from the sqldatasource so the stored procedure only executes once?

View 4 Replies


Similar Messages:

Web Forms :: Upload Mulitple Files At Once?

Feb 3, 2011

I have a requirement where i need to upload mulitple files with one file upload control. I googled and found ajax uploader control but should be paied to use that. Is there any control similar to that which can be get at free of cost or could any one provide me sample code how can it be done.

Actually i have to upload car images and bike images to respective folders say carfolder and bikefolder. I used two fileupload controls one for car and other for bike and one button. when clicked on button the following code executes to upload the files

[Code]....

View 5 Replies

Mulitple Login Pages Using Membership?

Feb 18, 2010

I'm trying to create two ASP.NET Membership login pages for an ASP.NET website I'm creating.

Here is structure:

/ - Anonymous Access for page off root
/registeredUser - Must be part of RegisteredUser Role
/registeredUser/login.aspx - Login page Registered Users
/admin - Must be part of AdminUser Role
/admin/login.aspx - Login page Admin Users

Another person asked the question and it was suggested to use the location tag in the web.confg:
http://stackoverflow.com/questions/525988/redirect-user-to-mulitple-login-pages-using-asp-net-membership

But I receive errors related to the using the forward slash / in the location path. I removed the forward slashes and the security rules are ignored.

So my question is, can I have more than one logon page using ASP.NET Membership without creating separate applications in IIS?

View 2 Replies

Mulitple Websites Using The Same Code But Different Web.config Files?

Oct 18, 2010

I have mulitple websites using the same code but different web.config files. Is there a way where I can achieve not having multiple copies of the same code? so its easy to mantain?

View 1 Replies

Security :: How To Implement Form Authentication Using Cookie Shared By Mulitple Domains

Feb 18, 2011

My requirement is multiple domains (not subdomains) share cookie of form authentication

how to implement same?

View 2 Replies

Forms Data Controls :: Updating The Datasource / Mark All The Values In The Binding Column Of Datasource If Checkbox In Headertemplate Is Checked?

Sep 29, 2010

Scenario:
I am creating a custom gridview control which has a custom CheckBoxTemplateField column (deriving from TemplateField class). This template field column has custom Checkboxheadertemplate (implementing ITemplate) and CheckboxItemTemplate (also implementing ITemplate). In InstantiateIn method of both templates (header as well as Item template), I am adding a checkbox control which has Autopostback = true.

My requirement is:
I want to mark all the values in the binding column of datasource if checkbox in headertemplate is checked. I dont want to mark only rows visible on grid. I WANT TO MARK ALL ROWS IN DATASOURCE. I want to do this in _CheckedChanged event of checkbox in header template.

Problem I am facing: When I check/uncheck the checkbox in header, it postbacks. so in OnCheckedChanged event, gridview's datasource is null. Secondly, in any event of gridview, I could access only those rows of datasource for which corresponding rows are visible in gridview through Gridviewrow.DataItem property. But I want to set it for all rows in datasource.

View 5 Replies

Forms Data Controls :: How To Insert Data To Gridiew Without Using Datasource[means Temp Data]

Oct 18, 2010

in one on my page i am using to add the data from popup window to grid view without using the backend means databasethis is my popup window code

[Code]....

[Code]....

View 2 Replies

DataSource Controls :: Sqldatasource Insert Method - Copy Data To The Other Datasource By Selecting Checkbox

Feb 25, 2010

i have two sqldatasource controls. one i use to display data in textbox's ,filter'd by a select parameter in page behind code. Once checked, i want to copy this data to the other datasource ,by selecting checkbox.Then display this data in detailsview control.

At present the two datasource controls declared , render data to the page simultaneously during pageload. I want to first check data in textbox's from first source, before second datasource is rendered to screen. note, both are filtered by a page variable. i wish to leave the textbox datasource control in situ, as other controls and code depend on it.The other detailsview datasource is my problem?

View 1 Replies

DataSource Controls :: SQL Datasource / To Show A Message That There Is No Data Selected?

Mar 2, 2010

ASP.net SQL datasource C# code behind

I want the webpage to show a message that there is no data selected,

Instead of showing blank details view

here is a picture of blank details view:

[URL=http://img28.imageshack.us/i/errorks.jpg/][IMG]http://img28.imageshack.us/img28/4328/errorks.jpg[/IMG][/URL]

What C# code do i need to use so that, whenever I enter that page, only an error message will show up

instead of the details view ..etc.

View 3 Replies

DataSource Controls :: Inserting Data With Object Datasource?

Aug 9, 2010

This is the first time I have been working on databases and I am trying to insert data using an object datasource but no data is being inserted and no exception is thrown. I'm not sure where I am going to wrong. I am putting user data into session variables and inserting the session variables into the dataacess class layer and have a try and exception but nothing being thrown. Any help would be really appreciated because I don't know even where to start looking with this or how I can get the error to be thrown. Please see some of my code below to give an idea of what I am doing

Object Access Class
public void InsertCarPolicyHolder(PolicyHolderClass ph, CarInsuranceOptions options)
{

[code]...

View 2 Replies

Forms Data Controls :: Listview Data Sorting With DataSource Property?

Dec 5, 2010

I am using a ListView and i want to get my datatables sorted by clicking table headers. I am binding my ListView to DataSet via DataSource peoperty of ListView.I donot want to use ObjectDataSource or SQLDataSource Controls.

View 2 Replies

Forms Data Controls :: Populating A Grid View With Data From SQL Datasource?

Dec 22, 2010

I'm populating a grid view with data from an SQL datasource. The database has a a list of performing artists and lots of details. The gridview initially, shows the ArtisID (Primary key) , and artist name and music style. So far this is all simple and easy. This is done.

Now I want to be able to click on the ArtistId (Select Column) and move the customer to another page where I show indepth details about the artist. How do I do this???

In Vb.net I had a 'Celldoubleclick' event, and I redirect the client. But how do I accomplish the same in asp.net? I already have the primary key value

primekey = datagridview.selecteddatakey.value

View 4 Replies

Forms Data Controls :: Bind Data To Detailsview Control Without Datasource?

Nov 10, 2010

i have a detailsview control. in that i have 5 textboxes.

i dont have datasource contrl and any sqlqueries.

when ever i open the page detailsview control statitically should display some values in the textboxes.

then i will insert some values threw businesslogic.

when ever i open the page detailsview display some static values in textboxes.

View 1 Replies

Forms Data Controls :: Gridview Will No Longer Show The Data - Datagrid Datasource = Null

Feb 25, 2011

I am familiar with populating a gridview with data. I am able to bind the Data pulled from the database into the gridview

gridview.DataSource = myDataTable;
gridview.Databound.

If I write the following code, teh gridview will no longer show the data

gridview.DataSource = null;
gridview.Databound.

My question is , I want to make the same thing with a user control that contain a gridview. when I use the user control in an aspx page, I am able to populate it with data, but when I try to make this code, the Datasource does not show, instead, I see .DV. So I tried this code but then , I do not see DataSource property instead I see DV (DataView), when I put .DV = null, I get an error message that the object is not in existed. any idea how to clear the user control gridview from its data.

View 2 Replies

Forms Data Controls :: How To Read Data From Stored Proceedure And Display To Gridview Using Object Datasource

Dec 8, 2010

I have an object datasource which is using Business object as a myconnection

The method i have defined under myconnection is

Publicstatic
DataTable getfn(String dtype,
String did,
String dprefix,
String dname)
{
datable table = new datatable(); then declared stored proceedure and defined parameters and assighned values

In the stored proceedure it has a query like select column1,coloumn2,coloumn3 As Call from table where
I need to take data from Call and display it to the gridview through object datasource .

View 1 Replies

Forms Data Controls :: Two Formviews Inserting Data From Other Datasource?

Mar 3, 2011

I have two formviews and two datasources on a page.

The first shows data from datasource 1 in various labels.

The second shows only a 'new' button to switch to insert mode.

On the seconds insertmode, id like the data in textbox1 to be already filled with data shown in the first formviews label1 (or [id] from sqldatasource1 if thats better?)

View 5 Replies

Forms Data Controls :: Gridview Binding Without Datasource Controls?

Jan 27, 2011

I m new in asp.net. I want to use gridview with a custom business object.

Should i have property in my custom object.is there a way to access object fields.

View 4 Replies

Forms Data Controls :: Get The Datasource Of A Gridview?

Jan 6, 2010

I am using a gridview with sqldatasource. How to get back the datasource in the codebehind ?

View 2 Replies

Forms Data Controls :: TrackableCollection As Datasource?

Jul 1, 2010

I can't get this to work.

View 2 Replies

Forms Data Controls :: How To Get Value From Datasource In Page Behind

Aug 26, 2010

I have declared a Sqldatasource bound to FormView.i wish to get a field value out in the page behind and assign to a variable for further process, while display other bound field values in Formview?z

View 4 Replies

Forms Data Controls :: Getting The Value Of Checkbox From Datasource?

Mar 17, 2010

Presently I am binding the grid using the SqlDataSoruce by a stored procedure.

The output of the stored procedure contains more columns as compared to the columns in the datagrid.

In the grid there are some checkboxes also.While saving the checkboxes in the database I differeniat them in different columns as checked and unchecked.

Now while retrieving I need to check if the record that is being returned is coming from a checked column or unchecked column.

Once I have that I need to check or uncheck the checkbox on the datagrid.

Now My problem is I am not able to get the checked or uncheked column value from the sqldatasource.

How can I get that?The below code is for binding the grid with the datasource.

[Code]....

View 4 Replies

Forms Data Controls :: Changing DataSource?

Oct 8, 2010

I have created a webpage using wizards to set up the objects, can I change the name of all the datasources by just going into the code and entering the new database (the tables are identical) ?ORDo I have to work my way back through all the wizards and re-enter parameters?

View 3 Replies

Forms Data Controls :: Using Dataset As Datasource For A Chart

Jan 19, 2011

I have an application that needs to read data from a view and do some extensive manipulation prior to delivering it to a chart control (without modifying the original data in the database). I have the chart control on the page, and in the code-behind I've built a dataset which I load and manipulate programmatically to have the table, columns and rows needed (no datareader involved) I'm having considerable trouble binding the chart to the 'in memory only' dataset. Chart Control;

[Code]....

Code-behind; The arrays arDate(), arPropBase(), arPropRisk() and arProject() are declared and loaded prior to this code. I am certain that the arrays do contain valid data - I have verified that while debugging

[Code]....

I have tried many different ways to bind the chart to my dataset at runtime without any success;

[Code]....

View 1 Replies

Forms Data Controls :: GridView And Swap The Datasource

Feb 10, 2010

I have a GridView and can swap the datasource just fine with code. However, The GridView also has a TemplateField with a dropdown connected to a different datasource. How can I swap that one with code too? I don't see how to drill down to find it. I've found stuff on line about accessing the TemplateFields with code, but it seemed to complex for the simple task I am trying to do.

View 3 Replies

Forms Data Controls :: Gridview And Excel As Datasource?

Mar 26, 2010

im using an excel file as a datasource for my gridview...i can pull all the data into the gridview fine. i am now hoping to allow the user to update the data in the excel file through the gridview. is it possible to update the excel file in this format i.e. allow the user the read/update the excel file as if its a database. i see some references in google that its not possible to update the excel file as the writeout causes problems. does anyone have this working...or should i look into trying to use another datasource.

i was hoping to use an excel file as the app is on a shared server and it would be handy just to have the excel file in the app folder as there is not much data involved.

View 2 Replies







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