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 > july 2006

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

problem with css
Posted by Ginny at 7/31/2006 11:39:41 PM
hi, i have a web application. there is a css file applied to it. when i load the page for the first time, css is applied properly but after the postabck, css does not apply at all. it is strange. the application is working fine on all computers excpet my laptop. something wrong with my browser, ...more >>


file already in use
Posted by Marc at 7/31/2006 10:55:02 PM
Hi, i use asp.net 2.0 and Access as db. If i open the Access db and then starting any ASPX file which use that Access file, i get the error: "file already in use". Any idea how to prevent that? Thanks Marc ...more >>

ListBox?
Posted by Arpan at 7/31/2006 10:46:23 PM
Consider the following code that populates a ListBox: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not (Page.IsPostBack) Then 'create an array of colors Dim arrColors() As String = {"red", "blue", "green"} ...more >>

.net 2.0 and McAfee
Posted by Tom Swanick at 7/31/2006 10:40:57 PM
Hi all, I have finished banging my head on this one. I am using VS 2005 asp .net to build web pages. I have always had McAfee Internet Security Suite 7.0 (minus the privacy service) installed and everything was fine. Over the weekend, McAfee decided to upgrade me to their new version. It's ...more >>

Variable Scope & Page.DataBind()?
Posted by Arpan at 7/31/2006 9:31:02 PM
The following code works fine: <script runat="server"> Dim strName As String = "Arpan" Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Page.DataBind() End Sub </script> <form runat="server"> <asp:Label id="lblMessage" Text=<%# strName %> runat="server"/> </...more >>

EFTPOS and .NET
Posted by MarkusJNZ NO[at]SPAM gmail.com at 7/31/2006 9:09:52 PM
Hi, has any one had any experience integrating EFTPOS systems with ..NET? Specifically, I need to know what type of information and in what format information is retrieved from an EFTPOS system. TIA Markus ...more >>

cannot delete or edit inserted records ( via detailsview) in gridview
Posted by Marc at 7/31/2006 7:48:26 PM
Hi, I made a detailsview for inserting records. I also made a gridview for editing and deleting the same records. The keyfield is an autonumbering field in Access (pcnr). My problem is: I can see the new inserted records in the gridview but I can't delete or edit them. When clicking on del...more >>

DropDownList bug?
Posted by Martin at 7/31/2006 7:37:43 PM
I find this hard to believe, but it appears the DropDownList control has a bug. I have a page that simply uses a SqlDataSource to populate the ddl, and then triggers a SelectedIndexChanged event. The ddl is configured to autopostback. Trouble is, in the SelectedIndexChanged event handler...more >>



Dynamically creating <style type="text/css">
Posted by Amil Hanish at 7/31/2006 7:16:39 PM
I want to dynamically create the <style> tag. I know I can simply add a "runat" direction and set the inner value. But, I was curious if there was a more object-based way in .NET to do this. For example, can I create a collection of things like body, a, table, td, tr, etc and associate dif...more >>

Why are labels handled differently than an input control with clie
Posted by ccgatvolvo at 7/31/2006 7:11:01 PM
Here is the rendered output from my page: <!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/xhtml" > <head><title>Untitled Page</title></head> <body> <form name="aspnetForm" metho...more >>

Variable for initializeData in web.config
Posted by gslim NO[at]SPAM blizzardice.com at 7/31/2006 6:30:53 PM
I have created a trace listener and would like to give it a variable so that when it is installed on a machine I have no control over it can still find its logfile. Right now they are hardcoded as "C:\Inetpub\wwwroot\website\log1.txt" is there a way to insert something like "~/logfile.txt") b...more >>

error:"the xml-page cannot be rendered"
Posted by Dave at 7/31/2006 6:03:12 PM
Hi, I installed asp.net 2.0 and everything worked good. Now i made some changes in my system (stopping services for speeding up ..) and the result was that IIS did'nt start anymore. I reinstalled it and the HTML and classic ASP pages are rendered, but not the ASPX files: the error is: "xm...more >>

