Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > december 2003 > threads for thursday december 18

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

why does refresh on browser break this code?
Posted by JBD at 12/18/2003 11:26:52 PM
Hi, I have a button that fires the below sub routine. This works fine if the user clicks the button as they are supposed to, even if they click it repeatedly. However, if you click "refresh" on the browswer, then it duplicates records. I believe this is happening because somehow it isnt do...more >>


ViewState problem
Posted by sk at 12/18/2003 11:16:06 PM
Hi experts! i create the dropdown control at runtime. this is placed in a table control in each row of table. now when the page is submited , the table and controls are not available. can someone suggest how to retain these even after the round trip ... anything to do with view state? ...more >>

RadioButtonList created in the page load event
Posted by William LaMartin at 12/18/2003 9:32:29 PM
If I create a RadioButtonList with, say, two items, then after the page loads and I select one of the items and then click on a button whose click event contains some code to display the RadioButtonlList's selected value, there is nothing. On a postback, with the dynamically created button lis...more >>

Event for dropdown control created at runtime.URGENT!
Posted by sk at 12/18/2003 9:01:08 PM
I have a situation where the list of tables(database) and the columns for each table must be displayed for selection. for each member(displayed in each row) i have to select a table and a column from that table. since the number of rows are dynamic i am creating as below... Dim tRow As New TableR...more >>

Spacing columns in DataGrid
Posted by Greg Linwood at 12/18/2003 8:21:18 PM
I'm using a Data Grid and want to apply wider spacing between columns than rows. As such, cellspacing / padding aren't any use to me. I used to do this in html tables by simply adding columns with a single point transparent .gif, set to a specific .pt width. This worked very well for precise a...more >>

form size with different client resolutions
Posted by Joe Bonavita at 12/18/2003 7:02:12 PM
My Web forms display differently on different machine with the same resolution. The pages are designed to fit in 800*600 res but on some machines with 800*600 the form appears too big. Are there any built in functions to adjust the form based on resolution? Is there a way to detect the clients...more >>

Accessing HTML Control in ASCX through JavaScript
Posted by George Durzi at 12/18/2003 5:47:58 PM
I have a JavaScript called common.js that is referenced by every ASPX in my web application. In common.js, I have a funtion called findText (which I use to help me navigate through drop down lists by typing the first few letters of an item in the drop down list). So this is how I would use it:...more >>

Tag order
Posted by Tom at 12/18/2003 5:15:30 PM
Hi, I have over 40 textbox separated in 4 columns, each col has 10 textbox. I want to edit the tag order from top to down in first col, then 2nd, 3rd and 4th col. How can I control the tag order? Thanks Tom...more >>



security issue
Posted by Ashish at 12/18/2003 4:23:52 PM
hi all, we have an application which requires aspnet user to have write permissions in the application's virtual folder ... while running our application on a shared host, where other .net websites are also running would they be able to access my files ? thought that this would be solv...more >>

Index was out of range?
Posted by yyt at 12/18/2003 4:18:14 PM
We have a asp.net portal appl. which was developed using the IBuySpy = portal architecture. (Our Portal uses Windows authentication) It runs = fine on the development machine but when I deployed it on the production = server and type in the http://prodserver_name/portal/ it gives me the = foll...more >>

Synchronizing Code Behind
Posted by Mark Fox at 12/18/2003 3:57:09 PM
Hello, In VS.NET 2003 when I add server controls to the web form it sometimes adds their declarations to the code behind and sometimes not. Is there a way to tell VS.NET to parse the web form and synchronize it with the code behind so I don't have to manually add the declarations? ...more >>

Issues with handing server events...
Posted by AC at 12/18/2003 3:29:30 PM
I have a page where I'm displaying articles based on the current year = selected. My page dynamically builds a few links at the top to select a = different year than the current one selected (the current year is not = shown as an option). Then, based on the year selected, I am performing = som...more >>

What is IUSR equivalent for IIS 6.0?
Posted by Do at 12/18/2003 2:50:58 PM
Hi, I need to give my ASP.net application write access to on of my folders. In Windows 2000 IIS 5.0 it was IUSR, what group do I give access for Windows 2003 IIS 6.0? I see new ones like System, Network, Network Service, Interactive Guest, etc. Thanks, Do ...more >>

