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

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

Questions about ASP.NET 2.0 Webparts
Posted by Sahil Malik [MVP C#] at 3/7/2006 11:00:18 PM
I have a few Q's about ASP.NET 2.0 webparts - 1. Will these be easily upgradeable to the next version of sharepoint? 2. Is there an easy way for me to reuse any third party custom control inside an existing webpart? 3. Is there a library of existing ASP.NET 2.0 webparts that I can use? Can ...more >>


Web service for IP address to Geographic location
Posted by Paul Aspinall at 3/7/2006 10:55:11 PM
Hi Does anyone know a Web service for IP address to Geographic location resolution? Thanks P.S. I am in the UK, but I assume any good web service would be worldwide?? ...more >>

Forms authentication for multiple desktop and mobile
Posted by Waldemar GrzywiƱski at 3/7/2006 10:26:42 PM
I have two pairs of pages (Auth and Default) for mobile and desktop in one web app (Both types must share code!). Anybody know how easy implements forms authentication for ASP.NET 1.1? Mayby should I use one pair? ...more >>

Aligning a Table
Posted by DAL at 3/7/2006 9:29:41 PM
How can I align a table in the center of the browser? Thanks in advance, DAL. ...more >>

open project error on other computer
Posted by joe at 3/7/2006 8:26:40 PM
if i copy the solution and the project file from my computer to other computer. it can't open why? and how to modify the file that can open in anywhere...more >>

Processing HTTP request
Posted by Peter Afonin at 3/7/2006 8:16:33 PM
Hello, I have two ASP.NET test sites located on two different Windows 2003 servers: http://testdomain.com.shared-servers.com/ http://web-algorithm.com Both pages have dead links - Folder 1 and Folder 2. However, the behavior is different. When I click on any link on the first page, I get...more >>

Downloading files
Posted by tshad at 3/7/2006 7:19:58 PM
I have some code to allow me to send text files to my user. I am not allowing them to view my directory. I am just downloading a file they previously requested, which works some of the time. Dim fs As FileStream Dim strContentType As String Dim strPath = "C:\My External\File Path\" ...more >>

client-side cache vs server-side cache vs ajax vs asp.net callback
Posted by one at 3/7/2006 6:59:26 PM
Hi, I just went into a debate with my colleague regarding these technologies. I think they are not the same: At a high-level... Client-side caching is to do with temporary internet file and the 'check for newer verions of stored pages' setting in Internet Explorer Server-side caching is ...more >>



where is .dll file in asp.net 2.0
Posted by Avon at 3/7/2006 6:55:08 PM
HI, just a stupid question, where are .dll file in asp.net, it was in bin directory in as.net1.0-1.1 thanks ...more >>

DataGridItem.DataItem availability?
Posted by Laser Lu at 3/7/2006 6:25:43 PM
Hi, all, I was tangled by the DataGridItem.DataItem property. I tried to invoke that property to get and display the contents that was bound to the currently selected row. However, an exception surprised me that it said "Object reference not set to an instance of an object." How could it ...more >>

How can I change the NavigateUrl inside the user control ?
Posted by jeanluc.praz NO[at]SPAM gmail.com at 3/7/2006 5:26:11 PM
I created a user control containing containing a few hyperlinks. How can I change the NavigateUrl inside the user control ? So far I did the following: 1) In the custom control [CODE] Public Property SetURL() Get SetURL= sModificarURL End Get Se...more >>

where are the declarations in asp.net 2.0 .vb file
Posted by Avon at 3/7/2006 5:15:39 PM
Hi friands, sorry for my english. I am new in asp.net 2.0 and I can see where the declarations in .vb file are I mean for example Protected WithEvents Label As System.Web.UI.WebControls.Label Protected WithEvents ValidationSummary1 As System.Web.UI.WebControls.ValidationSummary I can se...more >>

Retrieve User Information from Active Directory
Posted by BlueSky at 3/7/2006 5:03:28 PM
Hi, I have to retrieve user information from active directory in ASP.NET by passing Employee ID to it. Can any one give me some information on how I should do this? Thanks!...more >>

