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 > may 2004 > threads for thursday may 20

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

? ASP.Net is renaming my HTML element IDs and breaking my CSS
Posted by DeepDiver at 5/20/2004 11:28:58 PM
If I add a DropDownList Web Control to my Web Form and set id="DropDownList1", then when I build and execute the page, the ID gets changed to id="_ctl1_DropDownList1". This breaks my CSS which is tied to the tag ID. Why does ASP.Net do this? The ID is required to be unique, so I see no advantage...more >>


Synchronizing project files work and home. How?
Posted by Rog at 5/20/2004 11:07:46 PM
I have a project I work on at work on my workstation in Visual Studio. When I open the project at home (VPN) the latest files are only copied down the first time I open up the project. The next time I open up the project, the older files from home copy over the newer ones at work? How can ...more >>

Tree Manipulation - Control Recommendations?
Posted by Ketchup Please at 5/20/2004 10:53:48 PM
I need to provide a view of hierarchical data to the users who need the ability to subsequently do the following: (1) add additional nodes (root and non root nodes); (2) arrange the nodes (drag and drop existing nodes to rearrange the tree) (3) specify a short bit of text that will be displayed ...more >>

Reading the text in a datagrid webcontrol
Posted by EMW at 5/20/2004 10:37:36 PM
On my ASP.NET page I have a datagrid webcontrol bound to a dataset. The first column shows all the names of the people in the list, the other columns I place little images in. Because I use paging and I place the images from within the ItemDataBound event, I use e.item.cells(x). To fill only sp...more >>

how to retrieve and store an image in MS SQL and asp.net?
Posted by angus at 5/20/2004 10:27:49 PM
Dear all, how to retrieve and store an image in MS SQL and asp.net? Thank you ...more >>

Dynamic PDF Report
Posted by Robert Strickland at 5/20/2004 9:43:21 PM
I need to create a dynamic PDF report based on values pulled from the = database. I am using a XSL-FO rendering component that takes my FO and = creates a PDF stream. Ii would like to send back the PDF to the client = browser. I would like to use a HTTP Handler to chapture a PDF extension, = bui...more >>

System.DllNotFoundException:?
Posted by jbeteta NO[at]SPAM yahoo.com at 5/20/2004 8:31:53 PM
Hello Experts, I'm using Visual Studio NET 2003 Architect on a Windows 2003 Server. DataBase: Oracle 9i. All of them on the same PC. Problem is that I can't connect my ASP NET web program to Oracle. I get this error: "System.DllNotFoundException: ?" after trying to do: Dim myConn As Oracl...more >>

cassini web server
Posted by Daniel Wang at 5/20/2004 7:48:30 PM
Are there alternate locations to download the Cassini ASP.NET web server? The download link on www.asp.net seems broken: http://www.asp.net/Projects/Cassini/Download/download.aspx?tabindex=0&tabid=1 Thanks. ...more >>



How to Validate a Date Filed.
Posted by RSB at 5/20/2004 7:34:16 PM
Hi Every one Need some help to Validate the Date i have in the Form. ALso how to Convert the Date Data i read from table to yyyy/MMM/dd format. Thanks RSB ...more >>

[OT]Visual Studio / Visual Source Safe 6.0
Posted by Rob Meade at 5/20/2004 6:37:35 PM
Hi all, Firstly my appologies for the OT post - I figured that it was highly likely someone in this group uses both of the above. Probably a simple answer to this question so I hope you know! :) I use this combination at work, when I check files IN I get the little padlock icon, when I ch...more >>

check user account with AD
Posted by Grey at 5/20/2004 5:39:26 PM
my web server is in domain. how can I check the user login with the AD's = user account?? does it required the client's browser and web server = located in the same domain?? and what is the different between using AD and LDAP?? Million Thanks....more >>

Session Variable vs Cookie
Posted by Wayne Wengert at 5/20/2004 5:17:11 PM
Are Session variables the same as a cookie? In reading a couple of pages I got from searches, I don't get the difference. Basically, I am currently using simple session variables (e.g. Session("UserName") = txtLastName.Text). I think they are expiring for some users (longer sessions?) and I need...more >>