Is IsNull supported in ASP.NET?
Posted by D. Shane Fowlkes at 12/18/2003 2:26:19 PM
For some reason, I'm being told to declare "IsNull". Surely I'm doing something wrong. I'm basically seeing if someone clicked a link which passes a variable in the querystring like MyPage.aspx?id=5 This is in a Page_Load rountine: If IsNull(Request.QueryString("id")) Then intID = C...more >>

using linked .js file in UserControl
Posted by neverstill at 12/18/2003 2:06:17 PM
hi- Has anyone found a way to use a linked .js file in a UserControl? I have a control that has this line: <script src="NSClientListBuilder.js"></script> in that file is a function all test() test has a simple alert() call I have a button on my usercontrol that will execute test(). Whe...more >>

form that runs at server and client?
Posted by john at 12/18/2003 1:52:51 PM
We have an asp.net page that we are mixing our C# code on both the code behind and in the .aspx page. We are using the code behind for a server side control that has post back events. but we are also putting <img> tags in the aspx page that try to manually, via javascript, submit the for...more >>

Include form info in Response.Redirect
Posted by Stephan Bour at 12/18/2003 1:46:50 PM
I have a vexing problem I hope someone can help me with: I have an ASP.Net site that allows users to place orders for biological materials. Once the order is done though, I would like to have two pieces of information automatically entered into textfields on a form managed by a different site on...more >>

Could not load type "namespace.class" Parser Error
Posted by Kris at 12/18/2003 1:42:57 PM
Hey everyone, I am trying to make a multi-project web application in visual studio that uses the server.transfer method in C# to get to the different aspx pages. However, when I call out to the page it gives me the Could not load type "MainConsole.Default". The code was working before w...more >>

Code the WorksheetOptions on export to Excel
Posted by Matt at 12/18/2003 1:30:41 PM
I have a web page that reads a dataset, populates a datagrid, and then launches Excel to display the results. I was able to format the results (font, background color ..) and even create a filter for the top header row, but I want to also freeze the panes. Does anyone know of a way to program th...more >>

Alternatives to IIS
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 12/18/2003 1:00:35 PM
It's likely that I will have to find another web server to use in place of IIS due to its poor security. We have already developed a reasonable amount of code in ASP.NET however. I've heard that Apache can't be used with ASP.NET and that the Cassini server is used mostly for testing purpos...more >>

Web Services Enhancements 2.0
Posted by Cristhian Job at 12/18/2003 12:44:19 PM
Hi, Does anyone know where can I download WS Enhancements 2.0? I just can´t find them. (I have version 1.0) Thanks... ...more >>

Clearcase with IIS 5.1 and ASP.NET?
Posted by tubwreck NO[at]SPAM yahoo.com at 12/18/2003 12:11:20 PM
I'm trying to use Clearcase to manage source for an ASP.NET application. I believe that I have configured IIS properly and set up my VS.NET solution and project files, but my pages do not work. Specifically, when I try to load the page from a browser (or debugging in VS.NET), I get this error ...more >>

Calling javascript from asp.net/vb.net code ??
Posted by Poppy at 12/18/2003 12:05:01 PM
I have an asp.net page with a form on it. After the user submits the form the form is then processed on the server. If variouse conditions are met I then display a message saying "Thank you...blah, blah. You will be rediredted in a moment" I need to redirect the users to another page after ...more >>

detect version of asp.net mappings
Posted by Jake at 12/18/2003 12:04:36 PM
does anyone know how i can tell which version of asp.net iis is using without using the metabase? there's not much in the registry but maybe someone knows of a way? cuz you can have asp.net 1.0 and 1.1 running and force 1.0 as the mappings. any help would be appreciated. thanks....more >>

Error on ASP.NET application; Compiler Error Message: CS1595
Posted by Kim Nørby Andersen at 12/18/2003 12:00:26 PM
Hello there I am lost. i receive the output in the bottom, from a site that runs excellently on our development server, but dies on the customer. We have had a first version running at the customer, did some changes, recompiled, zipped and sent it back to them, but then it screwed up. As a ...more >>

