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

Session Variables
Posted by William Gower at 7/20/2004 11:54:46 PM
If I want to place the value in a session variable into a long variable, do I need to convert it first? If so, what is the call? Dim nId As Long nId = Session("Id") ...more >>

question about image print on asp.net
Posted by Edward at 7/20/2004 11:38:05 PM
Hi, I have one image file, when users load it, they can choose whether to print it, in general print result, there'll always be one PageHead telling number of total pages and one PageFooter telling the current Href . How can I just print the Image file itself ? Edward ...more >>

Newbie question
Posted by Frank Rizzo at 7/20/2004 11:11:42 PM
Sorry for what maybe a complete newbie question. I need to display a web page which list files in a certain directory with a checkbox next to each of them. The users would check whatever checkboxes they needed and press the Submit button. On the server, I'd need to go through the checked ...more >>

Session Variable
Posted by William Gower at 7/20/2004 11:01:12 PM
If I have a Session variable such as Session("Id") which is a long, do I have to convert it before assigning it to a long variable? Dim nId As Long nId = Session("Id") ...more >>

Passing parameter from textbox
Posted by Cemal Karademir at 7/20/2004 9:54:48 PM
Hello, Please forgive my simple question, but i don't know the correct synatx. From the masterpage i want to put a text in an textbox and then select an item in the datagrid. I do know how to pass the items in the datagrid(e.g. PLU, description, etc.) to an other (detail)page, but i don't kn...more >>

alpha numeric sorting for dataview
Posted by caldera at 7/20/2004 9:37:10 PM
I have values which are numeric and string values. lets say 1,2 ,3 and = like xc1,xc2 . I want to sort these values. First sorting numeric ones = than none numeric ones. How can I do this with dataview or dataset Thanks too much. ,...more >>

server.timeout needs declaration ?
Posted by TJS at 7/20/2004 8:52:34 PM
getting an error message about declaration expected for server.timeout=3600 can anyone help ? ...more >>

Code Behind?
Posted by Sean at 7/20/2004 7:44:02 PM
Where does the codebehind files need to go? At the app level? Wht does the solution wizard always reference codebehind inheritting from <SolutionName>.Global. This is not a file I can find. Is this the correct behavior? I can't do any of the ASP.NET samples as everytime I run the sample I ...more >>



Problem referencing web service
Posted by John at 7/20/2004 7:41:16 PM
Hi I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error; Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application pre...more >>

