Try this: open the page in design view. From the toolbox select a SqlDataSource. Drop onto the page. Click on 'Configure Data Source'. Follow the instructions. Set the DataSource of the grid to the SqlDataSource.
There are many other ways of doing this but this is probably the easiest.
how to calculate the cell values in gridview using asp.net with c#
iam displaying first column is checkbox then
item, name, quantity, price , order, total
when user user enters the value in order cell then it should be calculated
price cell value * ordervalue and result is displayed in the total cell value finally when he click finish the grand total should be displayed at the bottom of the cell.. please give the example which helps me
If you wish to do it on the server, then do it on the TextChanged event. But this is not good. Similarly on the button's server click just do the grand total.
Few days back I have posted a similar doubt against data synchronization.
I have a web application developed with VS 2008 and sql express. The same copy of the database is on a web server. I have to synchronize the local database with the server database. Can I use Microsoft Sync frame work for this purpose.
Please send me a reply.
The thing is, I don't want to fix the width or the list box so that it looks pretty much the same accross different resolutions. I did try messing about with the width as a percentage, but that makes it look funny when the browser isn't full screen...
Do you know of a way without fixing the width? I could do that, but only as a last resort.
Just so you know, after much playing around, I have kind of solved the right aligned stuff by applying padding. This does make it look slightly odd when the scroll bars are not visible, but it's working better than the fixed width option.
The first method is better and allows you to use the same validation function across all pages with multiple instances of the user control.
Hi guys.. I have a web application and in one of my aspx page i have a button to synchronise the users(user details) from the Active directory to my database table.. since the active directory has almost 4900 users the synchronisation process takes around 3hours now here comes the issue, on clicking the synchronise button the process goes on fine no issues wit it but the page with the status bar running remains idle only for about an hour or more (with the status bar showing half completed) after which the page shows "This page cannot be displayed" but the process of synchronisation goes on perfectly.. i dont want the page to display this way because after the synchronisation is over i have designed an alert box which displays "Synchronisation done successfully" but this alert box doesnt get displayed because the page is showing "Page cannot be displayed" before the end of Synchronisation process.. but on debugging, the code behind runs perfectly calling all methods and finally calling my alert box also.. but the alert box doesnt get displayed on the page except for "page cannot be displayed"... hope u guys can figure out what i really meant.. i really wanna solve this issue.. please be free to ask me if ur not clear with my question...
Ur help and advice is really appreciated...
If the browser establishes a connection to a web server and the request takes more then the HTTP keep alive time of browser or the web server in that case you will get this error.
Ideally for this type of operation web applications are not preferred; it should be done through a windows service or some other background service.
WWW, WCF, WWF, WPF, WFC .... WTF
modified on Tuesday, March 30, 2010 2:01 AM
Last Visit: 31-Dec-99 18:00 Last Update: 21-Sep-23 3:07