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 > april 2004 > threads for wednesday april 28

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

VS.NET 2003 - Can't connect to IIS
Posted by MGFoster at 4/28/2004 11:14:56 PM
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm using the MS Book _C# Step by Step_. Chapter 27: Intro ASP.Net. I try to create a new ASP.NET Web application (EmployeeInfo) according to the book's instructions & get error: "A connection with the server could not be established." ...more >>

Huge Spreadsheet Input
Posted by cdars NO[at]SPAM hotmail.com at 4/28/2004 9:34:58 PM
Dear all, I am working on a re-development project. The objective is to replace an old "system", which make use of local MS Excel, with a new web-based application. Platform: SQL2K, Windows Server 2K3, ASP.NET My users are damn familiar with MS Excel. They can work fine with huge spreads...more >>

Need a clean solution to an asp Select case issue
Posted by William Gower at 4/28/2004 8:20:02 PM
I have a situation where I will display text boxes and labels depending on the user type of the user using this form. In the asp version I used a select case, but in the .net version I am putting all the code in the .vb file. i don't want any code on the aspx page so how can do I this? Selec...more >>

connection to db help
Posted by Mike at 4/28/2004 8:04:20 PM
I need some help here, I have an asp.net page that connects to a DB. I can connect to every DB that came installed in SQL 2000, but when I try to connect to a DB that I create I get a login failed error message. Cannot open database requested in login "dbname", Login failed for user "servernam...more >>

How to raise TextChange event for textbox created at run-time.
Posted by Anand Sagar at 4/28/2004 6:55:30 PM
My program requirement is to create 2 textboxes at run time. When the cursor leaves the first textbox, (i guess the TextChange event) I want something to occur (post data into database) Problem is that in Which event of the Webform do I create the run-time textboxes ? Also, how can I raise ...more >>

what does RegisterRequiresPostBack REALLY do??
Posted by samgeribo NO[at]SPAM yahoo.com at 4/28/2004 6:47:28 PM
According to "Developing Microsoft ASP.NET Server Controls and Components", a control can get the LoadPostData event by using RegisterRequiresPostBack, even if its UniqueID does not match that of the Forms collection. In the code below, I've tried doing this on a Page instead of a regular con...more >>

Do I need to use a template column in this case?
Posted by William Gower at 4/28/2004 6:00:18 PM
I need to develop a datagrid that uses columns from a table. In addition I need two columns (checkboxes) that the user will use to indicate that this record can be closed later. The checkboxed column is not a field in the table. It is just for the purposes of the Datagrid and I do not need to ...more >>

PSKill from ASP.net
Posted by woodwardsj NO[at]SPAM hotmail.com at 4/28/2004 5:42:03 PM
I am writing an asp.net application that can be used by our Network Admins. The goal is to allow them to kill process/restart services all from a secure web page. I am taking an argument (remote servername) and then enumerating the currently running processes. I know that the system.diagnostics....more >>



vb net compiling problem
Posted by mjerryfuerst NO[at]SPAM yahoo.com at 4/28/2004 5:40:02 PM
I am recompiling one of the files from the ASP.NET examples, and am using the command line vbc /t:library /r:Microsoft.VisualBasic.dll /r:system.xml.dll /r:system.web.services.dll /r:system.data.dll /r:system.web.services.dll /r:system.dll /r:system.xml.dll /out:Bu...more >>

Detecting values that have changes on a post back
Posted by Simon Harvey at 4/28/2004 5:12:32 PM
Hi all, Is there any easy way to check a field for calues that have changed on a post back. So the page is sent to the user, the user changes some values and I need to know which ones changed. Is the only way to do this to go through all the fields and check them against their old values...more >>

VS.Net has detected that the specified .....ASP.NET ver 1.1
Posted by Len at 4/28/2004 5:00:34 PM
I was working fine, with visual studio.net 2003. started having some minor problems. I uninstalled and reinstalled IIS I re-ran the installation for installing .net framework (dotnetfx.exe) that I got from MS site about 2 monts ago. Now, every time I try to open an ASP.NET Web Application f...more >>

OnInit method of a System.Web.UI.Page Class
Posted by Raymond Du at 4/28/2004 4:26:41 PM
Hi, I have a newbie question, every time I add a web page into a web application using VS.Net there is a method automatically generated by VS.Net: override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } I look into Page class more than 10 times al...more >>

