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 wednesday march 8

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

vs 2005
Posted by Ron Vecchi at 3/8/2006 11:28:55 PM
It's hard to beleive that MS took an at best beta version of VS.NET(specifically the ASP.NET side of things) and is selling it as the real thing. ...more >>


How disable textbox autocomplete?
Posted by VB Programmer at 3/8/2006 11:12:57 PM
I have a credit card number textbox. How do I disable autocomplete for this? This doesn't seem to work... <asp:TextBox ID="txtPaymentCCNum" runat="server" Width="138px" AutoCompleteType=none></asp:TextBox> Thanks! ...more >>

response.write Blank Spaces
Posted by gourav at 3/8/2006 10:43:53 PM
hi, I am new to c#. When we write a string with spaces in httpresponse.write then it trims the string. Is there a way by which the spaces are not trimmed when i output the string to the web page. any response will be helpful. Regards, Gourav Sinha ...more >>

Trying to control the visibilty property of panel in timer event
Posted by ravidhixith NO[at]SPAM gmail.com at 3/8/2006 10:34:00 PM
Hi there, I am trying hard get a sloution to an issue.It goes like this I want to show a "Searching plz wait messge " when user searches for some values.i tried different ways but am failed. i tried using <div>=failed using showmodelessdialogbox()=fsiled finally i am using timer control on tim...more >>

Problerms with iFrames and user identity
Posted by WT at 3/8/2006 9:43:13 PM
Hi, Working on MS CRM 3, I have created an aspx page using vs2005 and .NET 2. I am faced with a problem concerning the identity of the running user. More details: The CRM application which creates the iFrame is on the same server as the called aspx page. CRM is running .NET 1.1, my page ....more >>

Creating Questions Dynamically
Posted by Tex at 3/8/2006 9:16:08 PM
I am writting a survey system web application. I am using ASP.Net 2, C# and MS SQL 2005. I am able to store surveys and questions associated to the surveys just fine. The problem I am having is Dynamically creating a survey on a page. I have read some MS articles on dynamic creation of web f...more >>

Local machine's MAC address?
Posted by SJ at 3/8/2006 8:43:52 PM
How can I find the local Machine's MAC address using asp.net? Thanks, -SJ ...more >>

ASP.NET 2.0 and MySQL
Posted by dm1608 at 3/8/2006 8:38:06 PM
Anyone know how I can query MySQL from ASP.NET 2.0 and populate a GridView control? ...more >>



ASP.NET Session Variables Not Updating After First Post
Posted by Scott F K Hooper at 3/8/2006 8:21:27 PM
I have an aspx page that I want to use to collect info and create session variables before navigating to another aspx page to use the new session vars. Ie, consider the following page, setSession.aspx ... <% Dim dlrCode = Request.QueryString("dlrCode") Dim fileName = Request.QueryStri...more >>

