asp.net-2.0

How to create friendly url's in asp.net 2

I tried using the IHttpModule and managed to convert the urls just fine, but all of my images returned path error (all going through the new url directory). whats the solution? ...

ASP.net 2.0 GridView Columns dependant on multiple columns in the bound result set

I'm working with an ASP.net 2.0 GridView control that is bound to the results of a sql query, so it looks something like this: <asp:GridView ID="MySitesGridView" runat="server" AutoGenerateColumns="False" DataSourceID="InventoryDB" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCommand="GridView1_RowComman...

Error 4005 Forms authentication failed - ticket supplied has expired

Aloha I'm running a website using ASP.NET 2.0. Every now and then (10+ times per day on 100+ users daily) I receive this error: Forms authentication failed - ticket supplied has expired. Here's my web.config snippet: <authentication mode="Forms"> <forms name=".CLLSAUTH" loginUrl="login.aspx" protection="All" path="/" timeout="60"...

Jquery's Ajax Property For Asp.Net 2.0

I always see the code like this in the blogs: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebService.asmx/HelloWorld", data: "{}", dataType: "json", success: function(msg) { ...

How can I fix my HTTP handlers and different host headers using ASP.NET?

When a site is used with URL test.com handlers are not fired. Whereas if the site is used with www.test.com the handlers work properly? The site is behind an ISA firewall. How should I fix this? ...

ASP.Net LinkButton CSS Adapter

Does anyone know of a CSS Adapter for the LinkButton control for ASP.Net 2? Update: We are trying to use CSS Buttons. We are using this approach: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html For that we need to render the tags which the link button doesn't do. Possible Solution using Adapter We crea...

Proper ObjectDataSource Use

Greetings! I'm creating a User Control that will display data in a GridView control. We are using n-tier architecture and the data in question is retrieved from our database and returned to us as a ReadOnlyCollection. OurNewObject is a class containing several properties and an empty constructor that takes no parameters - it's in the ...

How, where to store objects within different scopes in Asp.net 2.0

Hi guys, need ask you about some help. I have web app running in Net 2.0. I wanna ask what storage (cache, session, file) I should use for my objects as they have different scope of using. Can be divide into several groups: 1) objects related directly to visitor (e.g. details about visitor that are received after authentication) 2) o...

apply CSS dynamically in asp.net 2.0

Hi All, I have a scrolling div with Three linkbuttons and three differents divs. I need to apply CSS to active linkbutton as soon as button is clicked.The codes used by me are: protected void btnNetwork_Click(object sender, EventArgs e) { this.btnForecast.CssClass = "li_1"; this.btnBlog.CssClass = "li_2"; t...

ViewState, FormView, and Controls

How do you (in Visual Studio) compare the controls in the different templates in a formview so you can track down a ViewState error? ...

Ajax Control Toolkit - Toolscriptmanager not available

I've been trying to get this asp.net 2.0 application up and running with little success. I removed all references and added the ajax control toolkit again and I'm still getting "ToolScriptManager:ID property not specified". Any help? Screenshot included. Thanks! ...

javascript in masterpages ASP.NET 2.0

Hi all, I am trying to set up a masterpage that contains a javascript popup subroutine that can be used in multiple web pages. The popup already works in a single page environment. I now want to migrate it to a master page. Any ideas will be greatly appreciated. I already searched this site and tried a couple of the suggestions to no ava...

Session cookie lost with IE7

I have an ASP.NET 2.0 application. The login page redirects twice when the login is successful. This works OK on all test environment and production servers except one. We can see with Fiddler that the login redirects to the second page and it redirects to the third. When getting to the third page the authentication cookie is lost, and t...

How do I make an ASP.NET 2.0 Web App compile like a 1.1 App?

When compiling an ASP.NET 2.0 App names MySite for deployment I get a series of assemblies that resemble something like "bin/APP_xyz123.dll", "bin/APP_xyz456.dll" and so on. Everything works fine but if I make a small code change I have to update the entire site because the "_xyz123" and "_xyz456" part of the assembles names change wit...

ASP.NET Dynamic Page Controls: Is it possible to bind events AFTER Page.Load?

I have a site that I am currently working on in ASP.NET 2.0 using the usual WebForm stuff and ASP.NET AJAX 1.0. Is it possible to bind an event to a dynamically created control after the Page.Load event? I have a table <td> element that I am dynamically creating similarly to this code: ' Create Link Button lnk.ID = String.Format("lnkD...

Thread was being aborted

I am getting a " Thread was being aborted " Exception in an ASP.NET page.I am not at all using any Response.Redirect/Server.Transfer method.Can any one help me to solve this ? ...

ASP.NET Explicitly Post To Server From Checkbox Control OnCheckChanged Event

I have an asp:checkbox control, and I want to change the visibility of a Label when it is checked or unchecked. To do this I'm attempting to use the OnCheckChanged event, which apparently only fires after a post to the server. This means that my Label's visibility isn't changing immediately. How do I post to the server (and preserve the ...

Crystal Reports in ASP.NET 2.0 app - report changes not showing

I'm developing an ASP.NET 2.0 application that includes Crystal Reports (version 10, included with VS 2005). Originally, the reports were working properly, both when run from my machine using the ASP.NET development web server, and also when deployed to an IIS server. I made some changes to the reports and re-deployed the app to the II...

Multiple Answer Matrix in ASP.NET

I'm involved on a project to make a survey system. We've been hammering out the logic for a few question types, and I could use a second opinion on what is the best way to proceed. We work on a ASP.NET 2.0 website using VB(VS2005) with an Oracle database. In our oracle server, we plan for some tables to organize our data. There's a t...

jquery with asp.net server button throws an error Invalid postback or callback argument

Hi All, I am new to JQuery.....trying to use in my ASP.Net 2.0 website in this scenario: have three asp:dropdownlist at page. First two are filled at server, third one is filled by jquery at client side. There is also asp:imagebutton at page that takes selected values from each dropdownlist after Click event. Well that cause the error...