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 > may 2004 > threads for wednesday may 19

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

images in the cells of a datagrid
Posted by EMW at 5/19/2004 11:56:16 PM
For my ASP.NET program I want to use the datagrid as a sort of planning tool. Based on the information in a XML file, a cell of the datagrid must show an image... Well, this is what I would like it to do, but is it possible and how can I place an image in a web-datagrid cell? rg, Eric ...more >>

IE and Netscape
Posted by Sam at 5/19/2004 10:26:28 PM
Hi, I make a web application, there are some textboxes, datagrid and etc.... When I see the result in IE, it is prefect, but when I try in Netscape, it looks bad... Could you tell me, how to fix this problem ? Thanks, ...more >>

Customised web controls in a data list/repeator
Posted by Steve Lloyd at 5/19/2004 9:26:50 PM
Hi there, I have a set of products each of which has attributes (color size etc), is it possible to use a data list or repeator to display all the items and provide combo box with a unique set of attributes in each list/repeator item as a sort of sub query. Thanks for any help, Steve ...more >>

Adding controls programmatically.
Posted by Tim Marsden at 5/19/2004 8:59:24 PM
Hi, This is what I am doing, please comment if this is the correct way. I need to add controls to a form dynamically. Within the Page_Load event (is not Postback) I run a routine to create the controls, and populate the dropdowns etc, I use addhandler to define delegates to capture events r...more >>

SharePoint Service could it be copied in ASP.NET
Posted by Shimon Sim at 5/19/2004 8:58:57 PM
Hi I started using SharePoint services and noticed that it works great with Word - just open doc and edit. could it be done with ASP.NET by regular people? May be someone can give a hint in right direction. Also is there any documentation on how to create clients for SharePoint Services Th...more >>

Cookies problem (again)
Posted by The Clansman at 5/19/2004 8:56:02 PM
Hi, I tried this in the btnLogin_Click event: Response.Cookies("UserEmail").Value = txtEmail.Text Response.Cookies("UserEmail").Expires = DateTime.Now.AddMonths(1) and in the Page_Load event I do this: txtEmail.Text = Response.Cookies("UserEmail").Value but the...more >>

StreamReader and Accent
Posted by Stan Sainte-Rose at 5/19/2004 8:27:32 PM
Hi, I have a problem when I use StreamReader.ReadToEnd. All the the accent characters are deleted.. I mean by accent characters : éééààà etc... Any idea ? Stan ...more >>

Best way to handle documents in ASP.NET
Posted by Thomas Scheiderich at 5/19/2004 7:30:40 PM
I am getting ready to look at putting our users manual and employee handbook on our intranet and was curious how others do it? We have it already set up as Word documents and am looking at whether to put into our Sql Server and maintain it there or put it as text or doc files (not sure how I w...more >>



stationary datagrid header
Posted by DaveF at 5/19/2004 7:10:27 PM
Is it possible to keep the header stationary and scroll the data? Without buying something ...more >>

calendar control problem
Posted by angus at 5/19/2004 7:09:29 PM
Dear All, I would like to make a calendar in asp.net. The notion is as follow. There is a <asp:textbox/>, <asp:button/>, if a user click on the button, a calendar control will appear just below the <asp:button/> (within the same page, not in a new window). If a user select a day in the calen...more >>

session question
Posted by lzh_gladiator at 5/19/2004 6:41:03 PM
hello In ASp.net application,there are two created session object was attatched to one object,if I remove one of session object , does the other keeps normal or destoryed ? Thanks In advance!! Code like below object a = new class() session.add("A",a) session.add("B",a) .... session.r...more >>

How To Execute two Different Sets of "requiredfieldvalidator"
Posted by RSB at 5/19/2004 6:36:59 PM
Hi all, i have this form with the NewText Fields and then the Editable datagrid for all the existing Records. So i have to Buttons "Add New" and "Save Changes" and there is a Set of Validations for "Add New" say Validation1 and Validation2. and there is a Set of Validations for "Save Changes"...more >>

ASP.NET & IIS 5.0???
Posted by Terry Olsen at 5/19/2004 5:54:49 PM
I'm running IIS 5.0 as a web server on Win2K Pro. When I try to create a new ASP.NET Web Application I get a message saying that ASP.NET Version 1.1 is not installed (or some message like that). So, I've got a few questions. Do I need IIS 6.0 to run ASP.NET Web Apps? if not, how do I get...more >>

HTTP Post - ASP to ASP.Net
Posted by Dave at 5/19/2004 5:33:50 PM
I have to pass some form values from an asp application to a .net application, the data is quite sensitive so I would prefer to use HTTP Post. I am using a standard html page to host the form and post the values. Whe using ASP i can read the values from the Request.Form method sucessfully, h...more >>

Getting mail from .Net
Posted by Dimitris at 5/19/2004 5:28:26 PM
Hi all I want to read a mailbox from an aspx page or an asmx. Is it possible? Not send mail. Read Mail Thanks In advance ...more >>

Newbie - Where Can I Get Examples To Learn From
Posted by Rob G at 5/19/2004 5:22:32 PM
Hi All, As I am completing the ASP.NET Developer's Jumpstart book, I find there are many things I want to do that are not covered in the book (I don't expect it to have everything). I learn best when I "play" with an already working page and disect it. I went to www.asp.net and they have m...more >>

