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 > july 2003 > threads for tuesday july 1

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

Updating web.config on the fly
Posted by Fiona at 7/1/2003 10:42:51 PM
Can anyone tell me whether it is possible to update the web.config file for the current application while the app is running (from the app itself)? I am interested in creating an "admin" page so that anyone in my team (who may not have programming experience) can very easily modify various...more >>


Usercontrol interacting with it's parent page?
Posted by John at 7/1/2003 10:02:51 PM
Hi all, Is it possible for a usercontrol to call a public method of a page it is contained within? If so, how? Regards John. ...more >>

Equating a String & Integer Variable
Posted by Roger Lord at 7/1/2003 9:18:03 PM
I am constructing a string in my program and then trying to use it to get the value of an integer variable whose label looks like that string. I can't figure out how to do it. For example: Dim aXYZ As Integer = 5 Dim myString As String Dim myResults As Integer myString = "aXYZ" myResul...more >>

ASPNET user account
Posted by Joseph D. DeJohn at 7/1/2003 8:52:08 PM
It says web applications run using the ASPNET user account. The SQL database administrator will have to set up this account and grant it permissions before your Web application will have access to a SQL database. Does anyone know how to do this? ...more >>

How to get data from a website?
Posted by yma at 7/1/2003 8:40:29 PM
Hi All, I need to get the interest rate data from a bank's website. What is the good way to do it? Thank you. Chris ...more >>

PLEASE - Session Variables OR Response.Write querystring to target frame?
Posted by KathyBurke40 NO[at]SPAM attbi.com at 7/1/2003 7:27:09 PM
Hi, I'm doing an asp.net app (first one) and NEED to use frames (so please don't tell me not to!). I'm loading a mainframe.htm with two aspx files (for example: left.aspx, right.asp). QUESTION: I need to pass variables but can't figure out how to do it with a Response.Write?variables command i...more >>

could not load type global
Posted by bob at 7/1/2003 7:20:25 PM
I have a web app that I run on my local machine. I copied it into the production server of my client and when I try to start it I get the message: could not load type global line 1 I have rebuilt the app (using build|build solution) and copied over everything from my machine to the s...more >>

Loading User controls
Posted by John at 7/1/2003 7:09:24 PM
Hi all, I'm having a little problem understanding the concepts of dynamically loading/unloading user conrols: 1. If I have a couple of usercontrols embedded within a few tables cells on my page, setting the usercontrol's visible to false still fires the Page_Load event. Isn't this unnecessa...more >>



DataGrid questions (urgent)
Posted by Vincent at 7/1/2003 6:57:55 PM
1. In the edit mode of the datagrid, can I restrict the max. length of data entry the editing textbox ? eg in my database table, the length of the field is 10, I want to make sure that user will not enter data with length more than 10 2. I have made a template column of checkbox in data...more >>

ODBC has error but no error message displayed
Posted by rbrown NO[at]SPAM edium.com at 7/1/2003 6:40:00 PM
Hi All.. This is a strange one that I hope someone has come across. I have an asp.net application that needs to access a flat file databse via ODBC. I have setup the OBDC DSN and tested it via EXCEL. It works perfect. I have setup a Windows 2000 server with the application and DSn and it ...more >>

