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 2006 > threads for tuesday april 25

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

string --> arraylist = invalid cast?
Posted by Darrel at 4/25/2006 11:42:59 PM
What's wrong with this vb.net dim?: Dim imagesToSave As ArrayList = myString.split(",") With myString = comma delimited string. I keep getting an invalid cast error with that. It's late and I'm tired, so I'm likely missing the obvious. -Darrel ...more >>


Accessing classic ASP page that returns xml
Posted by Mike Hanson at 4/25/2006 11:13:02 PM
I am working on a web app that needs to get xml data from a classic ASP application hosted on a remote server. If I reference the url with IE, the xml is displayed correctly and formatted using the default style sheet, so we know the page is working for a standard browser request. Howeve...more >>

GridView databinding twice on postbacks
Posted by J055 at 4/25/2006 11:10:16 PM
Hi I have a very simple configuration of the GridView with paging and sorting. When I do a postback the DataBinding event fires twice - in both the ProcessPostData and PreRender stages of the page life cycle. In this example the event fires twice when a) GridView EnableViewState=False and ...more >>

Using RewritePath - but I want to send the user to a 404
Posted by Klaus Jensen at 4/25/2006 10:58:25 PM
For a customer I have created a website, where we use dynamic url-rewrites by using rewritepath in global.asa. Ie the url /products/gizmo.aspx does not really exist, but I look gizmo up in the db and find the relevant product, and then do a rewritepath to productpresentation.aspx?id=whateve...more >>

Connecting to a Database
Posted by oskermayor at 4/25/2006 9:44:23 PM
I am having trouble connecting to a database. I do not want to use the wizard to connect to the DB. I do not understand how to create a connection string that will connect to the database i am using. I am using Visual Studio 2005 and C# if anyone can help me. -- oskermayor ---------...more >>

Windows XP Home [Running ASP.NET Page]
Posted by Arsalan at 4/25/2006 8:51:13 PM
I'm using Visual Studio 2003, how do I run ASP.NET Page. XP Home edition doesn't have IIS server, so how am I going to run them ? It seems that VS 2005 have built in ASP Server, to parse the ASP.NET page, but this feature is not available in VS 2003. So how do I display ASP.NET (.aspx) p...more >>

error: Only Content controls are allowed directly in a content page that contains Content controls.
Posted by hazz at 4/25/2006 7:23:58 PM
putting a custom control in an aspx page that inherits from a master page is not working out for me. Any tips after getting that error? Also Element 'Search' is not a known element. This can occur if there is a compilation error in the Web site. <%@ Page Language="C#" MasterPageFile="~/Mast...more >>

selecting radio button in datalist
Posted by Vikas Kumar at 4/25/2006 5:38:14 PM
i am selectin some data from database and through reader showing it in datalist as above now for radio buttons i have single column which returns 1,2,3 and according to that i want one of above radio button to be preselected in this datalist how can i do that doing something like this but th...more >>



