In C#
I have a processing time number data column in the database which is in in this format "###" or "##" ( eg: "813" or "67")
When I bind it to the grid view I wanted to display it in this format "0.###" (eg: "0.813" or "0.067")
I tried using {0:0.000} and other formatings. But none seem to work. Can anyone tell me how to write the ...
I have a web service that acts as an interface between a farm of websites and some analytics software. Part of the analytics tracking requires harvesting the page title. Rather than passing it from the webpage to the web service, I would like to use HTTPWebRequest to call the page.
I have code that will get the entire page and parse ou...
I have an ASP.NET GridView which has columns that look like this:
| Foo | Bar | Total1 | Total2 | Total3 |
Is it possible to create a header on two rows that looks like this?
| | Totals |
| Foo | Bar | 1 | 2 | 3 |
The data in each row will remain unchanged as this is just to pretty up the header and decrease the ho...
I have an application in which HttpRuntime.AppDomainAppPath returns the correct path with the wrong casing.
I am then trying to use this in a String.Replace and it does not find the path in the filename due to casing.
I am aware that I can use Regex.Replace but would prefer not to.
I have this problem only on the production machine ev...
I'm using shared ASP.NET hosting and I have no remote-desktop access to the web server. I only have the ability to FTP ASP.NET related files to the server.
In this scenario, how would I see how much memory my ASP.NET application is consuming?
...
What are the benefits of using Microsoft Commerce Server as opposed to some other 3rd party shopping cart system? Is it really that more "robust" than other .NET solutions - ASP.NET storefront, DotNetCart, VevoCart? At what point would you start looking at Commerce Server as an ecommerce solution rather than one of these other solutions...
I have populated a Datatable, from 2 different servers. I am able to make adjustments where my length>0, what I want to do is remove the rows that does not hit. Here is a summary of what I have
DataRow[] dr = payments.dtPayments.Select(myselect);
if (dr.Length > 0)
{
for (int a = 0; a < dr.Length; a++)
{
if (thisOption ==...
I'm looking for an image editor that I can embed easily into an ASP.NET website. I need to be able to draw rectangles, lines and add some text. Additionally, images must not be uploaded to third-party servers.
I've checked sites of the main ISVs that develop .NET controls but none of them provides a standalone image editor that offers a...
I will explain problem with an example:
There is two table in my database, named entry, tags
There is a column named ID_ENTRY in both table. When I add a record to table, entry, I have to take the ID_ENTRY of last added record and add it to table, tags. How can I do it?
...
Hi all,
I am the .Net specialist in a consultancy with many difference flavors of developers using many different languages and frameworks. Because everyone is pretty much trying to push their own agendas with our different clients in terms of what technology to propose, I'm constantly finding myself in the classic arguments with them a...
Suppose you have a GridView with a few columns like:
| Foo | Bar | Total |
and you use a style sheet to make the alternating rows different colors, say light blue and white.
Is there a good way to make a particular column alternate in a different color? For example, I might want the Total column to alternate in medium and light red t...
I am working on a multi-purpose page and rather than adding multiple grids to the same page we wanted to use a single GridView to the page, and on Page_Init add the needed columns, and set the respective DataSourceID.
So to do this, we have something like the following in the aspx, the codebehind in the Page_Init is very simple adding a...
Greetings!
I'm still learning about the GridView control and I have one bound to an ObjectDataSource. My Web form looks like this:
<asp:GridView ID="ourGrid" runat="server" DataSourceID="ourDataSource" onrowdatabound="ourGrid_RowDataBound"
HeaderStyle-CssClass="header_style" AlternatingRowStyle-CssClass="altrow_style"
...
We are developing large ASP.NET applications with lot of dynmically created pages containing ASCX controls. We use a lot of JQuery everywhere.
I have been reading that it would make sense to move the inline Javascript code to the bottom of the page as it could delay the loading of the page when its included "too early".
My question is ...
At the moment I'm creating a DateTime for each month and formatting it to only include the month. Is there another or a better way to do this?
...
I know you can set the auto refresh interval in the design of the report itself, but what I am trying to do is allow a user to set/change this interval himself in a web app (ASP.NET) that uses a ReportViewer control. Is there any way to do this?
...
I would like to know how to put all of my ListView rows into edit mode at once. I am not looking for the traditional behavior of editing each row one at a time. The answer can be in either C# or VB.NET.
Also, if possible, any sample code of saving each row's changes after all rows have been edited.
...
Hi all
I am using windows authentication within an ASP.NET application. I am wondering how to best get the objectGuid from the currently logged in user?
Regards, Egil.
...
This is a question about performance testing specific to SharePoint web parts and controls (although standard ASP.NET methods would be applicable as well). I'm wondering what are some good techniques, considering factors such as:
caching (what and when should you cache?)
load balanced servers (storing state)
interaction with other part...
Hello,
I am facing a problem.
I would like to localize my action names in my project so french people can have clean urls with french names.
http://www.test.com/Home should be http://www.test.com/Accueil
It is a good thing too for google indexing.
Moreover I would like to be Restful on the application, so I would like too keep english...