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 > january 2004 > threads for wednesday january 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 31

How does Threading works
Posted by wwwmike NO[at]SPAM gmx.ch at 1/28/2004 11:01:36 PM
Hello I right now I am programming a web application. Im my application I am using DB Access, SMTP Mail etc. If I have access from more than one person, I have to be sure that certain things are processed before I can allow a user access the DB or send a mail...etc...etc.. Where can I ...more >>


Set Maximum Pool Size in web.config
Posted by Bei at 1/28/2004 10:47:01 PM
I would like to allow more connection to SQL servers from the web application. Do you know what is the code to set maximum pool size in web.config file? Thanks ...more >>

Create a web interface for Windows Server 2003 Pop3
Posted by Florian Marinoiu at 1/28/2004 10:08:32 PM
Hi, I was wondering if possible to create a web interface for Windows Server 2003 Pop3 clients to be able to red their email by using a web browser instead of a Pop3 client. Is it a SDK available or shoul we go at the API level? Any help will be much appreciated. Thanks, Florian Marin...more >>

"Error while trying to run project: Unable to start debugging on the web server."
Posted by a at 1/28/2004 9:57:47 PM
When executing the ASP.NET app, I get: "Error while trying to run a project: Unable to start debugging on the web server. A debugger is already attached. Would you like to disable future attempts to debug ASP.NET pages for this projecty? Yes or No" There are no compile errors. If I answ...more >>

New to .NET, need help with Web Server
Posted by Steven M. Britton at 1/28/2004 9:56:08 PM
I recently began teaching myself via these newsgroups and reading how to program "stuff". I attempted to open a new project and chose ASP.NET Web Application, when I hit OK to open the project I am told: "Visual Studio .NET cannot create or open the application because no Web server is detected at ...more >>

getting image size next....
Posted by KarimL at 1/28/2004 9:52:09 PM
Thanks for your advices... but i need to get the Image height because i dynamically resize the height of my webcontrol based on the image height. More i just have the url (relative parth) to the the image but in design time mode all variables concerning Server or Context ar not set ! ...so I ca...more >>

datagrid and radio buttons question
Posted by Jay at 1/28/2004 9:42:09 PM
I need to validate 21 sets of radio buttons before submission to the server for calculation and storage. Is it best to validate on the client side using javascript or to validate on the server using the code behind vbscript. It seems that natural to validate before submission. If javascript ...more >>

GUI testing
Posted by Hai Nguyen at 1/28/2004 9:34:55 PM
Hello everyone I'm testing a web application which requires to enter data into a lot of textboxes. Since the large amount of data needs to input into the from to test the efficiency of the page, I have to enter each input by hand. It's really time consumming and not neccesseary just to sit the...more >>



HtmlAnchor
Posted by Roger at 1/28/2004 9:28:30 PM
Hi: I'm trying to submit a form and go to an anchor point after processing form on the same page. Is this possible? How? ...more >>

Application name magic
Posted by Martin at 1/28/2004 8:39:50 PM
Hi! Listen to this: I have two w2k servers with SQL Server 2000 an the .Net Framework installed. The first server is called "NET2", the second is called "PAS003". I have an ASP.NET application, called "manufacturing". In the web.config I made an application setting for the connectionstring. Th...more >>

getting image size
Posted by karimL at 1/28/2004 6:07:28 PM
Hi, how can I retrieve the height and width of a System.Web.UI.WebControls.Image after populating it's ImageUrl property. It's seems not to be filled ? Does someone have a solution ? Thanks Karim ...more >>

Threading in ASP.NET?
Posted by Bruce W.1 at 1/28/2004 5:55:04 PM
How is threading natively used in ASP.NET? Does each user get a thread off the DLL, the entire application is one thread, each page gets a thread? Thanks for your help....more >>

SessionState "StateServer" serialization ...
Posted by Ashish at 1/28/2004 5:47:46 PM
Iam trying the out of state session management for the first time, trying to convert a big project to be adaptable to both type of session management .. what i see that it is trying to serialize a class which is not touched by session object, do i have to serialize all the classes in the pr...more >>

IE6 Cookie Location
Posted by David Krussow at 1/28/2004 5:38:05 PM
Where does IE6 store cookies? Does it store them in more than one location? Thanks. ...more >>

Some session variables disappear between postbacks
Posted by PJ at 1/28/2004 5:37:48 PM
A particular page seems to be having issues with correctly setting Session variables. I am setting a couple of session variables on the Page_Unload event. While stepping through code, the immediate window will show the values in Session after the relevant lines that set the variables in the Pa...more >>

