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 > december 2003 > threads for wednesday december 10

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

Why do people write XML feeds in .aspx pages?
Posted by Bruce W.1 at 12/10/2003 10:10:35 PM
I've found a number of people that write XML feeds for .aspx web pages. Here's one: http://www.codeproject.com/aspnet/RSSviaXmlTextWriter.asp?print=true Why is this? What's the point in putting it in a web page? Wouldn't a web service .asmx make more sense? Thanks for your opinion....more >>

asp for asp.net
Posted by Igor at 12/10/2003 9:47:07 PM
Hi friends, I am moving of the classic ASP for the ASP.NET. It would like to know of you if this migration was difficult I am in Brazil and I do not say English, forgive me any error in the text. Thanks. Igor ...more >>

apache/php/mysql
Posted by Strahimir Antoljak at 12/10/2003 9:40:10 PM
I recently ventured into mamboserver.com apache/php/mysql based webserver/hosting. They absolutely claim that this thing is by far superior as compared with MS IIS/ASP.NET. Any thoughts? Is that really true? .... or those guys have no clue... thanks -- Strah @ Langan ...more >>

Loop Through Textboxes
Posted by Jason at 12/10/2003 9:28:32 PM
I want to loop through all textbox controls to determine their .text value. If the .text value is not "" then display the textbox. I have tried the following with no luck. Any help would be appreciated. Dim ctrl as Control For Each ctrl in Page.Controls If ctrl.GetType.ToString = "...more >>

Chrome windows
Posted by Brian Henry at 12/10/2003 8:35:37 PM
How do you create a "chrome" window in asp.net? thoes kind of windows that look like a normal winform type window with no toolbars or stuff... I know it's possible, i've seen it... thanks! ...more >>