Using the MailTo: how can I include the page in body of the email
Posted by Mike John at 7/1/2003 5:49:16 PM
how can i include the current page in the body of the email. I was only to put text. Syntax: <html> <body> <input type ="Button" onclick= "eman()"> <SCRIPT LANGUAGE=JAVASCRIPT> function eman() { var e_add= 'RiadeAsleh@hotmail.com'; var subj= 'hellow'; var e...more >>

Contacts database
Posted by Joseph D. DeJohn at 7/1/2003 5:41:55 PM
I need to know how to install the Contacts database in Chapter 5 of the MCAD/MCSD. I'm assuming you run the install script in the folder. All the book says is install the Contacts SQL database??? ...more >>

DataBinding with Array
Posted by Christof Nordiek at 7/1/2003 5:39:35 PM
I've got following problem: I need to present an Array of strings and want to Present it in an DataRepeater. the Code is like this (in C#): string[] NameList = SomeClass.GetNameList(); MyRepeater.DataSource = NameList; Now I don't know, how I con declare the databinding, it should be somet...more >>

Can use both VB and Javascript in same asp.net page???
Posted by KathyBurke40 NO[at]SPAM attbi.com at 7/1/2003 5:27:21 PM
I'm new to asp.net, and read somewhere that you can NOT use both VB and Javascript in an asp.net page. However, I used javascript in an on click event and it works. My question: I'm only running in vs.net debug mode...will this cause me a problem when I actually publish the app? Thanks. Ka...more >>

Problem not solved, ask for help again: Cannot open or create any web applicatoin!
Posted by CM at 7/1/2003 5:19:12 PM
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any web project even cannot create a new one. The message for create a new web project is: (Open an old...more >>

Loggin all http Request
Posted by clécio at 7/1/2003 5:13:54 PM
hi folks! How can i log all request in my web application? But i wanted something that not consume the time of the request (using treads, for ex)! I tried to use the ASYNCBEGINREQUEST , but it doesn´t work! Any example will be welcome! tks Clécio ...more >>

Need help with LoadControl
Posted by Kurt at 7/1/2003 5:01:04 PM
When I try to use LoadControl I get the error message below. Any help would be great. Kurt Control '_ctl0_Classification' of type 'TextBox' must be placed inside a form tag with runat=server ...more >>

Sorting grid from collection
Posted by Jim Owen at 7/1/2003 4:45:40 PM
I'm binding a DataGrid to a class which I've inherited from CollectionBase. This works like a dream, simply by going: MyGrid.DataSource = MyCollectionClass; MyGrid.DataBind; However, I'm used to binding DataGrids to a DataView and then setting the DataView's Sort property to a sort string. Ho...more >>

SOAP Client creation in ASP.NET using MS SOAP Toolkit
Posted by Sham Ramakrishnan at 7/1/2003 4:42:23 PM
how would I create a SOAP client in ASP.Net? The following code just works fine in VB: Dim lobjSOAP As New MSSOAPLib30.SoapClient30 lobjSOAP.ClientProperty("ServerHTTPRequest") = True Call lobjSOAP.MSSoapInit("http://services.xmethods.net/soap/urn:xmethods-Currency Exchange.wsdl"...more >>

How to show monetary values in a DataGrid
Posted by Henrique Berenguel at 7/1/2003 4:31:49 PM
Hello folks. I have a DataGrid in a Web Form. I´d like to show numeric columns in Money format US$ 10,000.98. However, when I fill the DataGrid from a SqlCommand, it fill in the DataGrid like this: 1000098. How do I do that? Thanks ...more >>

access to system registry denied
Posted by Andrea Mondello at 7/1/2003 4:21:05 PM
Hi, I have a problem with the method "EventLog.CreateEventSource" because I = received one error message (access to system registry denied). I changed the security = on the folder WINNT\system32\config to full control for everyone but I = had no success. Thanks for your answer....more >>

Page Title
Posted by Matt Tapia at 7/1/2003 3:56:24 PM
Does anyone know how change the HTML Page title text without using a code-behind page? I would like to do this using front side code between <script> tags. thanks! ...more >>

DropDownList control in DataGrid
Posted by pete at 7/1/2003 3:46:30 PM
Hello all, I'l displaying a dropdownlist inside a datagrid. The problem comes when I try to get the values the user chose on postback. If I rebind the datagrid, the values of the dropdownlist are all set back to their original values. If I do not rebind the datagrid, I don't seem to have ac...more >>

Which control had focus before postback?
Posted by Marco Liedekerken at 7/1/2003 3:34:24 PM
Hi, Is it possible to retrieve the control that had the focus when the page was posted back? Because the focus is lost when a postback occurs I want to manually set the focus to the control that previously had the focus (smartnavigation doesn't do the trick). Thanks, Marco ...more >>

Question: Response.write (squiggly line)
Posted by VB Programmer at 7/1/2003 3:13:10 PM
I can use response.write in any one of my webforms. But when I try to use it in a Module's public sub there is a squiggly blue line under response. Hovering over it says 'Name response is not declared.' Do I have to import something? Any ideas? Thanks in advance. ...more >>

Event ID 1003 aspnet_wp.exe
Posted by Frank Siegmann at 7/1/2003 3:00:31 PM
Hallo, i permanently get the error 1003 "aspnet_wp.exe was recycled because it was suspected to be in a dead logged state ....". Any hints how a can solve this problem . Frank Siegmann ...more >>

RadioButtonList Question -- Probably Simple
Posted by Ron at 7/1/2003 2:31:58 PM
I want to add radio buttons to a datagrid. The datagrid is displaying 5-10 items, and I want the user to select the desired item via radiobutton. As it is, the user can select as many radiobuttons as they want, which is obviously not what I want. I want to limit the user to being able to select ...more >>

omitting config values
Posted by Eric Tishkoff at 7/1/2003 2:22:35 PM
What values get used if certain items are omitted from the machine.config file? In particular, if <compilation> is commented out, what value will be used for numRecompilesBeforeAppRestart? Thanks, Eric...more >>

Format of LinkButton..?
Posted by Onur Bozkurt at 7/1/2003 2:14:49 PM
How can I make my linkbuttons color always blue even if they are visited or not, and make them underline in hover mode free from browser settings.. ...more >>

SQL and XML...
Posted by Raphaël Désalbres at 7/1/2003 2:10:37 PM
Hello, everyone, I would like to know if it is possible to execute SQL queries into an XML file, if so, could you send me an example.... Thanks, Raphaël Désalbres ...more >>

Removing a user control from within a placeholder
Posted by John at 7/1/2003 2:08:26 PM
Hi all, How do I go about removing a user control from within a placeholder control? The thing is I need to get the current usercontrol value from the place holder before removing it as the placeholder is used to contain multiple user controls. Regards John. ...more >>

refresh a page every so often
Posted by Laszlo Szijarto at 7/1/2003 2:03:02 PM
I want to refresh the text of a label box, say, every second. Is there a way to maintain some kind of persistent connection to the server and the codebehind in order to pull this off or am I forced to use some ugly client-side page-refresh scription? Thank you for any advice, Laszlo ...more >>

How to get rid of Page_ClientValidate() ?
Posted by Ante Perkovic at 7/1/2003 12:57:15 PM
Hi, I'm trying to make a client side validation in a datagrid. Here is what I did: in mypage.aspx, I put: <script language=javascript> function isItValid(){ // just testing the functionality if (document.Form1.txtIme.value != "ok"){ alert("!= OK") return false }else{ alert("OK"...more >>

IIS on Windows 2000 Pro and aspx pages
Posted by Patrick Nolan at 7/1/2003 12:19:55 PM
Hello, When I run my aspx pages with IIS on my own 2000 pro machine the pages display as if the page is a regular asp page. It seems to ignore my CodeBehind code. I can run the same page with IIS on my 2000 server machine and the page runs just like it is supposed to. Is there some file...more >>

Uploading large files
Posted by Phong Pham at 7/1/2003 11:52:22 AM
I'm creating a web page to upload files, but I'm having a problem uploading files larger than about 3.5 mb. Anything smaller than 3.5 mb is ok. If the file is larger, it doesn't generate an error, it just doesn't do anything. Can anyone show me how to fix that problem? I'm also trying to trap ...more >>

Help: Usercontrol - different behaviors based on parent
Posted by VB Programmer at 7/1/2003 11:23:46 AM
I have a usercontrol that is basically a webapp-wide menu (dropdownlists, etc...) Is there a way I can program a certain dropdownlist in the uc to act differently BASED on who is currently using the uc? ...more >>

DataGrid
Posted by Serdar Kalaycý at 7/1/2003 10:44:15 AM
I have a DataGrid, which I created two template columns, and I added TextBoxes to their Footers to allow the user add a new record to the database. I cannot access TextBoxs' values in the code. What can I do? Thanks Serdar KALAYCI -- ...more >>

Error line number
Posted by Sune Hansen at 7/1/2003 10:41:07 AM
Hi Newsgroup, A very short question: If have a try/catch structure. In the catch part I would like to get the line number where the exception has occured? Can I get this information and if so how? Regards, Sune ...more >>

Is it safe to use IWAM_<machine name> account for aspnet_wp.exe?
Posted by <.> at 7/1/2003 10:41:06 AM
This question references to KB articles: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315158 http://support.microsoft.com/default.aspx?scid=kb;EN-US;317012 I'm running Advanced Server 2000 as a domain controller with IIS 5 (I know I shouldn't be doing this - just a test machine). I ...more >>

base64 enc/dec problem
Posted by PCH at 7/1/2003 10:33:20 AM
I'm having a problem encoding a file (image) into base64, and then converting it back from base64 and saving it. I've tried several ways, but whenever i open the new image.. it is always corrupt. Here is the base coding I'm trying to get working Imports System.IO Dim fs As FileStream ...more >>

ASP.Net with Indexing Services returns zero results
Posted by don NO[at]SPAM cameronsoftware.com at 7/1/2003 10:18:38 AM
I am new to Indexing Services, have been researching the MS Site as well as web articles on DevHood, etc. I have set up a seperate catalog ("KnowledgeBase") on Win XP with a number of files. I am trying to use OLEDB through ADO to search results and serve them up onto an ASP.Net web page, yet I...more >>

Prevent Postback with ImageButton
Posted by Marcelo at 7/1/2003 10:07:56 AM
Hi, I have an ImageButton which, when clicked, redirects to another page. The problem is that page A (where the ImageButton is located) has lots of information, but when I click the button, it redraws the header of the table, which we'd like not to happen. My question is: Is there any way of ...more >>

Regular Expressions
Posted by jon3825 NO[at]SPAM hotmail.com at 7/1/2003 10:00:44 AM
Given an xml string s that looks like: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE foo PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN http://www.goo.com/xml_dtds/zoo.dtd"> <xxx version="1.01"> <zzz>ggg</zzz> </xxx> How do you remove the stuff within a <!DOCTYPE ... > tag...more >>

Injecting code into the <head></head> section
Posted by Brian W at 7/1/2003 9:40:11 AM
Hi All, I have a web user control that, among other things, provides Print this page, and Email this page functionality I have this script that is to execute on the click of the asp:hyperlinks I have a function in a <SCRIPT> block that I want in the <head></head> section of the page. Unfort...more >>

deploying the web application
Posted by Tanu at 7/1/2003 8:17:23 AM
Hi, I am using visual studio .net for developing and deploying the web application. My application is running perfectly on my system. I uploaded the msi, setup.ini and setup.exe files on the target computer and when I am executing the setup.exe I am getting the error :- The loader d...more >>

variable scope in c#
Posted by Mike P at 7/1/2003 7:48:11 AM
I'm calling this procedure from a custom validator OnServerValidate event. I keep getting the error : Use of unassigned local variable 'DateFrom' I'm new to c# so I'm not really sure about the syntax I'm using. But it seems the problem is that the DateFrom and DateTo values get lost somew...more >>

cannot access user control properties within a webform code-behind
Posted by adiel_g NO[at]SPAM hotmail.com at 7/1/2003 6:37:52 AM
Hello, I am trying to access the properties and methods from a user control within the code-behind file for a webform but I am receiving the message: Name 'MenuBar1' is not declared It does not recognize the user control in the code behind... Here is the code for the user control: MenuBa...more >>

Object Access
Posted by Robert at 7/1/2003 6:19:43 AM
Does anyone know a way to access an object and its functions (which is generated on one aspx page A) from aspx page B ??? Rob...more >>

Page_Close Event
Posted by Robert at 7/1/2003 6:16:57 AM
Is there any event that is started if the aspx-Page in the IE is closed. I need it to terminate some threads. Thanks Robert...more >>

DataList control
Posted by Paul at 7/1/2003 4:26:11 AM
I don't understand how to test values inside a datalist control. Example, where you're writing the value <%# DataBinder.Eval(Container.DataItem, "AdminLevel") %> Ideally, I'd like to alter output based on value this, i.e. AdminLevel = 0 show this AdminLevel = 1 show this Does anyone have...more >>

Placeholder Question
Posted by trinitypete at 7/1/2003 3:28:42 AM
Hi all, I have a placeholder control on an ASPX page. I dynamically add a button control to the placeholder from code - all is well with the world. Both the place holder and control have viewstate enabled, but on post back the control disappears from the placeholder. Am I missing someth...more >>

Web email
Posted by Kris at 7/1/2003 2:45:30 AM
We have a POP3 server running. We now want to implement a Web Based interface, so they can easily read their emails wherever they are. The problem is however how i design this. Am i working directly to the mail store (i.e c:\inetpub\mailroot\...), or do i push the emails from the mail stor...more >>

Unable to connect to Access database - Not a valid account name or password.
Posted by SSP at 7/1/2003 2:10:06 AM
Hi All, Sorry for cross posting, but I am not sure where the problem is. Problem: I am not able to connect to any of my Access databases using "Microsoft Jet 4.0 OLE DB Provider". I had no problems before but since last Saturday, I've been getting a "Not a valid account name or password" e...more >>

Applicaton on Handhelp using ASP.NET
Posted by Ashish Gupta at 7/1/2003 2:03:00 AM
Hi All, We are developing a web based application using ASP.NET and C#. Now we have got a requirement in which one of our existing screen needs to be function on one hand held device which is on Windows CE platform. (1) Can our existing screen be views from windows CE based device (assum...more >>


DevelopmentNow Blog