Problems with Server.Transfer
Posted by Cathie at 1/28/2004 5:21:08 PM
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). My problems are as follows: 1. On the initial load everything seems to be referencing from the fi...more >>

Dynamic Tables
Posted by com2repair NO[at]SPAM yahoo.com at 1/28/2004 5:14:40 PM
I used to develop with Classic ASP. Now I'm learning ASP.NET I used to create tables 'on-the-fly' using recordsets. My code would loop through the recorset.Fields to make the headers. If I added a field to the table, I didn't have to update my code. I liked the fact that I could test for a fie...more >>

OnSelectedIndexChanged for a RadioButtonList in a DataGrid
Posted by DotNetGruven at 1/28/2004 4:57:30 PM
I have a webform that has a DataGrid on it with a RadioButtonList in each row. It is a simple On & Off. When the User Clicks on either of the RadioButtons, I need to postback to the server and update the database. Here is the control containment hierarchy: ASP Page Static Use...more >>

DropDownListBox Bug.
Posted by at 1/28/2004 4:55:19 PM
I think we have some bug in dropdownlistbox server control. Following = are the values.=20 <asp:DropDownList id=3D"DropDownList1" runat=3D"server"> <asp:ListItem value=3D"46">INR</asp:ListItem> <asp:ListItem value=3D"2">USE</asp:ListItem> <asp:ListItem value=3D"1">USD</asp:ListIte...more >>

document store database
Posted by selen at 1/28/2004 4:51:15 PM
if any one have any sample or document which can help me to parse word document to store in sqlserver database in c# aspnet ...more >>

There MUST be a better way!
Posted by dwa at 1/28/2004 4:38:03 PM
When we want to confirm a user action before a post back occurs, we've been writing code like this: function onClickDelete() { var aResponse = window.confirm("Delete this record?"); if ( aResponse ) __doPostBack('theLayout$_ctl1$buttonDelete','') ; return 0; } This seems like ...more >>

String.Format????
Posted by Hai Nguyen at 1/28/2004 4:31:34 PM
Hi everyone I have a textbox which acts like a counter. I want to format the number in 4 digits; for instance, 1 -> 0001 10 -> 0010 Is there anyway I can do that? Thanks ...more >>

Output directories
Posted by Bryan Glennon at 1/28/2004 4:29:30 PM
I have a solution with a web app and a web service. There is a virtual directory set up on my local server, //localhost/foo and it points to my development directory, c:\blah\blah\foo. When I build, the output goes to foo\bin, which is what I expect. I am now trying to automate the nightly bui...more >>

Q:Add AutoPostBack flag by Code rather than HTML?
Posted by Sky at 1/28/2004 4:27:02 PM
Hello: If I want to conver the following HTML code to be created dynamically in a Render() event, how do I pull off setting the AutoPostBack Flag? <asp:imagebutton runat="server" id='ID_EditBtn' OnClick="OnClick_EditMe" style='width:16px;height:16px;margin:0;padding:0;margin-left:4px;borde...more >>

SessionSateInGlobal.asax
Posted by .NET Follower at 1/28/2004 4:23:25 PM
Is Sesssion State available in global .asax event handlers] or even cache object? amit --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004 ...more >>

Don't allow "back" button in usercontrol
Posted by Ryan Moore at 1/28/2004 4:23:13 PM
I have a .ascx file that I want to make refresh the page if the user hit it by clicking the "back" button on the browser... how can I accomplish this? Thanks ...more >>

Question re: Server Control Development
Posted by Chris McKenzie at 1/28/2004 4:17:18 PM
I'm developing a server control to automatically display UI associated with a report developed in SQL Server Reporting Services. One of the things I want to do is to optionally display boolean parameters as a checkbox or a radiobuttonlist. I created an enum as follows: Public Enum BooleanDi...more >>

This page can not be saved
Posted by A.M at 1/28/2004 3:20:05 PM
Hi, There are web sites that it is not possible to save the site locally. (File-> Save As... returns error) How can i do that with my own pages. Thanks, Ali ...more >>

ASP.NET Hosting Gotchas?
Posted by David Krussow at 1/28/2004 3:19:56 PM
The other day in this group someone wrote that one of the ASP.NET hosting providers is "...not an enterprise server, so for example you can't cache web pages..." I'm wondering what "not an enterprise server" means, and what the ramifications are - other than an inability to cache web pages. M...more >>

Forms Authentication - Pass String to Login Form
Posted by David Krussow at 1/28/2004 3:05:38 PM
Just wondering if/how it would be possible to display a variable string on the login form - where the string varies depending on the form the user attempted to access. To clarify, an unauthenticated user is browsing the site, and tries to open the UltraSecretContent.aspx page. Forms authentica...more >>

