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 4

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

Doubt in repeator control
Posted by muthu at 4/4/2006 10:29:03 PM
Hi freinds, Iam using repeator control in my application.The code behind is vb.net. I have n number of rows and 5 columns in the repeator control.In the ItemDataBound event of the repeator control i have a variable which should get the value of first column in the repeator column....more >>

Popup Blockers
Posted by Just D. at 4/4/2006 9:33:15 PM
Does anybody know the way to detect a popup blocker in the Internet Explorer? I was thinking that I know but the customers got a situation when I wasn't able to detect the Yahoo Toolbar Popup Blocker and the app screwed up. I'm using this code in ASPX page right now: var wobj = window.ope...more >>

CompositeControls not added to the toolbox
Posted by Jeronimo Bertran at 4/4/2006 6:48:49 PM
Building a web control library using VS2005, the WebCustomControls are automatically added to the toolbox but the CompositeControls are not. Is there a way to make the CompositeControls automatically appear on the toolbox when the web page references the library? Thanks Jeronimo ...more >>

Extracting text from a Word document via StreamReader - track chan
Posted by Kevin K at 4/4/2006 6:20:01 PM
Hi, I'm having a problem with extracting text from a Word document using StreamReader. As I'm developing a web application, I do NOT want the server to make calls to Word. I want to simply open the Word document via StreamReader and extract the text. Here's the problem, the users in...more >>

Having Two web.config files under same site.
Posted by Asela Gunawardena at 4/4/2006 6:12:50 PM
we have a web site which operates as a seperate application that can be integrated with other webs site developped to use other platforms such as php, jsp, etc. so obivously we have our own web.config file. But recently this site was integrated with an ASP.NET site which dosenot allow us to ha...more >>

Sharing variables between <% %> and a function
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 4/4/2006 5:45:59 PM
Hi, gurus: For VB.NET, if I have a variable myString somewhere inside <% and %> in a page called mypage.aspx like so: <% '.... some code here myString = "Junkie.txt" '.... some other code here %> My client side code will use 'myString' like this: <param name="fileName" value="...more >>

Rendering classic ASP into ASP.NET applications
Posted by youngcraig NO[at]SPAM gmail.com at 4/4/2006 5:17:06 PM
Ok, so I have a predicament where I need to build a page harness using ASP.NET 2.0 that will render classic asp pages. What I am looking for is any information on being able to programatically render out a classic ASP page to the browser correctly from within a aspx page. So basically the user...more >>

runtime fatal error?
Posted by Trapulo at 4/4/2006 5:02:02 PM
I've this error debugging an ASP.NET page. "The runtime has encountered a fatal error. The address of the error was at 0x79ee9cbf, on thread 0x16b8. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of...more >>



Repeater control in a web user control
Posted by bill at 4/4/2006 4:46:30 PM
I have a Repeater control in a web user control. The web user control has a public method named PopulateRepeater which takes an ID as an parameter and populates the repeater control based on the parameter. When I call PopulateRepeater from the User Control page_load event it populates th...more >>

On Migrating From HTML 4.0 to XHTML 1.0
Posted by Fred Mertz at 4/4/2006 4:33:16 PM
So I have a non trivial ASP.NET 1.1 Web Application with custom controls emitting HTML markup and good deal of static HTML in the aspx pages. I'm wanting to make this thing fully XHTML 1.0 compliant. My primary question is this: Can I reasonably migrate from HTML 4.0 to XHTML 1.0 *incremen...more >>

Master Pages changes my image ID; breaks JS code
Posted by anony at 4/4/2006 3:59:43 PM
Hello, I'm converting a 1.1 app to 2.0 and decided to try out master pages. My menu system consists of images with onmouseover/out events to highlight selected menu items, and to display submenus. These events are attached to javascript functions which rely on the image id to appropately...more >>

datagrid paging problem IIS windows 2003 server
Posted by Manuel Alves at 4/4/2006 3:52:40 PM
Scenario: ASP 2.0 on XP pro dev machine works fine. Publishing to windows 2003 server worked OK until I included paging for a datagrid. On page load I cal sub binddata Private Sub binddata() Dim ds As DataSet = getMydataset() mydatagrid.DataSource = ds mydatagrid.DataBind() end...more >>

Math.Round not working for a certain number...
Posted by Chris Davoli at 4/4/2006 2:42:02 PM
The folllowing will round to 526, but it should round to 527. It works correctly for all other numbers, except for this one. Does anybody know of a bug in Math.Round? Dim ldecWater As Decimal = 526.5 CType(Math.Round(ldecWater, 0), String) -- Chris Davoli ...more >>