eventhandlers for dynamically added controls
Posted by Kasper Birch Olsen at 3/8/2006 8:21:13 PM
Hi NG Im adding a bunch of linkbuttons to a page, in a for loop, but I cant get the eventhandlers to work. A simplyfied version of the code looks like this: for (int i = 0; i<10; i++) { Button b = new Button(); b.Text = "button_"+i; b.Click +=new EventHandler(b_Click); buttons[...more >>

session variables not updating
Posted by Scott F K Hooper at 3/8/2006 8:13:27 PM
I have an aspx page that I want to use to collect info and create session variables before navigating to another aspx page to use the new session vars. Ie, consider the following page, setSession.aspx ... <% Dim dlrCode = Request.QueryString("dlrCode") Dim fileName = Request.QueryStri...more >>

i'd like to include aspx page to aspx page
Posted by uto at 3/8/2006 8:02:54 PM
i'd like to include aspx page to aspx page not ascx page in this case how can i attach aspx page into aspx page? i think there are some way to implement this... LoadTemplate may be work or not? ...more >>

Disable web page controls during postback round-trip
Posted by Larry at 3/8/2006 7:48:27 PM
Is there a way to disable all the controls the instant any auto-postback controls are changed (resulting in a postback that takes a couple seconds), so that the user can't continue changing other controls while the postback to the server is running? The reason this is necessary is because...more >>

How do I have two user controls with one code-behind file?
Posted by Alan Silver at 3/8/2006 6:51:39 PM
Hello, I have a user control which I am trying to load dynamically, but am running into problems. I think the problem is because I have two .ascx files that refer to the same .ascx.cs file. A simple example is like this... Ferret1.ascx ========= <%@ Control Language="C#" CodeFile="Ferre...more >>

access denied in an asp.net 2.0 application when accessing a direc
Posted by eswanson at 3/8/2006 6:16:28 PM
on a different server. I am currently getting an access denied when I attempt to do the following in my asp.net page: strFilePath = ConfigurationManager.AppSettings["imagesavedir"]; strFileName = strImageName + ".*"; DirectoryInfo di = new DirectoryInfo(Server.MapPath(strFilePath)); ...more >>

generating textboxes on the fly ASP.Net (2003)
Posted by genc_ymeri at 3/8/2006 5:36:04 PM
Hello over there, I would like to generate the textboxes on the fly depending on the number of coulmns in a returning dataset. I tried something like this : TextBox temp = new TextBox(); MyPage.Controls.Add(temp); // <-- the above on failed saying I should specify [run at server] when th...more >>

I need help with Master page - I am working on Header and Side lay out.
Posted by Learner at 3/8/2006 5:29:23 PM
Hello, Here is a little bit of what I am working ... I have selected Header and Side lay out for my Master Page. All my links go on the Side and the content on to the right pane. I have no problem dealing wiht ContentPlaceHolder and the content pages. I also have created a log in screen us...more >>

ASP.NET Web Service newbie question
Posted by Hitesh Kanwathirtha at 3/8/2006 5:24:28 PM
Apologies in advance if this is a stupid question but I'm just starting to learn ASP.NET. So I have a bunch of classes that are in a class library. One of them happens to be a Tree class. Now, I wish to have a WebMethod (lets call it foo) which takes in this Tree class as a parameter. I adde...more >>

More GridView Problems
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 3/8/2006 5:18:22 PM
I wanted better control over the display of the command buttons, so I created Template columns for each command. (Otherwise the GridView was putting extras spacing around the images and such.) Is there a way to tell the GridView to only show certain columns if that particular row is in edi...more >>

Web service for IP address to Geographic location.
Posted by Paul Aspinall at 3/8/2006 4:46:45 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 >>

web-subweb
Posted by Ernest Morariu at 3/8/2006 4:24:54 PM
Hi All ! Is it possible to make a web and its subweb to share the same session? ernest ...more >>

Where do I put the .cs file for this user control?
Posted by Alan Silver at 3/8/2006 4:11:30 PM
Hello, I have a user control that can show info in a number of different ways. I do this by having several .ascx files, all of which refer to the same ..cs file. I can't work out where to put this .cs file so that it will work. The ..ascx files are in the root of the web site, and if I p...more >>

Debugging ASP.Net application using Domain User account
Posted by den 2005 at 3/8/2006 4:02:27 PM
Hi everybody, I am using a Domain account to access a local pc where the ASP.Net web application is stored, the problem is when I set a breakpoint at page load event, It does not stops at the breakpoint, how can I enable debugging usinga Domain User account? The Domain account has loca...more >>

Web Service Parameters Lost
Posted by hinsbr NO[at]SPAM cableone.net at 3/8/2006 3:06:11 PM
Hello, I am trying to learn about web services. I was able to get a working VS 2005 web service and VS 2005 web service consumer application to communicate. The service would return the passed in string parameter and "Hello World", thus printing "myteststring Hello Word" When I tried to u...more >>

Monitoring Windows Services
Posted by Sridhar at 3/8/2006 3:04:27 PM
Hi, I am trying to create a windows application that will monitor the windows services on a local computer or a remote computer. If any of the services fails, then it needs to email me saying that particular service has failed. How could I do that? Please let me know. Thanks, Sridha...more >>

Catching directory transversals passed through QueryString
Posted by Merennulli at 3/8/2006 2:43:46 PM
Ok, the gist of the problem is I have a site my predecessor created that much of it goes through a single asp.net app. For some reason, instead of using templates or includes, he passed everything through this one bit of code that dumped html and flat text in the middle of the page. To keep it d...more >>

.NET 1.1 SmartNavigation problem
Posted by Elliot Rodriguez at 3/8/2006 2:29:08 PM
I am sure I'm not the only person whos experienced this :) In using SmartNavigation I notice that every few times my page posts back, attempts to read from the Request.Form collection bomb with Object Reference Not Set to an Object errors. My page contains a number of controls that obvious...more >>

ASP.net 2.0 TreeView SelectExpand
Posted by Mimo169 at 3/8/2006 2:10:54 PM
Hi, For some reason I cannot get a parent node to perform the SelectExpand behavior when clicked if I am defining a Url value in my Web.sitemap. It works fine if I leave the Url field blank, but then it throws off my SiteMapPath (bread crumb trail) because it won't show a clickable link. I ...more >>

aPassing values to sub-controls
Posted by prabhupr NO[at]SPAM hotmail.com at 3/8/2006 1:52:58 PM
Hi All We have created a Control, which internally refers to subcontrols. The way we pass values to Controls is by using PUBLIC properties, but not sure how do we pass the values to Sub-Controls, can these be passed from 1. Controls 2. Web.Config Any help please? ...more >>

How to compile a subfolder into a DLL?
Posted by walter at 3/8/2006 1:45:27 PM
Hi there, we have a big ecommerce site contains lots of services which is developed by different teams. But physically there are on the same site just different folders. here is what I want to do : 1. Compile each service folder into a separated DLL.Note I don't think aspnet_compiler works ...more >>

100% height div with xhtml
Posted by Jeremy Chapman at 3/8/2006 1:40:59 PM
If my page has a doc type tag of: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> How do I create a div that sizes it's height to 100% of the page? For example: <div style="height:100%"></div> will not size to fit t...more >>

HttpHandler to Redirect root Default.aspx
Posted by MilanB at 3/8/2006 1:24:54 PM
Hello, I created HttpHandler to redirect root Default.aspx. But I don't know how to create path, that will redirect just web root Default.aspx. I tried following line, but it redirects all Default.aspx never mind in which subdirectories they are locate: <add verb="*" path="Default.aspx" ...more >>

Run Web on local computer
Posted by Lou Civitella at 3/8/2006 1:24:09 PM
I created a web site with ASP.Net 2.0. I uploaded it to my web site and everything works fine. Now I want to be able to run the site on my local computer but I cannot. When I try to open the default.aspx with IE I see the source code of the page. How do I run an ASP .Net 2.0 site on a local...more >>

Changing a different account (in place of ASP.NET accont) running in a Web Server
Posted by Alice Wong at 3/8/2006 12:55:32 PM
Is there a way to change the ASP.NET account to some other account in IIS? thanks, Alice ...more >>

add control to a datalist
Posted by Jon Paal at 3/8/2006 12:50:46 PM
I have a datalist bound to an arraylist holding 3 chart controls. I want to display the charts in the datalist : .... dtlcharts.Datasource = arrCharts dtlcharts.Databind() .... <asp:datalist id="dtlcharts" runat="server" > <ItemTemplate> control1 goes here ...more >>

Installing vs2003 after vs2005 and SQL Server 2005 DEV
Posted by palmtreefrb at 3/8/2006 12:34:33 PM
Can this be done? Or should I uninstall vs2005 and SQL Server 2005 dev? Thanks ...more >>

Adding button programatically - NON-FUNCTIONAL!!
Posted by Neo Geshel at 3/8/2006 11:46:48 AM
Greetings. Hopefully someone will be able to untie this Gordian Knot I=20 have found myself bound up in. I am trying to add a submit button dynamically to a PlaceHolder. This=20 button will help update a particular entry in a database. The button is added as thus: Sub LoadIntro() ...a...more >>

ASP.NET dataset
Posted by somersbar NO[at]SPAM yahoo.com at 3/8/2006 11:46:01 AM
hi, i need to create a new dataset at runtime in a button event handler. can anyone start me off in the right direction? ...more >>

import CSV file directly into a dataset
Posted by darrel at 3/8/2006 11:44:33 AM
is that doable? I have built a CSV string using a stringbuilder. I now want to take this data and populate a DS. How do I do that? I've gotten this far: dim ds as new dataset Dim objOleDbAdapter As System.Data.OleDb.OleDbDataAdapter Dim objConnect2 As New System.Data.OleDb.OleDbConn...more >>

RadioButton\DataGrid
Posted by gh at 3/8/2006 10:59:17 AM
I am using the 1.1 .netframework and I use the template code below to define a radio button in the grid rows. <ASP:TemplateColumn headertext="Select"> <HeaderStyle width="50px"></HeaderStyle> <ItemStyle wrap="False" horizontalalign="Center"></ItemStyle> <ItemTemplate><asp...more >>

Manually building a DS and/or can coalesce handle this?
Posted by darrel at 3/8/2006 10:40:47 AM
I have three tables making a many-to-many relationship: Companies CoID | CoName Link CoID | InsID Insurers InsID | InsName Normally, I'd do a few joins and end up with a dataset that creates a new record for each Co/Ins pair. I'd then manually loop through the DS pulling out the u...more >>

Popup Calendar at Specific Location
Posted by Garth Wells at 3/8/2006 10:29:51 AM
I found sample code that shows me how to implement a popup calendar, but I would like the calendar to popup at the lower right of the Input to which it's associated...the way Sharepoint popup calendars work for Issues, Projects and Tasks. Any insight on how to do this would be appreciated. ...more >>

ASP.NET and ASP.NET 2
Posted by palmtreefrb at 3/8/2006 10:13:44 AM
Can someone recommend a good book/resource that describes the changes from vs 2003 to 2005. For example, where is my initialization section etc. Thanks ...more >>

office xp web components
Posted by John at 3/8/2006 9:55:27 AM
I'm trying to use the OWC on my web form and trying to make it look like Excel. I have the box there but no formatting such as headers, bold font, etc. I have the same control on a asp page and I have bold font, headers, titles, grid lines, etc. but not on my .net (C#) web form. How can I form...more >>

Datagrid back to Table
Posted by Bahman at 3/8/2006 9:32:27 AM
Hello! Is there a control of some kind that puts datagrid data back into the sequel table? The datagrid should have all the info necessary. Some items may need to be changed. But the data (lots of fields) is the same for the most part. This would be similar to bcp. In fact, bcp might be ...more >>

Weird error
Posted by jason NO[at]SPAM curvine.com at 3/8/2006 9:08:45 AM
Hello, I have a script written in c# that is returning the following error: Compiler Error Message: CS0246: The type or namespace name 'SqldbType' could not be found (are you missing a using directive or an assembly reference?) It is failing on: oCmd.Parameters.Add("@FirstName", SqldbType....more >>

Problem enumerating pages in .NET 2.0
Posted by Gerry at 3/8/2006 8:48:47 AM
Without bothering with the details (though if you are curious, I'll be glad to explain!). This code functions perfectly under ASP.NET 1.1, but randomly fails under ASP.NET 2.0. More details after the snippet My site has the following web pages: MainPage.aspx Page1.aspx Page2.aspx Page3.asp...more >>

Session.Timeout
Posted by roko111 at 3/8/2006 8:40:02 AM
I would like to show the user that the Session has timed out. I know I have to use some kind of timer in Session_OnEnd that will refresh the page at the end. I'm just not sure how to implement the code. Could anyone help? ...more >>

Bidirectional Data Binding?
Posted by Aquila Deus at 3/8/2006 8:17:53 AM
Hi all! I'm wondering if I can code like this with .NET 2: <asp:Repeater runat="server" DataSource="Articles" Item="article"> ... <asp:TextBox runat="server" Field="article.Subject"/> <p> <asp:TextBox runat="server" Multiline="true" Field="article.Text"/> </p> ... </asp:Re...more >>

constantly re-uploading (unchanged) DLL as site breaks (1.1)
Posted by Kevin D. at 3/8/2006 7:47:25 AM
I have a web application that continues to "break" on me after a random amount of time. There doesn't appear to be a rhyme or reason, just out of nowhere some of my error handling kicks in and users are displayed one of my "friendly" error messages (or a friendly error page). I am also sen...more >>

DataGrid\Image
Posted by gh at 3/8/2006 7:26:40 AM
I have a datagrid and the first column is setup as hyperlink column. Each row will have a different image and link assigned to it, at runtime. Would I use the datagrid item to assign these to the hyper link properties at runtime? Thanks ...more >>

File Download Problem
Posted by Tim at 3/8/2006 6:46:28 AM
I have developed a web based file manager application. It has a simple interface that allows users to upload and download files. Everything works great except for one new download problem. I am forcing the file download in the following code: Response.Clear() Response.Conte...more >>

HttpWebRequest,ebay,Cookie!
Posted by wavemill at 3/8/2006 6:10:27 AM
Hello! This is my problem: I would like acces to my ebay account with post data. I have a problem with cookie. The registration in the ebay website work well after there is an error" you navigator doesn't accept cookie" I have try to cookiecontainer without success. If you try the ebayname ...more >>

file upoad issue in dotnet when file is open
Posted by vinesh at 3/8/2006 5:33:43 AM
HI I have problem in uploading a file to server through dotnet when the file is open on the machine. It gets uploaded properly,but there seems some problem in the extension of uploaded file. Regards vinesh ...more >>

AutoPostBack with ASP.NET webforms
Posted by somersbar NO[at]SPAM yahoo.com at 3/8/2006 5:18:47 AM
im trying to get a selected item from a dropdownlist(which is populated from a microsoft access database) to appear in a textbox. i have set autopostback to true for the dropdownlist, but no matter what item i select from the list, its always only the first item in the list that gets sent to the...more >>

update gridview
Posted by aarif.shah NO[at]SPAM gmail.com at 3/8/2006 4:23:19 AM
Hi, i am Aarif, I Have a gridview.On clicking the edit link of gridview i want my edititem template(that i have defined ) to show either Texbox control or dropdown list depending on some condition. when user clicks on update link of the gridview,the value shoud be taken from either textbox...more >>

Server Error in '/' Application.
Posted by junkmanuk NO[at]SPAM gmail.com at 3/8/2006 3:12:21 AM
Hi, This has been posted many times, but no solutions I've found so far have helped! I'm getting this message from my ASP.NET app: The application has been running fine for months, yet at 12:30 last Saturday it upped and died. We've tried rebooting the server, checking permissions on di...more >>

LinkButton Event Handler in ASP.NET 2.0
Posted by m00nm0nkey at 3/8/2006 2:41:34 AM
Hello I have very recently moved from VS2003/ASP.Net 1.1 to VS2005/ASP.Net 2.0. I have made up a web page which has many labels, image buttons and link buttons. I am have a lot of trouble writing an event handler for a particular link button and I have no idea why. This is exactly what ...more >>

Problems dynamically adding items to Listbox
Posted by Papa.Coen at 3/8/2006 2:28:07 AM
I've just spend a lot of time solving the following problem: I used dotNet 2.0 / Visualstudio 2005 / C# / aspx, enable viewstate is set on all controls. I have 2 listboxes; the left contains items that can be (dynamically) added to the right box. Adding the first item went fine, it shows up in ...more >>

vs.net has detected specified web server is not running asp.net 1.
Posted by priyanshu at 3/8/2006 2:02:30 AM
hello all, my pc is running on windows 2000 pro. with sp4 i have installed IIS 5.0 and VS.net 2003 with framework 1.1 successfully.. now when i try to create new asp.net web application it displayed folloiwing error. "Visual studio.net has detected that specified web server is not runn...more >>

Problem creating directories through asp.net
Posted by Stimp at 3/8/2006 12:56:29 AM
When a user registers with my site, I create a separate folder for them (for uploading photos, etc). The code for this has been working fine for 1 year, but over the past 2 weeks it has been falling down on the 'CreateDirectory' function. The error I'm getting is: "Could not find a part...more >>

code for calling a button event (click) ? (asp.net 2)
Posted by moi at 3/8/2006 12:00:00 AM
Hello, i would like a sample code to call a button click with the event "textchanged" of a textbox. I just would like to valide a textbox with the textchanged event and not to click on the submit button ... Thanks for your sample .. Bye ! ...more >>

Uploading Files after compile
Posted by barry at 3/8/2006 12:00:00 AM
Hi Using VS.NET 2003 whenever i used to update a project and build and Test, i would upload *.DLL, *.ASPX, *.HTML files to my website. Has this changed with VS.NET 2005 , i dont see any .DLL files in the bin\debug or bin\release folders Which files do i have to upload after updating pr...more >>

Conditionally disable html control?
Posted by Jens Weiermann at 3/8/2006 12:00:00 AM
Hi, I need to conditionally disable a html (not web forms) button control. The condition is to be evaluated server-side. What is the smartest way to do this? I'm now using a literal server-side control, conditionally placing the complete html code into the text property a lá If (SomeCondit...more >>

Dumb newbie question
Posted by John at 3/8/2006 12:00:00 AM
Hi When reading the stats for my website I see the following; Total Hits Total Files Total Pages Total Visits What is the difference between these four? Thanks Regards ...more >>


DevelopmentNow Blog