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 > february 2007 > threads for thursday february 22

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

vbc compiler error code 1
Posted by Mark Carrington at 2/22/2007 11:57:54 PM
I'm developing a web app in .NET 2 using C#, and occasionally see this error, apparently something to do with the theme used on the site: Compiler Error Message: The compiler failed with error code 1. Clicking the "Show Detailed Compiler Output" link on the error page shows a large command...more >>


converting this code to C#, how??
Posted by Jeff at 2/22/2007 11:17:35 PM
Dear reader! ASP.NET 2.0 How should this line with vb.net code: e.Item.ImageUrl = CType(e.Item.DataItem, SiteMapNode)("ImageUrl"); be as C#????? I want to put the code into MenuItemDataBound(object sender, MenuEventArgs e) eventhandler. I came across this vb.net code on the web, but...more >>

The type or namespace name could not be found
Posted by Mike at 2/22/2007 10:45:12 PM
I am trying to use a third party dll in an ASP.NET 2.0 app. The manual tells me to put the dll in a Bin folder in my app, and put <%@ Import Namespace="System.Reflection" %> <%@ Import Namespace="ASPPDFLib" %> "in my source code". The sample has these directives and the code in a script blo...more >>

what is CType???
Posted by Jeff at 2/22/2007 9:01:34 PM
ASP.NET 2.0 Can someone send me a link to the description of CType? I've been googling and don't get any usefull info... Jeff ...more >>

Login
Posted by Jman at 2/22/2007 7:51:14 PM
Is it possible to do a login from the code instead of using the interface? ...more >>

Update DataRow
Posted by rn5a NO[at]SPAM rediffmail.com at 2/22/2007 7:50:33 PM
When a DataGrid is in the editable mode, users can change the quantity of the items that are currently in his shopping cart by entering a new quantity in a TextBox. After changing the quantity, a column named *Quantity* in a database table also gets updated with the changes made by the user. The...more >>

Controls
Posted by rn5a NO[at]SPAM rediffmail.com at 2/22/2007 5:49:47 PM
A DataGrid displays 8 columns - ProductID, ProductName, Description, Price, Quantity, Sub-Total, Edit & Delete. *Edit* is a EditCommandColumn, *Delete* is a ButtonColumn & *Quantity* is a BoundColumn. If the *Edit* link is clicked, the *Quantity* column changes to the editable mode with a TextBo...more >>

Problem with state server on new development machine
Posted by B.E.S. at 2/22/2007 4:58:54 PM
Moving to a new development machine. Am getting the following message when trying to run applications that require the state server: --------8<-------------- Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and th...more >>



BoundColumn TextBox
Posted by rn5a NO[at]SPAM rediffmail.com at 2/22/2007 4:40:49 PM
A DataGrid displays 8 columns - ProductID, ProductName, Description, Price, Quantity, Sub-Total, Edit & Delete. *Edit* is a EditCommandColumn, *Delete* is a ButtonColumn & *Quantity* is a BoundColumn. If the *Edit* link is clicked, the *Quantity* column changes to the editable mode with a TextBo...more >>

access validation info in client script
Posted by Velvet at 2/22/2007 3:48:50 PM
Does anyone know a way to force the client script to preform a client-side validation for controls in validation groups? What is currently happening is I have two validation groups (Billing, CreditCard). The validation doesn't happen until the submit button is pressed and the server valida...more >>

Europe Tests Established Chemicals on Millions of Animals
Posted by TONY at 2/22/2007 3:45:33 PM
Tony Nottingham England 22 February 2007 TO: All People Who Care I am a private individual posting this message to help Laboratory Animals and us all. I apologize if this seems out of place in this group but I think you need to know this. A new European Chemical Te...more >>

News Scroller ???
Posted by Xnet at 2/22/2007 2:31:25 PM
I need to make a page that contains scroll vertical of text, where most important is than without having to refresh the component east page it is taking new registries from a table in Database and to show them (in the style of chat). Somebody knows some component (preferredly free) that allo...more >>

Do I need Microsoft.Web.Extensions?
Posted by Michael at 2/22/2007 1:56:17 PM
Hi, I have been upgrading to AJAX 1.0. I removed this line from my config file: <add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> because it seems to be left over from ATLAS. Well, since I took it out all of my validation ...more >>

HTML document.body.scrollTop question
Posted by Hardy Wang at 2/22/2007 1:49:31 PM
Hi all, I created a complex ASPX page, nested inside a master page and Ajax UpdatePanel. In one of my Javascript function I need to capture mouse position. I use alert(document.body.scrollTop) to test scroll bar position. Even though I have a long scroll bar and already to end of the page, wh...more >>

Page and Images not found on Localhost
Posted by John Kotuby at 2/22/2007 1:02:24 PM
Hi all, Maybe this is a simple problem found in ASP.NET 2.0 course 101, but I must have missed it. When I create a page in Visual Web Developer and use URLs like "/images/picture.gif " or a link like <a href="../../Search/page.aspx">, everything works fine as long as I publish the site to ...more >>

