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 > march 2004 > threads for wednesday march 10

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

Share values/variables betw web apps
Posted by JIK at 3/10/2004 11:00:14 PM
Hi. I have an web app that handles the login, user access etc. I want this login to redirect to an other web app and give that web app the userid etc. without sending it to the client... How? Jon ...more >>

Browser back button............
Posted by Ram at 3/10/2004 10:54:57 PM
I have Login.aspx page where user identity will be verified and taken to the next page. I am using Reponse.Redirect("home.aspx") to take them next page. In home.aspx user still click on browser back button and can navigate to Login.aspx page. How to avoid the user going back to the login page aft...more >>

Creating link to different part of ASPX page.
Posted by Ram at 3/10/2004 10:54:15 PM
I have an ASPX page which is pretty lengthy. User wants to have link on the top of the page so that when they click on that link it will take them directly to that part of the page. Is it possible to do that ? Please suggest. Ram ...more >>

IsPostBack not working
Posted by Blue Man at 3/10/2004 10:16:27 PM
Hello My page is generated by a user control, I check IsPostBack condition in user control Page_Load event. if(this.IsPostBack) clearcontrols(); clearcontrol disables all of textboxs and buttons. but seems not working. when ever i push back button from my browser i can see all of them st...more >>

Wrap Text in Button
Posted by Alphonse Giambrone at 3/10/2004 9:27:47 PM
Is there any way to wrap the text for an asp.net button? In other words if the text for a button consists of two words, increase the button height and reduce the width so the 2 words appear one above the other (2 lines). TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions do...more >>

Can you tell me why i get this error message?
Posted by Miguel Dias Moura at 3/10/2004 8:53:34 PM
Hello, i have been working for days in a code which populates an ASP.net = Calendar control with events taken from an Access Database. I was able to make it work in C# but i need to make it work in VB until = tomorrow. In this moment i am getting this error: System.Data.OleDb.OleDbExceptio...more >>

Nada
Posted by George Hester at 3/10/2004 8:28:27 PM
http://support.microsoft.com/?scid=3Dkb;en-us;315158 Does it really work yet? --=20 George Hester __________________________________...more >>

Forcing __DoPostBack script to be generated dynamically?
Posted by Rick Strahl [MVP] at 3/10/2004 6:05:52 PM
I have a situation where I dynamically generate a control onto a page via page insertion in the Render method. I'm handling everything manually on this control because there's no knowledge at all about the page as this is a generic framework level Page. It appears to not be possible to add the ...more >>



DropDown Box
Posted by C_Silin at 3/10/2004 5:09:07 PM
What is the trick to getting the size of the font of a drop down box to change? I put the following style sheet in the HTML: <style type="text/css"> .txtBoxes { FONT-SIZE: x-small; HEIGHT: 19px } </style> Then with the drop Down box, I did the following... <asp:dropdownlist id="d...more >>

Why do texboxes in the main body of a form act differently to postback than textboxes in a repeater on the form?
Posted by Mike Lerch at 3/10/2004 5:06:26 PM
I am wondering this: why do texboxes in the main body of a form act differently to postback than textboxes in a repeater on the form? I posted earlier about not being able to capture a user's input from a textbox, and I finally figured out what was happening: the textbox was bound, and it was...more >>

Create controls in runtime
Posted by Alberto at 3/10/2004 4:57:07 PM
I need an ascx control with optionButton and checkBox where the user can insert information. The problem is that this control should be created by the user in runtime. How can I do it? Thank you. ...more >>

Forms Authentication only displays login.aspx
Posted by Steve at 3/10/2004 4:53:59 PM
I can not get forms authentication to work. Here is my situation. I created a test website with two file: login.aspx default.aspx default.aspx is set as the default web page. I type in the URL http://localhost/test login.aspx comes up. I enter my user name and password, but...more >>

ASP.NET pages inheriting from template class
Posted by Jonathan Tower at 3/10/2004 4:52:45 PM
I created a template class that inherits from the System.Web.UI.Page class. The template class overrides the Render method and adds simple HTML to the beginning and end of the page. I've then inherited the template class in the codebehinds of my pages. This worked fine until I moved the templ...more >>

Can you help me with this code? It's really urgent. Thank You. Miguel
Posted by Miguel Dias Moura at 3/10/2004 4:33:34 PM
Hello, i am having some problems in a code which populates an ASP.net Calendar control with events taken from an Access Database. I have this working in C# but i am getting some errors in VB. I need to have this done until tomorrow because i will have a flight then. Can you help me? You ca...more >>

Extra Large Uploads
Posted by Jerry Camel at 3/10/2004 4:31:20 PM
I was having the usual large upload limitations, but found some code and help that got me past the basics of intercepting the request and running it through a custom httpHandler. Now I can upload some pretty large files, but I still get to a point (3GB+) where I just get a page not found screen ...more >>

