Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > may 2004 > threads for monday may 17

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

Use Session in Module
Posted by The Clansman at 5/17/2004 11:50:27 PM
Hi, does anyone know how can I use the Session inside a module?? I tried Dim Session As System.Web.SessionState.HttpSessionState but I got an error...... thanks, Bruno ...more >>


Difference between ID, ClientID and UniqueID?
Posted by Henri at 5/17/2004 11:25:55 PM
Sorry to post so many questions but if you could tell me the difference between these 3 IDs, it would help me a lot. I don't know which one to use inside my custom control... ...more >>

How long will the iis thread live after you close a page?
Posted by Peter at 5/17/2004 11:16:38 PM
hi,all: I just made a simple web project that I want to insert 10000 rows data to sqlserver one by one,it would take a long time to complete, during inserting, i closed the web page that made the inserting,and looked up the sqlserver event logger, but the inserting is still going, it took server...more >>

Difference between PostData and ViewState in a custom control?
Posted by Henri at 5/17/2004 11:15:54 PM
Could you give an example that shows when to use PostData, and when to use ViewState in a custom control. Both permit to keep traces of user's actions between posts... Thanks ...more >>

difference between HtmlControls and WebControls?
Posted by Henri at 5/17/2004 11:12:49 PM
For instance, when should I use HtmlControls.HtmlImage, and when should I use WebControls.Image ? And what is the difference between <img runat="server" /> and <asp:image runat="server" /> ? ...more >>

