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 > june 2004 > threads for wednesday june 16

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

Cannot open database requested in login 'xyz'. Login fails.
Posted by govardhann NO[at]SPAM mastek.com at 6/16/2004 10:52:42 PM
One basic ASP.NET database issue…. I have a c# app running on a iis6 on one win2k3 adv servermachine & database on other win2k server machine…(in the same domain) Using windows authentication in web.config. Set impersonate =true . Connection string has Integrated security=SSPI. Logging in wit...more >>


Hide Table Question
Posted by Miguel Dias Moura at 6/16/2004 10:17:22 PM
Hello, i am trying to show a table if a certain dynamic text is different from "---". However this is not working. When i i was comparing to "" it was working. Can you please check my code? <table visible='<%# dataSetExplicador.FieldValue("DisciplinaComentarios", Container) <> "---" %>' .....more >>

transfering files from one server to another through internet (ftp)
Posted by M. Posseth at 6/16/2004 9:58:02 PM
Does someone knows a easy way how to acomplsih the folowing i made a online catalogue with order basket the orders that i store in my database should be submitted to a other webserver elsewhere on the web by ftp ( webservice is not an option because the other party is not so smart :-( ) th...more >>

advice
Posted by Lloyd Dupont at 6/16/2004 9:33:04 PM
I need to convince my boss to use ASP.NET We will start a new web project soon. he is hesitating between JSP, and ASP.NET. I think I could convince him ASP.NET would be faster to develop, easier to deploy. (he is hard to convince, I suspect him to be afraid everone is antimicrosoft as 90% ...more >>

ASP.Net app hosting xp home
Posted by Marty U. at 6/16/2004 8:57:47 PM
Can anyone tell me a way to host an ASP.Net app on a XP home machine. I have been trying to write a winforms app but asp.net lifestyle is interfering. I have a family member whom I need to develop an invoicing application (completely custom, user is bad at computers). However, I could probab...more >>

Table of dynamic buttons implemeting IPostBackEventHandler
Posted by Klom Dark at 6/16/2004 8:55:01 PM
I'm trying to figure out how to get a table of dynamically created buttons to actually call the command associated with it. It never seems to work, but doing more research it looks like I may need to implement IPostBackEventHandler. However, I cannot find any examples of doing so. Does anyone hav...more >>

How to know total records selected?
Posted by anand at 6/16/2004 8:32:57 PM
Hello Group, How can i obtain the total no of records selected with the help of Datareader class. rowsaffected does not seem to work. Thanks Anand ...more >>

Viewstate Problem! HELP!
Posted by Chad A. Beckner at 6/16/2004 8:27:03 PM
Hey all, I have a page that posts back to itself and displays a different "panel" depending on where they are in the "application". The problem is that when I click the back button, the page "contents" does not change, it stays on the page that is currently visible. How can I fix this?!!? ...more >>



FormsAuthentication doesn't redirect properly after timeout
Posted by Danny at 6/16/2004 7:26:16 PM
Hi there, I was wondering if anyone would be able to shed some light on the following behaviour for me. I have an application that is using Forms Authentication with non-persistent cookies, a forms timeout of 10 minutes, and a FormsAuthenticationTicket Expiration of 10 minutes. Almost every...more >>

Newbie: Grouping Commonly-used Methods
Posted by Myk Quayce at 6/16/2004 7:22:21 PM
I'm trying to bunch common methods in one external file that can be accessed from several .aspx files. I've tried compiling a .cs file into a dynamic-link library, and even though the line below works, I still can't access any of its methods. <%@ reference page="WorkerClass.dll" %> --...more >>

datagrid itemtemplate help
Posted by angus at 6/16/2004 6:28:29 PM
Dear All, In my datagrid, i want to add a logic to it. that is, if the result for the data equals to "Yes", a "asp:label" control will be displayed; otherwise a "asp:imagebutton" control will be shown <ItemTemplate> <% if DataBinder.Eval(Container.DataItem, "boflag").equals("Yes") then%...more >>

ASP.Net Classes
Posted by Big E at 6/16/2004 6:19:33 PM
I'm using ASP.Net and SQL Server 2000. There are many things in my ASP.Net application that I use over and over. For instance my Connection to the database. I've stored that in the webconfig. But how do I store other Functions or Variables throughout the entire application. Classes? What is the ...more >>

Leave Event TextBox
Posted by Stan Sainte-Rose at 6/16/2004 6:15:51 PM
Hi Is there a Leave Event textbox ? I would like to set a default value if the user doesn't fill up a textbox. Thanks Stan ...more >>

need some quick help
Posted by Mike at 6/16/2004 5:53:16 PM
I just deployed my asp.net app to my Win 2003 server with IIS 6, when i try to access my default page i'm getting a page not found error. What am i missing? ...more >>

Get domain name
Posted by ruca at 6/16/2004 5:43:08 PM
How can I get the domain name? There is any function to do this? -- Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ...more >>

Hot to insert both values together?
Posted by Miguel Dias Moura at 6/16/2004 5:14:47 PM
Hello, i am inserting some form values in a database. Two of this values are as follows: <Parameter Name="@FirstName" Value='<%# IIf(FirstName.SelectedItem.Value <> "", FirstName.SelectedItem.Value, "") %>' Type="WChar" /> <Parameter Name="@LastName" Value='<%# IIf(LastName.SelectedItem.Val...more >>

Rookie Question
Posted by Big E at 6/16/2004 5:09:46 PM
I'm using ASP.Net and SQL Server. In the database I have a bit field. On the webform I have a checkbox. When I do a insert or update I want the checkbox to equal the bit field. When I do a checkbox1.Text it equals nothing "". When I do a checkbox.checked it equals True or False. How can I have...more >>

A control cannot modify its parents' control collections.
Posted by Alexandru Nedelcu at 6/16/2004 5:00:54 PM
Hi!!! I'm trying to add a UserControl created using the Page.LoadCotnrol("test.ascx") method to a Page's Control collection and the exception I get is ( the complete stack trace): [HttpException (0x80004005): A control cannot modify its parents' control collections.] System.Web.UI.C...more >>

Record Paging
Posted by Steven K at 6/16/2004 4:49:55 PM
Hello, I am converting an ASP page to ASP.Net. In one page, I am using record paging. I have read that while the DataGrid control has paging, it can tax resources. So I did a Google and found and example of using the Repeater control (http://aspnet.4guysfromrolla.com/articles/091003-1.aspx)...more >>

Penetration of ASP.NET - Developers continue to use VB6 & ASP
Posted by dotnetforfood NO[at]SPAM yahoo.com at 6/16/2004 4:43:18 PM
Joel Spolsky's new article "How Microsoft Lost the API War" at http://www.joelonsoftware.com/articles/APIWar.html describes how .NET has failed, how classic VB6 and ASP continue to be preferred by developers, and how Microsoft has lost control of the preferred API. You really should read the ...more >>

HTTPHandler 404 Under Heavy Load
Posted by news.microsoft.com at 6/16/2004 4:29:00 PM
I have an ASP.NET application that uses both an HTTPModule and several HTTPHandlers. This application is running in a web farm environment on Windows 2003 Server using NLB. Under somewhat heavy load (~25 req/sec) the application begins to return HTTP 404 errors for requests of a specific handl...more >>

How to stop an event firing in Client Side Scripting
Posted by Jorge Luzarraga C at 6/16/2004 4:11:50 PM
Hello, I have a Web Form which has two imagebuttons (Save and Cancel). I´d like to show the user a confirm dialog whenever he clicks on the Cancel Button and based on his answer to this confirmation continue with the postback or cancel the action. How could I do that? Whenever the user c...more >>

Better way to do this?
Posted by Chad A. Beckner at 6/16/2004 4:11:37 PM
Hey all, I am developing a workshop registration system, and am new to ASP .NET. On my first page, I want to list the "categories" available along with the number of "workshops" related to that category. I have it working, but want to know if there is a better way to do this. I have liste...more >>

custom control width
Posted by Greg at 6/16/2004 4:11:24 PM
I am adding a datagrid programmatically to a table in my custom control and I need to set the width of the datagrid to 100% I have tried setting the width on the table cell,table row and the datagrid to the following value Unit.Percentage(100); but it does not change the widt...more >>

HttpContext.Current.Response
Posted by Stephen Cook at 6/16/2004 3:58:03 PM
I've written a suite of components that generate XML which I return in a stream. The library is confiured so that the calling component passes the stream on which wants the XML into the working classes. I had anticipated passing in HtpContext.Current.Response to include the XML as a data isla...more >>

Loading managed DLL
Posted by Paul at 6/16/2004 3:42:01 PM
Hi, I have managed DLL named test.dll and is loaded by an ASP .NET web application. It's been working fine in Windows 2000. I upgraded the server to Windows 2003 w/ IIS 6.0 and I got the following error: Access is denied: 'test'. Description: An unhandled exception occurred during the exec...more >>

Using CustomValidator to valid url QueryString
Posted by Martin at 6/16/2004 3:17:02 PM
Hi, Because I need this validation without a postback occuring, I call Page.Validate from the Page.Load event handler. The corresponding ServerValidate event handler is called, and as this finishes the CustomValidator.IsValid is false. However on returning to Page_load, the CustomValidator....more >>

ASP .NET Categories/(Count) Question
Posted by Chad A. Beckner at 6/16/2004 3:13:46 PM
Hey all, Does anyone have an example of where I can find ASP .NET code for creating categories followed by the count (number of items in the category) page? I can't find an example! :-( and example of what I am looking for can be found at http://www.411asp.net/, looking like the following:...more >>

Move Back command from server
Posted by moondaddy at 6/16/2004 2:56:04 PM
Is there a way to make the browser move back to the previous page via code behind on the server? The effect would be the same as the user clicking on the browser's back button. Thanks. -- moondaddy@nospam.com ...more >>

How to port Classic ASP pages to ASP.NET?
Posted by Kapil Maheshwari at 6/16/2004 2:52:50 PM
Is there a standard way to do so , or a complete re-write of the pages necessary ? TIA, Kapil ...more >>

HELP! Parser Error Message: Could not load type 'NewPublicSite.headTags'.
Posted by darrel at 6/16/2004 2:43:55 PM
Ugh. I've been dealing with this error for about a week now. I have a usercontrol file that spits out that error whenever I try to build. A coworker can build the same usercontrol into his copy of the project just fine. If I take my coworkers copy of all the files, it will run, but building w...more >>

Determining in EndRequest event when redirection has occurred
Posted by nchampio NO[at]SPAM sprynet.com at 6/16/2004 2:30:28 PM
Is there a way to determine in an EndRequest event method that response.redirect() has been called? I'm implementing a persistent server side page cache and I don't want to cache the response of a page if a redirect has been done....more >>

asp.net dropdown selected value
Posted by tmeister at 6/16/2004 2:21:02 PM
I must be missing something obvious. I have a drop down list in asp.net and it populates the states from a database. When I view the source of the page I get the standard option tags with the associated values. It all looks good. When I submit the form and some of the required fields aren't fill...more >>

not able to access sql server using trusted connection.
Posted by rameshgummadi NO[at]SPAM yahoo.com at 6/16/2004 2:20:07 PM
I am trying to access a remote sql server from an ASP.Net application using ADO.Net. I want to use trusted connection and so set the connection string as Dim strConn As String = Network Library=DBMSSOCN;server=ServerName;database=DatabaseName;Trusted_Connection=true Also in the web.config f...more >>

access webcontrol dynamically from code behind - by constructing name
Posted by Leo Muller at 6/16/2004 2:19:12 PM
Hi, On my webform I have three webcontrols (textboxes). question1 question2 question3 on the code behind, I want to add to one of these a value, e.g. number2. I want to write something like this: Control("question" & 2).text = "something" Because I don't know yet which one I want to writ...more >>

Repeater/No Data message -- How?
Posted by Chad A. Beckner at 6/16/2004 1:52:27 PM
Hey all, I have a repeater setup which pulls data from a SQL server. If there is no data, I want to display a message "No Data". How can I do this? Thanks in advance! Chad ...more >>

URGENT help needed. Trying to get panels to work...
Posted by TN Bella at 6/16/2004 1:49:33 PM
I downsized my code below...my text boxes work out okay with this format, it is just the dropdownboxes that give me an error. I need this to work so I can press on with other pressing things...thanks for the help! Right now I am so far behind. Compiler Error Message: BC30456: 'text' is not a m...more >>

Possible to do a File SaveAs Dialog In ASP.NET
Posted by Jeffrey A. Voigt at 6/16/2004 1:32:00 PM
?? Is there an easy solution to this? Thanks, - J ...more >>

Debugging live application
Posted by Patrick at 6/16/2004 1:24:28 PM
Hello I have an asp.net Application that is running on a live system. The problem I have is that it crashes sometimes, that means, the application is not running anymore. I have to stop and start the application pool. Is there a way to debug the application in that moment to see why it hangs...more >>

help - regex validator expression not weeding out commas
Posted by usenet_daughter NO[at]SPAM yahoo.com at 6/16/2004 1:24:21 PM
i am trying to validate a field for a double, but not allow commas the regex specifies any number of whole number digits [0-9]* no comma [^,]* an optional decimal point .? and any number of digits after the decimal [0-9]* the w...more >>

IE Mac issues with .NET application
Posted by Niladri at 6/16/2004 1:11:37 PM
Hi All, I have developed a ASP.NET application for online design of cards. It works fine on IE 5 above in windows, however i have heard from my client that, it is not running in IE Mac. Since i donot have any IE mac How can i test the same in windows environment? Please Suggest. I am in a grea...more >>

AdRotator
Posted by C Downey at 6/16/2004 12:49:16 PM
Is there a way I can override the URL in the XML file for the adRotator control? Depending on certain conditions I am trying to link to an alternate URL but I am not having any luck and I am really hoping that I dont have to create my own control. Thanks! ...more >>

progmatic Form post (HttpWebRequest / Response) sessions
Posted by Ron Vecchi at 6/16/2004 11:48:07 AM
I know this has messiness written all over it but I have a question about using HttpWebRequest/Response to essentially spider a website and post information to the forms. The (very) basic goal is to progmattically access a login account by posting the username and password and then maintaining...more >>

Application or cache
Posted by stefano mostarda at 6/16/2004 11:27:25 AM
Hi there, In my application I need a dataset containing tables often used in pages. They must be always available so I though Application would likely be the best place to store the dataset. But what about Cache?. Would it be better to load the dataset in cache and reload it when it expires?. ...more >>

Need help...with multiple textboxes and SQL....please help!
Posted by tina.pardi NO[at]SPAM nav-international.com at 6/16/2004 11:17:54 AM
Fun, fun...just when I thought it would be okay..I get something unthought of thrown in the mix. I am trying to figure out how to set this up, can someone help? I am not having a good day. I have four text boxes for a user to enter data that will be sent to a sql table, now I have to figure ou...more >>

Solution: Raising an Event Handler Postback on Parent Window From Popup Child Window Dialog Box
Posted by Earl Teigrob at 6/16/2004 11:03:41 AM
I did a ton of searching to try and find a simple solution to this issue = and finally wrote my own, which I am sharing with everyone. In my = searching, I did find a very complete and robust solution at=20 http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more compl...more >>

SOAP to webservice
Posted by None at 6/16/2004 11:03:09 AM
Dear All, I am writing an application which needs to send some XML in a SOAP envelope to a Java webservice. I have absolutely no idea where to begin. Can anyone possibly point me to a good place to read about how to go about doing this? I've not dealt with XML much in the past. Also, inst...more >>

sessionstate = SQLServer
Posted by Wardeaux at 6/16/2004 10:44:58 AM
I'm wanting to use SQL to store session variables. This works well because it maintains session variables even though a session times out but the browser is still open When a session.entry in the sql table ASPStateTempSessions is automatically removed whenever the browser calls "Session.Abandon...more >>

dsn connection
Posted by Mike at 6/16/2004 10:30:06 AM
In my code i'm pointing to a SQL server name and SQL database name on the server, etc. Instead of that how can i point to a DSN connection on the web server that points to the SQL Server and DB? ...more >>

Showing file in browser and content types
Posted by Oleg Ogurok at 6/16/2004 10:17:13 AM
Hi all, In my ASP.NET application, I have a page that serves files from database to the clients. Here's the code: private void Page_Load(object sender, System.EventArgs e) { byte[] fileData = GetDataBinary(int fileID); Response.ContentType = "Application/x-msexcel"; Response.Binar...more >>

Register javascript block globally...
Posted by Cliff Harris at 6/16/2004 10:06:47 AM
Is there a way for me to globally add a javascript block to all pages? I was hoping I could use one of the application events, but I don't seem to have access to the page object to use RegisterClientScriptBlock. Is there a way for me to accomplish this without adding something to every page? ...more >>

multiple code behind referrences
Posted by Chris at 6/16/2004 9:59:08 AM
Is there a way to reference more than one code-behind page? I want to use a sub in another page but didn't want to have to move it to the page that I want to use it. Here's how I'm referencing them today: <%@ Page Inherits="partnerhome" src="partner_home.vb" CodeBehind="partner_home.vb" Language...more >>

simple question about a textbox and today's date ..noob
Posted by TN Bella at 6/16/2004 9:52:45 AM
This sounds so simple...I want the textbox to automatically fill with today's date but how is that done? To lock it so the user can't edit it, I can use type="hidden" right? Thanks in advance for the help <asp:textbox id="RptDate" runat="server" Width="200px"> *** Sent via Devdex http://www....more >>

Help, can't see asp vbscribt in Visual Studio .NET
Posted by Sunshine at 6/16/2004 9:52:39 AM
I upgraded to Visual Studio .NET from Visual InterDev. While my company is moving towards aspx I sill have to maintain classic asp pages. When I open the asp pages in .NET, I can't see the script (VB). If I copy the pages to my desktop, the script is there. Is it a permissions problem or a se...more >>

darren@webling.com.au
Posted by Darren Clark at 6/16/2004 9:50:19 AM
asdf ...more >>

advice on choosing right control
Posted by Mark Siffer at 6/16/2004 9:04:24 AM
I am building a web app that will display data in a table. However, the user needs to be able to update the data. I would like to construct it such that the user can edit any cell in the table and submit the changes just once at which point the server will commit all the changes ( there will n...more >>

I have a similar issue
Posted by Wolf Bear via .NET 247 at 6/16/2004 8:48:19 AM
My issue is on Windows 2000 Pro. system which is NOT connected to a network and the only access the Internet is via a dial up connection (Yeah, tell me about it.) Anyway, here is the install process I used. I installed IIS and configured it, including FP Extensions etc. I checked to see that it...more >>

page load in VS.Net issue
Posted by Chris at 6/16/2004 8:43:34 AM
Any reason why I get a Page load issue: The file could not be loaded..Please correct.. The @ Page or @ Control directive contains a src= attribute, which is not supported in Visual Studio When I open my project? The pages work, the structure was taking from another manual. Currently using...more >>

Can't run program from Visual Studio when debug=false
Posted by John Holmes at 6/16/2004 8:21:18 AM
My application is ready to deploy and I've set debug=false in the web.config file and configured the app for release mode. When I try to run the app from the IDE, I get the following error message: "Error while trying to run project: Unable to start debuggin on the web server. The project is n...more >>

Framework 1.0 in IIS for webforms
Posted by Martijn Damen at 6/16/2004 8:15:49 AM
Hi, At the moment I am trying to develop an application in VS 2003. We are working with .net Framework 1.1 since over a year, but unfortunately the application I am trying to connect over .net remoting is still using the framework 1.0. Because the .net remoting is not compatible, this poses a ...more >>

Response.Redirect problem ????
Posted by ozcankanbur NO[at]SPAM yahoo.com at 6/16/2004 8:08:04 AM
I send a popup to client then I redirect to the main page but the popup doesn't raise. If I comments the Response.Redirect line the popup is raised How can I solve this problem??? thanks Response.Write("<SCRIPT Language=Javascript> \n var openInfoWindow=window.open('popup.aspx','wininfo'...more >>

Show Page To IE5
Posted by Jon at 6/16/2004 7:36:57 AM
I have a bunch of uplevel browser functionality on some pages and need to do something to prevent downlevel browsers from trying to load such pages. These pages would require IE 5 or newer in order to be displayed correctly. How to prevent downlevel and other browsers from accessing these pages? ...more >>

Project Failing to Debub
Posted by Steven at 6/16/2004 7:00:02 AM
Hey there, I had to rebuild my PC. When I try to start a vb.net based asp project that had previously run, I get the following error "Error while trying to run project. Unable to start debugging on the web server. The project is not configured for debug." The following is in the web.conf...more >>

Session_Start and Microsoft Word 2002 bug?
Posted by somefakeaddress NO[at]SPAM hotmail.com at 6/16/2004 6:54:11 AM
Someone please explain why Session_Start fires multiple times / retains SessionID values between sessions, when you open an ASP.NET page from MS Word. For details of the problem, see below: 1. Create a new C# ASP.NET web application named "demo" and modify Session_Start in Global.asax.cs as fo...more >>

Writing to a DB
Posted by Edmond Goon at 6/16/2004 6:21:01 AM
Hey guys, I'm working on a project that has forms authentication implemented with Access 2003. I'm trying to write a page that will allow users to change their password. So far, without success. Here's a look at part of what I have.. if(txtuname == (string)Session["ucode"] && txtoldpass == ...more >>

Server.Transfer/Master Pages
Posted by Chris Price via .NET 247 at 6/16/2004 6:08:01 AM
I am getting an error when I use Server=2ETransfer to navigate to a= new page which uses the same Master Page Template=2E The error= indicates that the region ids must be unique=2E Any suggestions? I= would like to be able to continue using a single template for= the site=2E -------------...more >>

Validators won't let me leave aspx form using web user controls!
Posted by dotnw NO[at]SPAM hotmail.com at 6/16/2004 4:53:33 AM
If I have got 2 web user controls on my aspx form, and one web user control has got some validator controls on it, what I find is that if I enter in some "bad data" in to some text boxes on the first web user control, then click on a link button on the second web user control to leave the aspx f...more >>

How to install msi file form browser
Posted by Ramachandra at 6/16/2004 4:17:01 AM
Hi All, I hav developed a site. And in one of the pgaes I am using the web excel object. Some clients complining that they are anable to see the excel object. After doing some work around on that I came to know that if they install one file from the Office 2000, the problem will be resolved. ...more >>

ValidationSummary Control
Posted by Sunil Sabir at 6/16/2004 3:54:01 AM
Dear All, I am using ValidationSummary,RequiredField Validator and Regular Expression Validator in my ASP.net form. I want to display error messages only in the ValidationSummary Control. But when I run the form the messages are displayed ValidationSumma...more >>

System.Drawing: Error when using a .bmp or .gif file but not when .jpg
Posted by Richard at 6/16/2004 12:57:48 AM
I each time get errors when I use an .bmp or ,.gif file as source but whenever I use a .jpg file it works perfect. Why is that? and how to fix it? I almost have no knowledge about the system.drawing and so I am in the dark about this. This is my code ---------------------------------- ...more >>

change form action
Posted by TJS at 6/16/2004 12:17:57 AM
in a custom control which renders a form, is there a way to define the form action other than the preset postback. I've seen several but they are all an httpModule of sorts. I would like to do it at the page or control level if possible. thanks ...more >>


DevelopmentNow Blog