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 > august 2006 > threads for wednesday august 2

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

Website won't build -- build failed with no errors, warnings or messages (VS2005)
Posted by lykken NO[at]SPAM newsgroups.nospam at 8/2/2006 11:48:26 PM
I'm having a problem finding the cause for this problem. I have a solution in Visual Studio 2005 that contains two projects -- a Web Site and a Class Library. The web site references the class library. After the project became larger, the build process would sometimes fail with no errors. T...more >>


Recommended way to add child controls in CreateChildControls
Posted by Paul at 8/2/2006 10:33:06 PM
Hi all, What is the recommended way to add child controls *around* existing child controls in the CreateChildControls method (e.g. table, row and cell controls for layout purposes)? Is the best way to keep a reference to the existing child controls, clear the Controls collection and then re...more >>

Co-existing ASP.NET 1.1 and 2.0???
Posted by dm3281 at 8/2/2006 9:12:51 PM
Hi all -- We currently have an ecommerce application installed on a W2K Advanced server running .NET 1.1. In November, I installed .NET 2.0 in order to allow a Windows Forms application I wrote to be run on the server for extracting system information. We have recently had an issue with ...more >>

UpdateCommand of a DetailView
Posted by jkeel NO[at]SPAM charter.net at 8/2/2006 9:10:50 PM
Is it possible to use a stored procedure instead of a SQL statement with the update command on a detail view in asp.net 2005. If so, how?? I can't seem to pass parameters into the stored procedure. Thanks in advance, Jason ...more >>

Cache not expiring!
Posted by Don at 8/2/2006 8:51:01 PM
I've come across a weird behaviour with regards to the cache object. I couldn't find any documentation which could explain this. Basically the problem has to do with the cache item NOT expiring. If you look at the below code, u'll see that i'm creating 2 cache items with the keys ONE and T...more >>

problems with using LoginStatus on master page
Posted by Jeff at 8/2/2006 8:20:45 PM
hey asp.net 2.0 I've placed a LoginStatus control on a master page (so I don't need to have it on every webpage) in my project. When I click on this control to logout, I get this error: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll An...more >>

Disaster of pdf e.o. loading into a separate window
Posted by Edwin Knoppert at 8/2/2006 7:55:44 PM
On our website we would like to show the pdf in a blank new window but if the client has show pdf outside the browser the blank window remains, something we don't want. How can we get a new window with a pdf or due settings show the pdf in acrobat reader without forcing a download to file. ...more >>

Null Reference Exception
Posted by Ganesh Palaniappan at 8/2/2006 7:47:29 PM
We're getting following exception for the below piece of code. We're = wondering how it is possible since we're having a null check for = objGraphics and strokePen... =20 Exception: System.NullReferenceException: Object reference not set to an = instance of an object =20 if (strok...more >>



No support for musical tones?
Posted by clintonG at 8/2/2006 6:57:33 PM
This article [1] has shown me how to playing system sounds and .wav files via a web page. Very nice to know. It got me wondering if we could somehow play one or more tones of a musical scale somehow without downloading or streaming files? I'm ignorant about it but I though Windows had native ...more >>