Remove datagrid col at runtime?
Posted by Chip at 12/18/2003 12:00:20 PM
I'm missing something. I'm trying to remove a column in a gridlist using the following syntax: grdList.Columns.Remove(grdList.Columns(0)) All this does is screw up the formatting in the table. Column is still there. Chip ...more >>

System.Web.Mail.MailMessage in class
Posted by martin at 12/18/2003 11:45:43 AM
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to this class that will send email, however my class will not seem to recognise the system.web.ma...more >>

Client IP
Posted by Steven Caliendo at 12/18/2003 11:42:17 AM
Hi, I need to know what the IP address of the client coming into my web site is. How do I grab that? Can I do that in the Session_Start module ? Thanks, Steve ...more >>

Share user control across applications
Posted by mg at 12/18/2003 11:17:26 AM
I took the following steps to share a user control across applications but was unsuccessful. WebUserControl: <%@ Control Language="c#" AutoEventWireup="false" ClassName="WebUserControl1" %> ----------------------------------------- WebUserControl.ascx placed in C:\Inetpub\Q -...more >>

Trouble getting row count from DataReader
Posted by Kevin at 12/18/2003 11:14:38 AM
I am using the DataReader to populate an ASP table dynamically. I would like to set the tables "visible" property based on the the data from my query. For example, if I have at least one row of data, I will set visible to true, otherwise, false. How get I find out if I have at least one row ...more >>

Produce a Dataset from a Grid
Posted by Filippo Pandiani at 12/18/2003 10:54:09 AM
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo. ...more >>

Cursor on the Username text box
Posted by renukasrivastava NO[at]SPAM hotmail.com at 12/18/2003 10:33:37 AM
I have a Login Page with a Username text box and another one for Password. How can I have the cursor in the Username text box once the page loads. Do I need to have a client side script?? Please help Thanks in advance Renuka...more >>

Classes without compiling a dll
Posted by C Downey at 12/18/2003 10:28:31 AM
Is there a way to access my .vb class files in my codebehind pages without pre-compiling them first. We are working with multiple developers, so each time I make a change to the class file the whole team has to update the dll. I am using CodeBehind in all my files. I also created a whole bunch of...more >>

.NET Timers aborting in web application
Posted by Jeff Greenland at 12/18/2003 10:18:15 AM
Hello everyone, I am having problems with Timers in a web application. They just seem to stop running after 15 minutes or so. My web application is set up like this: When a user hits a page in the site, that page (.aspx) instantiates a compiled class (.DLL). The instantiation process cr...more >>

globals in unmanaged space
Posted by marek at 12/18/2003 10:02:38 AM
Hello All, we are doing a quite a big project that contains at the lowest level an unmenaged c++ classes. Above it there are managed wrappers and at the top there are ASP.NET pages. Can anyone tell me how to force ASP.NET not to "clear" or reinitialize unmenaged global or static va...more >>

Why is there no intellisense for my Custom Web Server controls in HTML view !!!
Posted by JollyK at 12/18/2003 9:59:18 AM
Hello everyone... I am new in creating custom web server controls. I am having one problem at the moment and i have been looking all around and haven't found a solution. Okay.. here it goes... the custom web server control derives from the WebControl class. I have added a few more properties to ...more >>

Scroll Windows
Posted by Prince Hoff Jr. at 12/18/2003 9:58:43 AM
Quick question. I have a lot of text on a page plus a LinkButton control. Whenever the button is clicked, I have text dynamically appear. Only problem is, the window always scroll back to the top. I don't want it to scroll. How can I stop this behavior? --Prince...more >>

About ArrayList
Posted by Peter at 12/18/2003 9:24:00 AM
Hi All, I saved employees information in an ArrayList. Is possible to set this ArrayList as DataSource of the Datagrid? Thanks, Peter ...more >>

Crystyal Reports
Posted by ALPO at 12/18/2003 9:23:56 AM
ANy good sites for ASP.NET reports and Crystal Reports?...more >>