copy paste deployment
Posted by mneubert NO[at]SPAM erdc.k12.mn.us at 4/28/2004 4:20:39 PM
I'm running an asp.net application on my local machine (xp) and on a server(2003). I have a lable that I set in the aspx.cs file. like lblMessage.Text = "my message"; Everything works great until I go into the aspx.cs file and change that line with notepad, to say "my new message". I open ...more >>

user control load event does not fire on postback
Posted by Marcel Balcarek at 4/28/2004 4:18:55 PM
I create a user control dynamically: Dim newCriteriaControl As CriteriaTextBoxUserControl = CType(Me._page.LoadControl("CriteriaTextBoxUserControl.ascx"), CriteriaTextBoxUserControl) myContainer.Add(newCriteriaControl) and the user control's load event executes on initial executon of the pa...more >>

Custom Control Property returning "Encoded" text from textarea box
Posted by Earl Teigrob at 4/28/2004 4:06:23 PM
I have a custom control that creates a textarea child control and diplays it to the user. The control is defined as follows System.Web.UI.HtmlControls.HtmlTextArea TextArea1; I have a property called "Text" that sets and getis it value, as follows: [Bindable(true), Category("Appearance"...more >>

LDAP lookup: fails on remote computers -- Please help
Posted by Jay at 4/28/2004 3:26:24 PM
I have a simple LDAP query (grabs all users from a particular AD group and populates a checkboxlist) that works perfectly fine on the development machine logged on locally as any user. When I access the website and run the query from a client however the query fails to run. Someone please help...more >>

email templates
Posted by MattB at 4/28/2004 3:18:30 PM
I need to make a system for people to edit a template that will be the body of an email (a sale confirmation) without doing much (any?) coding. Is there any way to do this built-in? I can imagine a way I could do it by searching for strings and replacing them (like a mail merge using my own ...more >>

Compare 16 values to each other most efficiently
Posted by Roger Twomey at 4/28/2004 3:16:21 PM
I have 16 string values that I need to compare to each other. No two are supposed to hold the same value (if they do something is amiss and I need to abort the operation). Short of 'IF Then' comparisons for every possible combination (do-able but very cludgy) is there not a better way to code ...more >>

Handling a select case on a web form
Posted by William Gower at 4/28/2004 3:04:00 PM
I have a form where I display a textbox depending on a value in a field. In the asp verision I did a Select Case and depending on whether the field concerned was a 1, 2 or 3, I display different labels and textboxes. How do I handle this in asp.net? ...more >>

HELP - change values (color) in a repeater control
Posted by mrwoopey NO[at]SPAM yahoo.com at 4/28/2004 3:03:15 PM
I have a repeater control in a asp.net app. Once the repeater is fill with data (via bind) I would like to go through the repeater and change the color of one of the items. I can get to where the item is by looping through and seeing the contents of the DataBoundLiteralControl. I tried updating ...more >>

asp user/group memborship
Posted by Josh at 4/28/2004 2:58:17 PM
Any suggestions on where I can find the asp code to put into a web page to do the following. I would like a single web page that a user would have to login to. The asp code when then take the username and check its AD group memberships. Then would route the user to another web site based on th...more >>

Using CallContext For Request-Specific Storage
Posted by sherkaner77 NO[at]SPAM yahoo.com at 4/28/2004 2:46:42 PM
Hello, Is it appropriate to use the CallContext class for storing request-specific data? I have a set of business objects that I'm building. Each class contains a hashtable that maps from a key to an object. Whenever a constructor is called, the hashtable is consulted first to see if an objec...more >>

Webpage app I'm trying to develop
Posted by Paul at 4/28/2004 2:46:41 PM
Hi, I'm pretty new to ASP.NET so not even sure how to do this correctly. On a webpage I want to display a table with rows of data from a database table (that bit I can do using datagrids etc). However against each row of data I want a column with a checkbox. The user can check off each data...more >>

Japanese Characters Show up as ??? when email is sent from aspx page
Posted by Muhammad Ahmad at 4/28/2004 2:41:05 PM
I have an aspx page where user fill-in fields and then hit submit button. All text and text values are in Japanese Language(Shift-JIS). This page sends an email to outlook users. Once user receives email, all these japanese characters gets converted into ????(question marks). On web browser page sho...more >>

LinkButton without DataGrid
Posted by Eamon at 4/28/2004 2:26:56 PM
In the code-behind page I am building a table programmatically so that I can do some on-the-fly manipulation. I had found no way to use a datagrid with the solution I was seeking. is it possible to use a linkbutton in this scenario, or is the linkbutton limited to the datagrid? If it is possible...more >>

sales tax information
Posted by ppatel at 4/28/2004 2:21:11 PM
I have a product table with productID and UnitCost. I want to calculate sales tax if sales based on instate or state were requires sales tax. In shopping cart I have a Product Quantity and Unitcost per product. I do subtotal on each product and at the end I add up all and do the total. Should I ca...more >>

Problem Executing in Debug Mode
Posted by rmdiv2000 NO[at]SPAM yahoo.com at 4/28/2004 2:13:20 PM
I have searched for MANY hours on the web but couldn't find any solution to the following problem: When I start my ASP.NET application with F5 I get the following error: "Error while trying to run project: Unable to start debugging on the web server. Click Help for more information." I di...more >>

Datagrid event problem
Posted by Andrea Williams at 4/28/2004 2:13:04 PM
I still consider myself to be a novice with ASP.NET, and going through the samples in my books is not helping me spot the problem. I very often find my answer after I've posted so maybe it will happen again? :-) I'm having trouble getting an ButtonColumn click event to fire. I set a break p...more >>

Now() equivalent?
Posted by Jerome at 4/28/2004 2:04:57 PM
Hi, What's the asp.net equivalent to asp's Now()? I've got a form field where I want to display todays date as default value. Thanks, Jerome...more >>

PostBack NonPostBack Event order issue
Posted by nonospam NO[at]SPAM wowway.com at 4/28/2004 2:02:56 PM
On a webForm, I have a DropDownList with AutoPostBack=true and I also have couple textbox with AutoPostBack=false. I am expect that the DropDownList's SelectedIndexChanged event being handled after the textboxs' TextChanged event since this is the one that cause the PostBack. But I got the ...more >>

Display save dialog box in ASP.net page
Posted by Chan at 4/28/2004 1:51:05 PM
Hi I want to display save dialog box and display that file name in a text box All I want to do is, On click of a button, display save dialog box and display that file name in a text box Later this file name would be used to store some data response.addheader approach does not work in this situ...more >>

Datagrid control
Posted by Paul at 4/28/2004 1:45:18 PM
I have a datagrid I want to change the color of the datagrid row dependant upon the contents of the data in the row after I bind it to the dataset. Any hints to how to do this would be appreciated. Thanks ...more >>

Compiler Error
Posted by DelC at 4/28/2004 12:41:03 PM
In the latest version of our Web Application we have started seeing the following error message - "External component has thrown an exception", Stack Trace is shown below Only minor bug fixes in the .vb codebehind files have been done between a previous version that was fine and this one I have go...more >>

What if <itemtemplate> does correlate to 1 row in dataset?
Posted by Ben Becker at 4/28/2004 12:36:06 PM
I am trying to build a custom crosstab type of grid where I take some items in a data grid and based on the content of the current item compared to the previous item, determine if a new row in a table should be created or not. In order to do this, I need to have full control over the conditional ...more >>

Writing javascript for dropdownlist selectedIndexChange
Posted by MBhat at 4/28/2004 12:27:51 PM
Hello, I have a dropdownlist server control.On selectedIndexChange I do some functionality. In addtion to this I need to check for something else. To do this I have to use javascript function to display confirmation alert. How can I use the javascript confirmation alert in code behind? ...more >>

Stopping Repeated Form Submission
Posted by KV at 4/28/2004 12:24:17 PM
I need to stop the user from getting the following message: "The page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view." OR, I need to stop the form button from being activ...more >>

Page Close Event In ASP.NET??
Posted by Vinny Vinn at 4/28/2004 12:16:05 PM
IS There An EventHandler or Script To Catch When The Page Is Closing(similar to the Closing event in WInforms) Thanks...more >>

tempurl.org
Posted by nonospam NO[at]SPAM wowway.com at 4/28/2004 12:13:50 PM
When you create a typed dataset, it generate xlm with tempurl.org for ns. Is there a way to config the environment/project so it will use mycompany.com....more >>

DataGrid orientation?
Posted by Sean Z at 4/28/2004 12:01:10 PM
Hello is it possible to re-orient a DataGrid (i.e. make columns rows and vs)? That would be very helpful. Thank you....more >>

trying to use fill method with SQL select statement
Posted by Paul at 4/28/2004 11:51:03 AM
Hi I am trying to fill a datagrid based on the results of an SQL select statement. I am getting a login failure but am thinking my connection string is ok as I am able to preview data from the data adapter and it looks correct so it is connecting to the dbase ok. I have it in the page load event ...more >>

HELP - "Fail to render the page" error - asp.net - crystal report viewer
Posted by mrwoopey NO[at]SPAM yahoo.com at 4/28/2004 11:44:18 AM
I have a asp.net application that uses the crystal report viewer control. It displays all of my reports but all of a sudden it started giving me the following error on ONLY two reports: "Fail to render the page" I can view the reports with within Crystal Reports. The same issue was posted ...more >>

Ram based Cookies
Posted by Mark at 4/28/2004 11:17:53 AM
We use cookies to maintain some state information about a users session. They are not file based due to the fact that we don't specify a expiration date. They go away when the session ends. I know it's possible to modify a file based cookie. However, what would it take for a hacker that did no...more >>

Crazy ASP.NET ERROR. dpwnnjmk.dll???
Posted by rooster575 at 4/28/2004 10:35:47 AM
Im getting the following error on a page where I try to access an external web service. Every time I get the error the .dll name is different! Thanks for any help. ============================================================================ = System.Web.HttpUnhandledException: Exception of...more >>

Simple Cookie Question
Posted by Jeff at 4/28/2004 10:31:30 AM
When is the value of an authentication cookie sent from the browser to the server - when the value is read from the Cookies collection? Or, is it possible that the Cookies collection is populated immediately on the server when a new browser session is created? Thanks! ...more >>

asp.net and creating word docs on the server
Posted by matthew rutherford via .NET 247 at 4/28/2004 10:15:04 AM
When I use the word automation object (registered word10 and= using the namespace in the =2Ecs file) I get 'access denied' error when trying to run the thing on my= local pc=2E I am using the ASPNET user=2E I have heard this is due to the ASPNET user never having opened= word before and i...more >>

ASP.NET DLL Source Control
Posted by Dave at 4/28/2004 9:21:02 AM
Hi I have an asp.net application checked into Source safe which works fine, but I am trying to add the dll from the /bin folder to source safe as well as I need other developers to be able to get the latest version of it every time it is updated. Unfortunately I am not given the option to add this ...more >>

Request.IsAuthenticated vs. Identity.IsAuthenticated
Posted by Bob at 4/28/2004 8:50:03 AM
Seems either of these can be used to check whether a request is authenticated or not: Request.IsAuthenticated HttpContext.Current.User.Identity.IsAuthenticated Are these always in sync? in other words, the values returned from these two properties are always the same in any scenarios? T...more >>

.NET Hosting in Australia? Can anyone recommend?
Posted by Darren Clark at 4/28/2004 8:47:07 AM
We are looking for local based Hosting company that supports .NET and SQL Server. Can anyone recommend any please? ...more >>

Creating a DNS-Administration-PAge
Posted by Andreas Semmelmann at 4/28/2004 8:37:10 AM
Hello I'd like to create a Administration Web-Page for our W2k/W2k3 DNS-Servers. I'd like to ahow, add and edit DNS-Entries via this page. Could someone show me some hints how I must do this. It would be more helplful for me, if the examples were in VB.Net. Thanks a lot to all. mailto:se...more >>

crystal report error
Posted by ypul at 4/28/2004 8:30:54 AM
when I run my asp.net application containing cr report on my machine (windows 2000)it works fine ,but it gives error on another machine (windows 2000 server) Solution Please ...... the error is Server Error in '/Order' Application. --------------------------------------------------...more >>

Disabled Panel control loses values
Posted by Robert Phillips at 4/28/2004 8:09:28 AM
I have a Panel control containing a few TextBox controls. The Panel is originally enabled, I enter data into the TextBox controls. When I submit, the Panel is disabled during the PostBack and the TextBox controls render greyed-out, and I can see the values in the TextBox controls....this is wha...more >>

VB6 to VB.NET & Strong Naming
Posted by rob at 4/28/2004 7:16:21 AM
Dear All, We have a fairly big application that has to be converted from VB6 to VB.NET. The goal is to convert one component after the other and do some testing after each step. In a first approach one VB6 (ActiveX DLL) project was converted to VB.NET utilizing the automatic conversion of VS.N...more >>

Object Based Datagrid Tempate column binding
Posted by Harold at 4/28/2004 7:16:06 AM
Hi all, having a little difficulty binding up a dropdownlist control in a datagrid column. I know I must be missing something Here are 2 methods. One is the DataGrid's ItemDataBound event to catch the grid population event and the other is to populate the dropdownlist I'll start with the method...more >>

Using web custom controls from the same project
Posted by Ed Duncan at 4/28/2004 6:36:05 AM
Is there any way that from my aspx page I can use a custom control defined in the same project I really don't want to create another project just to write and consume a web custom control....more >>

Can't See the Problem
Posted by Wayne Wengert at 4/28/2004 6:16:56 AM
I am getting the following error and I cannot see what is wrong with the hyperlink string? What am I missing? ==================================== Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please ...more >>

Customize Calendar
Posted by Mark Goldin at 4/28/2004 4:42:25 AM
Can somebody show some samples of customizing asp.net calendar control? Thanks ...more >>

Posting Text containing '&' Symbol via HTTP
Posted by Martin Feuersteiner at 4/28/2004 4:07:20 AM
Dear Group It's a more general HTTP question, please excuse if this isn't the most appropiate place to ask this. I'm having a string 'Cat & Dog' which I would like to post via HTTP using POST but all I receive on the other end is 'Cat'. I also tried Dim mystring As String = "Cat&amp;Dog" bu...more >>

Multiple asp.net apps in same Virtual Directory
Posted by Brian at 4/28/2004 3:31:04 AM
Hi I am new to visual studio so please excuse me if this is a stupid question, but, I have a Visual Studio.net solution that contains more than 1 asp.net application. Is there any way to have all of the asp.net applications running from 1 IIS virtual directory Thanks in advance for any help with...more >>

How to create Activex Control using C# and Use it in ASP.NET webform?
Posted by EJ1003 at 4/28/2004 3:21:02 AM
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how to do it, if any sample is provided will be of great help Thanks EJ...more >>

Extracting ASP.NET data in another Class
Posted by walterd at 4/28/2004 3:19:09 AM
Hi All How can I extract data that's stored in Session, ViewState or Application from a Data Access class? I need to get data that's stored in an ASP.NET page code behind in my data access layer. Is there no other way than passing the values as parameters? Thanks ...more >>

a growing dislike of custom user controls
Posted by V. Jenks at 4/28/2004 2:58:10 AM
Long story as short as possible: I have a page (aspx) that contains a user control (ascx). In the form the user can enter a username and password. If they do, the password box auto-posts-back and checks to see if the user already exists in the database. If yes, the rest of the form f...more >>

Finding the size of a document in a IFrame
Posted by Michael at 4/28/2004 1:51:02 AM
Hi I have a ASP.NET with an IFrame element that contains a another page. When this internal page loads I want the IFrame to increase in height so that all of the contents can be displayed. I've tried a number of ways, but none seem to work as they always miss the bottom 100 or so pixels. Is there ...more >>

Response.Redirect
Posted by Bonj at 4/28/2004 1:31:05 AM
If I use Response.Redirect, does this cause an additional round trip to the server, or only one in total?...more >>

FolderBrowserDialog in ASPX ?
Posted by Florent at 4/28/2004 12:51:05 AM
Hi all I am developping an applicatin in ASPX with C# codebehind, with VS 2003 Is it possible to include a FolderBrowserDialog on my page? I would like that when a visitor click on a button, a FolderBrowserDialog appears, he selects a folder, and when he click "Ok" in the dialog, i get back the ...more >>

How to get name of 'Caller' class from 'Called' class (ASP.NET)
Posted by Hmnt at 4/28/2004 12:26:05 AM
Hi Hope ur smart enough to get what i wanna ask ... (from the sub line Brief Explaination I've 2 classas Class1 and Class Now i've an instance of Class2 ( Class2 objC2 = new Class2(); Next i access a method of Class2 (say objC2.func1(); Now in function 'func1()' of Class2 I wanna get the Call...more >>

XMLHTTP component
Posted by Martin Feuersteiner at 4/28/2004 12:18:03 AM
Dear Group Sorry for this basic question. I'm having a script that requires the Microsoft XMLHTTP component. I'd a look for this component on my machine and referenced system.xml in desperation with no luck. Where do I get XMLHTTP from (had a look on the Microsoft website but couldn't find...more >>

how to set Link tag for style sheet in base page
Posted by moondaddy at 4/28/2004 12:00:55 AM
I've build a basepage that will be used for all the pages in my website. I created a propery in the base page called Title like this: Private baseTitle As HtmlGenericControl Protected Property Title() As String Get Return baseTitle.InnerText End Get ...more >>


DevelopmentNow Blog