A failure occurred writing to the resources file
Posted by Gill Smith at 5/19/2004 4:56:23 PM
While compiling my ASP.Net application, I am getting the following error message "A failure occurred writing to the resources file. Access is denied." Why I am geeting this error message and how to avoid this? -Gill ...more >>

<OBJECT> Tags and Server-Side Control
Posted by Alex Maghen at 5/19/2004 4:51:04 PM
I want to insert (or not insert) a Macromedia Flash object on my ASP.NET .ASPX page. What is the most elegant way of doing this? I know that I could use an <ASP:Literal> control and just spit the <OBJECT> tag text out to the browser (or not if I don't want to present the Flash movie). Is there anoth...more >>

how to add a user control progrmatically?
Posted by francois at 5/19/2004 4:28:07 PM
Hi, I would like to add a USER control (not custom control) programmatically to my aspx page. I am using something like the following in my page_load code : * Bos.UserControls.HeaderFinance header = new HeaderFinance(); this.Controls.Add(header); * The problem is that asp.net controls ...more >>

Going nuts with Viewstate
Posted by sourabh at 5/19/2004 4:21:22 PM
Hi guys Till now i thougt I understood ViewState but as I was trying write my LoadViewState method i am sort of confused with what this ViewState is and what is its use. I have my LoadViewState method , i was curious to know wheres the state of Various controls getting set on Post back. So I tr...more >>

adding user control programatically
Posted by francois at 5/19/2004 4:19:04 PM
Hi, I would like to add a USER control (not custom control) programmatically to my aspx page. I am using something like the following in my page_load code : * Bos.UserControls.HeaderFinance header = new HeaderFinance(); this.Controls.Add(header); * The problem is that asp.net controls ...more >>

Click events stop working!
Posted by GGW at 5/19/2004 4:11:03 PM
Hi, I am building a Ecommerce site using usercontrols. I built a search control that uses the Ontextchaged event. The control was place manually on the page- not dynamiclly. All was working fine then it just stopped working. So I tried placing a simple button on the form & same result - no go. ...more >>

Databindings question
Posted by whaletyr at 5/19/2004 4:04:55 PM
If have a problem I have 2 comboboxed on the same form both are filled with the same data. with datasource and displaymember in the properties defiened. My problem is that if I select 1 item in combobox1 combobox 2 also chanches but I dont want that.. where should i look for an answer to t...more >>

Print on client side
Posted by Ofer B. at 5/19/2004 4:01:17 PM
Hi How can I get the installed printers in the client side This code return the installed printers on the server side, but I want the user to be able to print from his own computer and not from a printer that is attached to the server. Foreach printer Type( *string ) Collection( printers...more >>

generation of PNG in asp.net failed
Posted by angus at 5/19/2004 3:51:04 PM
<%@ Page Language = "VB" ContentType="image/Png" %> <%@ Import Namespace = "System.Drawing"%> <%@ Import Namespace = "System.Drawing.Imaging"%> <%@ Import Namespace = "System.Drawing.Drawing2D"%> <% Response.Clear() Dim height As integer = 100 Dim width As integer = 200 Dim bmp As New Bi...more >>

Cookies problem
Posted by The Clansman at 5/19/2004 3:48:08 PM
Hi, I want to store the user's email in a cookie, so when the user open the login page again, the email will be shown in the Email field, I have this line in the login procedure: Response.Cookies("EmailCookie").Value = txtEmail.Text but the return value is empty when I do the following: ...more >>

Random Row
Posted by Luis E Valencia at 5/19/2004 3:38:45 PM
How can I select a random row from a database? and show it? ...more >>

Show how many visitors are online!
Posted by Luis E Valencia at 5/19/2004 3:38:13 PM
I want to show how many visitors do I have at my website, If the user is logged I must show it on the list. If there 5 users not logged I must show 5 Guests. ...more >>

events calendar
Posted by Luis E Valencia at 5/19/2004 3:36:53 PM
I have a table that says for example 01/05/2004 Party IIsadpaks 01/06/2004 Party 2394923423 A events table. I want to make a calendar and that the days that are events are inbold and with a link to a detail of the events of that day. ...more >>

Print HTML page within A4 size
Posted by Grey at 5/19/2004 3:26:56 PM
is it possible to limit the printing of HTML to A4 size?? If so, how to = do it?? I want to set the client browser's configuration. If must, can i = use program code to do that?? Million Thanks...more >>

Forms based authentication once more
Posted by Morten at 5/19/2004 2:11:23 PM
Hi! I've implemented forms based authentication and it works really well. Except when I access a subdirectory containing plain HTML files. Isn't it possible to protect those using forms? TIA Morten ...more >>

How Best to Store this Data
Posted by George Durzi at 5/19/2004 2:00:24 PM
I have a company form that I need to web-enable. The form has about 50 data items with some of these data items able to have N sub data items. I'm considering ways to store this form in my database. If I were to go for SQL tables, I would end up with several tables, the main one having many co...more >>

<system.diagnostics> in web.config
Posted by Jiho Han at 5/19/2004 1:46:23 PM
I have the following defined in web.config under <configuration> node: <system.diagnostics> <switches> <add name="MainSwitch" value="4"/> </switches> <trace autoflush="true" indentsize="4"> <listeners> <add name="myListenere" type="System.Diagnostics.TextWriterTraceListener" in...more >>

Upload images and store in database?
Posted by Luis E Valencia at 5/19/2004 1:25:40 PM
How can I upload images and store them on the database!!! How can I show that image on the page? Thanks ...more >>

Sync documentation
Posted by Mervin Williams at 5/19/2004 1:24:31 PM
There is a window in Visual Studio .NET that, as you select a keyword in the code view, synchronizes the help topics in the window with documentation about the selected item. Can anyone tell me how to open that window? ...more >>

Getting Size of an Image?
Posted by Brett Baisley at 5/19/2004 1:23:09 PM
Hello I need help with some ASP.net programming. I have a web page that basically just has the following web components: dropdownlist, listbox and image. I am using VB.net with a CodeBehind file to read the contents of a directory into the dropdownlist. Then when the user picks one, it displ...more >>

Date time control
Posted by renialen NO[at]SPAM yahoo.com at 5/19/2004 12:46:10 PM
Hi, I have a web form and this form takes a date data from user and stores it to database (SQL). I written a store procedure to perform this but when I do not fill the date textbox, SQL gives an error message about filling the date textbox. In SQL I checked "accept null" for the date column. ...more >>

Looking for best method error handling bad emails (system.web.mail)
Posted by Max at 5/19/2004 12:37:13 PM
Sometimes I get this error when testing web.mail: The server rejected one or more recipient addresses The server response was: 473 kjhg@Kjhg.com relaying prohibited. You should authenticate first This goes away when I simply put a try/catch around sending email, but I'm wondering if I can use...more >>

asp.net tracing using System.Diagnostics
Posted by Jiho Han at 5/19/2004 11:54:43 AM
I am wondering whether asp.net applications can write trace information using the System.Diagnostics.Trace class, and also whether in web.config, the <system.diagnostics> element and its sub elements have effect. Trace.axd is good but not perfect. I would like to use a separate file for writi...more >>

Store password not in plain text
Posted by Luis E Valencia at 5/19/2004 11:49:51 AM
I want to create a table of users and password but I dont want the password to be in plain text. I want to encrypt it. If I encryot It How can I then Login to the site ...more >>

Malformed HTML from UserControl
Posted by Patrick at 5/19/2004 11:46:51 AM
Problem I have an ASPX file, with a table of 3 columns, 2 rows with a usercontrol in the middle column (in the code snippet stated below, although in reality, the left hand column would also have a user control). I have a "footer" on the second/bottom row. However, when the User Control in...more >>

Refreshing a DataGrid that is bound to a Collection of Business Objects
Posted by Kelly S at 5/19/2004 11:31:04 AM
I have a datagrid that I am binding to a collection of business objects. The datagrid is display only, but I am changing objects in my collection upon selection of one of the items in the datagrid. I want these changes to be reflected in my datagrid, but I don't know how to go about it. I tried r...more >>

About DB Connection Pool
Posted by Edward at 5/19/2004 11:30:55 AM
Does anybody have the experience of Connection Pool in ASP.NET ? How to implement it in my application ? Thanks a lot. Edward ...more >>

Repeater Control Problem...
Posted by Z D at 5/19/2004 10:45:56 AM
Hello, I'm using a repeater control and I wish to put some logic in when accessing one of the columns. If I use this syntax, I'm able to output the column with no problem: <%# (Container.DataItem("Quantity")) %> But now I wish to put some logic around this, so, first I tried the follow...more >>

Passing data between tiers on diff. servers
Posted by TS at 5/19/2004 10:34:06 AM
If I have custom data entity objects that are simple classes with properties storing data for a particular entity, then I want to pass this object to another server, how does the other server know about this object type since the class is created on the source server. Having all of these tiers...more >>

Best "login" method?
Posted by Svein Erik Storkaas at 5/19/2004 10:31:37 AM
I am about to add security to a web project for the first time, and i'm wondering what the easiest, yet a good way to do this? The page is just for personal use, so it does not need to be "ultra" secure. Is it ok just to store 'usrName' and 'psWrd' in an Access db, and manage it from there? If...more >>

RegularExpression code for server-side validation of Date
Posted by mg at 5/19/2004 10:16:08 AM
Does someone have RegularExpression code (C# WebForm) for server-side validation of Date (mm/dd/yyyy) ... including leap year?...more >>

Aspx and Javascript and Flash
Posted by Charles A. Lackman at 5/19/2004 10:11:13 AM
Hello, I have made a comercial web site with Visual Studio.NET and I am using Flash and Javascript inside the pages. There is also a database that retrieves information and displays it on a aspx page. This site is working well, but every now and then when the Flash it clicked, instead of ru...more >>

Auto Update a asp.net app
Posted by DaveF at 5/19/2004 10:08:51 AM
Is this possible? Any examples??? ...more >>

using server explorer services
Posted by Michael Persaud at 5/19/2004 10:05:13 AM
Hi all, I would like to use the server explorer in VS to start one of my services on my exchange server that some times doesnt start automatically. I have copied the service to my webform and im ready for the vb code but i cant seem to find how to refference the service PLS Help Than...more >>

Project default HTML Schema
Posted by Cliff_Harker NO[at]SPAM hotmail.com at 5/19/2004 9:40:31 AM
How do I get a HTML Schema that I have designed registered in such a way that it appears in the Project Default Schema dropdown list. I know I can change it for individual pages, but I want MY schema to appear in the list for the entire project along with the default 3 that are already there ...more >>

How to pass variable to AppendHeader
Posted by Mei Qin at 5/19/2004 9:20:06 AM
??????????????????>??????????????????????????????????????????????????????= ??????????????????????????????????????????????????????>??????????????????= ?????????????????..???.??????????????????????????????????????????????????= ?????????????????????=0A= ...more >>

ASPCompat mode
Posted by Steve at 5/19/2004 8:56:03 AM
I am using an Activex exe com server built using Visual Basic on an ASP.NET web page. The server uses Thread per object. Do I need to use ASPCompat="true" Steve...more >>

How do Bulleted list?
Posted by Woody Splawn at 5/19/2004 8:20:02 AM
What is the tool I use to do bullets? That is, I have an ASPx web page and I would like to create have it show three Hyperlinks as follows: Georgia Texas Arizona But I would like each to have a bullet in front of it. How is this done? ...more >>

SMTP mail, need way of making sure mail is sent
Posted by Charlie NO[at]SPAM CBFC at 5/19/2004 7:37:46 AM
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it goes out every time. I thought about wrapping a try-catch handler in loop that keeps on retrying if...more >>

File.Delete not working on Window Server 2003
Posted by Eric Bettan at 5/19/2004 7:28:18 AM
Hello, I have an ASP.NET web application that generates a temporary image file on the server, streams it to the client, and then deletes the file. Everything works fine when running on Windows 2000 and XP, but the file does not get deleted when running on Windows Server 2003. For some reason...more >>

Dynamic Controls
Posted by Mark at 5/19/2004 7:16:05 AM
I am totally new to this web development thing, I come from a C++ backround. I am familar with .NET, VB and C#. I have to create a web page that is table driven. Is their a way to create controls, either .NET or HTML controls, on a web page using ASP? I want to have all this processing done on the ...more >>

PHP to ASP.NET
Posted by dzemal at 5/19/2004 6:01:14 AM
Is there any tool to convert PHP code to ASP.NET with minimal repairs THX...more >>

ASP Dynamic menu using Database
Posted by Tim::.. at 5/19/2004 5:51:02 AM
Hi can someone tell me where I might be able to get some information on creating a dynamic ASP.NET menu which is populated by a database and has child nodes under main catagouries I wan to produce something similar to the Microsoft menu system found on www.microsoft.co Thanks for any advice!...more >>

Problem with syntax..HELP
Posted by Tim::.. at 5/19/2004 5:46:07 AM
Can someone please help! I have an error in the following bit of code and would appritiate any help Thanks System.Drawing.Bitmap outputImage = new System.Drawing.Bitmap(origBitmap, newWidth, newHeight) System.IO.MemoryStream io = new System.IO.MemoryStream() outputImage.Save(io, Server.MapPath...more >>

Updating deployed web site
Posted by paul at 5/19/2004 5:41:08 AM
I'm looking for a 'best practices' method for doing updates to an already existing web site (ASP.NET) Let's say I have modified 5 .aspx pages (several layers deep inside various folders) along with the project's main assembly and now I want to 'update' the production server I could build a new ins...more >>

help for javascript in asp.net
Posted by jigar shah at 5/19/2004 5:11:03 AM
How can i find an element of radiobuttonlist control in javascript for client side validation which is not browzer specific?...more >>

dropdown binding with datalist value of zero for please select...
Posted by DotNetJunkies User at 5/19/2004 5:08:20 AM
hi,, im trying to work out what code is needed for the below problem about databinding a dropdown list and having actual datalist items as value "0" ie 'please select' can anyone tell me how to do this in relation to the below code,, thanks paul. >>>>>>>>>>>>> So I'm guessing tha...more >>

Problem downloading csv file
Posted by Guy Penfold at 5/19/2004 2:56:01 AM
Hi All, I have an asp.net 1.1 application that includes a rudimentary contacts database that must support importing from and exporting to Outlook. The file upload part works fine, but I'm having trouble allowing users to download their contacts so that they can import into Outlook. I am using a ...more >>

Site wise url access
Posted by Srini at 5/19/2004 1:51:02 AM
Hi I want to find know how it is possible to get the number of times a url with query string have been accessed by the users of the site...more >>

GURU with Images
Posted by Tim::.. at 5/19/2004 12:21:04 AM
Hi can someone please tell me why I keep getting the following error and how I might fix it! ...::ERROR::.. Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. The line causing the problem is outputImage.Save, but I really don't understand wh...more >>

Advice on W2K Server setup
Posted by Pooky at 5/19/2004 12:06:03 AM
Does anybody have any advice / links on whats required for setting a windows 2000 server up to host asp.net Is it simply a matter of installing the framework We've developed on XP pro but somehow I doubt we need to install VS.NET on the server as well (this is our first .net work to move to the t...more >>


DevelopmentNow Blog