asp.net-3.5

Is there a way to detect when an update panel is done refreshing?

Is there a way to detect when an update panel is done refreshing? I want to fire some javascript methods when the update panel is finished. Perhaps via the UpdateProgress control? ...

How do I get the correct ClientID for my ASP.NET TextBox?

I have created a a subclass of Table in my ASP.NET project which creates. The table uses a class that formats and creates TableRows and TableCells which we can call RowCreator. So MyTable calls rowCreator.CreateRow() and gets back a TableRow with a lot of goodies in it. In this TableRow there is a TextBox which is supposed to trigger a ...

Troubleshoot a 'Sys' is undefined message in my upgraded web application

I have a web application that was originally written on .Net 1.1 Framework. I have since tried you upgrade it to .Net 3.5 Framework. I am now getting this javascript error throw on my page and for the life of me can't figure out exactly why. I have target the application for the .Net 3.5 framework, and even deleted and added back in th...

Search ASP.Net Profiles

I am looking for a way to search through every users profile using the standard ASP.Net Profile Provider. Is this possible, or should I create a new Profile Provider? Here is the scenario: User registers User sets up their profile (favorite color, favorite book, country, etc) User is then able to browse other users who, for instance,...

Custom Control events not firing

I have a custom control with a LinkButton on it. When I click the LinkButton, its click event does not fire. [ToolboxData("<{0}:View runat=server></{0}:View>")] public class View : Control { private LinkButton lbNextPage; protected override void CreateChildControls() { lbNextPage = new LinkButton() { ID = "lbNextPag...

ASP.NET Membership Issues With Registration

I'm having a rough time with this membership stuff. OK, so, it's really odd. I can register a user. I can register, I can login. However, when I go to register ANOTHER user the user isn't saved in the database and I get a Membership credential verification failed event when the user tries to login (I assume because the user is never b...

Why is my Aspx page rendering different HTML in FireFox and IE

I have come across a problem where, my asp.net code is being rendered differently on Firefox and IE. When I say differently, I mean, A linkButton in IE renders as anchor tags. On Firefox however, it renders as a span code example <ItemTemplate> <div id="<%#Eval("Id","{0}") %>"> <asp:LinkButton ID="ProductName" runat="server" ...

Is it possible to refresh a CSS sheet with an AJAX postback?

I have been learning how to create dynamic images and dynamic stylesheets using ASP.NET 3.5. My reasoning behind this is I have a web page that I want to change the header background image (set with css) automatically. Check below for my test script: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits=...

ASP.NET Membership staying authenticated issues

So, my application is being odd in the fact that when you login you will stay logged in for a page or two then get lost. My settings are this: <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH" timeout="20"/> </authentication> <authorization> <allow users="*" /> </authorization> <membership defaultProvider="MySql...

Why does my WCF service not respond my baseAddress setting in web.config?

I'm trying to learn how to build RESTful services with WCF by recreating the project on this blog post by Anthony Steele. He uses the following XML in his config to setup the endpoint for the service. <host> <baseAddresses> <add baseAddress="http://localhost:8080/greeter"/&gt; </baseAddresses> </host> Howev...

PDF Previewing and viewing

I'm creating a document viewing web application. You log in and it takes you to a screen where you have all your docs listed on the left. I want to make it so that when you roll over a document a preview of the document shows up on the right. From there you can click on it for a full view and printing capabilities. I'm not asking how...

when running asp.net project I get: Internet Explorer cannot display the webpage

hello, I recently installed vs2005 with sp3.5 on a new vista computer. Never had Visual Studio installed on this computer. whenever i'm building a web project, i receive the following: "Internet Explorer cannot display the webpage". I can't run any of my projects... Thanks ...

How to add Item to SqlDataSource databound list

I am lazy - and I am using a SQLDataSource to populate my dropdownLists. The Databind event for the databound objects is called before the Page.PreRender so I am doing something like this in the PreRender eventHandler: private void InitializeDropDown() { this.myDropDown.Items.Insert(0, new ListItem("-- Select someth...

Linq to SQL in ObjectDataSource w/ GridView: IEnumerable manual sorting vs DataTable Auto-sorting?

The setup: I use Linq to Sql for my DAL and I extend the classes to encapsulate my CRUD methods (create, read, update, delete) for my BLL. I don't just use the LinqDataSource because I usually have to run some other subroutines whenever I do my normal CRUD stuff (I know, this is pretty standard), so I use the ObjectDataSource control...

Calculate StartDate and EndDate for This Quarter and Last Quarter

I need to calculate a StartDate and EndDate of a current Quarter and the previous Quarter in vb.net. ...

Dynamically Filter data in a DataGrid

I have a ComboBox with the values "open", "closed". According to values changed in the ComboBox, I want to change the DataGrid to display either "open " or "closed" values. How can I do this? ...

Handling long page execution times in ASP.NET

I'm working on a web application import program. Currently an admin user can upload a formatted csv file that my page will parse. I'm experiencing an execution duration issue as each line pertains to a file that has to be saved to Scribd, S3, as well as some internal processing. What would you guys recommend for improving execution...

asp.net 3.5 Am I "Getting" this?

Hi, I am learning ASP.NET 3.5 & C#, using Visual Studio 2008. Most of the stuff I learn is through the MSDN. I am trying to develop a web page that will allow a user to create a character for use in an RPG game. The user should be able to allocate attributes, buy items, etc. When the user is done the site will format a printable characte...

Can I Negate the Value in a ASP.net #Eval attribute

I'd like to set a button's enable state to be the negation of a value. So given this code: <asp:CheckBox ID="DefaultChecked" Checked='<%#Bind("IsDefaultMessage") %>' Enabled="false" runat="server" /> <asp:LinkButton ID="MakeDefaultButton" runat="server" CommandName="MakeDefault' CommandArgument='<%#Bind("ResidentialInfoID") %>' Text="M...

TCP Ports when Web Server communicates with SQL Server Express

Hi We have a asp.net 3.5 web application running on a hosting company's web server that's got a very strict firewall setup. The web application communicates with our sql server express 2005 which is on a completely different network. The problem is that the web applications sends our sql server a random port number to connect to when ...