How to know which exception to be thrown?
Posted by Tom at 12/10/2003 8:34:10 PM
Hi I have a method which insert data to DB. The data can be inserted. However, it returns to the login.aspx everytime. There is an exception to be thrown. But, I do not know what is the exception? How can I show it? The following is my code. try { objOperator.Insert(this.UserName.Tex...more >>

Web-Based Messenger
Posted by Logu at 12/10/2003 7:21:55 PM
Hi, Can anybody post some design guidelines for creating a web-based Instant messenger ?? This is getting little tricky.... ...more >>

How to create dynamic events handlers for Imagebuttons
Posted by RA at 12/10/2003 7:18:31 PM
Hi I have a dynamic asp.net table created from the database. I am adding an ImageButton to each row so the client can click on it. Each ImageButton has the ID = orderid from database. How can I receive the click event when the user clicks one of the buttons. Eventually I would like to do the s...more >>



Cannot use a leading .. to exit above the top directory.
Posted by Tom at 12/10/2003 6:58:53 PM
Hi, I have a stored procedure and a method to insert data to it. i = (int)SqlHelper.ExecuteScalar (Web.CommonBase.ConnectionString, CommandType.StoredProcedure, "AddProducts", arParms); I used breakpoint to check the value of i (int). It is '0' and data cannot be inserted to DB. ...more >>

Closing of OleDbConnection and OleDbDataReader
Posted by Keith at 12/10/2003 6:21:14 PM
Hi, if have this method in a cs file that connections to a database and returns a datareader to my web form. public OleDbDataReader GetDataReader(string theSQL) { theConn = new OleDbConnection(ConnectionString); theConn.Open(); OleDbCommand cmd = new OleDbCommand(theSQL, theConn);...more >>

Namespace Response could not be found?
Posted by Bruce W.1 at 12/10/2003 5:33:05 PM
I whipped up a web service based on this example: http://www.codeproject.com/aspnet/RSSviaXmlTextWriter.asp?print=true But my asmx file will not compile. I get this error: The type or namespace name 'Response' could not be found (are you missing a using directive or an assembly reference?) ...more >>

Need advice: Fax client / server solution for Windows platform
Posted by domtam NO[at]SPAM hotmail.com at 12/10/2003 5:00:44 PM
Hi there, I am writing an ASP.NET application that can support fax sending. My requirements are as follows: Must-have-feature: - support COM API (or even better, native .NET API) - accept attachment formats like plain-text, HTML (Some software claims to support HTML, but it turns out that...more >>

'howto' Frames in ASP.NET
Posted by Brian at 12/10/2003 4:54:47 PM
I have a web project that requires an .ASPX start page. I want the page to also include frames, but I can't find a way to make Visual Studio .NET allow me to use frames on an .ASPX page. I can do it manually, and by manually coding the commands it works perfectly. I was wondering if there was ...more >>

function call speed
Posted by tk at 12/10/2003 4:39:55 PM
hello, i have a relatively long function in the code behind page of my main form. this code may potentially be used by thousands of users. i want to break this function into smaller functions purely for readability but not reusability. Would having to call a few functions instead of ha...more >>

Code blocks are not supported in this context
Posted by John Cantley at 12/10/2003 4:32:26 PM
What does this mean, have been doing services and windows apps for awhile now, don't remember doing anything special to get them to work tried <script runat="server"> or whatever it was string sContent; sContent = GetContent("Default"); Response.Write(sContent) </script> <% ...more >>

Pop-up window not getting focus?
Posted by Kathy Burke at 12/10/2003 2:44:44 PM
Hi, I've used the following javascript structure in other places in my asp.net app, but for this one the pop-up window still goes to the back and doesn't get the focus. button onclick event: Response.Write("<script>var w=window.open('ECN.aspx', 'ECN', 'width=650,height=550,top=50,left=100,too...more >>

How can sort the item in dropdownlist box?
Posted by JL at 12/10/2003 2:41:32 PM
I am used a hashtable for dropdownlist data source but it seems un-sorted on output. Anybody who know the sort method in dropdownlist box? thanks a lot ...more >>

Local Dir
Posted by Ryan Moore at 12/10/2003 2:40:23 PM
How can I get the path of the virtual directory which an ASP.NET app is running? For example, on a page running at http://localhost/myapp/someFolder/default.aspx, I want to extract JUST the http://localhost/myapp/ what combination of Page.Requests does this? thnx ...more >>

dropdowns on some IE browsers don't refresh from cache
Posted by Jason Shohet at 12/10/2003 2:32:50 PM
I have a dataset that is put into a dropdown. The dataset is cached on the server (we program in .NET to do the cache) once a day on the server so we don't have to hit the db again and again for names of employess -- which doesn't change that much. On Monday a new employee was added to the sys...more >>

OutOfMemoryException
Posted by jaz at 12/10/2003 2:21:05 PM
my server is getting this Error i get this error when 1.handle count on the server is around 1800 2.RAM size: 2 GB 3.and asp_wp is taking 684mb and IIS (aps apps around 200mb) i know there is memory leak in my app are there any steps where i can walk thru and clean the code and get rid...more >>

Detecting control that causes postback in asp.net 2003
Posted by rosl NO[at]SPAM panztel.com at 12/10/2003 2:09:21 PM
I have a page with two textboxes and two buttons which post back to the server. I want to detect which button has been clicked for testing purposes preferably clientside, but otherwise serverside. However, when I examine Page.Request.Form("__EventTarget") in my aspx.vb Page Load sub , Page.Req...more >>

SQL and apostrophes
Posted by Chris Huddle at 12/10/2003 1:59:58 PM
Normally, if you have a value in a SQL statement that contains an apostrophe, you replace the ' with a ''. But how do you handle it in VB.NET if you are using a DataAdapter? The SQL statements are created on the fly by the commandbuilder and there's no way to replace the apostrophe. Surely Mi...more >>

How can get the event source from postback action?
Posted by JL at 12/10/2003 1:58:03 PM
Hi all, I have a two button in same web form, i want to get the information about which button to cause the postback action and determine the response. Does APS.NET has a method to do it on Page_load method? thanks a lot ...more >>

Application Center Test
Posted by Maximus at 12/10/2003 1:09:51 PM
Hi everybody, I dont know if this is the best place for this question, but could not find any newsgroups for Microsoft's Application Center Test(ACT) Tool. Does any one of you know of any such newsgroup. If not, can anyone tell me how to run a bunch of testscripts that I have written us...more >>

HOw to find which event had occurred that caused a PostBack?
Posted by JollyK at 12/10/2003 12:52:15 PM
Hi friends, This is my question.... From the Page Load event (or Page Init event), I would need to find which event had occurred that caused a PostBack, for example was it a event fired from the datagrid that caused a postback, or was it from a linkbutton, or was it from any other control on ...more >>

Restricting Http for POSTS and SOAP
Posted by Craig Neuwirt at 12/10/2003 12:51:09 PM
I was wondering if there is a way in ASP.NET to selectively reject HTTP requests for certain urls and Web Services. I would like to leave port 80 open for other stuff (wsdl, static content, ..), but reject HTTP requests that contain sensitive data. Would an HttpModule be the right solution? If...more >>

How do convert text to HTML?
Posted by BADEV at 12/10/2003 12:30:17 PM
I've an multi-line edit box on an html page that I use to collect detailed description information. I'd also like to display that information on an html page... How do I convert it to hmtl so that line feeds and other special characters are displayed properly. ...more >>

display an aspx page on a panel
Posted by William LaMartin at 12/10/2003 12:30:04 PM
Is there a way to place an aspx page on a panel contained on another aspx page? I can display an HTML page on the panel using a literal can figure no way to put and aspx page there. ...more >>

How many <FORM> tags per ASPX?
Posted by Larry at 12/10/2003 12:17:19 PM
Is it true that I can only have one <FORM> tag per aspx page? I have heard this and seen this on some other .net forums. Why is this necessary? How do you work around the situation where you want two different sections on the same page to postback to different pages? Thanks...more >>

Is a Response.Redirect to the same page a Postback?
Posted by Bruce W..1 at 12/10/2003 12:02:09 PM
Is it a Postback if you do a Response.Redirect to the same page? Thanks for your help....more >>

Get SelectedValue of DropDownList in User Control in WebForm
Posted by gu4y at 12/10/2003 12:00:14 PM
Hello All, How can I get the SelectedValue of a User Control's DropDownList in the code-behind of the WebForm hosting the User Control? (Without having to use Request.Form["UserControlName:DropDownListName"]) Thanks ...more >>

SHAManaged
Posted by Neil Stevens at 12/10/2003 11:15:48 AM
Hi, I am using SHAManaged to generate a Hash value for my user passwords and storing them in a database in this encrypted format. My question is, if one of my users forgets thier password is there a way to un-encrypt the password as stored in the database so as to retrieve the user password in...more >>

Data Binding Problem in DropDownList Control SelectedValue to Table text field
Posted by Tom Jorgenson at 12/10/2003 11:01:33 AM
I have a DropDownList whose items are populated simply via the Items property of the control. The field represents the gender of a client and the items are simply 'Male', 'Female', and 'Choose One'. I want to bind the selected item to a table record where the field is a text field, that is, I ...more >>

Posting onto a form after code executes?
Posted by Rob Meade at 12/10/2003 11:01:29 AM
Hi all, Ok - I have a bit of a problem with a login page. Originally it was written in normal asp - the page displayed the form, the user entered their details, it posted back to itself, validated them and then posted on again (using a form) to the relevant applications - sending with it a ...more >>

web.config
Posted by Neil Stevens at 12/10/2003 10:55:25 AM
Hi, I am developing a web site and have a number of properties in the web.config file. These properties need to be changed at run-time from a web page in the admin section of the web site. Is it possible ot achieve this? and if so what classes do i need to use? I have tried using the XmlDoc...more >>

Solving connections pool problem
Posted by ra294 at 12/10/2003 10:40:20 AM
I have an ASP.net application using SQL Server 2000 that every once in a while I am getting this error: "System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in us...more >>

P. Wilson's MasterPages
Posted by neverstill at 12/10/2003 10:28:29 AM
So a new project has inspired me to look into page Templating once again. My current approach of dynamically loading user controls (http://www.ntsdirect.com) seems "hacky" for a larger scale site, maybe even for that little site linked to above. Either way, I would like to find out more about ...more >>

CrystalReports
Posted by VJ at 12/10/2003 10:11:09 AM
I am having trouble with getting Crystal reports to work with ASP.NET using VB.NET, were do I ask the question? Is there a forum for Crystal Reports? VJ ...more >>

Determining cause of Error in VB.NET Web Apps
Posted by Fred Nelson at 12/10/2003 9:53:20 AM
I'm devloping a Web Application in VB.NET. In my web.config file I have specified that untrapped errors are to be sent to the page "errorpage.aspx". This is working fine - if an untrapped error occurs the application is indeed routed to this page. On this page I would like to determine the ca...more >>

See no controls on browser
Posted by THQ at 12/10/2003 9:32:00 AM
I have visual studio .NET V7 on XP pro and IIS 5.1. I created an ASP.NET web application with a label, a textbox and a button in c#. When I access the file MyWebForm.aspx in IE 6 or using http://localhost/MyWebForm.aspx or click the menu item "View in Browser" or "Build and Browse" inside ...more >>

Javascript in a .net page
Posted by Poppy at 12/10/2003 9:28:59 AM
I have a .net text field and a .net button on a form. When the user leaves the text field server side VB.net code fires to check if anything has been entered and if it has, enables the button. The problem with this is that it has to do the round trip to the server. How would I use javascri...more >>

Can't create New Proj. with XP/.NET 2003
Posted by Marc Miller at 12/10/2003 9:23:23 AM
Hi all, I have 2 dev. machines, the 1st is Win 2000 with .NET 7.0 and the 2nd is XP Pro with .NET 2003. My Web Server is Win 2000 Server with IIS 5.0. I can create a new project on my test server from the 1st machine, but I receive an 'HTTP/1.1 500 Internal Server error" from my Web Server...more >>

logic check please - not getting results wanted from IF
Posted by D. Shane Fowlkes at 12/10/2003 9:18:02 AM
(still a .NET newbie) I have a chunk of code in a Page_Load routine that pulls data from a SQL Server table. The Select statement looks for any "events" scheduled for today. Then my IF statement writes some HTML to a asp:label tag and conditionally fills it with HTML based upon any records w...more >>

Close opening window without using OK button
Posted by mg at 12/10/2003 9:01:01 AM
I need to first open WebForm2 from WebForm1 and then close WebForm1 without the end user having to press an OK button before the close can occur. For example, possibly Response.Write("<script language='javascript'>window.open ('WebForm2.aspx','two','menubar=no');</script>") Is ther...more >>

DataGrid and ItemCreated and Pager
Posted by Binny at 12/10/2003 8:16:55 AM
I have a datagrid with customized pager in header and footer. Is there a way to find during item created whether its for top or bottom of the Grid. thanks...more >>

Button Click events going into Bermuda Triangle, news at 10
Posted by Michael Johnson Jr. at 12/10/2003 8:15:16 AM
here is the problem, I have a table with dynamic buttons and events. On buton click of said row, it would clear the rows in the table, and repopulate it. This works fine the first time you run the app on the first click. Every other attempt to click one of these buttons fires a page load onl...more >>

Cache
Posted by Neil Cadman at 12/10/2003 7:04:11 AM
I have uploaded some files to my web server Post.aspx Post.aspx.vb Post.aspx.resx in Post.aspx.vb there is a connection string to connect to a SQL database using the SQLCLient functions. I put the data source as my local SQL server by mistake (as that is the one i use for dev) and now ...more >>

calling multiple web pages
Posted by Mark Fox at 12/10/2003 6:28:57 AM
Hello, I have a page DoBatchWork.aspx that my web host's cron requests periodically. It currently calls another web page that does some batch processing. The code I am currently using in DoBatchWork.aspx is: <%@ Page language="c#" EnableViewState="false" ContentType="text/html" ...more >>

Printing in IE
Posted by Vijay at 12/10/2003 6:13:57 AM
Hi, I have a web-form in ASP.NET that displays a table containing a set of <a href...."> tags. Each of these tags point to different documents(.doc, .xls, .pdf, etc) on the server. I want to give the user a functionality by which the user can print all these documents on the client-si...more >>

Error in file upload
Posted by Amar at 12/10/2003 6:11:20 AM
I am trying to upload a file to the webserver through my asp.net application. The file upload works fine for files below 50 MB size because i have set the maxrequestlength property of the <httpruntime> in the machine.config file as 51200KB. whenever the user tries to upload a file which is...more >>

Date Format
Posted by Tracey at 12/10/2003 5:52:37 AM
I have a web page that worked fine in development with the date format but now I have deployed it to my live web server whenever you add a date it switches the day and month around. For example, 10th December 2003 entered as 10/12/03 would be saved in a Microsoft Access database as 12/10/0...more >>

Color selector
Posted by Chris at 12/10/2003 5:16:53 AM
Hi I can't find any element in the WebForms of VisualStudio that allows the user to select a color from a range of e.g. system or web colors! Is there something available or is this to be made "manually"? Greetings Chris...more >>

Public Functions
Posted by Duane at 12/10/2003 4:53:54 AM
Can anyone tell me what is the standard practice for creating functions that can be used globally by a asp.net application. Should we put them in a class or just create another webform and reference it like an object accessing the functions as methods? Any insight would be helpful. Th...more >>

Comparison? ASP.NET vs good old ASP with C++ COMs?
Posted by Tom Kelleher at 12/10/2003 1:37:20 AM
Folks, I have a client who will likely be looking at ASP.NET in the near future. They have an internal developer who is convinced there are "scalability problems" with ASP.NET. This client has a very large, very critical, growing ASP app that I built with them in classic ASP, so they ar...more >>

Expanding a <div>
Posted by Kevin Quigley at 12/10/2003 12:31:02 AM
Hi, Does anyone know how to expand the area in a div tag when the selectedindexchanged event fires? I can get this to work when the user clicks a button, using the following javascript function..... function expandDiv(ctrl) { ctl = eval(ctrl) if (ctl.style.display == "none"...more >>


DevelopmentNow Blog