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 > august 2003 > threads for thursday august 21

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

Paths like this... how to change?
Posted by Arjen at 8/21/2003 11:03:40 PM
Hello, I have a webcontrol that have to change this path: ~/Image/NotAvailable.gif For the function System.Drawing.Image.FromFile(). I can not use Server.MapPath() Are there other options? Thanks! ...more >>

another easy one.
Posted by Matt M at 8/21/2003 9:29:26 PM
I'm learning today. So I have a bound datagrid with edit items in it. I've read that in order to retrieve the values for those edit items (textboxes etc) I can only bind the grid when NOT postBack. i.e. private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) {...more >>

How to use assemblies in VBScript
Posted by Mike MS at 8/21/2003 9:07:37 PM
Help please I want to use an assembly (dll) in a vbscript asp.net page. The assembly gets a string form a XML Web Service and I want to write the string to the Document object like Document.write(myobjectnet.getstringfromxmlweb). Do I need to export my assembly to COM and then use CREATE...more >>

Help me
Posted by BB at 8/21/2003 8:26:34 PM
Would someone enlighten me how to do something like this with vb.net? http://www.speedysigns.com/custom/menu.asp?type=SIGN&size=4&color=16777215 I need to know for where beginning Thanks Boris ...more >>

Please help this newbie with simple problem
Posted by Richard Fagen at 8/21/2003 7:54:38 PM
Hi Everyone, I'm new to DotNet and I'm trying to get ASPX pages to work but I'm having problems. I suspect I haven't configured IIS or DotNet frameworks properly. I can open static pages (html) but dynamic pages are causing me problems. Here's my configuration: 1) local PC running XP ...more >>

Setting UserControls properties at Runtime
Posted by SamIAm at 8/21/2003 7:06:27 PM
I have a UserControl called "MyControl" The content it delivers is varied my a parameter: "LanguageID" <uc1:MyControl id="MainNavigationControl" runat="server" LanguageID="<% What do I do here%>"></uc1:MyControl > How do I set the property at run time. I have tried loading the control using...more >>

Viewstate
Posted by Carlos at 8/21/2003 6:04:28 PM
Hi, I would like to know if exist a easy way to do: 1 - fill up a web form after that, navigate to other page and return to the original page. when i do that the values that i typed are lost ! i want to know how can i preserve this information in a easy way !! I can use a view state ...more >>

post windowsupdate VS.net problems
Posted by mbwalmsley NO[at]SPAM hotmail.com at 8/21/2003 5:52:47 PM
hi after installing all (yes, official) patches to my windows2003 server OS, Visual Studio seems broken. symptoms; 1. there is no longer a build menu, and ctrl+shift+b does not compile my files. 2. outlining does not work anymore (expanding and collapsing of codeblocks). also I get...more >>



Virus-Scanning uploaded files uploaded?
Posted by matt NO[at]SPAM ico.com.au at 8/21/2003 5:45:40 PM
Hi, I'm uploading files from a website and storing them as BLOB's in SQL. Any idea how to scan the binary stream before persisting it to the database? The only virus scanning solution i've come accross so far is to use the Norton command line virus scanner, but does anyone know of any anti-...more >>

Is there a way to get a record count from a returned dataset?
Posted by Davef at 8/21/2003 5:23:33 PM
Dim dstSalesList As DataSet -- ______________________ David Fetrow HelixPoint LLC. http://www.helixpoint.com davef@helixpoint.com Interested in Affordable Email Marketing? Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp If you are interested in becoming a Res...more >>

is there any way to do this?
Posted by Will at 8/21/2003 4:48:02 PM
I am wondering if there is any way to include a namespace or use a class I've written in a code-behind page, without: compiling into an assembly file (.dll) OR placing all of the namespace/class code in the code-behind page as well....more >>

DATA ACCESS COMPONENT (OBJECT ORIENTED)
Posted by DRU at 8/21/2003 4:38:13 PM
Hi People I have a design issue I have atleast 6 to 7 forms whose main functionality is to add a new record , delete a record and update records zipcodeform -- front end form variables( zipcode.text , zipstate.text) citycodeform-- front end form variables(citycode.text , citynam...more >>

Can you capture the OS name of a client pc?
Posted by Mark at 8/21/2003 4:32:36 PM
Is there a way to capture the operating system (Mac v. Windows) being used by a client PC viewing our ASP.NET web site? Thanks in advance! Mark ...more >>

controlling page characteristics
Posted by gb at 8/21/2003 4:29:33 PM
Now that I have figured out how to display a page in a new browser window from the server (target="_blank"), is there a way to make that new browser window a certain size and with no toolbars, url line, etc. Just as close to a message box as I can? I used to do this with clinet side javascript ...more >>

Checking For Null DB Fields
Posted by Troy at 8/21/2003 4:27:39 PM
After binding my data to the datalist I have created this function. I am recieving an error: BC30289: Statement cannot appear within a method body. End of method assumed. Does anyone have any clue what is going on here? --------------------------------------------- Function cnCustBullet15(...more >>

Session and CSS
Posted by Filip at 8/21/2003 4:05:31 PM
Hi, Just started with ASP.NET and C# so I'm testing things I currently use in standard ASP. I have a login page which talks to a validation page via XMLHTTP (implemented in JavaScript on the client side) Based on the response I know if the user sucessfuly logged in or not. The validation page a...more >>

to recompile VB code with .NET SDK
Posted by vgv888 at 8/21/2003 3:40:11 PM
How can I recompile ActiveX dll from VisualBasic6 code with Visual Studio.NET? Can I mix VB6 sources with C#.NET? ...more >>

How to prevent Listbox on WebForm scrolling during postback
Posted by Tom Wild at 8/21/2003 3:26:53 PM
Hi I have a listbox on a webform which has Autopostback set to true. When the user selects an item in the listbox and the form reloads, the listbox scrolls to put the selected item as high up as possible. Is there any way to turn off this behaviour? Thanks Tom ...more >>

Valadating Check Boxes.. Possible?
Posted by Michelle A. at 8/21/2003 3:23:03 PM
I have a 4 page form. First page has a series of check boxes of different "opportunities" to select from. These check boxes are optional but they have to at least select one (or fill in the other text box) before they can go on to step two. I tried to add a required field validate to this, ...more >>

Web Form Designer Generated Code - Get Me Outta Here!! :-)
Posted by Leeor Geva at 8/21/2003 3:22:41 PM
Hey guys, how do I make a control PUBLIC inside the Web Form Designer Generated Code? What happens is that I make it public, i Run the solution, it works perfectly fine. Then for some reason unknown to me, VS.Net flips it back from public to protected (This: Public WithEvents dcpMain As ...more >>

Webforms equivalent of a Message Box
Posted by Tom Wild at 8/21/2003 3:18:21 PM
Hi Is there an equivalent of the message box that can be used for webforms? When I try to use a normal message box I get the following error: "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or Default...more >>

Page.ErrorPage property
Posted by Michael at 8/21/2003 3:18:15 PM
Hello, I'm using Web Matrix and tried to add ErrorPage like this: <%@ Page Language="C#" Debug="true" ErrorPage="hello.aspx" %> I thought this would trap unhandled exceptions and redirects to hello.aspx; it does not. Help. Thanks. ...more >>

Organizing apps on a web site
Posted by Dean at 8/21/2003 3:15:01 PM
I have several ASP.NET applications that I want to put onto a new website. Each app is currently its own solutions with it's own global.asax, etc.. What is the right way to deploy multiple asp.net applications onto a single website? Does each one just go into a subordinate directory below the ...more >>

Renaming folder => Application restart
Posted by MisterG at 8/21/2003 3:02:25 PM
Hi, In my code, I rename a folder and then the asp.net application restarts ! So i've lost my session variables ... How is it possible for the application asp.net to restart when you rename a folder of the website ??? Thank you. Greg ...more >>

Creating Property Sheets in .Net
Posted by Reetu at 8/21/2003 2:35:01 PM
Hi All, I need to create a webform with three tabs(General, Groups and privillege) When user clicks on General tab, Generalform should be displayed. when user clicks on Groups tab GroupForm should be displayed. I wonder if there is any support provided in .Net to implement the above...more >>

Getting download prompt when viewing ASPX pages
Posted by Mark at 8/21/2003 2:31:23 PM
Hi, I recently had to install IIS onto my machine. With the webserver started (On the local machine) I went to view an ASP.net application that I had previously written. When I go to view the app via my browser I get prompted to download the default.aspx file. It's like the server is not able ...more >>

UserControl question
Posted by Will at 8/21/2003 2:00:48 PM
I have an aspx page, with an ascx user control on it and that ascx file has a code-behind page. I have an event handler for a submit button in the code behind and I want to check the text field of a textbox which is in the ascx user control. for some reason I keep getting the error: S...more >>

CheckBoxList strange behaviour on changing from enabled to disabled.
Posted by Dennis Johansson at 8/21/2003 1:31:05 PM
I have a CheckBoxList like this one: <asp:CheckBoxList id="chkReport" runat="server" DataValueField="rptID" DataTextField="RptName" Enabled="False" RepeatLayout="Flow"></asp:CheckBoxList> I fill it with items from a database and check/select items corresponding to another database query. W...more >>

TabStrip or Tab Controls
Posted by Natasha at 8/21/2003 1:26:31 PM
I would like to place a tab control on an ASP Web Page. I don't see a control that I can drag from the toolbox for either "web forms" or "html" that I can use. Does anyone know how to do this?...more >>

export data from an asp .net web form to Excel
Posted by Joy at 8/21/2003 11:52:19 AM
I have a form to allow users to export data from the datagrid to Excel. It works fine on some clients. But sometimes a user is prompted to enter the network login information. How can I suppress this prompt? Thanks!!...more >>

Submitting form from the Server Control
Posted by Pradeep at 8/21/2003 11:48:08 AM
Dear All, How can I submit the whole form data when I click on the "ASP Server Button". I want to use the Posted data in the redirect form. Regards Pradeep ...more >>

custom component across asp.net pages..
Posted by Tom L at 8/21/2003 11:48:04 AM
I'm pretty new to .net stuff, but not new to programming (lots of vb, sql, cold fusion, and some asp).. I have a "middle layer" object model I created, that has all my business rules and database access for an order entry system, starting with the Order object, and other basic child items, like ...more >>

Formatting Decimals
Posted by Kerri at 8/21/2003 11:38:08 AM
Hi, I have some code that does soem calculations and writes results out to screen. However I want to format these figures. For Example rather than displaying $120123.10 I want to display it as $120,123.10 This value is contained in a decimal datatype and written to a lable on my as...more >>

Request.Url not correct
Posted by Antonio Maciel at 8/21/2003 11:37:46 AM
Hi. I have a site that is called this way: http://intranet.decaps.com:8777/News When I try to get the current url using Current.Request.Url.AbsoluteUri I get http://intranet.decaps.com/News . Shouldn't I get the entire url above? Why does not the port number appear? Thanks, Antonio Mac...more >>

Data Access Architecture Advice
Posted by Heath Kelly at 8/21/2003 11:33:06 AM
I need advice on correct usage of ADO.NET in an ASP.Net environment. I have an ASP.Net application that accesses data through a referenced class library. Things start to break down when multiple web clients attempt to use the application at the same time. A common error that gets returned is "...more >>

placeholder
Posted by Alexandre Martins at 8/21/2003 10:42:46 AM
what can i do with placeholder ?? tks ...more >>

Web service does not show up while adding web reference
Posted by Kiran at 8/21/2003 10:16:26 AM
Hi, If I create a Virtual directory with application name programmatically it will not show up in the available web services while adding web reference(Dynamic discovery fails). Where as if I create the virtual directory manually it will shown up while adding web reference. I have ...more >>

Framework 1.0 ad 1.1 running side by side configuration problems?
Posted by Juan Posadas at 8/21/2003 9:34:05 AM
All, I deployed my website that requires V1.1 in the production server. I installed the framework v1.1 with the dotnetfx.exe /c:"install /noaspupgrade" and everything went fine. Then, I installed my app via and installation pkg. without a proble, Then, I ran the following command to ...more >>

QyeryString related questions..
Posted by Ivan Demkovitch at 8/21/2003 9:16:04 AM
Hi! I'm building my portal and I found that some times I need to dinamically generate address. Since I have many modules and each could have it's own parameters in order to preserve other's modules stuff I try to preserve Query string: string GetQueryString() { string s = "...more >>

edit datagrid with dropdownlist
Posted by Mike P at 8/21/2003 8:42:55 AM
I have a template column with a drop down list which should pass the value selected by the user to a function which will return a value of its place in the list...I keep getting the error 'denotes a 'property' where a 'method' was expected'. Any ideas? <asp:TemplateColumn HeaderText="CallType...more >>

Slow startup time on one computer, and not the next
Posted by Martin Altemark at 8/21/2003 8:22:20 AM
I have this webapplication, and when unloaded in the webserver because of session timeouts there is a huge difference in the startup times between my own developer computer and the web server it's intended for. On my own computer it loads and executes in about 2-3 seconds when it's more like 1...more >>

Strange issue with textbox
Posted by yop at 8/21/2003 8:01:12 AM
All Have a form with 6 textboxes. 3 of these have a white background but for some strage reason the 3 others are yellow, I cannot for the life of me find out why the other 3 are yellow backgrounded. This is a "copied" layout of the form, Thanks in advance...more >>

Forms authentication
Posted by ianwalsh NO[at]SPAM hbosplc.com at 8/21/2003 7:24:35 AM
I'm using forms authentication within a C# project. I am using the standard code where a user attempts to access a page when they are not logged into the system. I am collecting a username / password and comparing this against a SQLServer to authenticate the user. This all works fine if the...more >>

User Control in a Placeholder
Posted by R. Ian Lee at 8/21/2003 6:39:09 AM
I figured this out several months ago and now that I need it I've misplaced my code... How do I use a placeholder control to dynamically insert a user control (.ascx) into a page? Thanks! Ian...more >>

Required rights to connect to access db
Posted by Paul at 8/21/2003 6:25:03 AM
Hi all, On my local pc I have built a webpage which reads data from a ms-access file. No problem at all. When I place the files on our intranet-server I receive an error: System.Data.OleDb.OleDbException: Unspecified error When I am a member of the domainadmins it works just fine, so i...more >>

Accessing intrisic asp.net objects (ie Application, Session) from an assembly
Posted by Johan Riis Johansen at 8/21/2003 5:54:34 AM
Hi Folks! A few tips or pointers on this one would be appriciated. Presently I'm working on a webproject, and I've decided to create a class that acts as template for all pages on the site. What all the pages do is inheirit from MyTemplatePage instead of System.Web.UI.Page. That works ...more >>

Disable the X in the Browser
Posted by Mike Nooney at 8/21/2003 4:21:40 AM
How do I disable the "X" in the upper right hand corner of my Web Page. This is not for a windows form, but rather a web application. What I really need is to stop the user from unloading the page, if certain data is not present on the page. I know I should not use the Page_Unload event for th...more >>

Debugging Webservices
Posted by Joe Curry at 8/21/2003 4:07:21 AM
What is the best way to debug a web service. Using Visual Studio. ...more >>

Server Application Unavailable!!
Posted by Andy at 8/21/2003 3:51:23 AM
This morning I was quite happily working away when a Windows Update prompted me for install. I found a convenient brake point and duly installed it and rebooted, oh dear what a mistake LOL! Any asp.net page now fails with the following message: - Server Application Unavailable The web ...more >>

Problems when compiling Windows Control when using references to class libraries
Posted by nordebring NO[at]SPAM msn.com at 8/21/2003 3:47:23 AM
I use csc /t:library scanControl.dll. Here I got some errors telling me that the compiler can't find the class library dll:s that I have referenced in my windows control project. I have added references to the two classes and I use the using statements. Isn't that enough? After compiling the con...more >>

apache and aspnet?
Posted by Sam Carleton at 8/21/2003 12:50:13 AM
Is it possible to have apache host an asp.net app on a windows server? If so, how? Sam...more >>

If I do not want to put the current page in the IE history, how can I do it ?
Posted by Junjie Wang at 8/21/2003 12:43:48 AM
It seems the aspx always is saved in IE history, how to write aspx that make IE does not save it ? Thanks. -Junjie ...more >>


DevelopmentNow Blog