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

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

Q: About how/where to store RecordSets in UserControls?
Posted by Sky at 3/3/2004 11:34:55 PM
Basically, I'm stumped on how to translate something I wrote in PHP to ASP.NET, and I'm having a hard time figuring out what is right way to do it now... The scenario in PHP was as follows: I wrote a Discussion forum that worked client side via JScript that initiated home-brew RPC calls in ...more >>


import .csv file into SQL Server via asp.net page
Posted by Andrew J Gray at 3/3/2004 11:07:42 PM
Guys Anyone know of a component or code example to enable the import of a .csv file (typically exported from Outlook contacts) into SQL Server through an asp.net UI? The holy grail would actually be a total solution enabling a sync of Outlook Contact data to a SQL Server table via an asp.net ...more >>

DataList Bug
Posted by Kode at 3/3/2004 11:06:07 PM
I dont know really know if this is a bug or not. In my webform I hav Header( User control DataLis Footer(User Control The Header User Control has a Place Holder to which menu(another user control) is added dynamically based on the user role. (I have 3 menus for each role, and an appropriate me...more >>

ASP.net hosting and permissions
Posted by Chad Z. Hower aka Kudzu at 3/3/2004 10:58:57 PM
We are preparing to build some applications that will be redistributed to other users. They will customize / or just use out of the box. But each user will be responsible for their own deployment of these web applications. Some will have their own servers, some will co locate. But a very la...more >>

How do I retreive a custom object's properties from an arraylist
Posted by djscratchnsniffing NO[at]SPAM yahoo.com at 3/3/2004 10:42:19 PM
Please forgive me if i dont explain this situation correctly. i'll try to do my best. because the arraylist.add method only accepts one argument, i created an object with several public properties. AddElement.vb (compiled and saved in Bin folder) ' VB Document Imports System Namespace m...more >>

Visual Studio .NET has detected that the specified Web server is not
Posted by Pat Lester at 3/3/2004 10:37:32 PM
First of all......my environment is WinXP, IIS5.1, ASP.NET 1.1, Visual Studio 2003 Ok. I know that I've messed something up but can't seem to put my finger on it. I recently set up my IIS so that the default web site ends up pulling the web site from a specified directory. Again, this is in...more >>

MSOffice and ASP.NET
Posted by indexnode NO[at]SPAM yahoo.com at 3/3/2004 10:28:24 PM
Hello, I have a ASP.NET Page which allows the user to upload a file. What i have to do is when the user uploads a PowerPointFile i have to convert in to html and save both ppt and html versions of it. I have a working program of converting ppt to html on localmachine. When I try to do it ...more >>

Evaluating Formulas in ASP.NET
Posted by microsoft.private.windows.netserver.setup at 3/3/2004 9:59:36 PM
Hello everyone, I was wondering if anyone knows of a way to evaluate a string function? For example I have a string like "(150/50) +2" and would like to evaluate the result in a ASP.NET webpage. Thanks for any help. ...more >>



Email Attachment
Posted by peter x at 3/3/2004 9:58:03 PM
Hi Guyz, I'm trying to write a simple email proggie in asp.net which allows users to send attachments. I have no problems doing the email side of things but I want the user to be able to upload the files they wish to use as attachments. My current approach is: 1) Retrieve file attachment...more >>

Updating /Default.aspx Weird problem!!
Posted by Blue Ball at 3/3/2004 9:52:10 PM
I have setup the global.asax, so that everytime server encounters an error, I will be notified by email. Now, my web site is up and running. However, EVERY TIME I update the "default.aspx" by FTP, I got at least one copy of the following error message (notified by the email). Someone from ...more >>

Big problems with data binding
Posted by Lloyd Sheen at 3/3/2004 9:49:09 PM
I am having trouble with an app that does the following: 1. Query SQL Server and return one row 2. Bind the columns to text boxes 3. User updates info 4. User clicks update button Questions: 1. Is data binding one direction. 2. If the user changes a value in a text box...more >>

Custom Server Control
Posted by Kirk Graves at 3/3/2004 9:17:27 PM
I am in the process of developing a WebControl. Everything works fine, except that viewstate does not seem to be working. can anyone give me some clue Thank you in advance. here is the code that is causing me trouble ------------------------------------- Protected Overrides Function Sav...more >>

Looking for asp.net + mssql hosting
Posted by Craig Kenisston at 3/3/2004 8:55:23 PM
I wronly posted this message into other group. Here is where I think it should go : Hi, I have several days looking for good alternatives to host asp.net sites that uses MsSQL Server. I found here several good comments about this site : http://www.webhost4life.com/, and seems very good. ...more >>

Virus on Web Server
Posted by Srini at 3/3/2004 8:21:05 PM
If I allow the user to upload a file of extension .gif to the web server will the user be able to upload a virus (by renaming a .exe to .gif) to the web serve ...more >>

newbie asp.net project question...
Posted by Andrew Parks at 3/3/2004 7:36:05 PM
I have a simple question. I created a new Web thru IIS (MyWeb) that points to c:\Inetpub\wwwroot\MyWeb Then I created a new asp.net project in VS. The problem that I have is this: when I compile and run the project, it's link looks like this http://localhost/MyWeb/Default.asp which means that i...more >>

Converted HTML TextBox - .Text and .Value different properties?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 3/3/2004 6:59:04 PM
Dear Group Sorry for bothering you again but I need expert advice on this. I have placed a HTML textbox on my aspx form and converted it to run as a server control. At some point in my code I assign a value to this textbox using Javascript with 'Form1.TextBox1.Value = "Hello"' But when I wa...more >>

Nested datagrid/list/repeaters
Posted by Paul at 3/3/2004 6:58:55 PM
I want to be able to nest a repeater in a datagrid or datalist. I'm not unduly bothered about a master/child relationship as such as there'll at this stage only ever be one record on the page, but that record can be allocated to a number of categories (in fact two sets of categories, so I...more >>

help: keyDown on textBox?
Posted by hb at 3/3/2004 6:28:15 PM
Hi, I have an asp:textBox and an asp:button. After user input data into textbox and hit "Enter" key, I want the event behind the button to be executed. Would you please tell me how I can do this? Thank hb ...more >>

Generating Javascript from a button in Code-behind
Posted by Nevyn Twyll at 3/3/2004 6:09:51 PM
I have a web form, with c# code-behind. I have a listbox on the form, bound to a dataset. I want to have 2 buttons/hyperlinks/etc. beside the listbox. When they are clicked, I want to launch a popup form, passing it some information from the listbox (record id) and the linked information. If ...more >>

point to pixel conversion
Posted by Kirk Graves at 3/3/2004 5:54:41 PM
I have an html table that I am filling with data from the database. when I put the text in the table, I only display the number of characters that will fit based on the size of the cell. I know the width of the cell, I can get the length of the text, but the cell.width is in pixels, while the...more >>

aspx pages still do not run
Posted by djeddiej at 3/3/2004 5:51:07 PM
Hello I am running IIS 5.1 on Win XP Pro with all the latest patches and updates. I have installed the .NET framework and attempted to run a simple .aspx page from the sample microsoft .net tutorials. The page contains a form with a text field that is populated with a value once the form is submi...more >>

Loop Through a recordset
Posted by Steven K at 3/3/2004 5:32:10 PM
Hello, I am trying to get data from a stored procedure and then loop through that recordset to fill a ListBox (ASP code). However, I am getting the error: 'EOF' is not a member of 'System.Data.OleDb.OleDbDataAdapter'. Any help with this wold be appreciated. 'Populate the BusinessUnit com...more >>

Session basic question
Posted by Blue Man at 3/3/2004 5:29:18 PM
Is it safe and fast enough using sessions in an application? for example for checking users level or anything. as far as i know in asp-classic it causes compile speed reduction on webserver. is it the same in asp.net also`? ...more >>

HTA's
Posted by Herb Stull at 3/3/2004 5:16:44 PM
Hello All, A response I received from a recent post suggested that I develop an HTA to enable my ASP.NET application to run in full screen mode in the user's browser. I've played with this a bit and am having no luck getting it to work. Can anyone point me to sample code that would open my ...more >>

overlapping datagrids
Posted by mark at 3/3/2004 5:16:40 PM
i have datagrids set out as such on a webform with vb behind datagrid1 datagrid2 datagrid3 datagrid4 datagrid5 datagrid6 datagrid7 when the datagrids are populated they overlap each other - is there any way to stop them from overlapping cheers mark ...more >>

ASP.Net Session disabled after installing SharePoint Service and BizTalk Server 2004
Posted by Wayne Shen at 3/3/2004 5:06:05 PM
Hi Guys Today I installed Windows SharePoint Service and BizTalk Server 2004, then I found that my previous web application does not work. So I debugged the application, and the ASP.Net Session is disabled (HttpContext.Current.Session is null) Did any of you experience this same problem? How c...more >>

check for specific repeater value - can it be done?
Posted by Bob H at 3/3/2004 5:04:29 PM
Hi, I've a data repeater on a form that gets populated from an SP. In the repeater, I've a ItemTemplate row that outputs the field... <td colspan="1"> <%# DataBinder.Eval(Container.DataItem, "FieldValue")%> </td> ....Is there anyway to check the values in this Repeater field as it gets ...more >>

keep value selected in dropdownlist
Posted by DC Gringo at 3/3/2004 4:50:40 PM
I have a dropdownlist that, upon form submission, I'd like to maintain the selected value when I get my result...how do I do that? <asp:dropdownlist Font-Size="8" id="ddlCommunities" runat="server" Width="100"></asp:dropdownlist> Sub RunReport_OnClick(sender As Object, e As System.EventArg...more >>

makeing a page visible to everyone without needing to login
Posted by Srinivas at 3/3/2004 4:22:13 PM
Hi, I have a folder called 'secure' containing many pages and these can be accessed after going through forms authentication. But I want one of the files appPage.aspx to be visible to everyone. I am using following code in web.config located in 'secure' folder. <?xml version="1.0" encodin...more >>

error on simple query filter statement onClick event
Posted by DC Gringo at 3/3/2004 4:16:04 PM
I'm getting the following error when running and if-then upon submitting a dropdownlist value. HELP?! Exception Details: System.FormatException: Input string was not in a correct format. Sub RunReport_OnClick(sender As Object, e As System.EventArgs) If ddlCommunities.SelectedItem.Value ...more >>

Cannot create Web Application
Posted by Kevin L at 3/3/2004 4:09:22 PM
I have XP Pro and IIS is installed. I have tried the REGIIS - i and that did not fix this. I am trying to create a new (and first) ASP.NET Web Application. After choosing New project in IDE and naming it, I click OK and receive the following message: The Web server reported the followin...more >>

printing
Posted by mark at 3/3/2004 3:51:19 PM
i have a report page that opens a page with a datagrid and two buttons one called print one called exit - when i print i dont want the buttons to show - i got round it by setting the buttons to visible = false - but they dont come back after printing - even if i set the buttons back to visible ...more >>

Not Getting perfect path
Posted by Hitesh Panchal at 3/3/2004 3:36:13 PM
Hi, I have a ASP.NET application. IN which i have included one xml file. Now to getting values from that XML file if I am going through Load Method of XMLDOC it is fetching file from "C:\WINDOWS\SYSTEM32". I want to set in such a way that it can fetch my XML file. How can i set the path of...more >>

Dropdownlist SelectedIndexChange is firing twice!!
Posted by Jay at 3/3/2004 3:35:25 PM
I have dropdownlist in a usercontrol and selectedindexchange event captured. But Iam seeing fire twice. Thanks. ...more >>

First access to site displays MS junk, why?
Posted by Peter Row at 3/3/2004 3:11:49 PM
Hi, I have a website run by a VB.NET DLL that implements IHttpHandler and IHttpModule. Although I have 1 ASPX file that automatically logs the user in as a guest. The problem I have is that the first time the site is accessed after a reboot/IISreset then the following is displayed: ttp:...more >>

ODBC Problems
Posted by Steve Bishop at 3/3/2004 2:50:05 PM
I'm trying to test my ODBC connection. I need to use ODBC because of the application restrictions. As per Microsoft directions for the known ODBC error, I created a bin folder in my application directory. I'm assuming my application directory is where I have my .ASPX page, right? I'm getting the...more >>

ListItem & Attributes
Posted by Pierre at 3/3/2004 2:21:30 PM
Hi! I have a DropDownList control and depending on the status of the user I want to colorize his username listed in the dropdown. I tried it this way; .... ListItem item = new ListItem("id", "username"); item.Attributes.CssStyle.Add("COLOR", "#FF0000"); dropDown.Items.Add(item); .... ...more >>

Where to add the Include File
Posted by Steven K at 3/3/2004 2:18:18 PM
Hello, I have an include file (../../Connections/pricex.inc). That I use to declare my variables and build my connection string. I tried using the following, but got the error: Compiler Error Message: BC30188: Declaration expected. If I move "Response.WriteFile" statement into the sub bloc...more >>

Access Event log on remote computer
Posted by Mark at 3/3/2004 1:46:09 PM
Can I access Event log of a remote computer from an aspx page (Server side) Thanks...more >>

Can I dynamically load html page into my aspx page?
Posted by Earl Teigrob at 3/3/2004 1:24:46 PM
I am creating an application where I would like to give web designers the ablity to create a static html page and dyanamically load it into my application(exactly like loading a user control into a page). Is there an easy way to do this or do I need to stream the html into my application and par...more >>

Grid Alternative - Issues
Posted by Monika Mesik at 3/3/2004 12:42:26 PM
I have made some progress toward creating very straight-forward UI for editing a non-hierarchical list of data without implementing a DataGrid. The UI needs to present the data for editing in textboxes, drop-down lists, check boxes, and radio buttons. ASP.NET Validation controls need to be part ...more >>

Problem calling event handler in web form (C#)
Posted by Andrew Banks at 3/3/2004 12:37:59 PM
I've got the following code as part of a C# web form but am having problems calling a command. I create a dataset and put some data on the screen. This works fine. (relevant sample below) foreach (DataRow row in ds.Tables["Orders"].Rows) { detailsbtn = new LinkButton(); //Assign a un...more >>

Simple if-then error in onClick
Posted by DC Gringo at 3/3/2004 12:22:53 PM
I'm getting the following error when running and if-then upon submitting a dropdownlist value. HELP?! Exception Details: System.FormatException: Input string was not in a correct format. Sub RunReport_OnClick(sender As Object, e As System.EventArgs) If ddlCommunities.SelectedItem.Value ...more >>

Asynchronous Socket Server Advice
Posted by colinramsay NO[at]SPAM blueyonder.co.uk at 3/3/2004 12:16:24 PM
I'm writing a little console socket server but I'm having some difficulty. Can I ask your advice - where is the best place to get some help on that topic? It would be nice if some people who knew what they were doing could take a look at my code and tell me where and why I'm going wrong. Any ...more >>

Problema de Configuración!
Posted by Juan at 3/3/2004 12:14:41 PM
Hola Grupo! Tengo el siguiente problema. Quiero desarrollar una aplicación ASP.NET con Visual Studio.NET y resulta que cuando quiero crear una me aparece el siguiente mensaje **************************************************************************** ***************************************...more >>

aspnet._wp.exe could not be started
Posted by Rob Oldfield at 3/3/2004 12:07:55 PM
I'm attempting to use a web app that has been set up by a third party company. When I try to open their aspx pages I'm getting... Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in ...more >>

Web.config problem I think in doing a Copy Project in vs.net2003
Posted by Trint Smith at 3/3/2004 12:00:23 PM
I was able to 'copy project' to my web service a couple of months ago...I changed the web.config and can't remember what I changed and now get an error when doing a 'copy project' now: 'Unable to open Web project '/'. Not Found This happens after I select: 'copy project' web access method: front...more >>

Calendar control weirdness - one post behind?
Posted by D. Shane Fowlkes at 3/3/2004 11:43:44 AM
http://www.drumpub.com/caltest.aspx Check the test page at the above link. Could someone please tell me why I'm capturing the calendar's SelectedDate "one post behind"? The source code is on the page too. Thanks! Shane ...more >>

dropdownlist initial value
Posted by DC Gringo at 3/3/2004 11:37:43 AM
I have a dropdownlist that is bound to a recordset. The default selected item has turned out to be the first record in my table. I need a row that has value = 0 and text showing "--ALL". How can I do this? <asp:dropdownlist id="Provinces" runat="server" Font-Size="8pt" Width="100px"></asp...more >>

Max number of Sessions
Posted by Yama at 3/3/2004 11:31:09 AM
Hello What is the maximum permissible use of Sessions in ASP.NET Say I had 50 sessions I would like to use for approximately 5,000 user tops all using the apps at the same time it would create 25,000 sessions on the server side. Is that okay Yama...more >>

Stored Procedure call
Posted by Steven K at 3/3/2004 11:18:38 AM
Hello, With ASP, I could indicate that a variable was a stored procedure with parameters by using "adcmdStoredProc", and set the data variable with one line using the Execute command (cnnSearch is the connection): Set spSearch = cnnSearch.Execute("sp_web_Search " & "'FindRegionSubRegion','...more >>

Grid Layout Issue
Posted by Jerry Camel at 3/3/2004 11:17:26 AM
I'm using Grid Layout basically because it was the default, but I've got the whole page designed and changing to Flow layout would be a royal pain, I think... But now, I find I need to position a label on the far right of the screen. Is there a way to that in Grid layout so that it's essentiall...more >>

Latest MDAC update
Posted by .NET Developer at 3/3/2004 11:03:04 AM
Does anyone has seen problems after installing the latest MDAC windows update? We installed MS03-003 (823718) and ran into problems. The connections to SQL server from ASP.NET not getting closed, connection pooling is not handled properly etc. Please let me know if you had similar problem or wor...more >>

How not cause validation on submit that are not...
Posted by Reza at 3/3/2004 11:01:07 AM
Hello I have cases where, submits are not caused by sever controls, and after the trip back from server, all the client validation controls indicate their error messege - which is miss leading for the user. To make it simple how do I make the property CauseValidation for ? to be false Thanks for...more >>

extracting unique strings from text file
Posted by bb NO[at]SPAM noclient.net at 3/3/2004 10:55:06 AM
Hello. New to ASP.NET and struggling on this one. I have a text file with a bunch of text in it. Throughout the file words followed by a ":" will appear. I need to pull every such string out and then display all unique values. I am able to read the file in, but am having trouble getting r...more >>

Bookmarks and database driven websites
Posted by Mark at 3/3/2004 10:53:22 AM
Hi, I have a website that is created dynamically from informaiton pulled from a SQL database. The page is shown by getting the page ID from the querystring and then retrieving the associated page text from the database and displaying this information inside an aspx template. e.g index....more >>

DataList editing
Posted by Etienne Tremblay at 3/3/2004 10:46:22 AM
Hi, I'm currently trying to implement editing in a simple Datalist displaying news on my site. I did everything the walkthrought of microsoft said to do, but it doesn't seem to work. Just for a matter of debugguing, I maintained a list of what event is called in a session variable becaus...more >>

Button text style like windows
Posted by Steffen Loringer at 3/3/2004 10:37:02 AM
Hi NG, how can I write text on my asp.net buttons in windows style? For example: 'File' but with an underlined 'F'. Thanks a lot Steffen ...more >>

Reading Select control from server side which was modified on the client side
Posted by shermian NO[at]SPAM yahoo.com at 3/3/2004 10:24:55 AM
Hi, I've got an html Select box on the client side for which I add the Options/items on the client side. The options are created dynamically through textbox and button controls on the same page. When I submit the page, I want to be able to read all the Options/items added to the select box. How...more >>

Getting Started
Posted by Dave Veeneman at 3/3/2004 10:21:21 AM
How do I upgrade IIS for the .Net Framework v. 1.1? I'm just getting started with ASP.Net. I use VS.Net 1.1 with C#. I have downloaded a reference app to study. When I opened it, VS.Net totld me I need to upgrade my web server (local IIS) for 1.1 of the framework. I've been looking in MSDN and...more >>

server.transfer and URL address - confused
Posted by Bob H at 3/3/2004 10:20:03 AM
Hi, I'm aware of the different ways to pass variables between ASP.Net pages. For pages that need to pass a variable, we're using the server.transfer method. For others, we're using repsonse.redirect. My understanding was that the server.transfer method doesn't update the URL address bar. Howev...more >>

Drop-Down List Justification?
Posted by George at 3/3/2004 10:15:40 AM
VS.NET 2002/VB Is there any way to right justify the items in a drop-down list? I have a list of fractions -- in 1/8 and 1/16 -- and they look kind of funky being left justified, especially since the 16's get wider and wider as you go down the list. I've tried padding the 1/8s with spaces ...more >>

query string encoding/decoding
Posted by Mark at 3/3/2004 10:06:05 AM
I've run a few simple tests looking at how query string encoding/decoding gets handled in asp.net, and it seems like the situation is even messier than it was in asp... Can't say I think much of the "improvements", but maybe someone here can point me in the right direction... First, it looks lik...more >>

How to specify virtual paths in C#?
Posted by John Holmes at 3/3/2004 9:57:28 AM
I'm trying to load an xslt file from my asp.net application directory and I'm not sure what path to use. I thought no path would give me that path, but it appears to give me the c:\windows\system32 path. Here's my code: XslTransform xslTran = new XslTransform(); xslTran.Load("file.xslt"); I...more >>

aspnet_wp.exe (PID: 6048) stopped unexpectedly
Posted by Nikhil Tayal at 3/3/2004 9:56:33 AM
I'm having a Web application build over asp.net. Everything was working fine till yesterday. But now if I browse to any asp.net hosted on my machine, I get this error in the event log: Event Type: Error Event Source: ASP.NET 1.1.4322.0 Event Category: None Event ID: 1000 Date: 3/3/2004 Ti...more >>

Moving physical path - best solution?
Posted by Paul at 3/3/2004 9:40:53 AM
Anybody know what is the best way to move a web project to another physical path? It seems loaded with issues that make this difficult. I am considering creating a new project in the new path and doing Add Item for all the items. Will that work? It's a bit klunky, no? ~Paul *** Sent vi...more >>

Access to the Request object in System.Web.UI.Page derivative...
Posted by Terry Mulvany at 3/3/2004 9:40:13 AM
namespace CIBWeb { public class BasePage : System.Web.UI.Page { public BasePage() { } protected override void OnInit(EventArgs e) { THIS NEXT LINE THROWS EXCEPTION ALSO, CANNOT USE HttpContext.Current.Request.QueryString["sc"] != string .Em...more >>

sorting grid
Posted by Nikhil Patel at 3/3/2004 9:32:21 AM
Hi all, I have written an ASP.Net form that displays a sortable grid. I works fine in Internet Explorer. But it gives me an error when I try to display it in 3rd party application. The error says something like "object expected" in the following line: <td nowrap="nowrap"><a href="javascript...more >>

aspnet_wp.exe hanging
Posted by Jason Hinsperger at 3/3/2004 9:31:05 AM
We have built an ADO.NET data provider which is causing a problem in aspnet applications, in the VS.NET development environment only The first time the aspnet application is run, everything works fine. However, when the browser is closed (ie. the application is ended) in order to make changes and ...more >>

Dynamically changing server control defaults
Posted by Scott C. at 3/3/2004 9:26:11 AM
We are building a web application that allow's the users to change the defaults of a their pages. Here is a list of what I've done so far 1.) Return the control names, control properties and default values back from a database 2.) I load each record into an objec 3.) I then load all of these obj...more >>

Need help with Virtual Directory
Posted by Michael Rodriguez at 3/3/2004 9:21:49 AM
I bought the book ADO.NET Step by Step and it created some virtual directories for me when I installed the practice files. Somehow, it created a virtual directory, "Chapter 12", that exists both in "C:\Inetpub\wwwroot\adonetsbs\Chapter 12" and in "C:\adonetsbs\Chapter 12". Any changes I make i...more >>

casting to type
Posted by Ron Vecchi at 3/3/2004 9:13:59 AM
If a have a funtion: public object MyFCT(string searchOn, System.Type typ){ string foundval; ///foundval is a string pulled from a database /// How can I cast the string into the supplied System.Type typ /// and then return the object? /// Thanks } ...more >>

Decimal point is replaced with comma
Posted by Rasool at 3/3/2004 8:59:08 AM
A numeric field is shown differently on the Test and Production env. For example 3.5 is shown as 3,5. Originally we thought this has something to do with Regional Option, however both server have the same setting. Both server have the same Web.Config file. I don't know what else could cause this....more >>

Memory Usage and Garbage Collection
Posted by andrew NO[at]SPAM adowning.freeserve.co.uk at 3/3/2004 8:46:27 AM
Along with many others I've noticed the large amount of memory that can be taken up by the aspnet_wp.exe. I've found that I can better control and limit this memory consumption by including a GC.Collect() in the Application_EndRequest() event handler in the Global.asax file. Whilst this appear...more >>

Determine size of the data passed from server to client
Posted by davidf NO[at]SPAM dayspring.com at 3/3/2004 8:44:51 AM
Greetings, We've recently been working with our site pages' viewstate, turning off unnecessesary viestate items to reduce page size for faster loading. We are also experimenting with using less tables etc. What is the best way to determine the amount of data passed from server to client in...more >>

Retrieving HTML Tags position
Posted by Angel at 3/3/2004 7:46:09 AM
How can you retrieve in VB.NET the position and its height and width of an html tag, where the tag does not have these settings specified in its source. In other words the html tag was positioned using the flow of the page not by absolute positioning Thanks...more >>

Help with share path on server...
Posted by Trint Smith at 3/3/2004 7:41:02 AM
If my local path for doing 'streamwrite' is 'd:\inetput\wwwroot\webproject1', when I upload it to the host server and my webprojects root is 'e:\web\tribidzcom0\htdocs' how would I put that in this so that it writes temp files to the servers drive?: Dim sw As StreamWriter sw = New StreamWriter(...more >>

caching?
Posted by jbh at 3/3/2004 6:51:07 AM
When I make changes to an aspx.vb file in an application running on our web server the change isn't effected, nor does it appear in "view source". However when I open the file on the web server I see the change that I made Why aren't changes made to the code-behind in a running application taking ...more >>

WebControl vs. HtmlControl
Posted by Victor at 3/3/2004 6:41:08 AM
Hi I read an article on MSDN called "Deciding When to Use the DataGrid, DataList or Repeater". It describes and compares the three web controls from the usability and performance stand point. The idea of the article is that DataGrid is the easiest to use, but has the worse performance and the Repea...more >>

How to prevent ASP.Application to expire
Posted by pveechoud NO[at]SPAM vxcompany.com at 3/3/2004 5:32:03 AM
To speed up my asp.net application I have stored data in the application cache. The problem is that when all sessions are expired the Appication will also expire after some time and so lose my cache. Is there a configurationsetting (IIS or ASP.Net) where I can set the expirationtime of the ap...more >>

User Defined Name Space ERROR
Posted by reddyvsk NO[at]SPAM yahoo.com at 3/3/2004 5:11:45 AM
i created a class1.vb, created a class1.dll. now i moved it to \bin directory. and to webconfig file i added <compilation> <add assembley="*"/> </compilation> Now i am trying to use it it in test.aspx <%@ Import Namespace="HelloWorld" %> ERROR GOES LIKE THIS Compiler Error Message: B...more >>

HTML POST problem
Posted by yhalmoe NO[at]SPAM yahoo.no at 3/3/2004 3:09:27 AM
I am creating som pages in visual basic.NET. In one page I have a list of items, which are collected from a database. Now, for each list item, I was thinking of adding a button that the user can click on, and be sent to a new page(i.e. HTML post). And on the new page I will need to know which it...more >>

Safari Browser compatible with dotnet
Posted by hemlata_shah NO[at]SPAM yahoo.com at 3/3/2004 3:01:29 AM
Hi All does ASP.net supports Safari Browser... Please reply asap... Regards Hemlata Shah...more >>

submit + enter button - same issue but different problem
Posted by Girish at 3/3/2004 2:15:08 AM
I have TWO submit buttons of type IMAGE on my asp form. This renders as <input type="image">. I need to be able to eble the ENTER button for both buttons. Yes, I know that for the input type image, the submit happens automatically to the server. Heres my problem: I have two event handlers f...more >>

aspnet_wp.exe stopped unexpectedly
Posted by r_ganesh76 NO[at]SPAM hotmail.com at 3/3/2004 1:12:56 AM
I get the above message when run the dll in release mode. However, it doesnt come when compiled in the debug mode. Is the error due to some stack overflow?? I get this error when trying to execute the database.transfer method of the SQLDMO. Can anyone tell a good solution to this problem?? ...more >>

Script in body
Posted by Joy at 3/3/2004 12:46:06 AM
Hi all I know that I can use the following code to add some script-code to a button button.Attributes("onclick") = myscript I like to do the same for the page itself as ("onload") = "myjavascriptfunction(); Which element do I need to use? me.Attributes("onload") is not possible Thanks a lo ...more >>


DevelopmentNow Blog