Display DB Records in DataList?
Posted by Arpan at 8/2/2006 6:24:18 PM
The following code displays records from a SQL Server 7 database table in a DataList (when the page loads for the first time, all the records under the column named "FName" in the DB table are displayed as links which, when clicked, displays the records existing in the other columns correspondin...more >>

newbie: add event to master page
Posted by Jeff at 8/2/2006 6:20:25 PM
hey asp.net 2.0 This is a very embarrassing question! In my asp.net 2.0 project in visual web developer 2005 Express have I a master page which I want to add code to the OnInit event. But I'm not sure how to create the event menthod in the code behind file. In the proerties window of ...more >>

Problem: Image Control again showing the same Image
Posted by Sandeep Singh Sekhon at 8/2/2006 6:10:20 PM
I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location. Then I again prompt the user to load a new file but I save the file with the same name the earlier ...more >>

how to make a message box
Posted by ghostwolf at 8/2/2006 5:56:55 PM
Hi, I want to have a message box prompted out in the browser, just like what normal windows application does (DoModal). How can I do it if using the ASP.NET? Thanks a lot. Regards, ...more >>

Newbie - 2 classes in the same namespace problem
Posted by Jarma at 8/2/2006 5:43:43 PM
I'm new to VS2005, but have experience with previous versions. I created web site with a page and a web user control inserted in it. Their classes are in the same namespace. Here's the code fragment: namespace NmSp { public partial class Test : System.Web.UI.Page { protected void Pa...more >>

Thread was being aborted error message
Posted by Alex A. at 8/2/2006 5:43:32 PM
I have this web application that runs for about 5 minutes doing to database processing, about 50% of the time I get the error message Thread was being aborted. I am looking for hint at where to look, I've been banging my head on this issue for a couple of months (when I have time to bang my he...more >>

Dilemma in using DAAB- Data Access Application Block
Posted by Kausar at 8/2/2006 4:49:30 PM
Hello All, My question is in what scenerio we should use DAAB? we are going to develop a enterprise Web Application in .Net Framework 2.0 which contains approx 200 tables. Is it sensible to use DAAB in this case? What can be the implication in using it any disadvantage/Drawbacks? Is it the...more >>

How to disable open in new tab?
Posted by Gunawan at 8/2/2006 4:37:27 PM
Dear All, I would like to know how to disable 'open in a new tab' or 'open in a new window' feature coz I would like to maintain parameter using session id which is not change if we using those two feature. In fact I would like to make my web application stay on one web browser windows during...more >>

Export to Excel
Posted by Amirallia at 8/2/2006 4:24:16 PM
Hello, Here is my code to export a datagrid to Excel : Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" Dim monStringWriter As StringWriter = New StringWriter Dim monHtmlText...more >>

MemberShip Provider.
Posted by ashish at 8/2/2006 3:53:40 PM
Is it possible to use the member ship provider feature when my scheme does not contain the concept of user name ?, i only want to use the email address as user name thanks...more >>

CommandName?
Posted by Arpan at 8/2/2006 3:39:32 PM
Consider the following code which creates a DataList server control which displays records from a SQL Server database table (the database code along with other necessary code within the <script> tag aren't reproduced here): <form runat="server"> <asp:DataList ID="dlUsers" OnItemCommand="ItemL...more >>

Finding a Control Reference by it's Design-Time ID
Posted by Alex Maghen at 8/2/2006 3:15:03 PM
I need to be able to get a reference to a Control on an ASPX Page by the exact ID that I gave that control at Design-Time. Let's say I created an ASPX that had a control: <asp:TextBox ID="SomeTB" runat="server" /> Now, I want to be able to discover, at run-time, the ClientID of the Cont...more >>

Validation In Seperate Controls conflicting
Posted by RSH at 8/2/2006 3:09:12 PM
Hi, I have a page that uses two seperate user controls (ascx files). Both controls have textbox controls on them along with seperate submit buttons. Control #2 has required validators. The problem is that I need the validator controls to be disabled if the user submits control #1. Righ...more >>

Custom Paging for a DataGrid using Microsoft Access
Posted by glenn at 8/2/2006 2:46:38 PM
Hi folks, Have read a bit on this topic but so far no positive results. I have the following table named 'discussions': id discussionNumber from to status 1 1 xxx xxx done 2 1 xxx x...more >>

Drop down boxes in ASP pages not reporting the correct value
Posted by Geoffrey Callaghan at 8/2/2006 2:42:57 PM
I have a couple of dropdowns filled with values loaded from a table. I need to know, of course, what item in the list the user has chosen. I use a command like: Value = dropdownlist1.selectedvalue and I always get the first item, regardless of what appears on the screen. the SelectedInde...more >>

How to assign a text field a database value
Posted by MasterChief at 8/2/2006 2:19:52 PM
I am sending a page a query string called job_id. What I want to do is take the job_id that is passed look it up in a database and make the text in a label on the new page display a value of one of the fields. Does anybody have any code for this? I just don't know how to databind the text label ...more >>

Need C#/ASP.NET Developers Looking for Projects
Posted by Jonathan Wood at 8/2/2006 1:54:22 PM
If you're an experienced C#/ASP.NET developer looking for projects that you can do from your own location, I may be able to provide you with some work. For more info, please visit http://www.softcircuits.com/consult/work.htm. Thanks. -- Jonathan Wood SoftCircuits Programming http://ww...more >>

How to referesh ASP page using timer control
Posted by kai at 8/2/2006 12:51:12 PM
Hi, I try to referesh my asp.net 2.0 page every minite using timer control, but cannot find code for refresh. Please help? Thanks Kai ...more >>

Check box enabled in GridView?
Posted by Chris Davoli at 8/2/2006 12:47:10 PM
How do you enable a check box in the GridView. I selected Checkbox Field in the Columns of the GridView, and the check box shows up in the Grid view, but it is disabled. How do I enable it so I can check/uncheck it. Also, what event do I use to check it for a value? Any articles out there? ...more >>

How to trigger an event when drop down list box value changes?
Posted by tom c at 8/2/2006 12:43:57 PM
In ASP.net is there any way to trigger an event when you change the selected value of a drop down list box? ...more >>

bug in .NET?
Posted by RAM at 8/2/2006 12:05:42 PM
Hello, I have created simple ASP.NET application with master page MIMStock.master: <%@ Master Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/...more >>

decimal.Parse and NumberStyles
Posted by Andrew Wrigley at 8/2/2006 11:48:14 AM
Hi, I have a string: "100.00" ....that I want to parse into a decimal. So: decimal d = decimal.Parse("100.00", System.Globalization.NumberStyles.Any) On my dev machine (United Kingdom), this works fine, but on the US server it says that the string is not in the correct format... Wh...more >>

Server Error in '/MyApp' Application. - Security Exception
Posted by AnalogKid17 NO[at]SPAM gmail.com at 8/2/2006 11:13:19 AM
I'm getting this error when building and running an ASP solution that lives on a network folder (part of the prod web server). I was NOT getting this when working on the same *identical* solution on my local machine. Description: The application attempted to perform an operation not allowed b...more >>

Is Sql server proficient needed for .net programmers?
Posted by ravindradonkada NO[at]SPAM gmail.com at 8/2/2006 10:00:11 AM
Hi dotnet developers, I am Ravindra currently on job trials my Query is: Is sqlserver expertise needed for .net programmers? thanks in advance, Ravindra ...more >>

OT: Link Checking Software?
Posted by darrel at 8/2/2006 9:39:00 AM
This is a bit off topic for this group, but was hoping that maybe some of you would have had experience with this. We're looking for a link checking software product that will generate reports for us showing where all the bad links on our site are. We need the following features: - GREP...more >>

adding a confirm delete pop-up for a button field
Posted by Mike P at 8/2/2006 9:30:12 AM
How do you add a confirm delete pop-up for a button field? I've managed to do this for a link button, where you can refer to the button id, but there is no id to refer to for a button field. Here's my code : <asp:ButtonField ButtonType="Image" ImageUrl="~/Images/btnDelete.jpg" CommandName="D...more >>

A tree-like grid structure
Posted by Dan at 8/2/2006 9:26:02 AM
Hi guys, I'm a relative newbie to .NET 2005 - and .NET in general - and I'm trying to find a way of displaying the following information in a *webpage*. Sales + August 2005 + Dog Food $300 + Kitty Litter $500 + September 2006 + Bird Cages $2000 ...more >>

Passing UpdateParameters or a Detail View to a stored Procedure
Posted by jkeel NO[at]SPAM charter.net at 8/2/2006 9:13:33 AM
If I try to Update a record with the following code using a stored procedure I get an error: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:stellentConnectionString %>" SelectCommand="spWC_Adjusters" SelectCommandType="Sto...more >>

Validating either textbox
Posted by bonokoot NO[at]SPAM gmail.com at 8/2/2006 9:03:54 AM
How would I setup my validators so if one of two textboxes has values in it the other textbox doesn't get validated? Using asp.net 2.0 and C#. Thanks ...more >>

Two versions of the same site.
Posted by UJ at 8/2/2006 8:44:05 AM
I have two versions of the same site - one is in maint mode, the other development. What's the easiest way to keep them separate? At the moment I have just the one directory on my workstation and I have to copy the stuff in an out. ( I started with the original product and just changed it. I ...more >>

Disabling Browser Cache on ASP.NET Pages That Use Master Pages
Posted by EagleRed NO[at]SPAM HighFlyingBirds.com at 8/2/2006 8:37:01 AM
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache...more >>

Unable to cast object of type 'asp.usercontrols_....._ascx' to type 'usercontrols_.....'
Posted by marshausk NO[at]SPAM hotmail.com at 8/2/2006 8:24:42 AM
"InvalidCastException was unhandled by user code" is the title of the error. It's related to 2 different user controls on my page that are dynamically loaded. I've added both the Register and Reference statements. The error comes and goes randomly. Today I'm working on the containing page an...more >>

What happened to DataGrid - VS2005
Posted by Chris Davoli at 8/2/2006 8:14:03 AM
What happened to the DataGrid. I can't find it in VS2005 toolbox? There is a GridView. Is this the replacement for the DataGrid? -- Chris Davoli ...more >>

is my work environment damaged?
Posted by lauralucas NO[at]SPAM gmail.com at 8/2/2006 8:07:36 AM
I'm starting to suspect something is damaged in my working environment. (asp.net 1.1 and visual studio 2003) for example: is this normal? I add a label I assign the label a value of "hello" in design time. in codebehind, I change the value of the label. private void Page_Load(object sender...more >>

Web application problems
Posted by Geoffrey Callaghan at 8/2/2006 8:00:02 AM
I am trying to create a web application using VB.NET. I will be deploying multiple instances of this application on the same server, each with it's own Access database. Unfortunately, every example I've seen shows how to access data using ODBC at design time. This won't work for me. I would ha...more >>

Regex Help?
Posted by Alex Maghen at 8/2/2006 7:57:02 AM
This is a bit of an abuse of this group. Just a nit, but I'm hoping someone really good with Regular Expressions can help me out here. I need to write a regular expression that will do the following: Search a whole blob of text (including newlines and everything). Find any text enclosed in ...more >>

Web applications in VB
Posted by Geoffrey Callaghan at 8/2/2006 7:25:02 AM
I'm trying to build a web application in VB.NET, and I have some basic (no pun intended) questions. Is this the right place to ask? Surprisingly, I can't find a newsgroup just called vb.net.webapplications. ...more >>

Help On GridView
Posted by Dot Net Daddy at 8/2/2006 7:17:58 AM
Hello, I have a question about assigning a value in the selectedRow of a gridview to another variables. How can I do that? I am trying the following but it wont work; Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Gri...more >>

DataGrid with buttons help
Posted by amjad at 8/2/2006 6:55:01 AM
Hi how to put buttons in datagrid column. i know how to put link button but not the actual button that we use in windows programs. and how to link the action with taht button. thanks...more >>

Database Designer disappeared
Posted by H5N1 at 8/2/2006 6:20:57 AM
Hello I remember having database designer with nice diagrams, relationships etc. Unfortunately, since few days, I cannot find it. Manuals say, that there should be a db diagrams node in data connection in server explorer - mine has only: tables, views, sprocs and functions. Also, when I tu...more >>

Paging through a portion of a table in a DataGrid
Posted by glenn at 8/2/2006 4:55:02 AM
Hi folks, I am trying to page through a portion of the data in a table and therefore I think I need to use Custom Paging. .... but, I am wondering if I can pass a dataset that was obtained through a function that returns a dataset that is a portion of a table. Apparently I cannot do thi...more >>

setting title of content pages
Posted by Mike P at 8/2/2006 4:51:12 AM
How do you set the title of content pages? I can set the title of my master pages, but I want each of my content pages to have a different title. *** Sent via Developersdex http://www.developersdex.com ***...more >>

String help
Posted by ^MisterJingo^ at 8/2/2006 4:16:09 AM
Hi all, I have a variable called root which contains (E:\Web\Websites\fileBrowse\) and then I have a variable called path which uses root, and adds directories on to it (this is part of a file browser i've built). I'm trying to simply remove the root string from the path string, so for examp...more >>

Format double doesn't work
Posted by staeri NO[at]SPAM gmail.com at 8/2/2006 3:16:03 AM
If trying to format a value in a GridView with the following function to be shown with thousand separators. If no value exists it should show 0. If I send the value = 45000 it is still shown as 45000, not 45.000. Why? Function FormatAmount(ByVal value As Object) As String 'Show w...more >>

How to detect and recognize an error returned by Stored Procedures on SQL Server.
Posted by ab at 8/2/2006 2:44:57 AM
In my ASP page I'm calling a Stored Procedure on my SQL Server. No problem. But I want to check if my SP returned an error (and what kind of error) instead of the required result. To call the SP I'm using the code on http://support.microsoft.com/kb/q164485 All hints are appreciated. ...more >>

Get an error code after calling a SQL Server Stored Procedure.
Posted by ab at 8/2/2006 2:42:11 AM
In my ASP page I'm calling a Stored Procedure on my SQL Server. No problem. But I want to check if my SP returned an error (and what kind of error) instead of the required result. To call the SP I'm using the code on http://support.microsoft.com/kb/q164485 All hints are appreciated. ...more >>

Unable to Display Image from database at runtime
Posted by den 2005 at 8/2/2006 2:09:02 AM
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from database and display it in a Image web control dynamically(at runtime). The process after being...more >>

Back button classic
Posted by nileshsoni21 NO[at]SPAM gmail.com at 8/2/2006 1:26:10 AM
I have come across a strange behaviour in ASP or rather it could be a HTML or Browser Issue. The browser here is IE. The requirement is to re-load the page whenever user click back button of the browser. I thought the solution is simple enough: Just set the page to expired, maintain no cach...more >>

How to change text direction of text box with asp.net datagrid control
Posted by Santosh at 8/2/2006 12:47:51 AM
dear all i want to change text direction of text box with in datagrid control i am writting following code but it is not working. public void SetUpClientScript(object sender, DataGridItemEventArgs e) { //when item type is footer if(e.Item.ItemType == ListItemType.Footer) { TextBox add...more >>

Doctype
Posted by Damien RICHARD at 8/2/2006 12:00:00 AM
How to modify the default doctype in asp.net page? I wish use xhtml 1.1 and not xhtml 1.0 transitional ...more >>

(2.0) Membership not working on deployed site
Posted by Jeppe Jespersen at 8/2/2006 12:00:00 AM
Hi folks, Been working on an site for a little while now, complete with login-functionality and all. (Yaaay!) However.... I created a site on our webserver, and copied the whole site up there. The site runs fine, but any attempt to login fails. Only error info in the event log is: Eve...more >>

aspnet active directory
Posted by Mahmoudreza SHirinsokhan at 8/2/2006 12:00:00 AM
hello I need to have access to the active directory property and be able to edit them with asp.net . does anyone have any example or links ? which i can use? thanks mr ...more >>


DevelopmentNow Blog