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 > april 2005 > threads for thursday april 14

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

Session from asp to aspx
Posted by Meir Rudovsky at 4/14/2005 11:35:26 PM
I have asp page which has iframe to host aspx page. Since , the main application (asp page) has session values , i need these values be passed to aspx page in iframe. But, i found out that session cookies are not the same. Is there any way to pass session values from asp to aspx ? ...more >>


where is the javascript code that does clinet side validation?
Posted by Dee at 4/14/2005 9:11:27 PM
Hi Where is the javascript code that does the client side validation? Thanks Dee ...more >>

ASP.NET 2.0: "hello world" page fails with "Failed to map the path
Posted by randy collins at 4/14/2005 8:57:02 PM
I've installed Visual Studio 2005 Beta from the MSDN cd dated Aug 2004, which installs the 2.0 framework and ASP.NET 2.0. I write a simple aspx page containing <HTML><BODY>Hello world</BODY></HTML> and place it in inetpub\wwwroot. I run the page http://localhost/test.aspx and it fails with ...more >>

How to display Records in grid
Posted by yoshitha at 4/14/2005 8:25:15 PM
hi, i want to display records in datagrid. strtestids() is a string array. it contains some testids. based on these ids i've to fill the datagrid. i wrote code like this Dim db As New NESDK.DatabaseGrid Dim i As Integer For i = 0 To strTestIds.Length - 1 ...more >>

databinding at runtime.
Posted by Al Smith at 4/14/2005 6:57:12 PM
I kind of understand how the below works, however I am trying to do it = at runtime vrs design time. <asp:TextBox id=3D"TextBox1" runat=3D"server" Text=3D'<%# = StateList.SelectedItem.Text %>'></asp:TextBox>=20 So what I really want to do is something like I show below. In Page_Load I hav...more >>

input file - set default extension
Posted by Grant Merwitz at 4/14/2005 5:12:42 PM
I am using an <INPUT type="file" I want to set the default file type to be a .doc i.e. When you click browse, instead of 'Files of type' being 'All File(*.*)' it will be set to 'Word Documents (*.doc)' Is this possible? TIA ...more >>

Row height in datagrid
Posted by Sandy at 4/14/2005 5:05:03 PM
Hello - I have a datagrid with scrollbars and paging. I have tried setting the row height of the header, pager, footer and Itemstyle. Everything functions great until I hit the last page when the last page consists of less rows than the page size. On the last page, the row height becomes...more >>

Posting to a PHP Page
Posted by jpontani NO[at]SPAM gmail.com at 4/14/2005 4:30:20 PM
I want to create a desktop app that will post form data to a PHP page. I've researched it on Google, and couldn't come up with anything helpful. I can get it to post text form data, but my debacle is that I want to post a file. I'm not sure how to post file info and actual file data (if need...more >>



Help, error while creating ASP.NET app
Posted by Jeff at 4/14/2005 4:22:33 PM
OS: XPpro sp2 Visual Studio 2003 : 7.1.3088 ..NET Framework 1.1 (1.1.4322 sp1) When I in VS tryes to create an ASP.NET app I get this error message: "Visual Studio .NET has detected that hte specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET web ap...more >>

Clearing a DataGrid
Posted by tshad at 4/14/2005 3:59:08 PM
How do I clear a DataGrid? I have 2 datagrid (DataGrid1 and DataGrid2). They are the same, except for a couple of extra fields that DataGrid has for detail. I only display one DataGrid at a time. The problem is that even when one is not showing, it is still sending the data it was filled...more >>

Global.asax
Posted by Andreas Zita at 4/14/2005 3:54:45 PM
I don't understand how to access my global objects? I have this global.asax file: <%@ Application Codebehind="Global.asax.cs" Inherits="AlbumService.Global" %> <object id="AlbumSettings" runat="server" class="AlbumService.Settings" scope="Application" /> According to http://www.csharph...more >>

Line feed in DB field
Posted by Frank Esser at 4/14/2005 3:39:39 PM
Hello, I read data from a DB field where a line feed ("\n") is in. I put this data as text to a label web control. In the HTML page the line feeds are shown as real line feeds in the HTML source. But in the label itself on the page in the browser the line feeds are ignored. How can I ch...more >>

sending email with attachment w/out filesystem
Posted by Trapulo at 4/14/2005 3:39:08 PM
How can I send an email with attachments without save the file on the file system? With MailMessage I can only attach a file from file system, but I have the file as byte array and I wan't save-read-delete data (I'm on a webserver, the file is posted). thanks ...more >>

