asp.net-2.0

Upgrade from ASP.NET 1.1 to ASP.NET 2.0 now web service call fails

I have an ASP.NET application that I've upgraded from version 1.1/Visual Studio 2003 to Visual Studio 2008 (.NET framework 3.5, ASP.NET 2.0). A call to a web service outside of my application (but inside of our network and firewall) that used to work fine in the old version is now responding with: The request failed with HTTP statu...

asp.net 2.0: best data structure to bind to gridview

For the most part, the application I'm working on deals with object, and I can bind a list of objects to a gridview without any problems. However, in a couple of cases, I want to display the results of a multi-table join in a gridview. The current code uses a dataset, which is pretty easy, but I'm wondering if there's a better/more eff...

asp.net bulleted list and css menus

Is there a decent CSS menu that will work with the asp:bulletedlist control? I've looked at a few different implementation, but most of them (i.e - see http://www.exploding-boy.com/images/center/center.html) rely on a span tag to contain the link text. Or is there a way to force the bulletedlist control to render the link tag using spa...

Could not load file or assembly 'PetersDatePackage'

I have recently taken over an application that uses the Peter Blum Date and Time .NET control. I copied all the files to my aspnet_client directory and when I build the application I get the following error: Could not load file or assembly 'PetersDatePackage' or one of its dependencies. The system cannot find the file specifie...

SiteMapPath doesnt' show Web.sitemap siteMapNode with querystring in url

Hi all, I have the following web.sitemap portion: <siteMapNode title="MENU" url=""> <siteMapNode url="~/page1.aspx?id=0" title="MENU 1" /> <siteMapNode url="~/page2.aspx" title="MENU 2" /> </siteMapNode> When I am in http://localhost/page1.aspx I cannot see the map path because in my sitemap I have quesrystring ?id=0. Can I fix it? ...

How do I change the value of a extended ButtonField?

I want to change the value of the text in a ButtonField depending on other factors. Some code: public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex) { base.InitializeCell(cell, cellType, rowState, rowIndex); bool isDataRowAndIsHighlightFieldSpecif...

Server Application Unavailable

I am using visual studio 2005. When I debug and reached at exception point. I got following error dialouge. message screenshot When I click No, I got following error page. The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your req...

Debugging Issue

I am not able to debug asp.net application in asp.net 2.0 Whenever I hit F5, it will wait for few minutes then show following message. Unable to start debugging on the web server. The operation has timed out. Edit: I also want to let you know that before posting this question I searched a lot on google and find out some key points lik...

Programmatically Adding Two Infragistics UltraWebGrids Renders Only One Grid with Style

FYI, this is a copy paste from my post on the Infragistics forums, see http://community.infragistics.com/forums/t/32458.aspx No answer from them yet so I thought I'd drop this one down on the stackoverflow peeps. Here's what I'm running: ASP.NET 2.0 AJAX Extensions 1.0 web application Infragistics2.WebUI.UltraWebGrid.v7.3, Version=7....

Text box with drop down suggestions

I currently have a databound dropdown list on my ASP.Net C# 2.0 website that has around 400 items in it. I want to replace it with something similar like the textbox in google search where you enter letter and only the entries starting with those letters pop up what is a good way of implementing it? Are there controls that already exist...

Any idea what this .NET error means?

I have Bugnet installed on my hosted server and it does work, seems that all functionality of the project works as one would expect. However seems on any page render this error is generated; System.Configuration. ConfigurationErrorsException: It is an error to use a section registered as allowDefinition='MachineToApplication' b...

ASP.Net: IE6 making invalid requests

I have a live site where every error is logged and e-mailed to me. I've been getting a lot of "Padding is invalid and cannot be removed." errors on requests to WebResource.axd. Looking closely, the request is erroneous. This is the request in question: /webresource.axd?d=mgqvdy8omlq71j1set2ida2&ampt=633700045603820000 And this i...

How to create database from codebehind in ASP.net 2.0?

Hi all, I need to create database from codebehind in ASP.net 2.0. Please help. ...

How do I set the Visible attribute in an ItemTemplate?

<asp:TemplateField HeaderText="Audio"> <ItemTemplate> <asp:Image ID="playImage" runat="server" ImageUrl="~/images/nextpg.gif" Visible='<%# (Eval("available")=="Y") ? true : false %>' /> </ItemTemplate> </asp:TemplateField> In my query I am returning the "available" column which is populated with ...

Need to understand why upload isn't happening in this case?

I've an html file with the below markup: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Upload Page</title> </head> <body> <form id="frmUpload" action="UploadHandler.ashx" method="post" enctype...

AppSettings shourtcut question

I am trying to use the <%$ AppSettings: .. %> shortcut in an asp.net user control. I am able to use the syntax fine when binding a property to an appsetting, however I want to use an appsetting to hold a page id. for exmaple: <a href="default.aspx?page=<%$ AppSettings:TestPageID %>">Test link</a> This method does not work, so my ques...

ASP.NET Tree Control - Cannot re-expand tree on reload

I have the following code to delete a company displayed in my ASP.NET 2.0 Tree control: protected void Delete_Click(object sender, EventArgs e) { TreeNode parentNode = null; int expandDepth = 1; string companyID = ""; expandDepth = companyTree.SelectedNode.Depth; if(companyTree.SelectedNode.Parent != null) p...

Properly Defining a Singleton in asp.net

I've the following class which is a singleton implementation: Imports Microsoft.VisualBasic Imports System.Xml Public Class GlobalController Private Shared instance As GlobalController Private ControlsXmlDoc As XmlDocument Private xmldocpath As String Sub New() ControlsXmlDoc = New XmlDocument xmldocp...

radiobutton checked status on asp:linkbutton postback

I have four radiobuttons inside a repeater control which by itself is inside an update panel // code is something like this `<asp:update panel ..> ... <asp:Repeater> .. <asp:checkbox> .. .. </asp:update panel ..> <asp:LinkButton ID="next2" runat="server" CssClass="button_Submit" Font-Bold="true" OnClick="next_ServerClick" Text="Sub...

WindowsTokenRoleProvider Catastrophic Failure

I'm having a really frustrating error trying to secure an ASP.NET application using the WindowsTokenRoleProvider. For a particular user I'm seeing the following ProviderException thrown: API failed due to error 'Catastrophic failure As I said, this only seems to happen for a particuar user, I seem to be able to access the site fine a...