select dropdownlist triggers click on row
Posted by Dabbler at 4/4/2006 2:37:32 PM
I have a GridView which triggers the SelectedIndexChanging event when I click on the row anywhere implemented by this code in RowDataBound event handler: if ( e.Row.RowType == DataControlRowType.DataRow ){ e.Row.Attributes.Add( "onclick",this.GetPostBackClientEvent( RegistrantsGridView, "Se...more >>

ACT and ASP.NET -- Fire a button on a webpage?
Posted by William Sullivan at 4/4/2006 2:18:02 PM
Got a test script where I want Application Center Test to log off a user I just logged in via forms authentication. On one of my forms I have a button called btnLogout that, when pressed, logs off the user. I recorded myself logging on and logging off, and from the generated script I see: ...more >>

aspnet_wp.exe stopped unexpectedly and Server Application Unavailable
Posted by Paul Wasowicz at 4/4/2006 2:03:23 PM
Configuration: Windows 2000 Server SP4 ..Net Framework 1.1 SP1 Microsoft Site Server 3.0 Problem: the following error messages start showing up in the EVENT LOG on the server every once in a while until server becomes un-usable and has to be rebooted; users see in the browser Server Applica...more >>

Currency value = ?
Posted by Bruno Alexandre at 4/4/2006 1:53:34 PM
Hi guys, I'm using globalization to perform a Change Currency from our Shopping Cart for Danish Kroner I use "DA" for Euro I'm using "PT-PT" (as a option, cause Euro is used in a lot of European countries) but when I choose this in the dropdown list I get 222,00 ? instead 22...more >>

Programmatically shutdown and ASP.NET web app.
Posted by Andrew at 4/4/2006 1:48:31 PM
I have ASP.NET 2.0 application. I'm running some initialization code in Application_Start() in Global.asax. If this code fails I would like to shutdown the application completely. Meaning no page, or an error page is returned to the user. I've tried HostingEnvironment.InitiateShutdown() bu...more >>

Need Help With ViewState Error
Posted by AviationDev at 4/4/2006 1:39:01 PM
We keep getting the following error: ----------------------------------------------------------------------------------------------- Final Exception System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: Invalid_Vi...more >>

Pseudo code to update Access db using VB.NET
Posted by glenn at 4/4/2006 1:34:01 PM
Hi folks, I have been hunting for a code snippet to update an Access db using VB and ASP.NET. So far, nothing that helps me. I am using OleDb libraries. Can anyone provide me with the general steps or calls involved. Here is where I am at so far. Currently, I am getting a "no default v...more >>

Save button and AJAX in ASP.NET 1.1
Posted by C Watson at 4/4/2006 1:32:01 PM
Hi, I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very specific feature that I would like to use it for. I have a rather long form that the users use to enter data during a phone call with a client. Since it's long, I put six Save buttons down the length of the...more >>

cookieless Session and httpHandler configuration
Posted by Michael Schwarz at 4/4/2006 1:12:38 PM
Hi, I have a own HttpHandler running and configured like this in my web.config: <add verb="*" path="subfolder/*.ashx" type="Class,Assembly"/> Now, when turning cookieless Sessions on my HttpHandler is not working, instead my second HttpHandler is invoked, which is configured for *.ashx ...more >>

rss feeds
Posted by Mike at 4/4/2006 1:08:01 PM
All, I'm not really sure where to post this. Does anyone out there have extensive RSS knowledge? I've written an RSS/XML generator. For the most part it works fine. But when it comes to having iTunes consume my feed, I find that I cannot get any artwork to show up for the channel and items....more >>

Response buffer help needed
Posted by Steven Bazeley at 4/4/2006 12:11:18 PM
I had a download failure problem with a 95MB wmv file. I thought it was my code but I could not find anything wrong. So I tested the download by replacing the 95MB file with a smaller one (20MB). It worked fine. When I contacted my hosting company this is what they told me. (D...more >>

Finding Controls in a page using System.Reflection
Posted by gnana at 4/4/2006 11:57:02 AM
Hi, I want to find controls in a ASP.NET page using System.Reflection.Assembly. I have to create an Application to set the Permission(visible/editable) for each control on the page, for this i need to know what are the controls in a asp.NET page. All I have is Assembly (.DLL) and page name. ...more >>

Human resource request
Posted by Peter Morris [Droopy eyes software] at 4/4/2006 11:46:59 AM
Is it permissable to post a request for a contractor to create a website in this newsgroup, or is there another more suitable group? Thanks Pete ...more >>

Dynamic controls for web users
Posted by sweetpotatop NO[at]SPAM yahoo.com at 4/4/2006 11:36:34 AM
Hello, Is it possible in asp.net to create a dynamic page for web-user, who can create a flow-chart/work flow, with boxes, links and have an option to save it. So that, when others go to the web page again, they will see the new flow chart? Thanks in advance. ...more >>

for loop is used to assign values to textboxed?
Posted by david at 4/4/2006 11:36:03 AM
I try to use "for" loop to retrieve and assign values in web form. The code is in the following. But it can not be compiled. What I want to do is: txtQ1.Text = ds.Tables("mmsSpecRecord").Rows(0)("Q1") txtQ2.Text = ds.Tables("mmsSpecRecord").Rows(0)("Q2") ..... txtQ10.Text = ds.Tables("mmsSpe...more >>

ListBox In DetailsView - Selected Value Not changing in loop
Posted by Greg at 4/4/2006 11:05:02 AM
I have a listbox inside of a DetailsView. There are three departments to choose from, Corporate, Group, Vacation. The listbox is set to SelectionMode="multiple". I think I have this loop setup correctly, the problem is as it is looping through it outputs the same value even though watchin...more >>

Javascript Object Expected Error, Master Pages & DetailsView Confl
Posted by Greg at 4/4/2006 10:56:02 AM
I'm guessing the problem I'm having has something to do with Master Pages or DetailsView because the exact same code works fine on a page without a Master Page and DetailsView controls. The problem is, when the javascript fires on the txtDateRequiredOut TextBox in IE, I get "Error on Page" ...more >>

Accessing CausesValidation Value in JavaScript
Posted by mwieder NO[at]SPAM gmail.com at 4/4/2006 10:47:56 AM
Given an html anchor button control, in javascript can I tell whether that control is set to cause validation or not? In ASP.NET the property that gets set is CausesValidatation, but in javascript, ..CausesValidation on the button comes up as undefined. I'm using ASP.NET 2.0 thanks. ...more >>

Quick one - Is SESSION per browser instance or per IP Address?
Posted by KMZ_state at 4/4/2006 10:28:02 AM
We have a question here where a developer says that if the same user starts 2 instances of the application on his machine, the session variables may get mixed up b/c the session is PER IP ADDRESS. I thought each browser instance had its own session and the two instances of the application wou...more >>

MapPath equivalent from static method
Posted by Martin Eyles at 4/4/2006 10:27:03 AM
Hi, I have an xml config file for my website, which stores all the information required to connect to a database. I have used the following code to get the xml file into my program as an object, and this works beautifully, as long as I directly call it from my codebehind. Dim MyConfigXml ...more >>

why aspnet instead of logged in user when trusted_connection=yes
Posted by bindurajeesh at 4/4/2006 9:55:03 AM
I am using the following code and it works when I have aspnet as a bona fide user in the sql server database. Why doesn't the use of trusted connection allow me as logged in user and dbo of database to access dbase. If I do not have aspnet on the sql side I get login failed machinename/aspne...more >>

Expression on html "client" control?
Posted by walter at 4/4/2006 9:50:04 AM
Hi , when I apply expression on a pure HTML control , like<img src=<%$ resources:...% > , I got a compilation error and said this is not allowed ,after I add "runat=server", the problem is fixed.But it's kind of ugly since it will unnecessarily consume some of CPU cycles to process in the asp...more >>

Multiple File Uploads
Posted by Steven at 4/4/2006 9:44:01 AM
I have a situation where I need to upload more than one file from a client to the server, I am having problems finding any examples of how I can ahhieve my goal. My Requirements are: 1, There must be no user interaction 2, The files names need to be discovered at run time 3, I must be able...more >>

cannot debug ASP.net applications
Posted by alexS at 4/4/2006 9:27:01 AM
Hi, I am grasdually going insane here. When I attempt to debug an ASP.net project, I get a message which says: "Unable to start debugging on the web server. You do not have permissions to debug the server. Verify that you are a member of the 'Debugger Users' group." First of all, I ...more >>

Exception thrown by webservice and caught by ASP.NET application
Posted by Mark at 4/4/2006 9:20:09 AM
We have an internal web service that intentionally allows raw Exceptions to be thrown to the clients that consume it. This web service is consumed by internal ASP.NET applications. When the exception is caught by an ASP.NET application, the amount of detail in the SOAP exception is limited. ...more >>

asp.net 2.0 themes and css
Posted by Mike P at 4/4/2006 8:59:44 AM
If I am using themes for example on a label control, how do I also apply css to the control? I have a number of label controls that I want to be treated differently to my standard label controls by using an image for their backgrounds. Thanks, Mike *** Sent via Developersdex http:/...more >>

Debugging and Session Resetting
Posted by CBKowitz at 4/4/2006 8:33:02 AM
Has anyone encountered this problem? I start debugging my application and the session get reset (as far as I can tell). I then stop and restart and everything is fine. Basically the symptoms are as follows: after starting the application, everything is fine and the session variables ar...more >>

start a popup window without postback?
Posted by david at 4/4/2006 8:30:02 AM
Now I has the web button control "help" button which is starting a new window in clinet side by clicking it. OnClick for the button will start a JavaScrip which uses window.open() to open help.html page in a new window. It works OK to open window, but the original window is refreshed when clic...more >>

Web.config and app.config issues
Posted by kalyankp78 NO[at]SPAM gmail.com at 4/4/2006 8:20:18 AM
Hi, I have a question about config files. I have the following in my application.. 1. ASP.NET web application with a web.config 2. C# class library (BL and DAL) with an App.config 3. Two windows Console Applications with their own App.Config. Now I try to retrieve a value in the DAL using ...more >>

usercontrol and checkbox event
Posted by seal at 4/4/2006 8:09:05 AM
OK, I am trying to fire an event from a usercontrol that tells the page when a checkbox was clicked. Here is the control and when I try and wire up the page to catch the event, my event is not shown. What am I doind wrong? public delegate void CheckBoxEventHandler(object sender, System.Eve...more >>

prevent DropDownList from displaying in GridView column if it's em
Posted by Dabbler at 4/4/2006 8:05:01 AM
I have a number of rows in a GridView Column which don't have values for the DropDownList, is there a way to hide the control if it has no data? Here's my code: <ItemTemplate> <asp:DropDownList ID="RideDatesDropDownList" runat="server" DataSourceId="RideDatesSqlDataSource" DataT...more >>

Hyperlink- Opening new window
Posted by Mark A. Sam at 4/4/2006 7:47:33 AM
Hello, How do I open a new window when using a hyperlink control or image button. Thanks for any help and God Bless, Mark A. Sam ...more >>

A easy way to get the theme folder name?
Posted by walter at 4/4/2006 6:58:02 AM
Hi there, I store all my images in the theme folder so that it can be changed. The problem is that I need to use <img> to access these images , but I don't want to lose the theme capability. So is there a way to get the theme folder name ? or even better , somehow to hook <img> and theme toget...more >>

File download - 'save' works, 'open' cannot find file
Posted by mo NO[at]SPAM novastar.net at 4/4/2006 6:38:01 AM
I have an application that uses Reporting Services. When the user chooses to print a report, they are taken to a window that allows them to fill in parameters for the report. They then click a button to either export to PDF or to EXCEL. Once the report is generated, the byte array containing ...more >>

CommandTimeout, ConnectionTimeout, httpRuntime executionTimeout (ASP.NET 2.0)
Posted by Piotrek at 4/4/2006 6:05:53 AM
Hi all. I would like to know what is the difference between these two timeouts: - CommandTimeout - ConnectionTimeout I have following setting in my web.config file: <httpRuntime executionTimeout="60"/> Which timeout does it set (command, connection or other)? Is it possible to glo...more >>

Handling the event while closing a webform
Posted by lakshmikandhan NO[at]SPAM gmail.com at 4/4/2006 5:05:06 AM
Hi All, Can anyone tell me how to handle a event while we are closing a webform in asp.net??? I have to perform some server side action while we are closing a webform.So plz give me some idea ... Thanx, Jacob ...more >>

validator problem
Posted by mensuur at 4/4/2006 4:05:02 AM
hi, i have a form on my page with RequiredFieldValidators on it. as usual, there is a submit button at the bottom of the form. it will not function when the form isnt filled out correctly. this is fine. next to the button, however, is another button that resets the form. when the fields arent...more >>

Detect if internal web site is available
Posted by DrShevek NO[at]SPAM gmail.com at 4/4/2006 3:47:12 AM
Hi, Apologies if this has been discussed before but I have tried to search and found nothing really helpful as I am not entirely sure exactly what to search for..! Is it possible to detect via ASP.Net if a web site on a remote (internal) IIS server is available? Background: We have 4 sit...more >>

Extend TableCell
Posted by Matthi at 4/4/2006 3:31:11 AM
I have an aspx page with a huge ASP Table in it. I need to add some properties to its TableCells, but the table was cerated with the designer, and not with custom code. I can create a "MyTableCell" that extends from TableCell and add the properties I want, but how can I change the ASP Table to u...more >>

Set mode in FormView on Page_Load
Posted by staeri NO[at]SPAM gmail.com at 4/4/2006 3:00:23 AM
I'm trying to set the FormView in insert mode but nothing happens with this code: Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) FormView1.ChangeMode(FormViewMode.Insert) End Sub If I click the New button on the form everything works but not with code. ...more >>

How to set commandTimeout for ObjectDataSource (ASP.NET 2.0)?
Posted by Piotrek at 4/4/2006 2:56:04 AM
HI all. In my web site I have some ObjetDataSource. Its business object property is set to my dataset I created in dataset designer (this dataset has table adapter). My question is: how can I set command timeout property for fill method from this table adapter? Thanks in advance, Piotre...more >>

UpdateParameters
Posted by bill tie at 4/4/2006 2:08:01 AM
I'm exploring Microsoft sample code. This is a master/detail scenario with two SqlDataSources. The master table shows Northwind.Customers data. In the detail table, I can massage a row of data selected from the master table. In the SqlDataSource code that handles the "detail" part, I see...more >>

HttpHandler
Posted by Liming at 4/4/2006 1:40:42 AM
Hi, I have a HttpHandler (Thumbnail.axd) that output Thumbnail images). The problem is that all the output images being gerneated in the browser all takes the same name "Thumbnail.axd.gif" How do you make the httphandler so that it outputs a name base on a parameter I pass in like so... ...more >>

.NET GIF Image Quality
Posted by Liming at 4/4/2006 1:37:50 AM
Hi, I've managed to create a bitmap and output it via the httphandler by setting Response.ContentType="image/gif" the resulting GIF quality is REALLY bad. I searched around the web, the only solution I found was this article http://msdn.microsoft.com/library/default.asp?url=/library/en-...more >>

Help on Date format ???
Posted by serge calderara at 4/4/2006 1:19:02 AM
Dear all, I have a web application build with ASP 1.1 which has a querry form based on fields where users need to enter a date/time value for data collection. On my Web server the date time foprmat is set with US (english). The final querry will be something like : " select * from Table...more >>

Find the location of class from declare
Posted by joe at 4/4/2006 12:36:02 AM
e.g dim x as new NewClass() can i find where is the newclass() location? ...more >>

sorry for the question...
Posted by mensuur at 4/4/2006 12:36:02 AM
hiya, i am sorry for this stupid question, but why is this discussion group not in the web development section? it took me ages to find this group! thanks for your time -- mensuur...more >>

How to handle Cancel button in Confirm() method?
Posted by lakshmikandhan NO[at]SPAM gmail.com at 4/4/2006 12:30:08 AM
Hi All, Can anyone tell how to handle the Cancel button in the JavaScript Confirm() method?If we press cancel, I have to perform certain action in the Server side? Plz help me!! Thanx, Jacob. ...more >>

need immediate help
Posted by tushardave at 4/4/2006 12:29:10 AM
i am working on asp.net some time ago i devlope grid with (edit,update,cancle) button column it is working fine but after some time when i am click on "edit" it not working how can i solve these problem ? ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''...more >>

replace web.config sections using MSBuild
Posted by Toty Santana at 4/4/2006 12:23:01 AM
how to replace the system.web section using MSBUILD? I managed to change the appSettings and connectionStrings sections but when i tried to replace system.web i got an error message reporting missing system.web section ...more >>

A question on string object
Posted by Saran at 4/4/2006 12:01:30 AM
Hi all, Sorry if my question looks weird. But i still want to understand. Let's see the below code Dim myStr as string = "Hello" Msgbox(myStr) ' Would display hello I am wondering about the behaviour of the string as an object. How comes it can r...more >>

Please fire at this class...
Posted by Sjaakie at 4/4/2006 12:00:00 AM
Hi, To make data-life a little easier, and not having to declare a SqlConnection on each page, I came up with this Sql-Data-class: ' --------------------------------- using System; using System.Data; using System.Data.SqlClient; namespace MyFirstMaybeLeakyClasses { public class ...more >>


DevelopmentNow Blog