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 > september 2005 > threads for monday september 12

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

Expiration of Pages in ASP.NET
Posted by jakk at 9/12/2005 11:35:26 PM
hello all, we have a web portal which has lots of sensitive information. Some of these pages need to expire instantly when the user leaves the pages. i.e. if the user presses the Back button to go back to one of the sensitive info pages he shuld be redirected to a separate page that says "Pag...more >>

Help with HtmlInputFile question?
Posted by Larry O via DotNetMonster.com at 9/12/2005 9:24:22 PM
Hi - I'm a newbie to .NET and I was hoping someone would be so kind as to help me out with a question? Specifiec in my .aspx file: <input type="file" size="50" id="FileToSend" runat="server" NAME="FileToSend"> and in my class as: protected System.Web.UI. HtmlControls.HtmlInputFile FileToSend;...more >>

Upload File. File Type Question.
Posted by Shapper at 9/12/2005 9:20:59 PM
Hello, I created a script to upload a file. To determine the file type I am using userPostedFile.ContentType. For example, for a png image I get "image/png". My questions are: 1. Where can I find a list of all the types which can be returned? For example, if it is a Word document will...more >>

Textboxes Losing Width in Netscape and Firefox
Posted by Steve Murphy at 9/12/2005 8:18:11 PM
My textboxes are losing their defined width when viewed in Netscape and Firefox. They are fine in IE. Also, if I use HTML text fields in place of the textboxes, I don't experience the problem. Am I doing something wrong with the textboxes, or do I need to use HTML text fields instead? Th...more >>

Calendar control
Posted by niju at 9/12/2005 8:13:41 PM
Hi all, I am using a calendar control to populate date for users. However, I need to stop users from selecting date from past. Is there a way to populate calendar from DateTime.now onwards.Any help would be appreciated Many Thanks Niju ...more >>