Finding if an value exists in a DD list
Posted by Stu at 5/20/2004 5:04:35 PM
Hi, I have a web form that uses simple binding to bind properties to the controls on the page. However, if I try and bind a value to a dd list using: SelectedValue="<%# MyProperty %>" If the value doesn't exist it throws and error: Object reference not set to an instance of an object. ...more >>

Sending an alert message to logon user in Web Application
Posted by Pradeep Kumar C at 5/20/2004 4:50:03 PM
Hi , I am working on a ASP.Net Web Application which need some requirement as = given below. =20 Let's say two user's A and B. When a User A Assign a task to B , Then = B need to get some sort of alert message with=20 out doing any action by B in his web browser, which need to tell...more >>

Application_End() and Session_End () never execute ??
Posted by Chris at 5/20/2004 4:40:09 PM
Hi, I entered some logging-stuff in global.asax : namely in Application_Start(), Application_End(), Session_Start() , etc .... When I start the ASP.NET app from within Visual Studio does it Log very nicely Application_Start, Application_BeginRequest , Session_Start, Ap...more >>

passing variables from aspx page to ascx control
Posted by darrel at 5/20/2004 4:34:40 PM
Is there a SOP for setting variables on an ASPX page that the usercontrols on that page can read? I'd like to set a 'template=' variable that various other controls can see (the header, navigation, footer, etc.). Would simply setting a public variable be enough? -Darrel ...more >>

Moving a project from my local machine to a development web server
Posted by John Holmes at 5/20/2004 4:34:37 PM
I've written an asp.net application on my local machine and would now like to continue to develop the application in a different location on our development web server on the intranet with all the debugging capabilities that I've had on my local machine. I was thinking I could do a save as at th...more >>

Whats wrong
Posted by aa at 5/20/2004 4:07:42 PM
When I am reading from local disk (d:), everithing is OK, but then I am reading from map disk I am geting the this error. Whats wrong. Thanks Server Error in '/Extra' Application. ---------------------------------------------------------------------------- ---- The specified user does not exi...more >>

split field by comma
Posted by Paola at 5/20/2004 4:06:06 PM
How can I split a field that is being displayed as an asp:label with a dataview? Currently the field is being displayed using this code <asp:label id=dept runat="server" Font-Size="Smaller" Font-Names="Arial" Text='<%# DataBinder.Eval(DataView1, "[0].CATEGORY_APPROVER")%>'></asp:label What can...more >>

Username
Posted by Miguel Ramirez at 5/20/2004 4:02:46 PM
Hello all, I am using "User.Identity.Name" property to get the username in an ASP.NET application. When I run the application in a preview browser inside the .NET everything works fine. But when running in real browser I am not getting the username results. Any help will be really apprec...more >>

Assign value to HTML control
Posted by Grey at 5/20/2004 4:02:23 PM
I want to assign a value to HMTL textbox with id "txtABC" in ASP.NET = with C#...more >>

Get Class from Aspx-File
Posted by Daniel H at 5/20/2004 3:12:16 PM
Hi, Is it possible to get the "ClassType" from a Filename to a .aspx file? I would like to access a class from an another page, knowing the filepath to the aspx-file (or the .cs-file) As I belivie that is how ASP.NET works (reading the aspx file and its <@ Page > to find/create the class ) ...more >>

Tracing and Server.Transfer
Posted by Eddie Farmer at 5/20/2004 2:47:25 PM
Hi, I can't seem to trace into pages accessed via Server.Transfer. I put a break in the page to check the state of the tracing and IsEnabled is false. I have tracing enabled at the application level and no tracing directives are specifed either on the initial page or transferred page. ...more >>

Online Payment Setup
Posted by Ketchup Please at 5/20/2004 2:35:09 PM
I'm looking to create a Web site that accepts credit card payments. On another news group I was told that I'd have to go to a bank to set up the ability to do online transactions. Is this really true? I thought there were many online financial transaction processing companies I could work with. ...more >>

Which event will be called ? How the flow goes... ?
Posted by Gill Smith at 5/20/2004 2:34:40 PM
My platform is .Net 1.1(ASP.Net) for a button I have the following code 1. In the page load I am injecting the client script as follows MyButton.Attributes.Add("onClick", "CallingJavaFunction") Where "CallingJavaFunction" is the name of the Java function. 2. also for the click...more >>