why Page.LoadControl?
Posted by alecyy at 4/14/2005 3:32:30 PM
hi, I create a UserControl called "RegInfo.ascx", then i add a PlaceHolder to WebForm1, and in WebForm1.Page_Load() i wrote the follow statement: placeHolder.Controls.Add(new RegInfo()); but when i pressed F5 to run the web app, it shows nothing. :( after search web to find out solutio...more >>

Session("passed") = Session("passed") + 1 error
Posted by dee at 4/14/2005 2:50:30 PM
Hi My code complies the following line: Session("passed") = 1 but puts wiggly error line under the second Session("passed") in the following expression: Session("passed") = Session("passed") + 1 Why? Thanks Dee. Session("passed") = Session("passed") + 1 Session("passed") = ...more >>

HttpWebRequest 410 Status Code - Username + Password are correct
Posted by Noel Volin at 4/14/2005 2:44:09 PM
Anyone who can help here is much appreciated. I am trying to programmatically log onto a website. I am using the code provided in VS for the AuthenticationManager Class example ( ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemNetAuthenticationManagerClassTopic.htm ). ...more >>

Yikes! Where is that initialization code in ASPNET 2.0?
Posted by PinoyDotnet at 4/14/2005 2:41:23 PM
I am just starting 2.0, so I have this In ASPNET 1.X there is a method called InitializeComponent() which clearly wires in the Page_Load method to the Load event, like this: private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); ...more >>

How to manual databinding in VS2005 Express ?
Posted by ad at 4/14/2005 2:18:20 PM
We must manually fill a dataset and bind a dataGrid when we want to display data in a datagird in the VS2003. The two steps will auto execute in VS2005 Express win SqlDatasource and GridView But I want these steps to do manually. How an I set them? ...more >>

Datagrid Question
Posted by Manny Chohan at 4/14/2005 2:14:02 PM
Hi Guys, I am programming in VB .net. I have a datagrid with template column. Each row as Checkbox and a Linkbutton in it. I have defined onCommand for Linkbutton. I am having trouble figuring out how to find if the checkbox is selected or not and retrieve value set for check box. Please...more >>

Dynamic CheckBoxList???
Posted by Jack Black at 4/14/2005 2:07:54 PM
Using VS.Net 2k3 to build ASP.Net app with VB code-behind pages... Hi, all! I've been struggling with getting a dynamically-generated CheckBoxList generated. I've finally been able to get the list generated, but now there are two problems I haven't been able to overcome: 1) ASP.Net is mun...more >>

ASP.Net Performance better with IIS 6.0 in IIS 5.0 isolation mode
Posted by John McGuire at 4/14/2005 2:00:02 PM
We have an web application about to go live with a customer. The app is ASP.Net 1.1 Framework with an Oracle DB backend. We have done performance tests on a W2K (IIS 5.0) test web server at our site (database is running on another server). We installed in the customer site for testing on their...more >>

Can I develop ASP.NET/C# applications in Microsoft Visual C# .NET Standard 2003?
Posted by TheBurgerMan at 4/14/2005 1:54:08 PM
or do I have to spend the extra >$1,000 and purchase Visual Studio? -- Thanks, TheBurgerMan at gmail.com -- ...more >>

What did visual studio do?
Posted by dee at 4/14/2005 1:52:16 PM
Hi I'm working on a sample application that was working and ceased to work. I get the following error: Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.Recipe15_9_aspx' Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Recipe15...more >>

where does Console.WriteLine() goto in a web app?
Posted by Flip at 4/14/2005 1:50:05 PM
Where does Console.WriteLine() goto in a web app? I used to be able to do something like System.err.println() in java/j2ee web apps and I could see the adhoc debugging statements in the servers console. But when I try that in .net with C#, the adhoc messages get swallowed up, but I don't kn...more >>