Debugging problems :-(
Posted by Simon Harvey at 1/28/2004 2:52:57 PM
Hi everyone, I'm having a problem getting an application of mine to debug in Visual Studio. I have handled quite a few errors before but this one has got me stuck because it doesnt give an error message. I've added my account to debuggers and so on, so its not that. The web.config is setup ...more >>

changing state of drop down list
Posted by luna at 1/28/2004 2:45:36 PM
is there a way of changing the state of a drop down list to a text box depending on criteria ? i could create a drop down list and a text box list in the same posistion and change the visibility on criteria - just wondered if there was another way thanks ...more >>

Q: Disconnected DataSets - automatic Add/Remove but with Guid Key instead of AutoIncrement int?
Posted by Sky at 1/28/2004 2:33:23 PM
Hello, The books on C# I have read talk of using the DataSets in disconnected mode, and Adding/Removing/Updating records from it, and letting it handle all the updating on the Database in one batch finale... But the examples were all based on using auto-increment columns. Lately I've been b...more >>

ParseChildren(false) not adding sub objects in the designer
Posted by Sam Fields at 1/28/2004 2:31:12 PM
I have been wrestling with this code for about 2 weeks now. My goal is to create a table for formatting purposes. I want to standardize it as a webcontrol. I want all of the content to persist as top-level controls so that they are visible to the asp.net designer -- PersistChildren(true). The ...more >>

Q: How to use DataGrid in Edit Mode -- with more fields than shown?
Posted by Sky at 1/28/2004 2:25:21 PM
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last, Fax, Phone, Category). Put an Edit column at the end... Now what?! If you go into Edit mode -- yo...more >>

Help: Can't run ASP control .
Posted by Mactash at 1/28/2004 1:52:48 PM
Folks, I have problem running simplest ASP.Net programs with IIS web server. As a test I just added some text box and dropdown list with Visual Studio but when I run this my page shows nothing.(blank page without error.) I can run this with asp matrix web server. Can you please let me know what...more >>

Can an XML file be converted into a valid DataSource?
Posted by Sky at 1/28/2004 1:43:55 PM
What makes something a valid DataSource? What methods/iterators/etc? Why do I ask? I do understand that a DataSet is based on an XML structure...but it's too table structured for what I am thinking... Can one read in a an xml file that has various embedded nodes (ie: records that have childre...more >>

Bind to ASP Table instead of Datagrid
Posted by coleenholley at 1/28/2004 1:42:49 PM
I have a Class Module written in VB that calls an RPC (written in COBOL) we have written code to read the data from the RPC, and we create a temporary datatable to store the data from the RPC. This works fine when we call the datatable and bind it to a data grid using datagridname.DataBind(), but ...more >>

Working with Dates in VB.NET
Posted by Justin Dutoit at 1/28/2004 1:41:24 PM
Hello. After looking at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfsystemdatetimememberstopic.asp on msdn, I don't know how to set the Date of a datetime variable. eg myDate.setDate(now) or myDate.Date = now Is there a reference teaching how to use dates ...more >>

Selecting item from popup
Posted by Amy Snyder at 1/28/2004 1:19:47 PM
I have webform1.aspx with an asp:textbox control and a link. The textbox is for entering company tickers. The link is to open up a smaller window where a user can do a quick query to search for a company ticker. The results are displayed in a datagrid. I set one of the columns in the dat...more >>

sending aspx as email
Posted by r.loupatty NO[at]SPAM miodevelopment.nl at 1/28/2004 12:55:33 PM
To send an aspx to email i use this code below: Dim objMM As New MailMessage Dim client As New System.Net.WebClient Dim buffer() As Byte = client.DownloadData("http://www.mysite.nl/mypage.aspx") Dim str As String = System.Text.Encoding.ASCI...more >>

Passing user from unsecure to secure domain in asp.net
Posted by deja NO[at]SPAM 2404.co.uk at 1/28/2004 12:52:46 PM
Hi All, Firstly, apologies to anyone that notices the cross-post: i also posted this in microsoft.public.dotnet.general earlier this week. I have an ecommerce site that resides mainly on an unsecure server for browsing the catalogue and only passes the user to a secure area when its time ch...more >>

Finding My Virtual Directory During Application_Start Event
Posted by Nathan Phelps at 1/28/2004 12:51:07 PM
I realize that I could find my virtual directory using some of the methods in the HttpRequest object, but since the HttpRequest object is not in context during the Application_Start event, I'm at a loss for how to determine what virtual directory my web application is running in. Any suggestions?...more >>