How to add style properties to a cutomer control
Posted by Shimon Sim at 4/25/2006 5:32:57 PM
I need to add few style properties to my custom control. The properties I added look like this. private Style titleStyle = new Style(); [Browsable(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public Style TitleStyle { get {return titleStyl...more >>

Client-Side JavaScript Problem in runat=server "<SELECT>"
Posted by Alex Maghen at 4/25/2006 5:26:01 PM
I have some client-side JavaScript that I want to run whenever a pulldown <SELECT> is changes on th client. I'm trying to do this as follows... <select id="MyPulldown" onchange="handleProblemChange();" runat="server"> If I do this, I get client-side javascript errors because the id "MyP...more >>

Publish and specify Major, Minor Version numbers using asp.net 2.0
Posted by theWizard1 at 4/25/2006 5:04:02 PM
Using Asp.NET 2.0. I published my web application to the server using the publish to website feature of asp.net 2.0. In VS.Net 2005 IDE, on solution explorer, at top level just below solution, I just right-clicked, and selected publish. I gave it the target server location (just mapped a ...more >>

CrystalReport Help
Posted by Frank at 4/25/2006 4:45:58 PM
Hello, I am developing with VS.NET 2003, the v1.1 .net platform, and CrystalReports XI I have no problem embedding the report which was created in CR and pulls form a stored procedure. When testing and running from within CR, whenever I refresh the report, it prompts me for a date top...more >>

replicate standard html form post functionality
Posted by Not Me at 4/25/2006 4:35:09 PM
Hi, I'm trying to translate a page into asp.net 2.0.. The options I need are e.g. action='some webpage', method=post, enctype='enctype' etc... the file is supplied by a standard file input dialog. How can I post a file using asp.net? the form allows for some of the above options, but...more >>

Which dynamic control to generate this html?
Posted by Martin at 4/25/2006 4:25:52 PM
Hi, I need to create the html below with dynamic controls <span class="myclass"> <h3>text1</h3> <h4><span>Price <strong>text2</strong> | Duration <strong>text3</strong></span></h4> </span> text1,text2, text3 need to be bound dynamically. If I was doing this with a non-dyna...more >>

Grayed Out Design View
Posted by danielhoin at 4/25/2006 4:13:10 PM
I don't have any errors. I have only a little bit of code as I just started a new app. I have a master page that shows up fine, but the actual content pages show only gray and my MP header in the background. I can place items and content in source view, but I have no design view capability. This...more >>

Gridview with listbox when editing!
Posted by Marcos Beccar Varela | GamaCom Argentina at 4/25/2006 4:07:32 PM
Hello Everyone. I need to use a gridview, that when I use the Update command one of the colums, instead of showing a textbox where the user can write, I need a combobox (listobx), where there are 3 options. EG OF GRIDVIEW: USUER AGE carlosg old rominat yo...more >>

Invalid State w/ JS popup window
Posted by none NO[at]SPAM no.com at 4/25/2006 4:05:53 PM
Hi, I'm opening a popup window with JavaScript. It has a command button. This is from the primary source (opener) window: ################################################################### // ======================================================= function popup01 () { var win_url ...more >>

asp 2.0 book recommendations
Posted by Evan Stone at 4/25/2006 3:42:24 PM
Hi, I'm looking for a decent intro reference for someone (i.e. me) who has some experience in ASP (classic), but wants to get up to speed in ASP.NET relatively quickly... Any favorites? thanks! evan k. stone | software engineer ---------------------------------------- santa rosa, c...more >>

Opening a page but address link stays the same?
Posted by Joris De Groote at 4/25/2006 3:27:25 PM
Hi, Is it possible to open a page from an aspx page, this without changing the url in the address bar? Actually it's a PDF file. Is this possible? Thanks Joris ...more >>

How can I transfer Session info to a different domain on same server?
Posted by Bishop at 4/25/2006 3:25:47 PM
Here is my situation. I'm building a web based store that will use the same code base for every store using host headers to determine which data to display. To prevent purchasing a SSL Cert for each domain I want to redirect the checkout process to a different domain. I have two or three ...more >>

Info!!
Posted by Vai2000 at 4/25/2006 2:48:26 PM
Hi All, Can someone tell me what type of window is being created on www.start.com if you click any contents link. A sample snippet would be appreciated. TIA ...more >>

cropping an image to size...?
Posted by Milsnips at 4/25/2006 2:45:38 PM
hi there, i'm uploading to my photo gallery and this is what i'm after.. When user uploads image, i automatically create a 75x75 thumbnail, however using the GetThumbnailImage function drops the quality and distorts it, so what i would like to do is: resize the original image to: Width...more >>

enter a default value for null
Posted by harry at 4/25/2006 2:36:50 PM
Using aspnet20 csharp, I have a simple data entry screen that inserts submitted values to a database. I want a default value to be submitted if no value is entered in a textbox. Thanks _harry ...more >>

Simple OO Question for .NET
Posted by byrd48 at 4/25/2006 1:56:15 PM
Hi, If I want to dynamically build an asp:table in a class file and return it to the caller as an object ie: public Table TableGenerator(){ public Table myTable = new Table(); .... .... return myTable; } My question is this, how do I call this method and display the resulting table i...more >>

IIS & localhost issue
Posted by Dave at 4/25/2006 1:44:01 PM
Today, for the first time, a flash file failed to load. However, when I replaced localhost with my IP address (or machine name) it displayed fine. Another person here at work had the same problem. He thinks its an IIS setup issue. He solved the problem by using Ctrl+Alt+P and picking the brows...more >>

Membership Question
Posted by Jesse Johnson at 4/25/2006 1:36:02 PM
I was wondering if it is possible to add a custom fields to the membership feature. Like gathering address, phone etc. Is there a way to get this information an store it in the same data tables as the other info, or do I need to creat my own fields and tabel to keep this info. Please help, tha...more >>

Access to DropDownList in a DataGrid from Page_Load
Posted by glenn at 4/25/2006 1:16:01 PM
Hi folks, Page_Load has the following definition: Sub Page_Load(sender as Object, e as EventArgs) As such, we are unable to instantiate a control that is inside a DataGrid since the e parameter is an EventArgs and not a DataGridCommandEventArgs type. If I have a ddl and I want ...more >>

datagrid like excel
Posted by CSharpguy at 4/25/2006 1:01:03 PM
Is it possible to create a datagrid that looks like excel? Currently i'm using the OWC (Excel spreadsheet control) and its only being used to export the data to excel. I would rather use the grid due to a little more flexiabilty, but can i make it look like excel on my web form and export the ...more >>

Gridview RowEditing event problem
Posted by Will Winn at 4/25/2006 12:46:02 PM
I have a gridview template field that I would like to get the value of during the RowEditing event, but can't figure out how. Here's an example of how I get the value of a cell for the row being edited: Dim WasherNum As String = gvBrazeLoad.Rows(e.NewEditIndex).Cells(6).Text It works if the C...more >>

rearrange the order of items in a control ?
Posted by hazz at 4/25/2006 12:37:06 PM
is there a way to have a re-arrangeable list with an asp.net control ? I would like to have a list of database table column values in an ordered list initially loaded by their column order in the table HOWEVER have the ability to use an arrow or some mechanism to rearrange the order of ...more >>

GridView RowCommand
Posted by Mike P at 4/25/2006 12:19:51 PM
I have a ButtonField in my GridView with a CommandName, and I have a method which I am using to capture each click of the button : protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "OpportunityDetails") { ... } } My ...more >>

valid html strict
Posted by KMA at 4/25/2006 12:04:44 PM
Just a general Q, but how do people feel about whether their html (or ASP.NETs html product) validates according w3org standards? I've just gone through a few hoops to get the warnings cleaned off my site. I feel happy that the site is now clean internally, but there wasn't an iota of diffe...more >>

Save ViewState to server - deserialize is very slow
Posted by mohaaron NO[at]SPAM gmail.com at 4/25/2006 11:41:30 AM
Can anyone tell me why when trying to use the following code to deserialize the viewstate it takes a long time with a large viewstate. This really surprised as the viewstate is big, but not that big. The formatter.Deserialize method takes a couple seconds which is a long time. protected overr...more >>

Problem with difference between System.Web.Mail and System.Net.Mail in using attachments
Posted by Brad at 4/25/2006 11:18:46 AM
I have a web .Net app which sends emails with attachments. After the email is sent I clean up aftermyself and delete the attachments from disk. In upgrading to .Net 2 I changed the email logic from using system.web.mail to system.net.mail (of course vs is telling me system.web.mail is obs...more >>

Ascx and panels - Help
Posted by Sunshine at 4/25/2006 11:13:23 AM
Hello all and thank you for your time. I have an application that I have just taken maintenance over from a consulting firm. The application uses a lot of user controls and panels to control information. I see that when the page is loaded (aspx), it loads all the user controls(ascx) as well. ...more >>

WebForm_DoCallback Undefined
Posted by Eric at 4/25/2006 10:49:01 AM
Hello, I am using callbacks from a user control, but it looks like the client cannot be "bound" to the server. When I try to run the callback, I get the "object expected" JavaScript error; when debugging the JavaScript, I find that WebForm_DoCallback is undefined. Does anyone know what ...more >>

Duplicate Items
Posted by Jim McGivney at 4/25/2006 10:48:59 AM
In VWD I have an aspx page with a DropDownList control. The DropDownList is populated from a column from a table in an Access database. If there are duplicate values in the column they are added to the DropDownList. Is there a way to eliminate duplicate items on the DropDownList ? Thanks,...more >>

dropdown list word wrap
Posted by etienne.bourgeois NO[at]SPAM gmail.com at 4/25/2006 10:46:34 AM
Hi Everybody, I'm a bit of a newb at .NET, so here is my problem... I fill up a drop down list with values from a SQL database, everything is fine and it shows up in my drop down list, however one of the entries in the list is very long and it is causing my drop down list to take up too muc...more >>

How to determine web reference URL of a compiled asp.net DLL?
Posted by DBxGlock at 4/25/2006 10:39:24 AM
Howdy folks, Recently we copied a .NET 1.1 aspx page and dll to a production server. The page had a web reference to a service that we have running on the production server, as well as another version running on the test server. Everything ran fine in production until the test server went d...more >>

How do I assign a null value to a SqlDataReader?
Posted by Learner at 4/25/2006 10:23:07 AM
Hello, This my a method to call a stored proce and uses a DataReader to read the data in the below method I am trying to assign a null value to my datareader variable Dim datareader As SqlDataReader datareader = null but it doesn't accept. ********************************** Public Fun...more >>

cannot view web pages after transferring files to web server
Posted by JayD at 4/25/2006 9:58:02 AM
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my local machine (part of a LAN) using Visual Web Developer, with ASP.NET 2.0. Backend is a SQL Server 2...more >>

Adding dummy item to DropDownList in a DataGrid
Posted by glenn at 4/25/2006 9:54:02 AM
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an OnSelectedIndex event is not fired if you select the first item. Does anyone know of an easy ...more >>

Hierarchical lists in DropDownLists
Posted by p.mc at 4/25/2006 9:03:18 AM
Hi all, I'm writing an image cataloguing system in asp.net and SQLserver. The system allows hierarchical keywords to be added to the image records. I've represented the keywords in tables with 'id' and 'text' fields for each keyword. The table of second level keywords also has a 'parentID' ...more >>

IIS error: The page you are looking for is currently unavailable.
Posted by dave at 4/25/2006 8:53:56 AM
I keep getting the error message below when I try to access my default.aspx page on a MS 2003 server. I am using v2 of .net. I've been rehashing the file security settings and the web settings but can't find a solution. If I place a 'test.html' doc as the default doc the browsers shows the d...more >>

Javascript hyperlink ID in a Datalist = Undefined
Posted by milbrand NO[at]SPAM gmail.com at 4/25/2006 8:40:50 AM
I have an ASPX page with a DataList. The ListItems contain a DropDownList and a Hyper Link. The user selects an Item from the Dropdown box and then selects the hyperlink to edit that item. My thought was to grab the ID, ClientID, or UniqueID of the Hyperlink and then build the name of the Dr...more >>

concurrency question on HttpApplication,HttpModule, and Page
Posted by walter at 4/25/2006 8:37:03 AM
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug into the process, does each instance of HttpApplication keep its own set of HttpModule instance or H...more >>

HTML Input=file - specify file type.
Posted by UJ at 4/25/2006 8:22:53 AM
Is there any way on an input="file" to specify what the default accepted types are? I don't want to have the user even be able to see the wrong type. TIA - Jeff. ...more >>

How to register js in <head>?
Posted by walter at 4/25/2006 8:21:03 AM
Hi there, when I use Page.ClientScript.Register...Block() , the script got added within the <form> tag. It's not a big problem, but I still want to put them in the <head> tag. See if you have any suggestion. Thanks....more >>

How to using/import class library in Visual Web Developer Express C#
Posted by Ronde at 4/25/2006 8:20:16 AM
Hi all, A newbie here. And I am using Visual Web Developer 2005 Express with C# to develop my web application. Here is the situation I am running into and need some help here. Thanks a lot in advance. I have a class, let's say Car, under namespace: MyTest. It is saved in the file: Car.cs...more >>

ADO.net question?
Posted by clickon at 4/25/2006 7:55:03 AM
I am fairly new to ASP.net having started with version 2. I have mostly used the DataSource controls for manipulating data but i now need to some data using ADO.net instead and a stored procedure in the SQL server database. As far as i can work out, in order to insert a new row using ADO.ne...more >>

GridView UpdateParameters
Posted by Mike P at 4/25/2006 7:03:00 AM
I must be missing something regarding update parameters. I have tried using <asp:Parameter> to specify my update parameters, and <asp:ControlParameter> when <asp:Parameter> didn't work for a particular parameter. Here is my code : < asp:SqlDataSource ID="SqlDataSource1" runat="server" Co...more >>

Why won't IIS process more than 1 request at a time?
Posted by Harry Keck at 4/25/2006 7:01:01 AM
I have client side code that uses xmlhttp to make an asyncronous call to the server. This call really churns the server and can take a couple of minutes to finish. I have found that while this long call is processing, I can not make any more requests to the server from the same session. I f...more >>

First Item in DropDownList does not fire OnSelectedIndexChanged
Posted by glenn at 4/25/2006 6:55:01 AM
Hi folks, If I want to select the first item in a DropDownList, I need to first select any item other than the first item and then next I select the first item which will then fire an event saying that I clicked the first item. Why can't I just select the first item to get an event to fire...more >>

Click even won't execute correctly
Posted by Michael at 4/25/2006 6:43:01 AM
Hi I've got a little issue with a form I'm working on right now. I have several command buttons on my web form and when I click on several of them, I get no response at all. I have defined events for the controls. Hmmm, I wonder, I also have 3 RequiredFieldValidator controls also on this form...more >>

Two DropDownList controls in one DataGrid cell
Posted by glenn at 4/25/2006 5:21:01 AM
Hi folks, I need to have two ddl's in one DataGrid cell. The first ddl has a list of company names and the second has a list of contact names that work in the company name that was selected in the first ddl. Any replies will be greatly appreciate. Here are 3 functions / subroutines tha...more >>

Need help in COM
Posted by AVL at 4/25/2006 4:16:01 AM
Hi, I'm a newbie to COM n Serviced Component architecture..I've developed a serviced component and registered it as a COM component usinf Regsvcs tool of .net... This serviced component has a Amount property which is of type long. Whenever I try to use the Amount property in my ASP page, i...more >>

stop firing validation controls
Posted by Rajani at 4/25/2006 4:13:02 AM
Hi, I have designed a form which process database Insert, edit and Delete(datagrid). I input userid,password and privilege in textboxes which has validation controls to verify data keyed in. And press the button to perform insert operation. Upto here is fine. I want to perform edi...more >>

Does Visual Web Developer have a 'insert symbol' functionality?
Posted by Steve at 4/25/2006 3:02:55 AM
Hi I want to add the copyright sign and various other 'symbols' in the content of my aspx pages in visual web developer, but I simply can't find a similar menu item to 'insert symbol' as is present in Microsoft Word or Microsoft Frontpage. Does anyone know how to insert these type of symbols ...more >>

Cross-browser compatibility of Asp.net v.1.1 & 2.0
Posted by prof_martin at 4/25/2006 2:29:01 AM
Hi Everyone, I got question from Customer. What kind of browser and version which can browse properly if application running on ASP.net v.1.1 or 2.0 beside IE.5x above? Firefox, Nescape, Mozilla, Opera? Any info which can help, thank you very much. Have a nice day, Martin Adhie...more >>

How to close all the child windows when parent window get closed?
Posted by zEE at 4/25/2006 12:43:44 AM
How to close all the child windows when parent window get closed? in ASP.net application through scripting.. ...more >>

How to use javascript to hide or show an ASP.Net control?
Posted by Nestor at 4/25/2006 12:43:02 AM
Is this possible at all? I'm working on a Atlas project which at one point requires me to hide an ASP.net control with Javascripts running on the client side. Anyone able to provide any help on this? Thanks. ...more >>

How to assign a UserControl with the methods of its parent page?
Posted by Liming at 4/25/2006 12:41:32 AM
Hi, I have a UserControl called it <pm:task> and it's in Page1. inside <pm:task> user control, I have 3 buttons, "create task", "edit task", "delete task". now I want to assign this <pm:task> this way in Page1.. protected void Create_Task_Function(object sender, EventArgs e) { } ......more >>

Parsing Problem....
Posted by Wallace at 4/25/2006 12:31:05 AM
Hai all, In VC++, CString str = " 4 76 1"; int nNo = atoi(str.Mid(0,8)); it returns nNo = 4 as output.... it returns the first integer occurence and neglects the remaining character.... Similarly, In C#.NET I do the same as following.... string str = " ...more >>

Dynamic control event not working
Posted by Sharon at 4/25/2006 12:00:00 AM
Hi all, When generating controls dynamically on a server event, control event does'nt work. Whats the problem? Thanks, Sharon. ...more >>

Can we use html Tag in GridView
Posted by ad at 4/25/2006 12:00:00 AM
I want to change some color of words in a GridView. So I add some Html tag to the words in a Gridview like: <font color='Red'>MyTest Words</font> But the it did not change the color but jset how the Html tag around it. If we can use html tag in the content of GirdView? ...more >>


DevelopmentNow Blog