asp.net versus asp for ecommerce sites
Posted by Rasta at 3/7/2006 5:02:45 PM
Hi, Can someone tell me the advantage of using asp.net over asp for development of ecommerce sites? Thanks ...more >>

Can ASP.NET 2.0 Use SQLServer 2000 For Membership Function
Posted by Dan Sikorsky at 3/7/2006 4:47:30 PM
Can I use SQLServer 2000 with ASP.NET 2.0 instead of SQLServer 2005, and use the .Net 2.0 Membership functionality? I've setup my Login page, controls, etc., and now it's time to use the Web Site Administration Tool (WAT) but it won't sense my SQLServer 2000 database. ...more >>

Can't Read Profile Data...
Posted by clintonG at 3/7/2006 4:40:16 PM
I can put the data in but I can't read it back. It should be as simple as Label1.Text = Profile.FirstName; to get the name data back. Anybody around with experience using Profiles? <%= Clinton Gallagher ...more >>

How to create an immortal web app?
Posted by daykirby NO[at]SPAM daykirby.com at 3/7/2006 4:36:49 PM
Sorry if this is a crosspost - I think I put this in the wrong group before. I have an asp.net app that takes a few minutes to start on the server site (unavoidable) but once running it processes requests and serves data to the client quickly. Once started, I hold the app in memory using Ap...more >>

start Insert command on textchanged before clicking the "Add" Button..: HOW ?
Posted by moi at 3/7/2006 4:11:46 PM
Hello, I have a formview with a dropdownlist,a textbox and a button to add a new row with this fields. Everything works good (i have my new record) when i click on the button but how to be faster ? i would like the insert command to start as soon as i validate the textbox : textchanged event...more >>

BC30456: 'InitializeCulture' is not a member of Page
Posted by Mohammed Banat at 3/7/2006 3:46:27 PM
All my pages work just fine on development, but as soon as I publish (deploy), I always get Compiler Error Message: BC30456: 'InitializeCulture' is not a member of 'ASP.default_aspx'. This happens for every page. Please help. I have seen multiple questions from people on this same ...more >>

Does ASP.NET 2.0 Support Chinese?
Posted by Kevin Burrowes at 3/7/2006 3:38:27 PM
We are working on a large enterprise application and the client recently request the site support multiple language, including many of the Asian languages. While this doesn't have to be supported now, the site should be scalable to support this in the future. I have a few questions regarding thi...more >>

Website Administration Tool against remote server (IP connection)?
Posted by Dabbler at 3/7/2006 3:30:28 PM
Is there a way I can manage a remote website (virtual shared hosting service) with WAT? When I run it from the VWD Express it opens my local sites but I'n not sure how to invoke it against a remote site (which I haven't setup a website for in VWDE, as I don't program againt production sites). ...more >>

Accessing controls in LoggedInView template
Posted by mike2036 at 3/7/2006 3:10:29 PM
Hello, I wanted to display a welcome message using the logged-in user's first name in the <LoggedInTemplate> section of the LoginView. When I attempt to access my welcome label control in the Page_Load event (where IsPostBack is true) to populate with the user's first name from the Profile...more >>

HttpModule functionality in ASP.NET 2.0
Posted by Rao Sajja at 3/7/2006 3:01:30 PM
I have a working HttpModule in ASP.NET 1.1 which was being used for authenticating the received user request. I have migrated this to ASP.NET 2.0 and was not able to parse the parameters specified in the input request. Sample HTTP request that is used in my application: http://localhost/TestW...more >>

Sending a 403 response
Posted by Martin Robins at 3/7/2006 2:32:17 PM
I have an application which uses Windows Authentication to identify users and ensure that they are on a domain. Once access is granted at this level, I then check their login name against a database of validated users to determine whether the particular user can actually use the system. If ...more >>

Setup of VS 2005
Posted by Jim Rasmussen at 3/7/2006 2:29:56 PM
Instead of showing an error page in IE when I get an error, a text editor(EditPlus) is launched. Any ideas why and how to change it? TIA Jim ...more >>