User-control with property accessors == null references
Posted by Mark at 7/31/2006 6:01:55 PM
Hi. I am making a user control right now, and it looks something like this: <script runat="server"> public string SelectCommand { set { // see below for why the following line is here. this.InitializeAsUserControl(HttpContext.Current.Handler); this.sqlDataS...more >>

SelectedValue in dropdownlist - invalid item but no exception
Posted by John at 7/31/2006 5:59:21 PM
If you set DropDownList.SelectedValue to an item not in the list, shouldn't an exception be thrown? ie: <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem Text="1" Value="1"></asp:ListItem> <asp:ListItem Text="2" Value="2"></asp:ListItem> <asp:ListItem Text="3" Va...more >>

Click in Yes/No no outside the dialog box
Posted by Carlos A. at 7/31/2006 5:50:38 PM
Hello I have a "page" when people can select a record and click in Delete. A little page is open to ask the user if he is sure (Yes or No). How can I do this response Mandatory? I cannot that pople click outside of these dialogbox. Thanks for your help. C. ...more >>

Receiving mail
Posted by mrajanikrishna NO[at]SPAM gmail.com at 7/31/2006 5:08:22 PM
Hello, I am instructed to develop an email client application(like hotmail/yahoo/any other email) For sending mail, we use ASPMail object, SMTP. How can we receive mails and configure Inbox, Trash and assign usernames and password etc... Can anybody help me? thanx in advance...more >>

How do you find a control in the EditItemTemplate of a GridView?
Posted by Sean at 7/31/2006 5:01:04 PM
I am using a GridView to display and edit rows of data. I am having problems with one of my GridViews that has a Calendar control in it. If the data coming back from the DB doesn't have a date for this field, I get a 'Specified Cast is Invalid' message when the empty string is being bound to the...more >>

Passing User Input
Posted by Reid at 7/31/2006 4:15:12 PM
Hi, I have a web form that has dynamic user input that needs to be passed to my business layer. I am using a MVC design and I have an interface to my controller class. I was thinking about using a hashtable to store the user input and passing it. Any other ideas on how to pass data that ...more >>

Object reference not set to an instance of an object?
Posted by Arpan at 7/31/2006 4:01:15 PM
Consider the following code that adds a table to a DataSet dynamically: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) 'Create an empty DataSet Dim dSet As New DataSet 'Create a new table & add columns Dim dTable As New...more >>

Master pages and Postback
Posted by John at 7/31/2006 4:00:42 PM
I have textbox control on a masterpage. Now when we type something in textbox and press the enter key, i want it to post to another page.aspx. How can i do this? Thanks. ...more >>

PHP to ASP
Posted by Richard John at 7/31/2006 3:42:01 PM
Hello. I'm learning web development, something I'd at some point like to persue a career in (I'm still in school at the moment). Up until now I've been developing in PHP on Linux servers, but I've had the realisation that if I ever want to do this professionally, I'm going to have to stop ass...more >>

DataRow?
Posted by Arpan at 7/31/2006 3:08:37 PM
This is how I am dynamically adding a table to a DataSet: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) 'Create an empty DataSet Dim dSet As New DataSet 'Create a new table & add columns Dim dTable As New DataTable("Us...more >>

atlas release
Posted by Nalaka at 7/31/2006 3:08:36 PM
Hi, Is it safe to start developing for future production apps... using current atlas frame work (June CTP)? When is the planned production release? (I cannot find a link on the web) Thanks Nalaka ...more >>

SQL timeout error
Posted by Martin Eyles at 7/31/2006 3:00:13 PM
I am trying to perform a very long query on an MSSQL database, using ASP.NET, and making the code behind in VB.NET. I have been receiving timeout error, so I thought I would add Connect Timeout to my connection string. However this appears to have no effect. The connection string is set up as fo...more >>

Export datagrid to Excel with a lot of rows
Posted by Amirallia at 7/31/2006 2:07:36 PM
Hello Here's my code to export a datagrid to Exel : Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" Dim monStringWriter As StringWriter = New StringWriter Dim monHtmlTextWriter As...more >>

GridView Method Call Trouble
Posted by luisxx at 7/31/2006 1:49:23 PM
WinSrv2003 SP1 IIS 6.0 ASP.NET C#, 2.0 SQL 2005 All on same machine Hello everyone! I have a method in ASP.NET 2.0 that I can't seem to get right, Gridview1_rowcommand. I am using a GridView control with a data source to SQL Server 2005. I would like it to call the Gridview1_rowcomman...more >>

Image not found
Posted by Craig Buchanan at 7/31/2006 1:41:16 PM
I have an application written in Visual Web Developer 2005 Express. It runs on localhost:3291. I would like to include a number of images from the /Images directory (child of wwwroot folder). Unfortuantely, the application can't seem to see this folder. I've tried a number of paths formats...more >>

Best practices for Multilingual websites?
Posted by at 7/31/2006 1:21:32 PM
Best practices and recommendations for asp.net 2 multilingual web sites? Thanks ...more >>

Ivalidator and Validation Groups
Posted by brantman at 7/31/2006 1:19:25 PM
Here is a question that needs to be revisited. I noticed that there are more that a few posts about this in this group and in custom controls. Here is the problem: When inheriting from a webcontrol, say textbox for example, and implementing the IValidator interface to make the control self-vali...more >>

One Solution for "Cannot Find Server or DNS Error"
Posted by Mike Hofer at 7/31/2006 12:30:05 PM
In my ASP.NET application, *one* page would not render in the application. All others would show up just fine, but when the user clicked the button to browse to this one page, I'd get a nasty error message from IE: "Cannot find server or DNS error." I set some break points and determined that ...more >>

Redirecting?
Posted by sham at 7/31/2006 12:24:29 PM
Hi to all, We have a webservice application that had it's own built in web server. We are know re-writing the app using ASP.net. The problem we have is that there are exisiting customers which we cannot upgread without making any changes to the client app. What we found is that when the ...more >>

Fiscal Calendar?
Posted by ajmera.puneet NO[at]SPAM gmail.com at 7/31/2006 10:29:11 AM
If I have Calendar Control on Asp.net page and I have a table for Fiscal years on sql server then, How can I check the dates from table to Calendar Control,so that I can format the Calendar control cells according to my need. I want to change the color of Dates according to fiscal month. i.e. A...more >>

Newbie - general ASP.Net advice sought
Posted by John Dann at 7/31/2006 10:20:18 AM
I'm reasonably comfortable with HTML and VB2005 coding but now want to add some ASP.Net pages to a website. Learning ASP.Net and hosting it on a suitable server are both doable, but my question is as follows: I want to add in just a few ASP.Net pages to the new website. It will probably turn o...more >>

Crystal Reports Logon failed
Posted by kimberly.walker NO[at]SPAM consultant.com at 7/31/2006 10:14:47 AM
Im creating a report in the .net 2003 and using sql server 2000 Ive checked all the help topics and even the support in microsoft my problem is I still keep getting the error Logon failed when i try to run a report. Below is my code: Any help will be greatly apprecated... ConnectionInfo cnn...more >>

Registering DLL using GAC Util
Posted by stephen at 7/31/2006 9:23:16 AM
Hi all, I am sorry if this is a repeat question, coz I cant find the question I submitted. I am using Microsoft.ApplicationBlocks.ConfigurationManagement for configuration but everytime I use this I have to make a local copy in each and every app. I wanted to register this with the GAC a...more >>

reference master page class from content page base class?
Posted by Managed Code at 7/31/2006 8:26:30 AM
I have a BasePage class that derives from System.Web.UI.Page. All of my content pages derive from this. The derived page classes use the following MasterType declaration that follows to reference the master. <%@ MasterType TypeName="MyMasterPage" %> How do I reference the master page class f...more >>

Redirection from .ascx
Posted by dave h at 7/31/2006 8:16:24 AM
Hi, I would like to redirect to a web page in a new target. I can do this: <a href="http://www.google" target=_blank>xxx</a> but the user has to click the xxx I can do this in the code behind: response.redirect("http://www.google.com") but I can't figure out how to get google to c...more >>

web form to insert record in access database-error
Posted by sudhinma NO[at]SPAM gmail.com at 7/31/2006 8:15:45 AM
Hello all, I created a web form to enter a new record to a access database called student.mdb. But when i click the save button(button1) the record does not get added and i get a exception. the code is in vb and i have used visual web developer 2005 express edition.the code is as under. IS ...more >>

COM Error using Office 2003 PIA in ASP.Net
Posted by tigerjade at 7/31/2006 7:27:02 AM
I'm trying to add some simple functionality to an intranet, allowing the app to display current tasks, calendar entries, and count the number of unread in the inbox. It works fine through Cassini, but I get this message when I try to view through IIS 5: Retrieving the COM class factory for...more >>

MasterPages and content pages
Posted by salportaro NO[at]SPAM gmail.com at 7/31/2006 7:17:10 AM
Question: Is there a way of manipulating a master page element from a content page? For example, if I have lblStatus on the masterpage and I call anypage.aspx, can I set lblStatus from anypage? Thanks, ...more >>

ASP.NET and COM+ produces error: Unable to complete async work
Posted by Niels at 7/31/2006 7:01:02 AM
Hi, We have an ASP.NET application that uses Server.CreateObject in the .aspx pages to create (ASP) COM-components (we use the 'aspcompat="true"' option). From the beginning we have seen COM+ errors in the event log and users being hung or getting Internal Server Errors. The error is: ...more >>

is there a way thru which i can make changes in the security option so that browser accepts activex?
Posted by zEE at 7/31/2006 6:25:23 AM
How to know that client IE browser Activex set to disable? ...more >>

is there a way thru which i can make changes in the security option so that browser accepts activex?
Posted by zEE at 7/31/2006 6:25:09 AM
How to know that client IE browser Activex set to disable? ...more >>

Could not find schema messages won't display aspx pages
Posted by amir at 7/31/2006 5:50:53 AM
Hi, When compiling a page in VS2005 this morning I received 101 messages regarding schema problems in my web.config file. When I go to view an aspx page in my IIS, IE just displays a blank page. I have the June Atlas CTP installed. I'd not encountered any such problems just the day bef...more >>

Callback on page leave
Posted by roend83 NO[at]SPAM gmail.com at 7/31/2006 5:30:11 AM
Hi, I'm trying to use the Asp.net Callback to save changes to data when the user leaves the page or closes the browser. This works fine on IE; however, on firefox the callback never gets registered when the user navigates to a new page. It seems like the post to the new page happens before ...more >>

pdf dowload
Posted by comick at 7/31/2006 4:11:01 AM
Hello all, i have a asp.net c# web app 2.0 I have a pdf generation with a third part sw, but i cant download pdf in a new window, from a folder inside my web site. The code i try to use is this: ...pdf Generation.. Response.Clear(); Response.ContentType = "application/pdf"; HttpContex...more >>

Prevent gridview retrieve on page load
Posted by Diane Truyens at 7/31/2006 3:04:02 AM
Hi, I have a form with textboxes, a search button and a gridview. The textboxes are filled with default values so that the gridview should return all rows but not before the user has had the chance to change some of the textboxes and has clicked the search button. How can I avoid the grid...more >>

Drop down in asp.net
Posted by Amol at 7/31/2006 2:51:34 AM
Hi , I am developing an appl'n in c# and asp.net.My prob is I have a dropdown filled with certain values. Now i need if the user click on the dropdown the "dropdown menu " of the combo should get enlarge ie. teh text in it should get bigger but not the actual combox size should get affected. C...more >>

Get month name?
Posted by Edwin Knoppert at 7/31/2006 12:00:00 AM
I can't find a way to obtain the months name from a date. Like 'August' ...more >>

Accesing textboxs inside a table.
Posted by Slim at 7/31/2006 12:00:00 AM
Accessing textboxes inside a table. I am trying to access controls in a table like this customerLastSales.Rows(i).Cells(j).Controls(0) but asp.net says customerLastSales.Rows(i).Cells(j).Controls(0) does not have property called text. How can I them with out knowing their individual ID'...more >>


DevelopmentNow Blog