DataBind() Count or EOF
Posted by Steven K at 3/10/2004 4:21:42 PM
Hello, I am filling a DropDownList (DropDownList1) with data from a stored procedure. Is there an equivalent of the RecordSet.EOF to determine if there are any records using DataBind? Dim spDropDownList As OleDb.OleDbDataReader Dim cmdDDL As New OleDb.OleDbCommand("sp_Search", cnnSearc...more >>

Regular Expression
Posted by Mac McMicmac at 3/10/2004 4:08:35 PM
I'm implementing a RegularExpressionValidator and need assistance with the value to put into the ValidationExpression property. The control needs to validate a textbox that must contain a complete file path. I know these things can get pretty complex - so I'd be happy to keep it simple by having ...more >>

Invalid Postback
Posted by Aric Levin at 3/10/2004 3:55:20 PM
I have two text boxes and two image buttons on a web form, one coming from a user control and the other on the form. When I click each of the buttons, the application performs properly. When I press enter though, wherever (or in any form), I always get a Postback from the User Control Image Bu...more >>

Mail with IIS.
Posted by bredal Jensen at 3/10/2004 3:49:04 PM
Hello, I have configured a win2k server at home but i have not configured a mail server. Can i send e-mail with the smtp class in .net? I have IIS runing . Thanks. ...more >>

get focus
Posted by Michael Murschell at 3/10/2004 3:47:03 PM
How do I get a field to have the focus from the VB codebehind side? If I have an <asp:textbox id=fld1 runat=server> I want something like fld1.getFocus() but that is not it. What is it? ...more >>

Load image from database BLOB?
Posted by Lauchlan M at 3/10/2004 3:09:26 PM
I have a .jpg image in a BLOB field in my database and I want to load it into a System.Web.UI.WebControls.Image image control. I have some code like this that fills a datareader: << NxDataReader dtrData; nxCommand.Parameters["SessionID"].Value = Request.QueryString["SessionDataID"]; ...more >>

passing variables from webform to usercontrol code
Posted by DC Gringo at 3/10/2004 3:04:35 PM
I have a two panel controls, one that shows if PageID = 10000 and the other when PageID = 10001. Problem is that these variables are set in the usercontrol.ascx.vb rather than the calling webform index.aspx.vb. How can I declare and set this variable from the webform and have the user control ...more >>

Format for Date.
Posted by Phoebe. at 3/10/2004 2:52:01 PM
Hi, Good Day! In my SQL database, my PostedDate's datatype is not Date/Time but integer for eg. 20040310 I'd like to show the date in this format --> 10/03/2004 in my datagrid, so how can i do tht? Can someone help? Thanks in advanced. rgds, Phoebe. ...more >>

Radiobuttonlist onclick event
Posted by Dan at 3/10/2004 2:11:25 PM
I'm binding a datasource to a Radiobuttonlist like this: rbtnLocations.DataSource = MyDataReader rbtnLocations.DataTextField = "ID" rbtnLocations.DataValueField = "LocationName" rbtnLocations.DataBind() I want to add an onclick event that will acquire the currently selected ...more >>

How to get an application instance from a page
Posted by Yuancai (Charlie) Ye at 3/10/2004 2:04:16 PM
Hi, All: I just started to learn ASP.net. There is one problem troubling me that I don't know how to get an application instance from a page. What I want is to do something as demonstrated in the following: private void Page_Load(object sender, System.EventArgs e) { Global MyAppI...more >>

SessionState SQLServer Error
Posted by Patrick Nolan at 3/10/2004 1:40:46 PM
(C#) I am attempting to change the way I handle my session variables from "Inproc" to "SQLServer". After following the directions on Micorsoft's site, I now get this error when running my project: "Unable to serialize the session state. Please note that non-serializable objects or MarshalB...more >>

How to ToolbarControl/WebControls in ASP.NET
Posted by Net Sharp Ninja at 3/10/2004 1:17:04 PM
I see the System.Web.UI.WebControls is deprecated and MS is no more supporting the old webcontrols. Is there any alternative for these, please point me to the link(s) if there is one -In dire need of this technology to build my reputation :). thanks ...more >>

data binding question
Posted by Nikhil Patel at 3/10/2004 12:55:01 PM
Hi all, I am developing asp.net application. The startup page reads data from a database and displays it in a grid. Now when the user doubleclicks on one of the grid's rows, i want to display a form that will allow the user to update selected row. My question is that when the user closes the ...more >>

Credentials for Changing Password in IIS
Posted by - Steve - at 3/10/2004 12:42:26 PM
I have an ASP.NET webpage that allows an admin to change a password on a user account. I know I can use the properties DirectoryEntry.Username, and DirectoryEntry.Password to use as the credentials on the operation. How can I use the credentials that they used to log into IIS though? If I do...more >>

visible controls?
Posted by SteveS at 3/10/2004 12:26:24 PM
Hello all. I have an "update" page where a user can update any one of 10 sections (i.e., their personal login info, address info, phone number info, preference info, etc...) Currently, I have each of the 10 sections in its own separate panel on the .aspx. page. Initially I have them set to V...more >>

unknown postback
Posted by Tim Mulholland at 3/10/2004 11:52:12 AM
I have in an ASP.NET page that has one textbox and a button. I catch the button's click event and do some searching based on the text in the textbox. when the user types stuff into the textbox, then uses the mouse to click the button, or hits tab and hits enter/space to click the button, all goe...more >>

javascript error, is there something wrong with this ?
Posted by Ashish at 3/10/2004 11:48:56 AM
hi all , Iam adding the following javascript by RegisterStartScript("myscript", "<script language='JavaScript'> var agree = confirm('are you sure you wanna do this ?'); if (agree){ document.forms[0].submit(); } </script>") adding this , the page does executes the script and message pop ...more >>

Two Net frameworks???
Posted by S. Hussain Akbar at 3/10/2004 11:35:01 AM
I installed the DOTNET Framework when it came out in version 1. Later, when Windows Update showed that 1.1 has been released, I installed that as well. Now, the Control Panel whows them both: .Net FW 1 and .Net FW 1.1 Should I uninstall and re-install? ...more >>

Get the list of Domain users - How?
Posted by S. Hussain Akbar at 3/10/2004 11:32:34 AM
In my internal-use apps, I need the usernames. In non-Net ASP, I could fetch them from the Domain users list using: Set objDomain = GetObject("WinNT://MyDomain,domain") objDomain.Filter = Array("user") For Each objUser In objDomain Response.Write "<TR>" & "<TD>" & objUser.Name & "</...more >>

How do you turn it OFF!
Posted by melliott NO[at]SPAM usbnc.org at 3/10/2004 11:19:40 AM
Hello, Okay I admit I'm new to Visual Studio. Here's my challenge. When I'm in designer and try to resize a table by using the little handles on the html code side it puts in a Style= tag. Anyway to turn it off so it doesn't put the "style" tag in the html? Thanks so much in advance. ...more >>

web.config tags
Posted by RA at 3/10/2004 11:11:08 AM
Hi Can I put any tag names or do I need to use the appSettings tag for custome info? Thanks ...more >>

Retrieval of large dataset flushes browser back/forward navigation cache
Posted by Guidi NO[at]SPAM alumni.uwaterloo.ca at 3/10/2004 11:02:13 AM
Hello, I am experiencing a problem with the back/forward page cache of IE, and from my investigation, I believe that it is related to the size of dataset that is returned from a query. I don't understand the underlying cause of the problem as I am able to reproduce it under different conditi...more >>

easiest, simplest QA tool? Winrunner?
Posted by Jason Shohet at 3/10/2004 10:25:37 AM
We've had some nasty experiences where QA did not do an adequate job of manually running thru different choices in an asp.net application, and seeing if they worked. I'm looking for a tool thats easy to use, that we can tell it what to do (Click on some button, type in "5" into some text field...more >>

How to assign a Null value to DateTime variable which then goes to sql server?
Posted by John Sutter at 3/10/2004 10:13:57 AM
The DateTime type is giving me some grief with null values. I am using SQLHelper from the data blocks. I have a textbox which accepts a date. The field is optional. This text field gets converted to a parameter of type DateTime in a function call. I am trying to assign System.DateTime.Min...more >>

Service Permissions w/ ASPNET
Posted by Z D at 3/10/2004 10:13:55 AM
Hello, I was wondering what permissions I have to give the ASPNET account in order for it to be able to start/stop/modify/etc specific services on a machine using the System.ServiceProcess.ServiceController class? I can only seem to get it working when I make the ASPNET account part of the ...more >>

Handle Exception Only in Release Mode?
Posted by Al Cohen at 3/10/2004 9:59:59 AM
When I'm running in Debug mode, I like the pages that ASP.NET displays when I hit an unhandled exception. However, for Release mode, I'd like to handle the exception with a nice page that apologizes to the user and doesn't display the stack trace, by putting something in global.asax's Appli...more >>

request.params advice
Posted by Bob H at 3/10/2004 9:29:30 AM
Hi, I'm trying to pass values (from controls) from Page1 and Page2. Is the request.params a way of passing variables between pages and if so, does it work with webcontrols or only HTML controls? Thanks bob ...more >>

Configuration Error
Posted by Jag at 3/10/2004 9:06:09 AM
I always get the following error occasionally(and sometimes very irritating)..."UILib" is a library of my project... It was working fine and no problem...but sometimes occasionally I get this erro ------------------------------------------------------- Configuration Error Description: An error ...more >>

disposing of objects
Posted by James Brett at 3/10/2004 8:55:37 AM
Hi I have an asp.net application and I've noticed that the aspnet_asp process keeps creeping up in size which lead me to believe I was closing or disposing of my object properly. When I create an instance of my object the way I close them by setting it to nothing eg Dim oUser as new User ...more >>

Layout on different browser
Posted by Steffen Loringer at 3/10/2004 8:46:46 AM
Hi group, i tested my asp.net page on Opera and Netscape and found that the layout is different to Internet Explorer. Is there a way to make my page look similiar on each browser or is the same html/dhtml code different in each browser? Thanks a lot Steffen ...more >>

Event ID 1000: "aspnet_wp.exe stopped unexpectedly"
Posted by feng at 3/10/2004 7:54:57 AM
Our asp.net app is getting a strange problem that the aspnet_wp.net process stops for no clear reason. What happens is that sometimes, most likely when we have more than one user running, the aspnet_wp.exe process stops and restarts itself. The event log shows a Apllication error event wit...more >>

Post Client Web Browser Time Automatically?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 3/10/2004 7:42:10 AM
I want the client to include their local datetime and timezone every time they do a postback to my ASP.NET page. But I am not sure how to create a JavaScript hook that will get that data into the postback every time so I can capture it on the server side. How can I do that? Thanks....more >>

OnLoad (dropdownlist) is executed before OnClick (Button)
Posted by veerleverbr NO[at]SPAM hotmail.com at 3/10/2004 7:34:41 AM
Hi, I have an aspx page with a dropdownlist and a button: <form id="Form1" method="post" runat="server"> <div> <asp:label id="Label1" runat="server">Startdate: </asp:label> <asp:dropdownlist id="DateList" runat="server" OnLoad="LoadDates"></asp:dropdownlist> </div> <div> ...more >>

How to bring aspnet_wp user account back
Posted by Nelson Xu at 3/10/2004 6:24:02 AM
Hi, I cannot run my .net application because I deleted aspnet_wp account from user account of my computer by accident. Can anybody tell me how to recreate this account ? Thanks in advance ! Nelson ...more >>

How to capture a response from confirm box in asp.net
Posted by pargat_g NO[at]SPAM yahoo.com at 3/10/2004 6:16:46 AM
Hi , I have two listbox say ls1 and ls2 and both have same value like deptno and one datagrid. when i select value from first ls1 it populate datagrid with selected value deptno e.g deptno 10, fill datagrid with all employee from deptno 10.I need when i select value from second ls2 before i r...more >>

Forms Authentication when requesting resource with a querystring
Posted by nazghul NO[at]SPAM speakeasy.net at 3/10/2004 6:14:18 AM
OK, let's see if I can explain this issue well. I have forms authentication set up on the site I am working on. It's working correctly with one snag. When I request a resource with a querystring, and that resource requires that I log in to view it, I am redirected to the log in page. So far...more >>

How to playback stream in a browser
Posted by Paul at 3/10/2004 6:06:15 AM
I have some audio data in a proprietary format (that is, to prevent unauthorised access to audio data) residing on server. I have to create an ASP.NET app to read this data and give it to browser without any temporary file (.wav for example). Moreover, the client browser should be able to jump forwa...more >>

ASP.NET "Get path strPath = Session("Path").ToString()"
Posted by GC at 3/10/2004 4:01:06 AM
Hi all I am having problem in ASP.NET and I hope I can find solution in here While studying the "MCAD/MCSD Training Kit—Developing Web Applications with Microsoft Visual Basic .NET and Microsoft Visual C# .NET" Training kit I get an error. Here is the error ----------------------------------...more >>

Accessing a textbox within another webform
Posted by Varun at 3/10/2004 3:01:08 AM
I want to access a textbox in webform1 in webform2 to set the text property Any suggestions are appreciate Thank yo Varun...more >>

Why INSERT, then SELECT
Posted by andysyy NO[at]SPAM yahoo.com at 3/10/2004 2:53:28 AM
Hi, When add a DataAdapter via design mode, Visual Studio auto add SELECT follows the INSERT command. Here is the sample of Chapter 4 - <ADO.NET Step by Step> . I delete the SELECT command, it also work. Why ? Thanks. ----------------------------------------------------------------...more >>

Intermittent redirect to "Invalid Syntax Error" page in ASP.NET application
Posted by Geof Birchall at 3/10/2004 1:42:35 AM
Folks I have recently begun to get intermittent redirects to a Invalid Syntax Error page from my ASP.NET website. No this is not because I am passing credentials in the address bar, there is just plain old querystrings. It happens every 5-10 hits on the site. Can anyone help? Thanks G...more >>


DevelopmentNow Blog