copyright symbol in web.config
Posted by moWhite at 3/7/2006 2:25:17 PM
How can I add a copyright symbol to a web.config file? I cannot use the © or char(169) statements, I need to pass the string onto another application. The following works on Window XP Professional, IIS 5.1, but fails on Windows Server 2003, IIS 6.0: <?xml version="1.0" encoding="utf-8" ?...more >>

.Net Controls, z-index and scrolling
Posted by Keith McDonald at 3/7/2006 1:47:38 PM
Have an odd problem. We have a javascript menu that is sitting at the top of the page (position:absolute workaround for position:fixed in ie). All the menu items are sitting in iframes with a high z-index so the pop-over any content on the page, this was done for some active x controls that ar...more >>

FCKEditor and ASP.NET
Posted by Ferret Face at 3/7/2006 1:29:39 PM
Has anyone had any success using ASP.NET with FCKEditor?...more >>

Newbie: DataList with 2 Columns
Posted by Joao Batista at 3/7/2006 1:28:14 PM
Hi, I'm newbie to asp.net vb, my problem is that, I have a DataList in one page with 2 columns that works ok, but in browser if is maximize it displays the DataList like i expected, but when i move the browser side to the left of the screen the column 2 goes over column1, any way to fix thi...more >>

Unhandled Exceptions - ASP.Net
Posted by tberry NO[at]SPAM vhb.com at 3/7/2006 1:14:53 PM
I have just begun reviewing how to create a custom error page for unhandled exceptions. I found if I set custom HTML pages in Web.config those work fine. But referencing .aspx pages in Web.config produced the standard exception page. I then used Server.Transfer(name.aspx); in the Application_E...more >>

aspnet2005: What is Page_Load ?
Posted by Ernest Morariu at 3/7/2006 1:02:18 PM
Hi All! System.Web.UI.Page C# I do not understand what is the Page_Load method. I supose it is an event handler for the Page.Load event, but I cannot find any association between the event Page.Load and the method Page_Load. I expected to find somewhere something like : this.Load+=new...more >>

basic auth causes page cannot be displayed error
Posted by Abraham Andres Luna at 3/7/2006 12:55:38 PM
hello everyone, i have the basic authentication method selected for my iis settings. when i navigate to a url using the local computer the login succeeds and shows the web page correctly. however, if i try to login remotely, the login succeeds but shows a "page cannot be displayed" error pa...more >>

Table cells background
Posted by Karl-Inge Reknes at 3/7/2006 12:45:03 PM
Hi, Can anyone tell me how to change a table cells background color or background image in runtime with C#. Karl-Inge ...more >>