Custom ToolBoxItem type:
Posted by Praveen Ramesh at 4/14/2005 1:47:31 PM
Hi, I have derived from the base ToolBoxItem type as follows (it does nothing, I just want to get things working for now): [Serializable()] public class MyToolBoxItem : ToolboxItem { public MyToolBoxItem() : base() {} public MyToolBoxItem(Type toolType):base(toolType){} ...more >>

Server.GetLastError
Posted by VK at 4/14/2005 1:40:34 PM
Hello, I am trying to get the last occured error via the following code: Sub Page_Load(...) Dim zero As Integer = 0 Try Dim err As Integer = 10 / zero Catch ex As Exception End Try Response.write(Server.GetLastError.Message) End Sub However the above code always throws an er...more >>

Hide / Show Details
Posted by Greg at 4/14/2005 1:36:01 PM
Hello, I am trying to display order ids and order details (order items). I would like to give the user Hide/Show option to either display or hide order details. The page would look like: Expand All Collapse All =================== Order 1 Hide Details Item 1 Item 2 Etc =======...more >>

UML Modeler
Posted by Chris Fink at 4/14/2005 1:33:03 PM
Any recommendations on good UML modelers for .NET? Does Microsoft Visio have a good toolset for this? ...more >>

Q: sum grid column
Posted by JIM.H. at 4/14/2005 1:24:31 PM
Hello, I have a datagrid in my C# application, and three of the columns are actually $ amount, how can get a total amount per column? Thanks, Jim. ...more >>

Sending emails
Posted by VK at 4/14/2005 1:24:14 PM
Hello, I am trying to send one simple email. However each time I try this I get the following error: The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available. Here is my code: Function SendEmail() D...more >>

Q: select value in dropdown list
Posted by JIM.H. at 4/14/2005 1:23:19 PM
Hello, I usee this to find string sD in drop down list and select the value. dllSP.SelectedIndex = dllSP.Items.IndexOf(dllSP.Items.FindByText(sD); Can I get FindByText work with wildcards? So dropdown list has xyzt, and if sD is xyz, I need to select xyzt. Right now it does not select since is ...more >>

cheap and reliable ASP.Net web hoster
Posted by VMI at 4/14/2005 1:22:46 PM
Are there any reliable and cheap ASP.Net hosters? I'm looking for a web hoster that supports ASP.Net (required) and has access to SQL Server (preferably for free) and mySQL. Obviously, their up-time should be pretty high and it should have all the other perks (emails, good amount of disk sp...more >>

Set a value to a hidden field in a web page
Posted by Magnus Blomberg at 4/14/2005 1:17:18 PM
Hello! I have a problem when using a hidden field to send a value to the server. Below you can see my code in simplyfied versions. What I'm trying to do is: 1. The user browses for a picture at the network from their computer using control File1. 2. The user clickes the button Commit pictu...more >>

generic object referance
Posted by Matt at 4/14/2005 1:11:02 PM
How can make line 3 generic so i dont have to call it every function. Would something like dataaccess works? public class Validation 1 public bool IsAlpha(string str) 2 { 3 Regex alpha = new Regex(AlphaPattern); 4 alpha.whatever 5 } ********************** public class DataA...more >>

DataReader... and ...
Posted by John Smith at 4/14/2005 1:03:59 PM
I am using .NetFramework 1.1. and SQL2K. I am calling a stored procedure and it has multiple results set and some output parameters. If the output parameter does not meet certain condition, I am quitting the stored procedure (SP) by calling "return" statement which results in SP...more >>

Size vs Width in ASP.net
Posted by Elmo Watson at 4/14/2005 1:01:47 PM
In HTML - for a textbox (input), I would use the 'Size' Attribute In an ASP.Net TextBox - I use 'Width' - - (like 200px) However, for other browsers - Other than IE - the size attribute isn't added - - I can add it, but in able to get the sizes correct, I need some corresponding algorithm for ...more >>

Read DateTime from string
Posted by Frank Esser at 4/14/2005 12:30:31 PM
Hello, how can I get the date/time value from a string that contains the date and time in this format: YYYYMMDDhhmmss Thanks! ...more >>

Adding @Assembly references programmatically
Posted by Praveen Ramesh at 4/14/2005 12:19:57 PM
Hi, Is there any way to add the @Assembly reference to the aspx files programmatically from inside a custom control (when it gets dropped on to the page from the toolbox)? I have a custom control - MyControl that implements an interface in another custom assembly - InterfaceAssembly. Whe...more >>

overridding webcontrols property programmatically
Posted by gane kol at 4/14/2005 11:26:45 AM
Hi, I have a few asp:radiobutton with checked = "true" by default in a XSLT file. But when i tried to change it programmatically in aspx.cs based on the database value, it is not changing. It is always set to true. I need to have the radiobuttons checked by default. - Gane ...more >>

Javascript question on customvalidation
Posted by gane kol at 4/14/2005 11:08:51 AM
Hi I have a set of Yes/No radio buttons with textboxes for each. I need to write a common customvalidation function that checks, if radiobutton "yes" is selected, the value in the corresponding textbox should be greater than 0. For eg: IsVM Qty: <radX0Yes> YES <radX0No> NO Qty: <t...more >>

Best practices to deploying ASP.NET applications.
Posted by recoil NO[at]SPAM community.nospam at 4/14/2005 10:58:25 AM
I am looking around for alternatives to remote deployment of ASP.NET projects. We currently use batch scripts to automate our remote deployment because VS.NET's Copy Project features plain and simply do not appear to work in the real world. I was wondering if other people had other methods of de...more >>

Summary text doesn't work
Posted by Pietro at 4/14/2005 10:12:03 AM
I've created a summary text for a method of a class, but it doesn't appear whem i add it to another project, i can see it only in the same project. Thanks Pietro...more >>

Can't Update of Cookie
Posted by sebnunes NO[at]SPAM hotmail.com at 4/14/2005 10:04:18 AM
Hi All, I'm a bit confused. I simply try to create a new Cookie. And Update my cookie later when another call is made to my Page. The cookie creation works properly, but the update does not work at all. I'm probably missing something but I can't find what. Any help will be really appreciated...more >>

Accessing a windows Service from a web form
Posted by Roger Twomey at 4/14/2005 9:33:39 AM
Can a .Net web form interact with a .Net web service? More importantly... How? I have written a web-service which runs on a timer to check for data in a database that needs to be 'operated' on. The data is entered into the database from web, telephone and Windows applications. Rather than ...more >>

DAL
Posted by JJcuzz at 4/14/2005 9:02:50 AM
Hello, I am looking for DALs out there, and I would like to compare them. could you please reply with a list of them. thanks, Giovanni ...more >>

Visual Studio Question...
Posted by Rob Meade at 4/14/2005 8:37:00 AM
Hi all, We use Visual Studio 2003 (Ent. Edit) here at work, most of which is ASP.net, some Windows, I have become familiar with the odd quirk etc, the one thing that currently drives me insane is that wrapping of text when you go into HTML view of a page... I know it's only a little thin...more >>

Pop-up stay on top
Posted by Dan Pavel at 4/14/2005 8:08:12 AM
Hi, I am trying to make a pop-up window with some dynamic data that needs to stay on top. It is opened from a web application. I managed to do it to stay on top, inserting onblur="self.focus()" in body tag. My problem is that when the pop-up window is up, I can't make anything on the parent w...more >>

Exporting to PDF format in ASP.NET
Posted by Subrahmanyam via DotNetMonster.com at 4/14/2005 7:22:51 AM
Hi, I have a report generated in ASP.NET using XML and XLS with a bitmap image showing a graph. I want to export the generated report including the bitmap to PDF format. How can i achieve this. Note: Without using CrystalReports or Third party components. Thanks for some suggestions...more >>

Session Expiration in ASP.NET
Posted by Snig at 4/14/2005 7:11:00 AM
Hi guys How can I make the session in an ASP.NET application so that it NEVER EXPIRES ? thanks ...more >>

Javascript and aspx
Posted by venky at 4/14/2005 6:57:30 AM
I have a problem. I have a aspx page. I have my javascripts in seperate ..js file. My javascrips were working properly but suddenly they are not working. I am not able to figure it out what the problem. any ideas or someone else found similar problem happening to them? venky ...more >>

Viewstate
Posted by VK at 4/14/2005 6:54:37 AM
Hello, I have created a datalist control which I derived from the datalist control. Now I also implemented sorting for this datalist. In my webform when the user clicks the header, then I simply store the SortExpression in the viewstate and do the sorting then. Now I would like to ha...more >>

ActiveX component cant create object
Posted by Steve Richter at 4/14/2005 5:58:26 AM
running a simple vbscript in an .htm page that starts excel and loads the spreadsheet with the contents of a <table> ... </table> getting an "Error: ActiveX component cant create object. Excel.Application" error. <script language=3D"vbscript"> Sub TableToExcel_onclick Dim sHTML, oExc...more >>

Just wondering if anyone has a solution for this problem ...
Posted by gschowdary NO[at]SPAM gmail.com at 4/14/2005 2:39:57 AM
Hi! Guys, I am using a base class and I am inheriting it into derived class page instead of using System.Web.UI.Page. which is giving the following error. "The file could not be loaded into the Web Forms designer. Please correct the following error and then try loading it again: An excep...more >>

tricky postback problem...
Posted by srbapat NO[at]SPAM mahindrabt.com at 4/14/2005 1:57:48 AM
We can try writing java script function which will change mouse pointr to Hourglass of entire document. Means we can write two functions 1)Change cursor to hourglass 2)change back to default. Call this function before and after your third party call, this avoides user to click on button...more >>

Problem with Event Log (long)
Posted by Dan Brill at 4/14/2005 12:00:00 AM
Hi, I'm sure this issue has been covered before but after searching around I can't find anything which deals with quite the same set of circumstances or suggests an optimal solution. The issue is, broadly, that when I try to write to the Windows Event Log from ASP.NET code I receive a Sy...more >>

How to integrate Profile with Membership
Posted by ad at 4/14/2005 12:00:00 AM
I want to integrate Profile with Membership. Have there any article about it. I have find some article in http://beta.asp.net/QUICKSTART/aspnet/doc/profile/default.aspx But it is not what I want. ...more >>

What files do I copy when deploying by FTP?
Posted by HK at 4/14/2005 12:00:00 AM
I have a blank site on a remote server with no Front Page Server Extensions. I need to deploy a web service (one asmx page) and one web page (aspx), both of which use one class file (class.vb). What are the bare minimum files I need to FTP to that server for it to work? I also don't want to de...more >>

Can we open two projects in VWM
Posted by ad at 4/14/2005 12:00:00 AM
We can open two projects in VS2003, and refer each other. How can we do so in VS 2005 Express? ...more >>


DevelopmentNow Blog