Open multiple windows
Posted by Ayoa at 9/12/2005 7:10:36 PM
In my ASP.net project, I have a group of URLs (stored in a C# arraylist). I will like to send all of these URLs to new browser windows at the SINGLE click of a button. I know that clientside javascript will be needed. Does anyone have any code that does this? AyoA ...more >>

LinkButton / Call Function
Posted by Shapper at 9/12/2005 6:51:02 PM
Hello, I have an Asp:LinkButton: <asp:linkbutton id="myLinkButton" runat="server" oncommand="Upload_New_Files"/></asp:linkbutton> I have the following function: Sub Upload_New_Files(ByVal sender As Object, ByVal e As CommandEventArgs) Handles myLinkButton.Click ... End Sub I g...more >>

Dynamically loading user control based on querystring
Posted by footballhead NO[at]SPAM gmail.com at 9/12/2005 6:07:57 PM
I have a site that has MANY different clothing categories. I have a page set up for displaying the products (productsearch.aspx) when a user clicks one of the category links on the navigation menu. I would like to have a different user control that gets loaded as a sub-header for each category (...more >>



where clause parameter..
Posted by Britney at 9/12/2005 5:35:04 PM
Original code: this.oleDbSelectCommand1.CommandText =3D "SELECT TOP 100 user_id, = password, nick_name, sex, age, has_picture, city, state, " + "country FROM dbo.users WHERE (has_picture =3D ?) AND (sex =3D ?) ORDER = BY age " this.oleDbSelectCommand1.Parameters.Add(new = System.Data.OleDb....more >>

Replacing strong-named assembly
Posted by Stefan at 9/12/2005 4:24:45 PM
Hi, I have an application that consists of multiple strong-named assemblies like: App.exe references Utils.dll (for simplicities sake) All assemblies are strong-named, but not GAC'd (private assemblies). My goal is that once I have deployed App.exe, I want to deploy a bugfix in Utils...more >>

dropdown list
Posted by Britney at 9/12/2005 4:04:13 PM
hi I want to create an age drop-down list. values for age is from 1 to 100. It seems so easy but I have to write over 100 lines of codes (100 listitems) Is there a simple way to achieve the same solution as below? <asp:DropDownList id="DdAgeStart" runat="server"> <asp:ListItem V...more >>

Parser Error
Posted by Marshall at 9/12/2005 3:54:24 PM
Hi All, I am building an asp.net web app using Visual Studio 2003. Today I created a new folder called 'Secured' at the root of my web app so I could partition off all of the restricted content. Up until that point the restricted files were in the root folder of the web app so I moved the...more >>

Logon in error
Posted by CsaaGuy at 9/12/2005 3:32:29 PM
Hi i have an xp profession, iis 5.1 asp/vb.net app. On the developement box i can login no problem. With an client hitting this box i get prompted for the user id/password. It only works if i login as the administror of the server box. Does anyone know what is happening? The client is my desktop...more >>

3 apps, one log-in. Options?
Posted by darrel at 9/12/2005 2:24:16 PM
A couple of us are working on some admin tools for our site. For a variety of reasons (some good, some arbitrary, either way, it's what we're doing...) we decided to use a couple independant applications and tie them together with a simple HTML template. So, right now, we have 3 individual .net ...more >>

Debugging code behind
Posted by DazedAndConfused at 9/12/2005 1:58:53 PM
Is there something special you have to do to get the interactive debugger to work on code behind? ...more >>

IIS Login Error
Posted by CsaaGuy at 9/12/2005 1:41:27 PM
Hi, I have an asp/vb.net application working on my laptop. When I try to login from my desktop it gives a dialog box and no matter what i put into it, it will return Error: Access is denied. Both boxes are on the same domain and have the same userid. Something is not quite right. Thanks. ...more >>

How do I make a table cells visibility depend on a session variable?
Posted by COHENMARVIN at 9/12/2005 12:59:51 PM
I have a table with 2 buttons in it - a SAVE button and a DELETE button. If Session("BothButtons") = True, I want to show both buttons. If Session("BothButtons") = False, I want to show only the SAVE button. This would be easy to do (I just would set DeleteButton.Visible = False), but the probl...more >>

how to insert JavaScript code dynamically...
Posted by Jaime Stuardo at 9/12/2005 12:57:04 PM
Hi all... I need to add some JavaScript code that is dynamically generated to some point of the page. Currently I'm using ClientScript.RegisterStartupScript(GetType(), "menu", "<script type=\"text/javascript\">" + oMenu.BuildMenu(true, true, true) + "</script>"); But the script is ad...more >>

read virtual
Posted by NuB at 9/12/2005 12:52:09 PM
I have a web site that is created under IIS via a virtual directory. On my asp.net page I have links that need to point to the folder under the virtual. How can i read the virtual directory such as; http://webserver/documents/test.aspx instead of seeing: c:\testsite\documents\test.aspx ...more >>

Exceptions from DLL in ASPX page
Posted by Steve at 9/12/2005 12:41:34 PM
Hi... new to ASP.NET... I am creating a DLL using VB.NET which my ASPX page will be calling. I have a class in the DLL (MyClass) which has a property (MyProperty). If the value assigned to MyProperty is set by my ASPX page to be out of bounds, I want to raise an exception that gets captured in...more >>

Getting the Html text for a control...
Posted by Chad at 9/12/2005 12:40:53 PM
In our application, I would like to send out HTML mail. TO do so, I must = do something like this: Mail.Body =3D <raw HTMLTEXT String> Hence, I would like to know how to get the HTML text for Web Controls. You'll notice below in lines 33-37 that that code does correctlt return = the HTML ...more >>

IE Hosted Windows UserControl will not show Tooltip (SECOND POST)
Posted by tony NO[at]SPAM lugg.com at 9/12/2005 12:30:36 PM
I initally posted this July 29, 05 and did not get any replies: I have a Windows Forms UserControl that runs in a thick client. I am now deploying it within an IE web page. Everything works fine, including events, except for one feature. As the mouse is moved across the control, a System.Windo...more >>

How do I check the type of the value represented in a system.type?
Posted by Don at 9/12/2005 12:26:36 PM
I have an array of System.type and I need to go through the array and perform different logic depending on the type stored in the array. I want to do: if (typeof typeCollection(i) is String) then 'some logic elseif (typeof typeCollection(i) is int32) then 'some logic ..... The prob...more >>

Question about sending email from ASP page
Posted by Joe at 9/12/2005 12:25:02 PM
Hi, I know this is a asp.net newsgroup but may be most you know asp very well. I am sending an email from an asp page. Besides sending an email to sender, I am sending myself a BCC also. Out of 100 emails sent, about 5 recipients received a blank email (no text in subject and body). Th...more >>

Edit All rows in Datagrid
Posted by Alfredo Barrientos at 9/12/2005 12:23:00 PM
Hi, Is it possible editing all rows in datagrid?, i mean all fields are enabled to edit?, and update all values in just one click? Thanks, Alfredo Barrientos ...more >>

DropDownList Question
Posted by Will Lastname at 9/12/2005 11:41:57 AM
My application has a series of dropdownlists with AutoPostBack set to True and IndexChanged handlers as well. All of the dropdownlists are bound and dynamically populated. Is there a way to manually add an entry to a dropdownlist that is bound? The reason I ask is because if the first item is...more >>

RegularExpressionValidator
Posted by Owen at 9/12/2005 11:14:41 AM
I need to use a regular expression which allows: * 0..250 characters length. * All characters except for single-quote ( ' ) or percent ("%"). I've tried and failed miserably to construct such an expression that works. Please help ! thanks, Owen ...more >>

How can I avoid cache?
Posted by Shawn at 9/12/2005 11:08:30 AM
Hi. We have a web application that is used by several different companies. Each company have access to a couple of hundred records which they are updating daily. One of they companies have reported many problems since their IT department set up a proxy server. When they click a button to sa...more >>

paging with datalist
Posted by NuB at 9/12/2005 10:59:27 AM
I'm creating a dataset and populating a datalist from that. How can i page the datalist? I want to see 15 records at time on my page so at the bottom I want to see 1-15 of 100 next ...more >>

Table Editing Tool
Posted by Tina at 9/12/2005 10:59:05 AM
Does anyone know of an asp.net general purpose table editing tool that will allow users to add modify and delete data? Thanks, T ...more >>

Removing columns from DataRepeater
Posted by Chris Leffer at 9/12/2005 10:49:09 AM
Hi. I have a DataRepeater that is filled with the results of a query based on four criteria fields. If one of these criterias is informed, I don't need to display a certain column in my DataRepeater. I can do that using an If expression on the HTML to conditionally show the column, but is it ...more >>

"Cannot be validated" - why not???
Posted by Owen at 9/12/2005 10:40:23 AM
Hi, I have a custom control which comprises a label and a text input box. I add one of these to my web form and call it "MyTextControl". I am trying to havea RegularExpressionValidator which validates the text input portion. However, whenever I set the "ControlToValidate" property to "...more >>

Postback
Posted by Johan at 9/12/2005 10:13:00 AM
I'm coding a webapp in VB.NET where I'm using a WebForm (Webform1) as the source for an Input Image to a second WebForm (Webform2). <INPUT style="Z-INDEX: 105; LEFT: 0px; POSITION: absolute; TOP: 0px" type="image" src="WebForm1.aspx" name="gamegrid"> I have a commandbutton on WebForm2 and wh...more >>

Cleaning up
Posted by Mantorok at 9/12/2005 10:07:15 AM
Hi all I've got a page and when the user clicks on a particular button and submits some stuff I want to trash any viewstate the page is holding so that if the user goes back to the page they are a) forced to refresh and b) do not have any of their entered values in the form. Any ideas? ...more >>

Google is now doing what I need to...No Border
Posted by trint at 9/12/2005 10:06:45 AM
Some of you may now have the new "Google Talk" (Googles little chat screen). Very small, no borders does not look like IE at all. Looks very much like a Web Page though. How is that if everyone says Microsoft has teathered our creativity to disallowing any other type of window other than theirs...more >>

close favorites and history using javascript
Posted by Alex D. at 9/12/2005 9:57:56 AM
does any body knows how to open a new IE window and close the favorites tab and history tab (if tabs enabled)? problem is that when opening new windows(pop-ups) with absolute size and the user has favorites or history views enabled then the content in page is wraped and scroll bars appears ...more >>

"Timeout expired" for simple ADO.NET SQL Server query
Posted by Nils Magnus Englund at 9/12/2005 9:47:55 AM
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection connection = new SqlConnection(ConfigurationSettings.AppSettings["Database.Connection"])) { connect...more >>

Prerequisite for asp.net browsing... ?
Posted by John 3:16 at 9/12/2005 9:41:08 AM
Hello All, I have an asp.net app that is 90% complete. I rebuilt an existing asp production app, changing it significantly to take advantage of the enhanced functionality. during development, I would check the page display from the development machine, my work machine.. and my work machine ...more >>

How retrieve width of a cell?
Posted by needin4mation NO[at]SPAM gmail.com at 9/12/2005 9:37:43 AM
Please Consider this code snippet: private void dgdHistory_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.EditItem) { TableCel...more >>

How to insert a dropdownlist sourced by a dB inside a datalist row
Posted by Antonio D'Ottavio at 9/12/2005 9:31:37 AM
Good Morning, In my web page I've a datalist that is sourced by a database, the problem is that I want that one of the column of the datalist contain a dropdownbox that also is sourced by a table in the database. <asp:DropDownList id="ComboTipoPartita" runat="server" DataValue...more >>

How to add dynamic row in a grid
Posted by davef NO[at]SPAM helixpoint.com at 9/12/2005 9:25:34 AM
How to add dynamic row in a grid in the codebehind ...more >>

I need a borderless window...help!
Posted by trint at 9/12/2005 8:57:38 AM
I've tried everything... function showRemote() { self.name = ""; // names current window as "main" var windowprops = "border=0,titlebar=0,toolbar=0,location=0,directories=0,status=0, " + "menubar=0,scrollbars=0,resizable=0,width=256,height=403"; OpenWindow = window.open("logon2.aspx", "rem...more >>

DataSet vs Custom Collection
Posted by JimGreen at 9/12/2005 7:31:16 AM
We are designing a WinForm application ( three tiered) There is a debate in our group as to whether we should pass datasets or our custom collections from business layer to the user interface layer. The data is stored in memory (fetched from DB only once). The collection is dynamic in the sense ...more >>

No Image
Posted by Web Team NO[at]SPAM Borough of Poole at 9/12/2005 7:31:03 AM
Hi All, I have borrowed some code from here: http://www.codeproject.com/aspnet/aspnet_web_graphics.asp This works as expected when I use in-line code, but when I moved it to code-behind, it stops working. The image does not appear, no errors...all I get is a blank HTML page: <!DOCTYPE HT...more >>

Security of Web Services
Posted by david at 9/12/2005 7:07:01 AM
I met the security problem. I have developed the form based security for ASP.NET appliation. However, it seems that my window based client for my Web services application can not access to the server side. How to overcome this situation? Thanks David...more >>

What is the difference between C# windows Services and web services in vs.net?
Posted by Nick at 9/12/2005 6:32:09 AM
hi, all What is the difference between C# windows Services and web services in vs.net? Becuase I have a windows services using http remoting, and client access it by a http url address, so it looks very similar with the web services. In this point, the windows services, web services, and asp...more >>

handling 404 errors on non-ASPX paths
Posted by versteijn at 9/12/2005 4:36:23 AM
Hello all, I know that I can handle 404 errors on ASPX paths, like www.domain.com/doesnotexist.aspx. But I want to handle 404's like on www.domain.com/foldername. Is this possible, and how can I best do this? My application is hosted by a 3rd party, so I can't do very much of customization ...more >>

ASP.NET control positioning
Posted by asad at 9/12/2005 4:13:02 AM
Hello, I have some problem in Layout of my page when i put ASP.NET control on it, actually in this control i have created the links of my website and, i want to include this control in all of my pages, but when i include it, page layout or positioning distrubed I'm applying html table but i...more >>

fill dropdownlist with filename
Posted by Remco Ploeg at 9/12/2005 3:03:02 AM
Hi, I wan to fill a dropdownlist with the filenames in a certain directory, i use the following statement for retrieving the files: DirectoryInfo di = new DirectoryInfo("C:\\Inetpub\\wwwroot\\ASPNET\\Documents"); FileInfo[] rgFiles = di.GetFiles("*.doc"); foreach(FileInfo fi in rgFil...more >>

onChange how to
Posted by MartinaL at 9/12/2005 12:03:03 AM
Hi, I need to change this code so that when this checkbox is selected; <input type="checkbox" name=becomeMember value=1 > Yes, I would like to become a Member of Orange Wine Club for $22 per annum. This field further down the page is changed to 22. If it is unselected again ...more >>

V2.0 ARGH!!!!!
Posted by Mantorok at 9/12/2005 12:00:00 AM
Hi all I just changed the name of the style-sheet I was using in my master page - guess what Beta 2 does??? WIPES OUT ONE OF MY F*****G PAGES!!!!!!!! I'm livid! That is all I did and it's wiped out ALL my HTML that was in my web page - 2 months work. My only hope is to somehow try and d...more >>

HTML Controls Vs Web Controls.
Posted by Adam Knight at 9/12/2005 12:00:00 AM
Just out of interest, what is everbody's thought on using HTML Controls Vs Web Controls. Any preferences?? Cheers, Adam ...more >>

FireFox / IE acting differently
Posted by dee at 9/12/2005 12:00:00 AM
Hi, I run into a problem only in FireFox and not in IE. Here is the html that has the problem: <table> <tr> <td align=left > <a href=Default.aspx> Home </a> <td> <td> Title of My Page </td> </tr> </table> when I reduce the width of the browser window the title t...more >>

Dynamically created webcontrol's events not firing
Posted by Mark Rae at 9/12/2005 12:00:00 AM
Hi, I'm sure I've done this before, but I can't get it to work today... I'm trying to add a DropDownList into a TableCell and wire up its SelectedIndexChanged event. I'm adding the dynamic control like this: mtblCell = new TableCell(); mtblCell.ColumnSpan = 2; DropDownList cmbShipping =...more >>

DataGrid paging Question
Posted by Pat at 9/12/2005 12:00:00 AM
I have a 2 nested Datagrid. When i select a row in the Master Datagrid i populate the Child databrid using myDataGrid.SelectedIndex value as the filter and setting the DataKeyField. I enabled paging for the MasterDataGrid which works well but when i page to the next set of rows and select a part...more >>

how to initialise an object to be available for all users? ASP.net
Posted by Annie at 9/12/2005 12:00:00 AM
hello all, is it possible at all? i have a class that encapsulates a Hashtable collection. What i want is to initialise this object once and only once and then be able to access its Public Static methods always. What i want is when the user logs in i gets its detail and add him/her in ...more >>

Copy and paste text in a webform?
Posted by Richard Price at 9/12/2005 12:00:00 AM
Please can someone help me out I am really stuck. I am building a website and have been told to build into it an HTML page which has a text box and a button to set the text to bold or underline. The problem is that I do not see how this can be done using ASP.NET. Is this the same as providing ...more >>

Host to post a page that can't be found?
Posted by Lauren Cooper at 9/12/2005 12:00:00 AM
Is there a way I can post a page on my website where others won't be able to find it? I am using the page to trigger the execution of a report. My hosting provider offers a scheduler that will hit a page at a configurable interval. It works perfectly, except that someone else may find the ...more >>

Process
Posted by Trond at 9/12/2005 12:00:00 AM
I am trying to start a console program from an event in a ASP.NET page. In the folder where the EXE is there is a config file. Here is some code i wrote that should start the exe file: ---------------------------------------------------------------- Process p = new Process(); p.StartInf...more >>

Sessions not retained in Firefox/Safari
Posted by Chris Mahoney at 9/12/2005 12:00:00 AM
Hi I'm using several Sessions in my app. When the user has cookies enabled in their browser, everything works fine. But with cookies disabled, only IE seems to remember the sessions. In Firefox and Safari, the session values seem to be "forgotten". I've looked around on Google but can't ...more >>

ASP Plugin
Posted by GTi at 9/12/2005 12:00:00 AM
I'm developing a solution with ASP.NET 2.0 (beta) I need to create plugin modules into my project. I have a standard webpage like: - a header on top - menu/info bar on the left - main page that displays information based on the user selection I need to create a plugin project that inject a...more >>


DevelopmentNow Blog