Can you persist table cell values like you do with form field values?
Posted by Richard Dixson at 5/17/2004 9:34:53 PM
Under ASP.NET (C#) I want to create a page that people can use to submit questions. This page will consist of a table with several rows of information, like: Name: Bill Smith Job title: Developer Address: 123 Main Street. After the table of information will be the web form. So bas...more >>

Can you persist table cell values like you can do with form field values?
Posted by Richard Dixson at 5/17/2004 9:33:11 PM
Under ASP.NET (C#) I want to create a page that people can use to submit questions. This page will consist of a table with several rows of information, like: Name: Bill Smith Job title: Developer Address: 123 Main Street. After the table of information will be the web form. So bas...more >>

TextBox on ASP Page
Posted by Bryan at 5/17/2004 9:26:02 PM
I'm trying to place a text value in a text box from a Session datable with the following ref 1: Dim dt as DataTable = Session("userCart" ref 2: ucUpdateCartMain.txtQty.Text = dt.Rows(i)("Quantity").ToStrin ucUpdateCartMain is a user control with a txtQty Text Box in it The value is given to th...more >>



Anyone have experience w/ Application["AppState"]?
Posted by Julie at 5/17/2004 8:51:13 PM
I stumbled across Application["AppState"] from someone else's code, and I can't find out squat about by searching MS, Google, or Google Groups. For the most part, this is returning the fully-qualified name of the server and path to my application, such as: http://devserver/testapp However...more >>

How do you access Table cells from code behind?
Posted by Richard Dixson at 5/17/2004 8:42:56 PM
I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my code behind. However I am not able to do this at all, I am going about this wrong, I think and need ...more >>

Radio button exclusive selection for DataGrid
Posted by MR. UNDERHILL at 5/17/2004 8:41:05 PM
I want to use a radio button as a template column in a data grid, what is happening is that the exclusive selection is not working since the internal radio button name is being generated by the DataGrid control. Is there a way to work around this behavior? Thanks in advance...more >>

Get MAC Address
Posted by Aaron at 5/17/2004 8:26:09 PM
How to get a visitor MAC address? Thanks Aaron ...more >>

Question about ImageButton Event
Posted by angus at 5/17/2004 8:19:48 PM
Dear all, I know that i can add a button with oncommand event "ImageButton_Command" by using the asp:ImageButton tag in the aspx code. <asp:ImageButton id="imagebutton1" runat="server" AlternateText="Sort Ascending" ImageUrl="images/pict.jpg" OnComman...more >>

Can you extend HtmlControls?
Posted by Steve - DND at 5/17/2004 7:36:51 PM
Is there any way to extend the stock HtmlControls? What I'm looking to do is to still be able to plunk down <select id="blah" name="blah" runat="server"/> but have it use my CustomHtmlSelect class instead of the regular HtmlSelect class. Is this possible? If so how? Thanks, Steve ...more >>

SQL null problem
Posted by Tommi Bauer at 5/17/2004 7:08:25 PM
I am writing a query in ASP.NET C#, select sum(size) as total_size from my_table where is_valid = 1 However, if there is no data in the database, it returns 1 record with value null. How come it doesn't return 0 instead? because I am using "sum", if SQL can't find any record.. isn't it s...more >>

Web service - how to?
Posted by John at 5/17/2004 6:19:06 PM
Hi I would like to access an ms access database located at a web site from my desktop via web service. Is there some information available on how to do that? Would the web service run on a shared hosting web account? Thanks Regards ...more >>

error: "...is a physical path"
Posted by Michiel Schaeverbeke at 5/17/2004 6:03:12 PM
Hi, I'm trying to reach an xml file from within a web application. The file is physically on a different server. When I try to reach it using \\servername\path\ style, I get the error "\\servername\path\ is a physical path". Using a virtual directory gives the same result. All I really d...more >>

Question about validators
Posted by angus at 5/17/2004 5:46:24 PM
Dear all, I have 5 textboxes, and 2 buttons in a webform. 1-3 textboxes would be validated by 3 Required Field Validators if button 1 is click; 4-5 textboxes would be validated by 2 Required Field Validators if button 2 is click. I have found whether i click button 1 or button 2, textbox...more >>

How do I obtain a reference to an object using the ID?
Posted by hellrazor at 5/17/2004 5:28:09 PM
In Javascript I can use document.getElementById("elementID") to access the object. Is there an equivalent in VB.NET / ASP.NET ? Thanks in advance...more >>

Change button backcolor in C# ASP.NET
Posted by Grey at 5/17/2004 5:24:58 PM
how to change the button backcolor with C# in coding. I want to change = back color of the button when I click it.=20 Million Thanks.....more >>

about web domain
Posted by Owen at 5/17/2004 5:15:51 PM
Hello: I have 2 WebApp (they can be in same or separate server) and I want auntenticate in one with form auntetication. But then I want to pass to other with the same credential. How can I do that. All in ASP.NET and C#. Best regards. Owen. ...more >>

Getting Parameters...
Posted by Eddie at 5/17/2004 5:08:48 PM
Hi All, How may I get parameters of a Link in ASP.NET ? Ex : http://localhost/test.aspx$param1=99 In the Page_Load event, I want to be able to get the value of the parameter param1 (99) Thx ! Eddie ...more >>

Dropdown list shows US state
Posted by thorung NO[at]SPAM mailcity.com at 5/17/2004 4:58:48 PM
Hello I have a pretty standard ASP.NET page where a user is required to enter their address. For the field "State", I am using a dropdown list of course. What is the best/easiest way to populate this control on a page load? I do not want to have to have a table in my data source that has all...more >>

ASPX page causing IE to crash
Posted by Brad at 5/17/2004 4:56:44 PM
I have an aspx web page which initially displays fine. When I postback the resulting response back to the client output is causing InternetExplorer 6 to crash. I've disabled the server side code for the submit button so what is be going back to the client is just a recyling of the content. I ...more >>

ASP.NET version.
Posted by Srini at 5/17/2004 4:41:02 PM
Hi Where and how do I find the current version of ASP.NET that is running on my machine Thanks for the help Srini...more >>

A strange issue!
Posted by Martyn Fewtrell at 5/17/2004 4:08:52 PM
I have a repeater that displays records from a database. All fairly straight forward with the repeater binding to a dataset, and a datacommand filling the dataset from the database. The only complication is that the data displayed can come from either of two stored procedures according to a ch...more >>

Looking for journal software for web site
Posted by chuck at 5/17/2004 3:55:35 PM
I would like to create an electronic journal (blog) on my personal web site and am looking for software. Preferable is C#. Thanks in advance. ...more >>

AccessKey..............
Posted by Gill Smith at 5/17/2004 3:44:27 PM
How to make function keys as access key in ASP.Net ? I am trying to put function key as access key for an image button. Thanks, Gill ...more >>

querying data from a dataset?
Posted by MDB at 5/17/2004 3:17:18 PM
I'd normally Google for a question like this, and hope to snag a few examples along with the answer, but this time I can't see to get the keywords specific enough. Or I'd ask coworkers, but they're just as new to ASP.NET as I am. Is it possible to have a dataset filled with all the records i...more >>

Wizard Control
Posted by Michel Couche at 5/17/2004 3:10:29 PM
Hello,, I would like to develop a wizard based form for user input in an intranet application. Any link a VB.Net tutorial will be most welcome. Michel ...more >>

enableviewstate override not working in web.config
Posted by Max Metral at 5/17/2004 3:06:42 PM
I have a Web.config in my application root dir with the following pages directive: <pages buffer="true" enableViewState="false" enableSessionState="false" enableViewStateMac="false"/> And then one in a subdirectory with this one (viewstate enabled): <pages buffer="true" enableViewState=...more >>

Strange forms authentication
Posted by Ryan Moore at 5/17/2004 2:46:42 PM
I have a ASP.NET app which uses forms authentication... This app is currently on 2 different machines, my local "development" machine, and a "testing server". This app works perfectly on the testing server on most computers, but on one in particular, there is a problem. When the user "logs in"...more >>

Shell Command
Posted by senthil at 5/17/2004 2:37:03 PM
Hi My name is Senthil . I am trying to run bat file from Asp.net using shell command but it failed . The bat file is in server . The purpose of running this bat file is to do an ftp from server to mainframe . It runs good in vb.net . When I try to run or open this batch file from server it doe...more >>

separate aspnet_wp.exe instance
Posted by zhangrusi at 5/17/2004 1:56:04 PM
Hello Is there any way (documented or otherwise) to get around the restriction that all ASP.NET applications run in the same aspnet_wp.exe instance under IIS 5? Ideally, I would like to launch my web application in its own instance of aspnet_wp.exe. (I realize that it is possible to run a given ...more >>

Why do I sometimes get empty aspx responses?
Posted by Ricky K. Rasmussen at 5/17/2004 1:24:32 PM
Hi NG, In a very large ASP.NET application i use popups for displaying diffrent kinds of dialogs. But sometimes when a Popup is opened it's like the aspx page is never executed and the popup is "empty". Containing only the following HTML (maybe it's IE that generates this because the page i...more >>

SoapException - unusual behavior
Posted by Marty McDonald at 5/17/2004 12:22:42 PM
I have a web page. It uses web service (on localhost) to get data. I'm able to get to my web service properly, data is returned. Then, via JavaScript, I HTTP post to another site. Instead of seeing the other site, I see the SoapException... <?xml version="1.0" encoding="utf-8" ?> - <soap:E...more >>

Pop up download box
Posted by Steve Lloyd at 5/17/2004 12:06:27 PM
Hi, I am trying to create a popup progress box for a downloading file and then do a page redirect/transfer on completion of the download and also to confirm completion of the download, much like downloads on the microsoft site. The download is protected by using a naming it as an aspx file ...more >>

web.config documentation
Posted by at 5/17/2004 11:53:45 AM
is there a kind of documentation that gives all web.config attributes and their explanations ??? i seeking for web.config manual ??? ...more >>

SQL UNION -like filtering of offline DataSet into DataView for WebControl binding
Posted by Marco Ippolito at 5/17/2004 11:38:21 AM
I have an offline DataSet: id (PK, sorted ASC), firstname, enabled 1, Aaron, true 2, Bill, false 3, Charlie, true .... 10001, Mike, false 10002, Nathan, false and I need to bind a DataView to a Repeater to fetch something like: id #2 (I can think of this as a Find) + all records who...more >>

Redirect to another website
Posted by A.M at 5/17/2004 11:16:16 AM
Hi, I am trying to use Response.Redirect to redirect the response to another website (say http://www.yahoo.com) but asp.net redirects the request to http://localhost/www.yahoo.com Which is wrong. I need to redirect the client browser to diffrent website. How can I do that? Thanks, ...more >>

HELP -- ASP.NET Controls Died!
Posted by Scott Schluer at 5/17/2004 11:01:18 AM
I have an ASP.NET project that has been working fine until recently. For some reason NONE of the javascript on the site works (including rollovers, postbacks, etc). Anything that uses JS does not work. This is both on the production and development server using various browsers. I have JS enabled...more >>

Events in HTTP Modules
Posted by Dave at 5/17/2004 10:56:01 AM
In KB article 308000 HOW TO: Create an ASP.NET HTTP Module Using Visual Basic .NET (http://support.microsoft.com/default.aspx?scid=kb;EN-US;308000), a simple HTTP Module is created which, among other things, raises a user defined event in the BeginRequest handler. it is defined as (in the HTTP Modul...more >>

Strange Window.Open problem
Posted by Melissa at 5/17/2004 10:52:26 AM
I have inherited an intranet ASP.NET (C#) page running on Windows 2000. The page populates a label control with some javascript to open a pop-up to a document (xls, doc, pdf, etc.). This is what is output onto the page: <span id="javascriptLabel"> <script language="javascript"> <!-- ...more >>

bar code integration
Posted by Rod Snyder at 5/17/2004 10:12:24 AM
I'm looking at building in bar code ability to an intranet library application (asp.net vb). Any suggestions on where to look for documentation, examples or components would be appreciated. Rod ...more >>

Techniques for big applications?
Posted by Luis E Valencia at 5/17/2004 10:06:06 AM
Whhich is the best technique for big applications? Somebody told me he makes his connection datasets on components and the web pages apart. Any information about it ...more >>

DateTime to time_t bug
Posted by Mark at 5/17/2004 9:51:03 AM
Hi.. I'm writing a web service in C# and needs to produce some time_t values in the xml output, and near as I can figure there appears to be a bug in the C# datetime arithmetic. Below is an example in asp.net using the JScript Date object to demonstrate the bug. The net problem is that the numbe...more >>

using Session-object ??
Posted by (cmrchs NO[at]SPAM yahoo.com) at 5/17/2004 9:50:00 AM
Hi, how do I 'save' a DataRow-object in ViewState or Session-object ? Trying : Session["Row"] = myDataSet.Tables[0].Rows[0]; or ViewState["Row"] = myDataSet.Tables[0].Rows[0]; results in an error : The type 'System.Data.DataRow' must be marked as Serializable or have a Ty...more >>

User Control Cache
Posted by A.M at 5/17/2004 9:41:23 AM
Hi, I underestand that I can change a user-control's cache parameters and timeout by attributes like this: <%@ OutputCache Duration="60" VaryByParam="none" %> Is it possible to define Cache parameters inside the c# code ? (during runtime rather than design time) Thanks, Alan ...more >>

merging tables
Posted by John at 5/17/2004 9:36:12 AM
I need to select data from 2 different tables, a Microsoft Access Table on a local machine and an Oracle table on the server Then I need to do a left join. What is the best way to do this Here is what I have done I have created two database connections, one for each of the tables I have creat...more >>

Object in Context.Items and GC
Posted by John Linn at 5/17/2004 9:36:10 AM
If I add an object to HttpContext.Current.Items, does that mean it will last the duration of the page request? If not, what controls when that object will be cleaned up -J...more >>

Recursion Query
Posted by Chris at 5/17/2004 9:28:43 AM
Hi Whats the best approach to recursion ? i need to display a directory structure. I considered using a repeater, but can't see how that would work I need to use code behind as much as possible. Thanks Chris ...more >>

How do I save an object with value, after postback?
Posted by Leo Muller at 5/17/2004 9:28:33 AM
I tried to simplify my problem. What I want to do is to save a string in a variables, and everytime I click a button, the variable string gets a bit longer by adding the time to it: on the form there is a button. Somehow the submit seems to initialize the variable again, rathen then keeping it...more >>

a simple webusercontrol ??
Posted by Chris at 5/17/2004 9:27:18 AM
Hi, I have 2 textboxes (txtVal1, txtVal2) in a WebUserControl (WebCalcUserControl) for which I write public properties : public int Value1 { get { return Convert.ToInt32(txtVal1.Text); } set { txtVal1.Text = Convert.ToString(value); } } public int Value2 { get { return Convert...more >>

Help adding buttons at runtime...
Posted by Doug Slocum at 5/17/2004 9:14:07 AM
Hi, I'm using ASP.NET. I need help adding new buttons to my web page at run time on the server side prior to sending to the client. As the web form is loading, I won't know in advance how many buttons I'll need or the properties for each until I read a database. For each new button, I need to ...more >>

Controlling the srolling bar position in ASP & C#
Posted by Philippe V. at 5/17/2004 8:36:02 AM
Hi I need to be able to control the position of the scrolling bar when I move from one page to another page For example, when I click on a button to process a special action done in a second page, when I come back, I want the original page to be at the same position than before I also need to do...more >>

Class 'System.Data.SqlClient.SqlDataAdapter' cannot be indexed because it has no default property.
Posted by bob_nospam_3000 NO[at]SPAM yahoo.com at 5/17/2004 8:15:11 AM
Hi, I'm trying to something quite straightforward, populate a datagrid with certain fields after selecting from a dropdownlist. The books I have don't seem to give an example of how to do this ( particularly from within VStudio 2003 ) and it's driving me to distraction. daNumber1 selects the ...more >>

Validation of EditItemTemplate TextBoxes in a DataGrid
Posted by mg at 5/17/2004 7:01:02 AM
How can I apply validation for date and currency on the values typed in EditItemTemplate TextBoxes in a DataGrid (C# WebForm)...more >>

Asp.net popups
Posted by Tayo at 5/17/2004 6:11:04 AM
I am fairly new to web development, I would like to know how to popup another webpage that contains for instance a calendar control and return results back to the opening page. Any ideas welcome Tay ...more >>

Timeout
Posted by Solel Software at 5/17/2004 5:46:02 AM
Hello I have a SQL Server 2000 database query that takes a long time (about 1.5 min in SQL Query Analyser) that I am running from a web page. I keep getting a Timeout error regardless of how long I set the Timeout property i Server.ScriptTimeout = 5000 in the asp.net page o Connect Timeout=...more >>

forms authentication
Posted by mike parr at 5/17/2004 4:47:03 AM
I'm using forms authentication and on my first page I want to check if the user has a cookie, and if they do I want to authenticate then and send them to my default page with a greeting, otherwise send them to a login page. I've seen a lot of examples on the internet where the user login detai...more >>

Webrequest and shared files
Posted by John K. at 5/17/2004 4:16:05 AM
Hi I was wondering if it's possible to use the WebRequest class to access a file on windows shared folder with authentication? If yes, what would the syntax be? I've tried to look this up in the references available but to no avail Also, is it safer (better practise) in an LAN environment to use...more >>

replace linefeeds in text?
Posted by Grant Mills at 5/17/2004 2:57:58 AM
I'm trying to get linefeeds to display correctly in a datagrid (text is taken from a database of text that has been htmlencoded) By default it doesn't display them. But <br/> tags display fine. however, when I do validated.Replace(vbCrLf, "<br/>") or validated.Replace(chr(10), "<b...more >>

emit client script in check box list
Posted by adam NO[at]SPAM twv.org at 5/17/2004 2:01:02 AM
h How do i get an asp checkBoxList to emit client script. I want it so that when each checkbox is clicked, i can cause some action to happen i tried CheckBoxList cbl = new CheckBoxList() for(int i = 0; i < 5; i++ ListItem li = new ListItem(i.ToString(), i.ToString()) li.Attr...more >>

ASPNET and Webbrowser control
Posted by frede NO[at]SPAM ibis-thome.de at 5/17/2004 1:17:16 AM
Hello, I Created a AxSHDocVw.AxWebBrowser in a class and want to Post Values to a WebPage. When I use this class in a Windows application, everything is fine, but in an ASPX page it hangs after the .submit (see code) Even if i try to start the class in a new thread it terminates at the ....more >>

Connect to web site using SSL & Client Certificates
Posted by krishgandhi NO[at]SPAM hotmail.com at 5/17/2004 12:13:34 AM
Well, I got it working when running against my test server (IIS5 W2K svr, I will attach a sample of the code at the bottom of this message), but now I'm connecting to our client (Apache) I'm getting the following error: An unhandled exception of type 'System.Net.WebException' occurred in syst...more >>

IIS protection
Posted by John Wood at 5/17/2004 12:07:37 AM
I have a couple of questions (that may be more IIS related): 1. If my ASP.net application gets caught in an infinite loop... how does the process ever get terminated? Does it time out? 2. If my ASP.net application consumes all resources (eg. creates a bunch of brushes it doesn't release), can ...more >>


DevelopmentNow Blog