Stupid undocumented grid indexing . . .
Posted by Lauchlan M at 5/20/2004 2:23:50 PM
Hi I have a grid, I want to delete a row. The relevant code is something like private void dGridErrorLog_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { // delete the row nxCmdDeleteErrorLogItem.Parameters["@LogID"].Value = dGridErrorLog.D...more >>

Master Detail Report Question
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 5/20/2004 2:21:12 PM
Consider this query: select count(*) as total, order_type, order_category, order_subcategory....GROUP BY order_type, order_category, order_subcategory This SQL brings me a report sorted appropriately, albeit ugly in a DataGrid. Is there anyway to create a nice Master Detail *without* hav...more >>

link parameters
Posted by zino at 5/20/2004 2:21:04 PM
my web application consist of 3 frames :top, left and right, and I use form authentication to authenticate users in ASP.NET 1. the right frame is where the data is displayed I set the default page (as it's required by VS) to some of my pages (default.aspx) there is somewhere in the application wh...more >>

Access Key in not working... in ASP.Net code...
Posted by Gill Smith at 5/20/2004 2:12:45 PM
My Access Key is not working in the below code. <TD align="left" width="25%"><A href="javascript:OpenSearch()" accesskey="L"><IMG src="Images/MySeach.gif" align="left" border="0"></A></TD> Is there any error in this code ? Gill ...more >>

Session
Posted by   at 5/20/2004 2:09:10 PM
Recently,we have a application system,and some are created by PHP,and = the login system was also created by PHP,but there are some system = created by asp.net. So if the user logins his information and stores in PHP,if he enters = into the asp.net system,how can we know that he has logined?...more >>

move the <Enter> focus between 2 buttons
Posted by rocio.katsanis NO[at]SPAM softwareservices.net at 5/20/2004 1:49:31 PM
I have a aspx page, with 2 controls (ascx). Control1 contains a SEARCH button, and textbox to enter the string to search for. Control 2 contains a LOGIN button, and 2 text boxes to enter the username & password to login. Any user can perform a search, but if he applies for an account, he can...more >>

Writing onclick event for button
Posted by Sandeep at 5/20/2004 1:05:34 PM
Hi I want to write onclick event on a button(a web control) ,also i want to call a client side function on the click event how to write that how to differentiate between these two events Will it be like that <asp:button id="ss" onclick="javascript:ss()" onserverclick="btn_click()"> ...more >>

Display Images
Posted by Qingdong Z. at 5/20/2004 12:26:02 PM
I have a web page to work as Video Web Viewer. It pulls image from IP camera using JavaScript. It works great in most of time. When users are in slow network, the Internet Explore begins to display part of the image before the image is fully downloaded, so the video looks like broken sometimes. ...more >>

ASPNET user writing to a subfolder
Posted by Jiho Han at 5/20/2004 12:26:00 PM
Should ASPNET user belong to the local Users group? I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors. For example, I have my IIS set up with anonymous login and have ASP.NET running. My ASP.NET application then creates a log file ...more >>

Disallowed Parent Path error
Posted by Hunsal at 5/20/2004 12:24:38 PM
Hi,=20 i have several errors when i want to include a file in my asp codes = using "include file" object. i am using windows server 2003 and IIS6. = have can i solve this problem? The error description is like this.... Active Server Pages error 'ASP 0131' Disallowed Parent Path The ...more >>

Configuration Error - c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config
Posted by Ivan at 5/20/2004 12:20:26 PM
Hi, I have moved an entire solution from .netframework 1.0 to 1.1; also I have migrated the solution to VS2003. After this I have added a new project (Web) to previous solution; I'm referencing a DLL from other project within the solution and including some user controls within my new project,...more >>

Output parameters not returned from SP
Posted by Janaka at 5/20/2004 12:09:20 PM
Hi this is kind of an ASP.NET/ADO.NET question. I've got a stored procedure on SQL Server that returns a results set. It also sets 3 output parameters in a seperate Select statement. When checking this on the database it returns all the results and output parameters. Now when I set up my Sql...more >>

Thanks Alot for the viewstate code, can you help this?
Posted by Ramez T. Mina at 5/20/2004 12:02:41 PM
Many thanks, but still need something else. I made an sql command and the resultant records is stored in array, but when I click the button to go to the next result it doesn't work. find the code here { If Not ViewState("n") Is Nothing Then n = CInt(ViewState("n")) End If n += 13 ...more >>

ERROR:COULD NOT FIND INSTALLABLE ISAM
Posted by ibeetb at 5/20/2004 11:43:48 AM
When using ADO.NET, here is my code to bring in a table from EXCEL: Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=C:\Inetpub\wwwroot\ExcelData.xls;" _ & "Extended Properties=Excel 11.0;" When it tries to OPEN my connection, I receive the following e...more >>

validation control interfering?
Posted by Lerp at 5/20/2004 11:17:26 AM
Hi all, I have reduced my panelled page for simplified viewing below. In it I have 3 panels that I would to display/hide depending on the button pressed. It seemed very straight forward to begin with, but my page is acting the way it should. When I go to click the first button on the pnlAd...more >>

Invalid CastException with SqlDBType
Posted by adams114 NO[at]SPAM comcast.net at 5/20/2004 11:15:05 AM
I am having a strange problem with invalid type casts. I am trying to update a MS SQL Database with a stored procedure. When I setup the parameters collection for the command object I get a invalid cast exception error: Compiler Error Message: BC30311: Value of type 'Date' cannot be converted...more >>

Spawn New Browser Using LinkButton Control
Posted by DM at 5/20/2004 10:57:45 AM
Using the LinkButton control on a web form, how can I make the clicking = of it open a new browser instance? I know how to do it with the normal = anchor tag, but not this ASP.NET control....more >>

User control inheritance and properties
Posted by hb at 5/20/2004 10:51:34 AM
Situation: A variable is declared with a default value in base user control. The control that inherits from the control may want to change the values. Here is how I currently have it set up (condensed to essential code): ======= BASE USER CONTROL ======== public class Base107RequestSubform...more >>

caching large XML files in an ASP.net application
Posted by spammy at 5/20/2004 10:47:21 AM
hi all, im currently writing an ASP.net front end to display data found in an XML file. the XML file is quite large (700k or so), and so takes a while to load. it will be changing around every second, so needs to be loaded at least at that rate. at the moment, the ASP application loads the xml...more >>

Using Javascript in UserControl
Posted by Lau Lei Cheong at 5/20/2004 10:46:05 AM
Hello, I'm writing a usercontrol to be included in my project. The usercontrol have a few javascript function to do the client-side tasks. However, the controls on the usercontrol seems to change at execution(e,g: the TextBox with id & name"txtbox" in usercontrol "folder1" will have name ...more >>

How to increment variable when clicking on button.
Posted by Ramez T. Mina at 5/20/2004 10:28:40 AM
I tried to increment variable when I click on a button, but it didn't work. I use the VB.NET editor and not the HTML editor. any one can help?? ...more >>

A Question about Events
Posted by DC at 5/20/2004 9:41:04 AM
In a book sample I am working through in ASP.NET, a simple Hello World works fine, but the order of events has me confused. The sample involves a Button control and the onClick event. On click, the page reloads and voila, hello world is written (I understand this part). However, when I set a...more >>

Question about Dispose
Posted by Bob Lehmann at 5/20/2004 9:40:12 AM
Hi, My understanding is that Dispose() should not be used for destroying a connection object, and that Close() is preferred. However, in one of MS's Quickstart Apps I see this being used.... This is found in the SqlHelper class - Dim cn As New SqlConnection(connectionString) Try cn...more >>

Capturing Enter KeyDown in a TextBox
Posted by George Durzi at 5/20/2004 9:31:16 AM
I have a text box and a button, and I want the enter key to run the click event of the button. The textbox and button are inside a user control. I tried all sorts of stuff with the __EVENTTARGET hidden field with no luck. Here's what I'm doing function KeyDownHandler(btn) { if (event.k...more >>

Real time
Posted by Ted Burhan at 5/20/2004 9:11:52 AM
Hi all, I'm trying to display a real-time data in one form or another (i.e. animation/graphic file, or just a text) in asp.net. The data for the images/text is retrieved from a SQL Server database. I have a few plans in mind: - I could have an aspx page that would use GDI+ classes to genera...more >>

How to emulate Word mail merge in HTML?
Posted by VB Programmer at 5/20/2004 8:34:03 AM
I have a database with customers. I aslo have a simple HTML newsletter: Hello [Insert Name]! Your address is [Insert Address], [Insert City], [Insert State]. You work for [Insert Company]. Here is your logo: [Insert Logo Graphic]. I want to let the user: 1. Edit the newsl...more >>

button click event being called twice on click
Posted by mike parr at 5/20/2004 8:27:56 AM
I have an button which calls its Click procedure twice when clicked. This is my code : public void btnAddToCartPersonal_Click(object sender, System.Web.UI.ImageClickEventArgs e) { //validate text boxes bool blnEmpty = false; string strQuantity; //clear label lbl1.Tex...more >>

Data tier options
Posted by John Spiegel at 5/20/2004 8:10:57 AM
Hi all, I'm looking at adding some ASP.NET apps to an existing Win2K-hosted website. The site is hosted by another company on a server shared by others. While the hosting company is fairly accommodating with configuration, we still don't have absolute control. I'm looking at MySQL, MSDE and ...more >>

datagrid update
Posted by mike parr at 5/20/2004 5:46:40 AM
I'm trying to build a datagrid similar to one found in shopping carts. I need to have a couple of columns taken from a database query, 1 couple where the user can enter a value in a text box(not edit a value, just enter a value), and a button to confirm the action for that row and update my data...more >>

Wanted in ASP.NET 2.0: Tab control
Posted by Jon Davis at 5/20/2004 5:20:47 AM
One can accomplish the equivalent of a tab control by showing/hiding various panels according to the user clicking on hyperlinks or buttons, but it would be nice if Microsoft put forth the effort to create a web site tab control, to cover the various browsers, as well as offer both a couple defau...more >>

Unable to set server side table's cell widths as percentages
Posted by dotnw NO[at]SPAM hotmail.com at 5/20/2004 4:46:15 AM
Hello. Is it possible to build up a dynamic server side table, and specify the column widths as percentages? I've tried this: Set the table width to 100%, then: FirstColumn.Width = New Unit(50, UnitType.Percentage) SecondColumn.Width = New Unit(30, UnitType.Percentage) ThirdColumn.Width...more >>

datagrid imagebutton
Posted by mike parr at 5/20/2004 3:26:38 AM
In a datagrid is it possible to use an imagebutton in for my ButtonColumn rather than the standard button provided? And if so, does anybody have a code example? Cheers, Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded...more >>

Partial ViewState
Posted by Henri at 5/20/2004 2:39:24 AM
Is it possible to enable ViewState only for a property in a custom control and not for the others? ...more >>

How to use min/max value properties of RangeValidator?
Posted by Tien at 5/20/2004 2:11:03 AM
What are they mean when using with (default) data type string? string length Thanks,...more >>

unable to pass data b/w 2 webforms
Posted by srikirti at 5/20/2004 2:06:03 AM
hi I am unable to pass data from one page to another.(except Response.Redirect Server.Execute or Server.Transfer I just get blank values can I have a example code that work With regard srikirti...more >>

a reset button
Posted by angus at 5/20/2004 12:50:37 AM
Dear All, I have to implement a reset button in the web form. i think that i can use the web component(button) to get the fired onclick event on the reset button. after the postback, the related eventhandle will set the textbox control to be empty. but why not simple use the javascript to...more >>

Server.Tranfer giving Thread abort problem
Posted by srikirti at 5/20/2004 12:01:04 AM
I used the context object the following way to use server.transfer to pass the dat Context.Items.Add("SessionID",strSessionID) Server.Transfer("WebForm2.aspx") here strSessionID is public strin once Server.Transfer is called it is throwing this erro ErrorSystem.Threading.ThreadAbortExceptio...more >>


DevelopmentNow Blog