Two users with same Session Id
Posted by larrythediver NO[at]SPAM hotmail.com at 3/7/2006 12:30:38 PM
Our website is having a problem. It seems that on random times, the session id of a user that is logged into the site will change to that of a different user. Once this happens, both users have the same sessionID. The user then experiences the site as if they were the other user (security, na...more >>

Base Page
Posted by JJ at 3/7/2006 12:23:22 PM
Lets say you use a custom base page that inherits from System.Web.UI.Page and you have defined properties in this custom page. If I set the properties from a web page that inherits from my new base page. How can I persist these properties to another web page that loads that also uses the new bas...more >>

How to redirect different users to different pages?
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 3/7/2006 12:05:57 PM
I am not sure how to google this concept. Basically, what I wanna do is to direct different users to different pages. I do not have a whole lot users. For example, if user name 'tomcat' logins successfully with the correct password, I want to direct this guy to 'tomcat_page.aspx'. And if t...more >>

Initial setup
Posted by Jim Rasmussen at 3/7/2006 12:00:06 PM
I installed VS 2005 for asp.net 2.0. I cannot even get a page with hello world to produce. The only error I am getting is from a text editor that says... "http:\\localhost\website\" was not found. Do you want to create a new document? I added defaults.aspx to the document list for the site...more >>

anonymous access and authentication
Posted by matthewdavis1980 NO[at]SPAM hotmail.com at 3/7/2006 11:58:55 AM
Hi all, I have a scenario and maybe you guys can help me out. I'm working with asp.net 2.0 and have created a website under a website template. My ultimate goal is to have the website available under "anonymous access" to the public, but special features available under integrated windows a...more >>

Why do labels have .DataBind ?
Posted by Roy at 3/7/2006 11:47:23 AM
This may seem silly, but I'm just curious... I've noticed that in the code-behind, asp:Label has the .DataBind property yet has NO corresponding .DataSource property? Am I missing something? How can you databind something that has no datasource? Thanks *** Sent via Developersdex http://ww...more >>

Having problems with validators
Posted by Adrian Parker at 3/7/2006 11:23:27 AM
Having a problem with validators. Because we want to only test whether the current field in a changed event is valid before we process the change code, I have tried to turn off all validators for the page (all ctrls are in a table), then just enable the one relevant validator, run the page.va...more >>

Problems with ASP.NET accesing a remote SQL database
Posted by Hrvoje Vrbanc at 3/7/2006 11:19:19 AM
Hello all! Scenario: - web server at one location (domain) with VS 2003 - SQL server at a remote location (domain) - VPN connection on port 1433 between the two domains I have no troubles reaching the remote SQL server either from SQL Enterprise manager or in VS 2003 design-time (using th...more >>

Export datalist or gridview to Excel
Posted by staeri NO[at]SPAM gmail.com at 3/7/2006 11:02:48 AM
I have a lot pages with either a datalist or a gridview and I would like to provide print functionality to the users so that the current page is exported to Excel when the user clicks the Print button. Since I'm a big fan of reuse I don't want to create a separate print version of each page si...more >>

Problem with session variables in Page_Load
Posted by itissandeep NO[at]SPAM gmail.com at 3/7/2006 10:50:38 AM
I have a simple application that has a map. The user has to select two sets from a single type of feature from the map. I use two radio buttons under same GroupName for each set. When the page loads for the first time, one radio button is checked (obviously the other is unchecked). The user se...more >>

datagrid
Posted by Arun at 3/7/2006 10:39:12 AM
Datagrid sort event handler does not get fired when dynamically creating/adding/removing columns to the datagrid Thanks in advance for your answers Arun ...more >>

Newbie confusion?
Posted by James Hunter Ross at 3/7/2006 9:57:19 AM
Friends, I am a very seasoned developer, but very new to ASP.NET. Occasionally I get errors displayed in the browser while visiting my ASP.NET site: Compiler Error Message: CS0433: The type 'RSWEBNET.InventoryGrid' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP....more >>

how to cache part of a page without using fragment caching
Posted by sam at 3/7/2006 9:48:21 AM
Hi, I know fragment caching where you can use a cached user control in a non-cached page (or the opposite) But without using a user control, how can I cache just a part of my page (two datatables) but not the rest of the page ? ...more >>

force cache to expire in Netscape or Mozilla
Posted by sam at 3/7/2006 9:28:44 AM
Hi, the following works fine with IE: <% Response.CacheControl = "no-cache" Response.AddHeader("Pragma", "no-cache") Response.ExpiresAbsolute = DateTime.Now.Date Response.Expires = -1 %> How do you make that working with netscape or mozilla firefox ??? thanks ...more >>

Standard theme
Posted by David Thielen at 3/7/2006 9:27:38 AM
Hi; I am trying to use the SmokeAndGlass theme. First off, the css file has nothing in it. It's got <a> and <h#> and that's it. Shouldn't there be a lot more in the css file? And then second, is there some kind of style guide that lists where to ues each of the css styles? I am assuming ...more >>

Resizing Object in ASP
Posted by Coolsat at 3/7/2006 9:13:43 AM
I am a newbie to ASP.net, I have previous VB.net experience but I am stumped on something that hopefully is quite simple. I have an object on my page, it is a thirdparty chart from ChartFX. What I need is to resize this chart depending on the results my dataset from a query return. When a butt...more >>

Precompilation Question
Posted by Myron Marston at 3/7/2006 9:02:04 AM
When I precompile my webservice project using aspnet_compiler, it generates two files called App_global.asax.compiled and App_Code.compiled. When you open these fields, it contains some XML that references the hardcoded virtual directory name at the time of the compilation. Our WebService is g...more >>

ASP.NET JavaScript Popup, No Popup Using Back Button
Posted by dapkniht at 3/7/2006 8:58:33 AM
Hello, Here's my situation... I have an ASP.NET 2.0 (C#) page with a link button. When a user clicks the button I need it to execute the code behind code for the link button on click event. At the end of the code behind code for the link button click event, I use JavaScript to popup another ...more >>

Associating a file with an Editor
Posted by prabhupr NO[at]SPAM hotmail.com at 3/7/2006 8:57:51 AM
Hi Folks I' using VS 2005. When I open an XML file, I would always like to OPEN it in "HTML Editor", but currently it does not (not sure what editor it open in). My questions are 1. How do I identify what editor is used to open the XML file 2. Curently I right click on the file and select ...more >>

session cookie and presist cookie?
Posted by jerry.xuddd at 3/7/2006 8:56:37 AM
Hi, I tried to use HttpCookie in my code and it seems that by default it is a session cookie (dispear after user close the browser). Can someone tell me how to create a presist cookie? Also where are the session cookie stored? I searched under temp Internet folder and cookie folder, but I c...more >>

howto force login with windows authentication
Posted by Abraham Andres Luna at 3/7/2006 8:47:19 AM
hello everyone, i have setup windows authentication with iis and asp.net. it works fine, however, how do i force a login anyway. that way the user has to type in their username and password when they end their session. thank you, abraham luna ...more >>

repost -- asp .net / save Excel on server
Posted by mattmerc NO[at]SPAM bellsouth.net at 3/7/2006 8:44:35 AM
Hi all, This is a repost from a week or so ago. I'll try to reformat so it is more clear. I am looking for something in asp .net / vb .net that will export a datagrid to Excel, BUT will save the file on the server (not the client). Can this be done without Excel installed on the server? ...more >>

Recommendation: ASP.NET Source Control Management
Posted by Brenden Bixler at 3/7/2006 8:27:09 AM
What are you using for using for Source Control Management? I'm looking for something simple, Windows or Unix-based, that keeps daily snapshots of the codebase and allows me to deploy to multiple hosts simultaneously. Ideally, something that integrates well with ASP.NET, but is flexible enough...more >>

String.Compare vs String.CompareOrdinal
Posted by Joe at 3/7/2006 7:40:27 AM
Hello All: Why would you use String.Compare in lieu of String.CompareOrdinal? For that matter, why not use string1.CompareTo(string2)? Are there performance differences? Any feedback would be appreciated. TIA, -- Joe...more >>

Proj Files
Posted by JJ at 3/7/2006 7:10:25 AM
Hi, I created a solution file and attach an existing web project to it from Visual Source Safe. If I do a web build on my machine and try to deploy it to another server. Will I have problems trying to access web app since my webinfo file has a different url than the deployed to web servers...more >>

ASP.NET passing values
Posted by somersbar NO[at]SPAM yahoo.com at 3/7/2006 6:46:03 AM
im trying to transfer data from one webform to another. can anyone help me with the error im getting from webform1 on line 84 of my code? Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please ...more >>

Problem with Web Config '<', hexadecimal value 0x3C, is an invalid attribute character
Posted by theonlyzahid NO[at]SPAM gmail.com at 3/7/2006 6:10:53 AM
Hi, I am getting his weired error when i open my webpage. Parser Error Message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 13, position 68. Source Error: Line 11: debugging ASP.NET files. Line 12: --> Line 13: <compilation defaultLangu...more >>

how do you navigate between virtual sites within a main site
Posted by eswanson at 3/7/2006 5:46:25 AM
I have a main site www.example.com which has a form. On the form is 2 command buttons. One button I can to go to testa.aspx and one button I want to go to testb.aspx. www.example.com/sitea/testa.aspx www.example.com/siteb/testb.aspx What is the syntax for the server.transfer or the li...more >>

wrong option selected in dropdownlist
Posted by sam at 3/7/2006 3:47:20 AM
Hi, I have a bound dropdownlist with an event handler OnSelectedIndexChanged. If I select a value I'm redirected to another page. I come back using the browser's back button, and the option is still selected. So far so good. But the very weird thing is that if I look at the source code : <...more >>

get line number in error handling code
Posted by scottrm at 3/7/2006 3:43:29 AM
I want to get the file name, line number etc. in error handling code in an asp.net application. I know how to trap errors in the Global.asax and I read that you can use the stack frame from the System.Diagnostics namespace to get line numbers provided you release in debug mode but when I use t...more >>

Localization question
Posted by joe at 3/7/2006 3:42:45 AM
Dear all Q1.) How to localization in javascript -- asp.net 2.0 e.g. function onDelete() { if (confirm('are you sure to delete it?')==true) return true; else return false; } } how to localise 'are you sure to delete it'? Q2.) Any online document a...more >>