how to put the code files where you want?
Posted by Peter Row at 12/18/2003 9:19:26 AM
Hi, Can someone give me a set of steps for an ASP.NET project (well actually its just a VB.NET class DLL that implements HttpHandler) that will work when moved to another developers machine? Here are some specifics: 1) The code, project/solution files are in MS Visual Source Safe 2) Dev...more >>

ASP.Net is not working !!!
Posted by tryniks NO[at]SPAM yahoo.com at 12/18/2003 9:04:10 AM
Hi, I have installed Ent Dev Edition of VS.NET 2002 on Win 2k Pro OS without any errors. I ran the components Update CD too. I have IIS and I can run classic ASP files on my system. When I create any page in ..NET with .aspx using VS.NET a) I see only text the page contains when i access it ...more >>

Do I need IIS 6 in order to create a ASP.Net web site ?
Posted by Mystery at 12/18/2003 8:59:26 AM
I have a Win2K server running the latest v5 IIS. If I install the .net framework, will this let me serve asp.net web pages, or do I need to upgrade to Server 2003 and IIS 6 ?? Sorry for the newbie question, but I've only ever needed to use good ol'fashioned ASP in the past ! If it ain't brok...more >>

abstract and base class
Posted by JB at 12/18/2003 8:51:09 AM
My problem: I have an abstract class that implements an Interface: abstract class ReportBase: IReport { ..... Constructor and Code.... } On a user control I try to have it's class derive from the ReportBase base class: public class sqlsample : System.Web.UI.UserControl, ReportBase...more >>

Open new with new session
Posted by Patrick at 12/18/2003 8:11:27 AM
I am trying to spawn a new window (using window.open) when a button is clicked. However, the session data is also transferred to the new page. I want no session data transferred. How can I stop this from happening Thanks!...more >>

Sharing Session variables across applications
Posted by Cowboy (Gregory A. Beamer) at 12/18/2003 7:27:30 AM
Background: ------------- The idea started as a single sign on type of application. Having tested it before, I knew we could institute single sign on using the same Authentication Cookie name (in this case "AuthenticationCookie" -- yeah, original, I know) and the same machine keys for the appli...more >>

IE error
Posted by Crystal at 12/18/2003 7:03:09 AM
I wrote a .NET web application in vb.net. It is a very basic site using an Oracle backend. I just released the site into production and when one user accesses the home.apsx page, she encounters an unrecoverable IE error. This user has IE 6.0, uses Windows 2000 and the application resi...more >>

datagrid-binding
Posted by reiks at 12/18/2003 4:24:42 AM
Do we any computed column for the datagrid? Do we any expression property for the datagrid columns? My requirement is I ought to bind the following expression at design time if(au_lname=="",' ',"hi"+au_lname) Is it possible to do so? ...more >>

Adding attributes to items in a dropdown list
Posted by Joe Molloy at 12/18/2003 4:08:48 AM
Hey again, Anybody have any ideas about how I would go about adding attributes to the listitems in a databound dropdownlist? Asp.net debugger has kindly informed me that dropdown list is not a collection so that 'for each listitem in dropdownlist' style code won't work. Joe ...more >>

dropdownlist
Posted by Binny at 12/18/2003 3:28:00 AM
is it possible to have a dropdownlist in which user can type in i.e editable or select. thanks ...more >>

Correct way to add formatted HTML?
Posted by Ayende Rahien at 12/18/2003 1:58:10 AM
I've an object that I want to display via HTML, what is the correct way to do this? (Or the prefered way). Currently I'm doing it this way: private void AddStory(Story story) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("<P><P><H2>").Append(story.Title).App...more >>

Could not copy temporary files to the output directory Bug
Posted by arkam NO[at]SPAM caramail.com at 12/18/2003 1:09:29 AM
Hi, I am building a solution containing one project and no special references. My dll just reached the 64KB "limit" and is 66KB now. When my DLL reached the 64KB limit IIS stopped releasing my DLL after an exception. I have to stop and start IIS to be able to build my solution again ! N...more >>

Constant
Posted by Don at 12/18/2003 12:42:08 AM
Hi, does anyone know how to write a constant or variable into the JScript of the page that can be used by all my JScript functions? This should be done in the asp.net code! Thanks for helping me, Regards Don...more >>


DevelopmentNow Blog