Help with SQL Query
Posted by George Durzi at 7/20/2004 6:59:56 PM
I have a table called AppUser as defined below CREATE TABLE [AppUser] ( [Id] [int] IDENTITY (1, 1) NOT NULL , [ParentId] [int] NULL , CONSTRAINT [PK_AppUser] PRIMARY KEY CLUSTERED ( [Id] ) ON [PRIMARY] , CONSTRAINT [FK_AppUser_AppUser] FOREIGN KEY ( [ParentId] ) REFERENCES...more >>

Problem with forms
Posted by Andrea Williams at 7/20/2004 6:19:53 PM
I'm having a problem with forms handling. Since I've created button_click event methods, hitting the enter button doesn't submit the form properly. It never gets to the _click method b/c the button wasn't pressed. Anyone have a easy fix for this problem? Andrea ...more >>

returning the selected value of a listbox control inside a user control - please urgent!
Posted by Moe Sizlak at 7/20/2004 6:11:22 PM
Hi There, I am trying to return the value of a listbox control that is included as a user control, I can return the name of the control but I can't access the integer value of the selected item, what do I need to do in order to return the "option value" of the control? Moe !--- returned ...more >>

Does framework have any FTP functionality built in? Any resources/articles? Thnx (n/t)
Posted by Kikoz at 7/20/2004 4:52:42 PM
n/t means "no text" ...more >>

Required Field Validators
Posted by Big E at 7/20/2004 4:41:54 PM
I'm using ASP.Net. I have a form that uses Required Field Validators. If the user tried to click a create new record button and certain fields aren't filled out then the RFV's show up. My problem is when a user wants to close the form without adding a new record and there's nothing in the field...more >>

asp.net public or global array
Posted by msand at 7/20/2004 4:39:01 PM
I'm populating a listbox from an array of strings. I have to do this on several pages. How and where can I declare the array where I can use it from all the pages, without having to create the array on each page. Thank you!...more >>

stored procedure result comparision
Posted by Viktor Popov at 7/20/2004 4:38:25 PM
Hi , I have the following SP: CREATE PROCEDURE prSVUSERINFO @USRNAM VARCHAR(20), @USRPSW VARCHAR(20), @NAME VARCHAR(64), @ADDR VARCHAR(74), @EML VARCHAR(64), @ROLE VARCHAR(6), @RCOUNT INT OUTPUT AS IF NOT EXISTS( SELECT * FROM BLEK.USERS A WHERE A.USERNAME=@USRNAM OR A.USEREMAIL=@EML) ...more >>

Printing with IE
Posted by Steffen Loringer at 7/20/2004 4:32:13 PM
Hi group, I like to print my ASP.NET page with the internet explorer. I added a panel (with a black border and blue as background) and a button to my page. If I press print in the Internet Explorer, the panel is printed without the blue background but with the black border. The normal button...more >>

Dynamic RadioButton IDs - help
Posted by Timothy V at 7/20/2004 4:05:18 PM
Hi, I have a RadioButton within a Repeater that i wish to assign an ID dynamically to the radiobutton. However, this won't allow me due to the following error: "'<%#((OnlineLearningEnvironment.MultipleChoiceChoice)Container.DataItem).choiceText%>' is not a valid identifier." So, my quest...more >>

Application object problem.
Posted by s.hong at 7/20/2004 3:53:51 PM
Hello, On my project, I have a problem that the Application object is destroyed suddenly. I hope to know how can I monitor the ASP.NET to catch the time of Application object destroying. Thanks Hong ...more >>

Simple CrystalReport Chart using SQL Query?
Posted by Don Wash at 7/20/2004 3:33:52 PM
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so many features buried in the sample but all I want to know is a very simple thing, how to create bar...more >>

Global.asax inheritance
Posted by Chuck at 7/20/2004 3:32:01 PM
Does the Global.asax from a parent application run for a child application? Is there a way to configure this to happen? Scenario: Site A has a parent: Site B User goes from a page in site A to a page in site B In session_end, I would like to destroy a cookie....more >>

<INPUT = 'File'> upload problem
Posted by Brian Henry at 7/20/2004 3:14:16 PM
Hi, I am having a problem with an attachment system I made... it works with files up to ~3MB in size then after that if you try to upload a file it just goes to a "Page can not be displayed" page like it tried to do it but errored... I thought changeing the max size for the file input box to abou...more >>

IsPostBack vs. OnClick
Posted by Random at 7/20/2004 3:14:01 PM
Is there considered a preferred method for handling the POST from an ASP.NET web page? I'm a veteran with classic ASP, so have always used Request.ServerVariables("REQUEST_METHOD") to check for POST. In choosing between the new IsPostBack and the server side processing for the button OnClick e...more >>

silly question
Posted by John at 7/20/2004 3:07:55 PM
Hi What is the asp.net alternative to response.write? Basically I want to output something to the web page in asp.net. Thanks Regards ...more >>

Programatically add a HtmlInputFile control?
Posted by Rob Meade at 7/20/2004 3:05:10 PM
Hi all, I've got some code here that builds a page dynamically, ie, added a table, rows, cells, controls in the cells and so on... Everything has gone fine until now, I need to add a 'File Input' box (ie, the HTML <input type="file"> etc), I've got this: Dim txtFile as HtmlInputFile tx...more >>

Converting a Response.Redirect's URL from querystring-based to other
Posted by Keith Patrick at 7/20/2004 2:33:11 PM
I have to do some programmatic redirects (in several pages) based on URLs I am given from an external source. The URLs have querystrings at the end, but one in particular is about 240 chars long, so I need to programmatically redirect to it. Unfortunately, I can't find a way to do it. There is...more >>

The best way to archieve this? Help please
Posted by dbui at 7/20/2004 2:19:32 PM
I have an ASP.NET application running on one win2k server and it needs to access a shared folder in other server. To access this shared folder, I have to login with user name and password. I used IWshRuntimeLibrary.WshNetwork() and mapped the folder to a network drive (Y:\) in the page_load. ...more >>

Display wbmp in vb.net
Posted by Sara T. at 7/20/2004 2:19:12 PM
Is there a way to display image with format WBMP in VB.NET? I've just only found the other format i.e. *.gif, *.jpg. Sara T. ...more >>

Datagrid, validation and scroll position...
Posted by Ben at 7/20/2004 2:12:11 PM
Hi, I have a page with a datagrid that you have to scroll to see. I'm using the StrengthControls SmartScroller as recommended to maintain my scroll position. Anyway, inside the datagrid I have fields that require validation. No problem, I put the validators on them and they work just fine......more >>

Question about Microsoft TreeView webcontrol
Posted by Edward at 7/20/2004 1:55:31 PM
hello, everyone, I build one tree menu using TreeView webcontrol , everything is ok, from tree node click, one sub-frame(main) can refresh its content with new url. My question is, I have another sub-frame(message), message frame and main frame cannot be shown at the same time, so I wo...more >>

create a pdf file
Posted by Russell at 7/20/2004 1:51:19 PM
I am trying to generate a pdf file from an aspx web page. I want to also create it in memory so i wouldn't have to save it on the server. Any help is appreciated. Russell ...more >>

events for controls in a Table server control
Posted by Mark at 7/20/2004 1:46:58 PM
I have a Table server control with several link buttons. How do I generate the click events for each of these controls? I can't double click on them or go into the properties of the linkbuttons to generate the event like I usually do using VS.NET and C#. I could explicitly type out the event ...more >>

Removing HttpHandler in SubWeb
Posted by Mark Olbert at 7/20/2004 1:21:42 PM
I have a subweb (marked as an application in IIS) that I do >>not<< want to utilize an httpHandler defined in the parent web. According to the documentation, I should be able to do this by putting the following directive in the subweb's web.config file: <httpHandlers> <remove verb="*" path...more >>

New Web Page Position
Posted by Mariame at 7/20/2004 1:10:13 PM
Hi There, I am trying to open a new web page in the middle so im using this script response.write("<script>window.open("url",name,width.height)</script>") is there is any attribute for window.open so i can determine the page position???? and without using moveto(x,y) because "move to" load th...more >>

Server Error in '/Hello World' Application
Posted by Sean at 7/20/2004 1:06:01 PM
I can't do any of the ASP.NET samples as everytime I run the sample I get a parser error. This is the text. Server Error in '/Hello World' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the pa...more >>

Excel Documents & Forms Authentication
Posted by lewis NO[at]SPAM moten.com at 7/20/2004 1:03:37 PM
I have a file that users can download through a web page protected by forms authentication: Download.aspx?ID=45 and within that file ... FileInfo fileToDownload = new FileInfo(fileName); Response.AppendHeader("Content-Length", fileToDownload.Length.ToString()); Response.ContentType ...more >>

ASP.net query builder
Posted by adrianM at 7/20/2004 12:55:13 PM
Eoes anyone know of any ASP.Net query expression builder controls on the market? ...more >>

IP Information
Posted by Charles A. Lackman at 7/20/2004 12:43:36 PM
Hello, I am running a web server from my home and when anyone visits my web site, I get a report that shows the IP address of the visitor. Is there a way to get more information about the visitor, like thier Email address or other types of contact information? WhoIs only gives me the ISP. ...more >>

Want to be able to allow users to log in, but be able to change password as well
Posted by Rod at 7/20/2004 12:32:05 PM
I have a requirement in which I need to allow the user to log into our ASP.NET application, but also be able to change their Windows password, if it is expired. I had thought that Windows authentication would do the trick, but it appears not to. (If the user's password has expired, it will sit...more >>

checking for which button is pressed
Posted by darrel at 7/20/2004 12:12:14 PM
I have a file upload tool. Before I save the file to a directory on the server, I first check to see if that file exists. If it does, I exit out of the 'save' function and display a different panel that will say: ============================================== File exists. Do you want to sav...more >>

checking a checkbox control at runtime based on literal value?
Posted by Moe Sizlak at 7/20/2004 12:05:28 PM
Hi, Can I check a checkbox by default based on the value returned from a database? for example if the value (dr("frm7value")) returned from a db field is "YES" how can I check the checkbox by default? Moe ...more >>

I found this error...What to do?
Posted by Ather Ali Shaikh at 7/20/2004 12:01:40 PM
I have my custom assembly in the same bin directory where the = application assembly is being crreated.=20 Regards=20 Ather Ali =20 Configuration Error=20 Description: An error occurred during the processing of a configuration = file required to service this request. Please review the spec...more >>

Can an XmlNode from one XmlDocument be copied to another XmlDocument?
Posted by Bob at 7/20/2004 11:50:13 AM
I'm wondering if one node that belongs to one XmlDocument can be appended to another XmlDocument as a new child without having to build a new node from scratch. I would think XmlNode.Clone() is for this purpose but no, it doesn't work. I got the following error: The node to be inserted is fr...more >>

asp:hyperlink object in Repeater control ??
Posted by Martin Dew at 7/20/2004 11:43:55 AM
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below but here is the snippet of my asp:hyperlink object; <asp:HyperLink NavigateUrl="authonly/clientde...more >>

Error trying to debug
Posted by Bart Schelkens at 7/20/2004 11:32:19 AM
Hi, I'm writing an ASP.Net programme (using VB.Net) When I press F5 to run and debug, i get the message : Error while trying to run project. Would you like to disable future attempts to debug ASP.NET pages for this project? What did I do wrong? I would like to make sure that I can debug ...more >>

Cannot load assembly XXX.Global - Win2003/.NET 1.1/WSS
Posted by Shikari Shambu at 7/20/2004 11:14:52 AM
Hi, I have ASP.NET site on my development environment (Windows 2003 server, ..NET Framework 1.1 and Windows Sharpoint SErvices). When I try to access the site I get the following error Parser Error Description: An error occurred during the parsing of a resource required to service this...more >>

save the XML string or the XmlDocument object in session?
Posted by Bob at 7/20/2004 10:58:58 AM
I'm wondering how much more memory an XmlDocument object takes than the corresponding Xml string? I have some user data to store in ASP.NET session and everytime it's used, an XmlDocument object is needed. If there's not too much difference in the memory consumption, then saving the object woul...more >>

search in a HashTable, DataTable, and XmlDocument, which is faster?
Posted by Bob at 7/20/2004 10:55:39 AM
I have a name-value pair type of data that I need to search against. It's to determine what menu item to highlight given the asp.net page name. So the list has all my page names (unique) and the corresponding menu IDs. Some pages have the same menu IDs. One every page load, I want to check the...more >>

ASP.NET Session State
Posted by ASP.Confused at 7/20/2004 10:19:12 AM
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for me to toss my assemblies into. We keep loosing session state every few months. People have told ...more >>

ASPX Page Timeout - Session Timeout
Posted by DavidS at 7/20/2004 10:09:01 AM
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) wit...more >>

Trim trailing 0 from decimal place of number
Posted by martin at 7/20/2004 9:23:49 AM
Hi, I am having difficulty trimming any traling 0's from my decimal numbers. I store then in the database to 2 decimal places. This means that when they come back to my application they still diply with all the decimal places eg 10.00 displays as 10.00 10.10 displays as 10.10 what I...more >>

UUEncode/Decode
Posted by ~glen~ at 7/20/2004 9:20:50 AM
Does anyone know if there is a UUEncode/UUDecode function availible to Asp/VB.NET? I've seen a VisualC++ ATL with this functionality and thought there might be something similar in .NET ...more >>

Question about datatables and sql
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 7/20/2004 8:37:27 AM
I have three rows from a mysql database. id, name, value It prints three rows in my web form c#. I want to know how to combine all the results in one row, filtered where needs be. So, instead of; 1 johnny 5 2 bubba 6 3 jack 7 I want: id name value 1 johnny, bub...more >>

where to get started?
Posted by h00ligan at 7/20/2004 8:27:32 AM
I'm an MCSE, with great html skill, decent css, flash, graphics.. but something that has been constantly missing is dynamic pages. I am trying to choose between asp/sql and php/mySQL. In New York where I am now, it's a 50/50 split. However, I'm moving back to Arizona, where it's nearly al...more >>

Server Live Expectancy?
Posted by JM at 7/20/2004 8:18:19 AM
We are using 4+ year-old Dell PE2450's with dual 1.0Ghz processors / 1GB RAM / RAID5 for our dev, qa, and prod web servers for a financial application (3 identical servers). They all run fine, there are no reliability problems, and performance is fair/good. The initial warranty expired at the...more >>

about frame reload (cc John Sivilla, Ken Cox)
Posted by Edward at 7/20/2004 7:41:37 AM
Hi, all, I read one thread here, about Refresh page, now my question is, default.aspx which include login pane and one frame, <iframe name=main></iframe> after login succeeds, I add RegisterStartupScript("Reload", "<SCRIPT Language='Javascript'>main.location.reload()</" & ...more >>

Post Data ASP web page from ASPX Page
Posted by Srinivasa Raghavan Sethuraman at 7/20/2004 7:22:54 AM
Hi I need to Post Data to a ASP web page(Different web server) from ASPX Page(Different web server). I know i have to use HttpWebRequest, any cluses how to implement it. Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...ge...more >>

Edit Access Database Online
Posted by Miguel Dias Moura at 7/20/2004 7:12:37 AM
Hello, I have a completely dynamic web site all based in one 10 tables included in one Access Database. The web site is all done in ASP.Net / VB. I am looking for an easy way to create an online page which shows all records of a certain table and makes it possible to add a new record or ...more >>

Newbie issue: Error creating Web Service in VS 2003
Posted by JPH at 7/20/2004 6:56:29 AM
Hi all! Here's my problem: When trying to create a new C# Web Service in VS 2003, I get the following error message: "The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebService1'. 'HTTP/1.1 500 Inte...more >>

Referencing Controls
Posted by vpirollimailbox-me NO[at]SPAM yahoo.co.uk at 7/20/2004 6:39:11 AM
I have 30 (3 x 10) text boxes on a page that i want to reference and validate. i have named them txtA1,,,,, txtA10 etc--> txtC10 i wanted to reference them by passing in a rowindex into the sub -------------------------------- sub findcontrols(rowindex) for i = 1 to 10 if txt(rowin...more >>

DataGrid column with numbers of rows
Posted by Przemo at 7/20/2004 1:52:12 AM
In my DataGrid, I would like to put into the first column number representing the number of row on screen. I am using DataGrid1_ItemCreated event to color some rows depending on data and I thougt that it could be a good place to insert number of row into the first column. But how to calcul...more >>

DropDownList datalist extension
Posted by Przemo at 7/20/2004 12:32:04 AM
Hi, I have a DropDownList, which is based on a DataTable generated from SQLServer. It consists of two fields: ID and Name. ID starts from "1" I Would like to add a special row to my DropDownList with ID=0 abd Name="Please select". Any suggestions? Thank you....more >>

ASP on IIS V.5.1
Posted by Ashley at 7/20/2004 12:12:02 AM
Hello, I have a IIS V.5.1 Web Server running complete with http:// and FTP access with FTP user accounts and so on to microsoft standard. My fellow collegue is now coding in ASP, creating logins and advanced features. I have been told that I may be able to "enable" ASP on IIS v.5.1 and be a...more >>


DevelopmentNow Blog