I have a user who is intermittently receiving an HTTP 405 when clicking a link within my application. There is nothing funny about the link, as far as I can see...
<a id="ctl00_ctlNavigationMenu_viewTransfersLink" href="Navigate.ashx?target=6">- View Transfers</a>
As I said, most of the time the link executes successfully. However, ...
I am currently working with a ASP.NET Web site project in Visual Studio 2008 and everytime I make a change to code behind page for a user control and browse to page that is using the user contorl I get the following error:
Unable to cast object of type
'ASP.basepage_master' to type
'ASP.basepage_master'.
I have to rebuild my en...
What is the best rich text box to use with ASP.NET 2.0?
I need to allow users (non technical) format their own email with simply styling, but it needs to be shown as they type, rather than a markup language with a preview.
...
I'm currently using the CompositeScript feature of System.Web.Extensions in order to combine my JavaScript files to reduce download time. However, by including any script manager, the MicrosoftAjax JavaScript code is included in my pages. I do not want this to happen as it adds a lot of unneeded code and it complicates event handling.
...
I was trying to implement Rick's adding meta refresh via header on this article
For some reason my url look like this
http://localhost/pickweb/(S(hp5mypqznxgquf45vzz4fi55))/Login.aspx
What is this "(S(hp5mypqznxgquf45vzz4fi55))" in my url? Even if i remove the code in Rick's blog it still have that weird parameter.
I implement Rick'...
I have a requirement, wherein i need to show a wait message while an excel report is being executed and when execution is complete, excel is written to response for user to save. Once save is done i need to hide the wait message.
I was able to show wait message but i am not able to hide the same when the execution is complete. I have us...
One requirement of a project I'm working on is to export a file to a network share based on certain criteria. When I run the code in visual studio it works just fine but when I deploy it the actions that would initiate saving the file end in failure. the users see an alert with:
Could not find file '<full filename...>'.
In the web.con...
I am using the ASP.NET AJAX ModalPopupExtender on a page. The popup contains details of one or more customer orders that need to be printed out. Each order needs to be on a separate page.
I should be able to use the CSS page-break-after style, but this does not work in this scenario as the ModalPopupExtender causes the containing div to...
I am making an app (asp.net/c#) that will autosuggest a couple fields that users type in. Each user will end up building their own auto-suggest list. Every time they add an item, if it's a new word, it will get added to their list of auto-suggests, just like gmail.
I was wondering how most people go about this? Making a call to the s...
I'm in the process of moving SQL server to a separate machine. Currently we are running our web server and sql server on the same box. So we have a production server with IIS and SQLServer and then a separate development server that mirrors this setup.
When it comes to our asp.net control's app.config and web site's web.config, this h...
I have a GridView bound to an ObjectDataSource. I've got it supporting editing as well, which works just fine. However, I'd like to safely HtmlEncode text that is displayed as we do allow special characters in certain fields. This is a cinch to do with standard BoundFields, as I just set HtmlEncode to true.
But in order to setup vali...
I have class which has a method that needs to return three DataTables. I thought I could use Generics but honestly I've never used them, so I'm trying figure it out. It may not be the right thing here.
I have in my class Employee:
public List<Employee> GetEmployees()
{
//calls to other methods in my class;
//psuedocode
GetDataT...
I have code that renders the following HTML
<tr>
<td>Control 1 with onclick="javascript:Test(this);" </td>
<td>Control 2</td>
<td><span><div>Control 3</div></span></td>
</tr>
function Test(myThis)
{
//Here I would like to get references to the siblings of Control 1 (in this ex: Control 2, Control 3)
//and disable them. Any id...
Scenario: I have an .aspx page containing multiple collapsible panels. Each panel represents a different report. To run a report, you click a panel and the report's user controls will appear. The date range control I created could be contained "within" more than one panel.
The code below does not work in the multiple panels instance...
The following is how I usually handle objects in Session State, I have a const string as the session name and then have a property with a get and set for the Object.
What I was wondering was if the 'Session.Remove()' call was necessary (to keep things clean and tidy) and if there was significant overhead and doing this removal.
I have ...
I have a problem where I have a page with a checkbox :
<asp:CheckBox runat="server" ID="chkSelectAll" OnCheckedChanged="chkSelectAll_CheckedChanged" EnableViewState="true" Text='<%# CommonFunctions.GetText(Page, "CreateTask", "chkSelectAll.text") %>' AutoPostBack="true" />
First I had the problem that when the event was raised the che...
What is the best way to implement DTOs?
My understanding is that they are one way to transfer data between objects. For example, in an ASP.Net app, you might use a DTO to send data from the code-behind to the business logic layer component.
What about other options, like just sending the data as method parameters? (Would this be easi...
I have two tables in a one to many relationship. (products and qty break pricing). At the database level I cannot create a relationship between the two tables. I brought those two tables into LINQ and created the association manually.
I need to do a big LINQ query and have the tables be joined. My problem is it's not using a join to ge...
If I use something like:
using (OdbcConnection conn = new OdbcConnection(....))
{
conn.open();
my commands and sql, etc.
}
Do I have to do a conn.close(); or does the using statement keep me from doing that last call? Does it dispose of everything in the using block? For example, if I called other objects unlrelated would it dip...
I have a console capplication that runs on the same computer that hosts a bunch of web.config files. I need the console application to open each web.config file and decrypt the connection string and then test if the connection string works.
The problem I am running into is that OpenExeConfiguration is expecting a winforms application c...