ASP.NET as a Client App
Posted by Karl Pierburg at 3/7/2006 3:41:30 AM
I have a ASP.NET app that my users would like to be able to access remotely while out of the office (i.e. where they will have no internet connection). Rather than rewrite the whole thing as a traditional windows forms app, I'd like to deploy the actual web project. All my users have good ...more >>

strange problem with dropdownlist
Posted by samuelberthelot NO[at]SPAM googlemail.com at 3/7/2006 1:32:27 AM
Hi, Hi I have a dropdownlist (dpl) filled in page.Load event. If I select a value, I'm redirected to a page. I browse back to the page using the back button (obvisously the dpl is not filled again as the cache is used), I select another value in the list, and then i get the exception: Cann...more >>

Release my new control: wakicoolbar for asp.net 2.1
Posted by Waki Hunt at 3/7/2006 12:05:39 AM
WakiCoolBar for asp.net 2.1 is a new developed professional tool for creating DHTML menus like outlook style. It¡¯s very convenient to create the webmenu without writing javascript. And you may add menu items easily and visual at VS by PANELS property, It can be binded with Database showing ...more >>

Can JavaScript run a ASP.Net function?
Posted by Saber at 3/7/2006 12:00:00 AM
When users come to website, I want to identify them (browser, referrer, ....). I am doing it in global.asax, well, when they type www . sitename . com the global.asax identify them and redirect them to another page. in my site, there are lots of html and other stuff, how to identify them when...more >>