Layout within Ajax Update Panel in Visual Studio
Posted by DanWeaver at 2/22/2007 12:24:07 PM
I have a page where layout of buttons and listboxes etc is important - I would like to make use of Ajax Update panel to asynchronously update various part of the page- in Vis studio whenever I use an Update panel I then lose all control of the layout of the elemts within the panel. I also dont s...more >>

font-size of body style-rule does not work
Posted by tom at 2/22/2007 11:45:52 AM
Hi All, I have a theme with a Style.css in which I have defined a style rule for the body element : body { min-width: 780px; margin: 0; padding: 0; border: 0; text-align: center; font-family: Verdana, Arial; font-size: 8pt; color: Black; background-color: Ghostwhite; } ...more >>

Error setting up new server to run asp.net
Posted by Michael at 2/22/2007 11:42:47 AM
Hi, I have a working site on my desktop. I tried to move it to production and I am getting an error on my new server. It has something to do with setting a profile. Here is the error. Server Error in '/' Application. ------------------------------------------------------------------...more >>

disabling viewstate at a folder level
Posted by JJ at 2/22/2007 11:37:47 AM
Is there way in webconfig to disable viewstate for all aspx files in a certain folder? I know there is a way to do that for the whole application and i am wondering same concept is available for at a folder level. Thanks ...more >>

Textbox, Input (text) on turbotax... anyone know which 3rd party textbox this is???
Posted by pld888 NO[at]SPAM gmail.com at 2/22/2007 11:37:05 AM
https://turbotaxweb.turbotaxonline.intuit.com/open/registration/SignIn.htm anyone know which 3rd party textbox this is??? ...more >>

OracleClient connection pooling
Posted by DSISupport at 2/22/2007 11:36:46 AM
Hi, I have this ASP.NET application developed with VS.NET 2003 VB.NET and deplyed on Windows 2K server IIS 5. This application uses the following: - Oracle 10G databse - MS Data Access Block from MS Enterprise Library June 2005 (with the other blocks like exception, security...) - Use Cryst...more >>

Correct use of ClientScript.RegisterClientScriptInclude
Posted by verci at 2/22/2007 11:15:53 AM
Hi guys, I'm using asp.net 2.0, can anybody send me some complete examples on using ClientScript.RegisterClientScriptInclude and ClientScript.RegisterClientScriptSource, for registering an external javascript file (myfile.js) in my ASP page, I have not found any clear or complete examples, me...more >>

How to implement ClientScript.RegisterClientScriptInclude
Posted by verci at 2/22/2007 11:00:26 AM
Hi guys, I'm using asp.net 2.0, can anybody send me some complete examples on using ClientScript.RegisterClientScriptInclude and ClientScript.RegisterClientScriptSource, for registering an external javascript file (myfile.js) in my ASP page, I have not found any clear or complete examples, me...more >>

How to implement ClientScript.RegisterClientScriptInclude
Posted by verci at 2/22/2007 10:40:57 AM
Hi guys, I'm using asp.net 2.0, can anybody sent me some complete examples on using ClientScript.RegisterClientScriptInclude and ClientScript.RegisterClientScriptSource, for registering an external javascript file (myfile.js) in my ASP page, I have not found any clear or complete examples, pl...more >>

ASP.NET 2.0 Replacing Profile Provider Model (apparently its garbage)
Posted by Weston Weems at 2/22/2007 10:17:42 AM
I've got the need to have user information for logged in user in a readily avaliable page context (a lot like how Profile is) except not suck. Before we jump to any conclusions, from what I gathered, the implementation of the provider model is absolute garbage. While I've seen microsoft emp...more >>

asp Checkbox on click event
Posted by Phils at 2/22/2007 9:23:45 AM
I have a simple problem but after an afternoon of searching still cant get a solution. I have an asp checkbox on my form that i want to, when checked, enable a textbox. when the checkbox is unchecked the textbox becomes disabled again. i want to use some client side script as i dont want to al...more >>

maintaining a single session between http://mysite.com and http://www.mysite.com
Posted by dustin.oneil NO[at]SPAM gmail.com at 2/22/2007 9:21:48 AM
Here's what's happening: I visit my site via http://mysite.com and begin a session. Somewhere down the road, I might get redirected to another page on my site but with the www prefix, i.e. http://www.mysite.com/somepage.aspx. Now, the original session is lost even though I'm viewing the same s...more >>

Release build with PDB's
Posted by Wayne Sepega at 2/22/2007 9:10:37 AM
We are currently having an issue with one of our web applications. Some users receive an exception when using the app, but the method that has the error in the stack trace has a few places that could cause the error. So my question is, what are the CONS to deploying the PDB's that are built ...more >>

Window closes unexpectedly when downloading a file
Posted by bfmcfarlane NO[at]SPAM gmail.com at 2/22/2007 8:57:41 AM
I have an appication that allows users to upload and download files. This application is only accessed when a user clicks on an "Upload / Download" link from within our main application. A new window is launched asking the user which file he /she wants to download. After the user determines wh...more >>