ASP.NET and MAC IE problems
Posted by GCeaser NO[at]SPAM aol.com at 1/28/2004 12:38:53 PM
All, I have seen several posting in here about this but I have not found one with a clear enough answer to fix my problem. Same old same old.. ASP.NEt app renders fine on IE 6 however on MAC IE, it does not. I have interegated the useragent option of the httprequest header and got the f...more >>

adding serial no column in a bounded data grid
Posted by Vikramaditya Singh at 1/28/2004 12:29:32 PM
i want to show a serial no column in a data grid which is bounded to a data table. Is it possible. does datagrid has some property to do this ...more >>

Browser back button
Posted by Steffen Loringer at 1/28/2004 12:28:10 PM
Hi all, my application uses an configuration page followed by an information page. The user see different pieces of information on that page by clicking different buttons. If the back button is clicked the information page before is shown. Can I achieve that the user is send back to the co...more >>

Web application only runs when connected to the Internet
Posted by msm3535 NO[at]SPAM yahoo.com at 1/28/2004 11:59:58 AM
I have been working on a web application for a while. All of a sudden, I can only open the project when connected to the Internet. If I'm not connected, I get an error message stating that "a connection to the server could not be established." It is strange because it used to work just fine....more >>

problem with null data in sql
Posted by luna at 1/28/2004 11:54:51 AM
could someone explain the meaning behind :- System.IndexOutOfRangeException: firstname1 when the code is :- If objDR("firstname1") Is System.DBNull.Value Then firstname1.Text = "" Else : firstname1.Text = objDR("fname1") End If and theres no entry in the database if theres an entry in...more >>

Almost beginner asking for info
Posted by RDavid at 1/28/2004 11:45:02 AM
Hi all, I know I'll probably get a whole host of opinions, perhaps some vocal and some not, but here goes. I've developed in VB for many years and only now have decided that I need to move into the 21st century. I want to try and identify a relatively decent step by step process of moving ...more >>

Multiple email when using SendMail
Posted by gwolinsky NO[at]SPAM millermartin.com at 1/28/2004 11:36:39 AM
We have written a service that runs in the background to deliver email to our users. The emails are generated from data in SQL that our application creates. This service sends out thousands of emails everyday with little or not problem. The code works! However, we are experiencing an intere...more >>

Inadvertent hidden user account
Posted by rprice3085 at 1/28/2004 11:06:05 AM
In WinXP Home, I changed the default owner name to my name and added two new users with “control userpasswords2” applet. My name no longer appears in the welcome screen or in the user accounts in the control panel. I can still access the account with Ctrl+Alt+Delet, but now it only has guest pr...more >>

Add attributes after viewstate has been saved.
Posted by Tom Vergote at 1/28/2004 11:01:29 AM
Hi all, I have this page with quite a few textboxes which require viewstate ON. However, i execute some Control.Addatributes on them so the take very much viewstate space (three times a normal textbox). Those attributes can easily be readded with every request, so those don't need to be in the...more >>

Datalist adding Dynamic controls
Posted by Patrick at 1/28/2004 10:56:23 AM
Hello I have a Datalist, that I fill with the PopulateList() method. This method selects all Items from Database and binds the Dataset to the DataLilst. Now, when clicking Edit, in the Editcommand I add some dynamic TextBoxes to a PlaceHolder in the EditItemTemplate. So fare, all fine - now...more >>

The viewstate is invalid for this page and might be corrupted
Posted by WFB at 1/28/2004 10:36:09 AM
Hi, I keep randomly getting this error: "The viewstate is invalid for this page and might be corrupted". Ive searched the newsgroups and the web and havent found anything that has fixed this. Is anyone else getting this error, and is there a fix somewhere that Im missing? More details: ...more >>

Sessionstate is not available in this context in the PreRequestHandlerExecute...
Posted by Sascha Kuhl at 1/28/2004 10:33:27 AM
I'm working on a piece of code that sets a cookie, depending on the some Session State values in the PreRequestHandlerExecute event of my App. The code works on my development machine (Windows XP Prof. and IIS 5.0 + ..NET Framework version 1.1.4322) as well as on a testsystem running with Win...more >>

Datagrid Update linkbutton causes validation
Posted by mark_moeykens NO[at]SPAM progressive.com at 1/28/2004 10:29:22 AM
Hi, I have a datagrid with a column for the Edit, Update, Cancel links. That worked fine. Above the datagrid I then added a textbox, required field validator and button so I could use that to add data to the datagrid. Now, when I edit a row in the datagrid and click Update the required ...more >>