NUNIT vs VSTS ?? Which is better ?
Posted by Parag at 3/7/2006 12:00:00 AM
Hi, I am trying to figure out best testing tool for my project. I have narrowed down my requirements to two tools NUNIT and VSTS unit. But I have used neither and I have to use only one of them. Hence can someone who has used them before share his/her experience on them so that I can get ...more >>

Session count always increasing
Posted by xisco at 3/7/2006 12:00:00 AM
hi all, I am counting the number of users logged in my website. That's how I do in my global.asax (asp.net 2.0) - in my application_start I initialize an application variable with 0; - in session_start I add my application variable + 1 - in session_end I decrease application variable -1 my ...more >>

ASP.NET and COM interop/security issue.. ('NullReferenceException')
Posted by Subrata at 3/7/2006 12:00:00 AM
hi All, I'm trying to call a COM component written in PowerBuilder from an ASP.NET application. The first method call into the COM component (developed using PB) is failing with 'Object reference not set to an instnace of an object' error. Observations: 1. I can call the same PB COM...more >>

How to cancel validator
Posted by ad at 3/7/2006 12:00:00 AM
I am use a RequiredFieldValidator to valid a Text box, and there are two Buttons on the forms, one for OK and one for Cancel, both are Asp.Net controls. When a user press Cancel to cancel the input, the RequiredFieldValidator also require user must enter the value. How can I do? ...more >>

Repeater problem
Posted by Franz at 3/7/2006 12:00:00 AM
I have created a Repeater Control. There is a Button outside this Repeater Control. When the Button is clicked, Page_Load will be called. I would like to ask if I need to Bind the Repeater control again? ...more >>


DevelopmentNow Blog