Best way to build a control for a recursive relationship
Posted by hardieca NO[at]SPAM hotmail.com at 2/22/2007 8:35:31 AM
Hi, I'm building a CMS and I'm banging my head against the wall over one part of the user interface. I have a Section entity which maybe have 0 or 1 parent Sections. So, as an example, I could have a "Media" section which is the parent to a "New Release" section which is a parent to a "Rece...more >>

Is it ok to run another thread inside the page then come back
Posted by charles at 2/22/2007 8:30:38 AM
I used a web service (or dll) to create a socket/send some data in a thread within a function in a page. After this operation, the operation in this page continues. This approach works when the page starts. But it often fails after running this thread a few times. The error I got is as follows: ...more >>

Error With Bound Control Causes redirection to 404 Error page instead of displaying error
Posted by Bishop at 2/22/2007 8:20:26 AM
Any ideas on why this is happening or how I can fix it? For instance if I forget to declare a SQL Variable and assign it a value instead of telling me that it redirects to 404 page not found instead of telling me the problem. I only get this with bound control errors and it happens 100% of...more >>

Does the SQLDatasource control produce a disconnectected recordset?
Posted by John Kotuby at 2/22/2007 8:11:37 AM
Hi all, I am relatively new to ASP.NET 2.0 programming. I have some experience with classic ASP and VB6. In Visual Web Developer (VS 2005) there a numerous ways to work with data. In my application I am using a number of them, including the SQLDataAdapter, DataTables, etc. On one page I ha...more >>

color help
Posted by rodchar at 2/22/2007 7:20:25 AM
hey all, i'm in the code-behind trying to give a BackColor a color. The color I need is in hex (#f8f8ff). Could someone please show me the syntax? I don't see anything I can assign to under System.Drawing.Color... thanks, rodchar...more >>

Programmatically Set ASP.NET Version
Posted by Kulgan at 2/22/2007 6:58:23 AM
Hi All I am using DirectoryServices to create a web site in C#. I can set the web site up perfectly with all the options that I want other than the ASP.NET version! Sometime it is 1.1, sometimes it is 2.0. I have even enumerated all the Active Directory properties for all of the Sites and Vir...more >>

QueryString not returning anything
Posted by Landes at 2/22/2007 6:48:05 AM
Hiya, I have the following code in a C# aspx page, but I keep getting the error that 'ExceptionCategoryId_' not found. Looks like the QueryString is not returning anything. <asp:DataGrid id=DataGrid1 runat="server" AutoGenerateColumns="False" DataSource ="<%# Pfc.PfcCentreExceptions....more >>

Temporary ASP.NET files not auto-updated when files change?
Posted by yashgt NO[at]SPAM gmail.com at 2/22/2007 6:27:01 AM
Hi, We have an application that has been deployed into a virtual folder along with ascx, aspx and the code-behind files. It runs smoothly as long as we don't change any code-behind file. If we change a file, we expect ASP .NET to recompile the website when a user next accesses it. However, on...more >>

file upload
Posted by Eugene Anthony at 2/22/2007 4:33:10 AM
I used the code example bellow to upload files. It works well for a 3 mb file. However when I tried a 30 mb file it does not work. string filename = "" string filetype = FileUpload1.PostedFile.ContentType; int filesize = FileUpload1.PostedFile.ContentLength; FileUpload1.PostedFile.SaveAs(file...more >>

Can a master page be built from another master page
Posted by Zeba at 2/22/2007 2:39:20 AM
Hi, Is is possible for a Master page to be built using another master page ( something like multi-level inheritance ) ? If so, how ? Thanks, Zeba ...more >>

When using RegisterOnSubmitStatement eventhandlers are not fired
Posted by APA at 2/22/2007 2:00:51 AM
Well, I've figured out a way around this mess. I have no idea why it doesn't work the way I think it should but I do know how to get it to work. The scenario is that I have a form that has one submit button on it. I want a client side validation function to run before submit. I have a server s...more >>

Editable datagrid
Posted by rcoco at 2/22/2007 1:36:04 AM
Hi, I'm working on a asp.net project with a datagrid. I want the user to be adding data into Sql database using the datagrid. So I'm using a ListBox to do this and edit update and delete. I placed listbox in EditItemTemplate and label in ItemTemplate. but when I try now to edit it does not brin...more >>

why is this sql command executed twice?
Posted by Bob at 2/22/2007 12:17:20 AM
Hi, i wrote code for inserting data into a table, but it runs twice. If i remove the line: "comd.ExecuteNonQuery()", then it runs once; but i thought that line was necessary for executing the sql command ... if i remove " oConnection.Open()", then error: "connection is not open". see my ...more >>

PopUp-Calendar-Control
Posted by Rudi Hausmann at 2/22/2007 12:00:00 AM
Hi! I am looking for a free pickUp Calendar control, which works well. It shall also work within GridViews, AJAX, etc. Any suggestions? Thanks a lot Rudi...more >>

how to use siteMap for two menu?
Posted by Keven at 2/22/2007 12:00:00 AM
Hi All, I need two complete different menus for two group PUBLIC users. Since the siteMap can be only one and roles can't help me, I really don't know how to in .Net 2.0. Does anyone has any idea? Thanks! ...more >>


DevelopmentNow Blog