Adjusting security setting to run an embedded windows control in IE
Posted by Marina at 1/28/2004 10:24:00 AM
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is very broad and gives the entire zone high privleges. I tried giving just the assembly full trust (us...more >>

Live application points to development server...??
Posted by elendeil NO[at]SPAM yahoo.com at 1/28/2004 10:18:11 AM
Hello all, I'm baffled. I have a live application running on a production server which is throwing the error I've pasted below. I assume that I can fix the error by making sure all my db connections are set to "nothing"... but what baffles me is: Why does the error message reference files ...more >>

Simple Question...
Posted by Amy Snyder at 1/28/2004 10:09:21 AM
Can I write server side script in the .aspx page? I want to do like this: <form name=form method=post onSubmit=<% myVariable from code behind page %> *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Problem Running Pages with .ASP extension
Posted by Howard at 1/28/2004 9:36:07 AM
I have been trying to run pages that I design with the extension of .asp and they appear to run but never call the web browswer. If I take the same page and rename it using the aspx extension I can run the page just fine....more >>

Events on my page
Posted by Steven ONeil at 1/28/2004 8:36:05 AM
I'm trying to process the Onclick event of my page but it's never working. The button is dynamical added to the sites MainPanel. If I click the button on the page the Page_Load Event() is processed during the postback but not the Sub Button_Click. Where is my mistake Thanks for hints and ideas...more >>

Specifying look and feel for embedded windows user control
Posted by Marina at 1/28/2004 8:32:05 AM
Hi, I have a user control embedded in a .aspx page. It shows up, but everything is white - labels, buttons, etc. The font is too big, etc. How can this be changed? I've tried changing the properties in the control designer before compilation, but that doesn't seem to have any effect. ...more >>

Event processing
Posted by Steven ONeil at 1/28/2004 4:56:06 AM
I'm trying to process the Onclick event of my page but it's never working. The button is dynamical added to the sites MainPanel. If I click on the button the PageLoad Event is processed but no event method called. How can I fix? Thanks a lot Steven Here is my example code: Public Class We...more >>

Activate server event with javascript
Posted by marcelo at 1/28/2004 4:01:05 AM
Hi I have the following scenario: one needs to confirm his password to authorize some operation. In the page, there's a brief of the operation, one asp:textbox and three asp:imagebutton (authorize, cancel operation and close window). The problem is that the enter key, when pressed on the textbox, ...more >>

How to remove the key from a strong name assembly?
Posted by Annie at 1/28/2004 2:56:05 AM
After assigning a key to a DLL to make it a strong name assembly, it cannot be compiled to the same location again. The VS.NET always shows "Could not copy temporary files to the output directory. The file 'xxx.dll' cannot be copied to the run directory. The process cannot access the file becaus...more >>

And for the holy grail...
Posted by Sky at 1/28/2004 1:51:33 AM
Been looking around to get ideas on how to make a TreeList (tree with columns) from a dataset, and/or xml source.... But getting nowhere. Any leads, articles that come to mind? So far, been thinking that the solution is going to lie with some kind of DataRepeater...but not sure. Has anybody...more >>

How to embed one control within another?
Posted by Sky at 1/28/2004 1:45:37 AM
What I have currently: I have a user control called mod_container.aspx that is basically two divs -- the top a toolbar, that expands/collapse the second div which can contain other modules/controls (eg a newsfeed, quick phonelist, login, etc.) But the controls end up too 'deep': it appears tha...more >>

ServiceControl Permissions
Posted by Laidbak at 1/28/2004 1:06:53 AM
I seem to be getting an error saying I can't control services from an = aspx page. This code works: private void Page_Load(object sender, System.EventArgs e) { /* Global Settings */ pcanywhereControl =3D new ServiceController("pcAnywhere Host = Service"); /* put a title on t...more >>

HtmlSelect populated dynamically, fails to return selected item
Posted by jsausten NO[at]SPAM hotmail.com at 1/28/2004 12:11:03 AM
When I dynamically populate a HtmlSelect combo box, the Value property consistently fails to return the item selected, defaulting instead to the first item in the list. For example: Protected WithEvents Fruits As System.Web.UI.HtmlControls.HtmlSelect Protected WithEvents Results As System.We...more >>

Can't Access Button Click Event Handler(VB.net)
Posted by George at 1/28/2004 12:01:54 AM
I'm having a weird problem. When I double-click a Web server control that I have on my design-time Web form, such as a button, it puts the event handler in the Code Behind as a Private Sub routine. However, when I try to compile, I get an error saying that I can't access that event handler bec...more >>


DevelopmentNow Blog