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 thursday march 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 31

ASP.NET Datalist repeater
Posted by Howard at 3/16/2006 10:33:42 PM
Is there a way to disable the autogenerated <table> and <span> tags in datalist? the property RepeatLayout only has these 2 options. I use CSS style <h3> and the auto generated tags always mess my layout up. I did some search on google but i couldn't find anything. Howard ...more >>

How many ASPState do I need?
Posted by tcw at 3/16/2006 9:30:42 PM
We would like to use ASPState to handle the session State. Since we have several web applications (web sites) in our web server, do we have to create an ASPState database for each web application or we can just use one ASPState for all web applications? Thank you in advance. -tc ...more >>

ASP.NET 2.0: TreeView and Custom Paging
Posted by Sachin at 3/16/2006 8:43:10 PM
Hi All, I am using ASP.NET 2.0 Tree control to display hierarachical data. However because of the size of the data, tree takes ages to load on the browser. For that reason, I want to build custom paging solution similar to custom paging in datagrid/gridview... Any pointer/help for how ...more >>

Error 38 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website\00fde41c\efd931db\App_Web__cgopktn.dll' could no
Posted by craigkenisston NO[at]SPAM hotmail.com at 3/16/2006 8:03:26 PM
What does it mean ? I have this error when doing a build, some times, randomly. If I close everything and reopen the project, then it disappears for a while. I have started two Asp.Net 2.0 applications, both totally different, both migrating from Asp.Net 1.0, both give this error randomly when...more >>

Which namespace should be imported to handle application in .dll files?
Posted by Owen Wong at 3/16/2006 7:21:00 PM
I want to access application objects, Which namespace should be imported so that I can do that? ...more >>

ASP.NET 2.0 DataBind Object To Form Element
Posted by cmay at 3/16/2006 6:26:29 PM
Is there any way to databind the properties of a business object, like an Employee, to fields in a form in asp.net 2.0? cmay ...more >>

A simple nested datagrid (vb.net)?
Posted by Vili at 3/16/2006 6:11:10 PM
Hi all What is the best way to do a simple nested datagrid? I have a tableA with personID, first name and last. TableB with information on personID. I am looking for a way to bring name values on a datagrid and when selected it would show person information. Like this: William Tom 01 ...more >>

We are looking for .Net Developers and Testers to work in India
Posted by stanna NO[at]SPAM optonline.net at 3/16/2006 6:08:58 PM
Hello, This is Sai from TANNA Corporation. We are looking for .Net Developers and Testers to work in India. If anybody or friends are interested, please send me resume to stanna at optonline dot net. Regards, Sai, stanna@optonline.net ...more >>



Mock objects for nunit tests?
Posted by David Thielen at 3/16/2006 5:07:28 PM
Hi; Are there mock objects anywhere that I can use to write nunit tests for my code behind methods? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com ...more >>

Modifying a customValidator error message from the client function?
Posted by Damon at 3/16/2006 5:06:21 PM
I'd like to be able to modify the error message of an ASP.NET 2.0 customValidator on the fly, depending on what part of the validation failed. Now, the client validation function takes two parameters, the second of which points to the value to be validated (args.Value). I can't seem to locate ...more >>

need to enable http post and read for my webservice
Posted by jens Jensen at 3/16/2006 4:39:10 PM
Hello, How can i have my web service to interact through HttpPost and HttpGet? I dont need soap (mostly just xml over http). I read this can be achieved through web.config but , where to put the code? How to read/write using this method. Many thanks JJ ...more >>

convert local time to another country time
Posted by Salim Afsar at 3/16/2006 4:09:43 PM
Hi, My web server is not my country, so server's time and my country time is different. So code runs on server, for example when I run DateTime.Now() function it returns server time but I want to get my local time. Is there a way to do that? Thanks ...more >>

html encoding
Posted by Miraj Haq at 3/16/2006 3:54:54 PM
I want to save an html tag in web.config, I know it would work if i encode it by replaceing "<" to "&lt;" How about double quote charater ( " )? The below line is giving errors because of it. <add key="myHTML" value="&lt;img src="host.jpg"&gt;""/> Please help Miraj ...more >>

Embedding ASPX pages are resources
Posted by Praveen at 3/16/2006 3:53:00 PM
Hi, I have a control that currently embeds it's images and script files as resources (by marking them as 2.0's WebResourceAttribute) and lets the runtime handle the streaming of the files to the client. This control now also uses a html file (which gets used as a "dialog" during runtime)...more >>

function if javascript enabled, else postback
Posted by David Thielen at 3/16/2006 3:42:27 PM
Hi; When a user clicks a radio button, what I would like to do is that if javascript is enabled on their browser, it calls a javascript function and does not do a postback. If javascript is disabled, then it does do a postback. Is there a way to do this? -- thanks - dave david_at_win...more >>

set <title> and <meta name='description'> with master page
Posted by David Thielen at 3/16/2006 3:38:27 PM
Hi; If I am using master pages, how do I set the <title> and <meta name='description' content='my title'> for each page. Obviously each page will have a different title & description. -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com ...more >>

"Invalid postback or callback argument"
Posted by Amil at 3/16/2006 3:16:06 PM
I've upgraded to VS 2005. I have a page that contains no submit = buttons...it merely shows some data. But, several times a day (out of = thousands of hits), I get this error: System.Web.HttpUnhandledException: Exception of type = 'System.Web.HttpUnhandledException' was thrown. ---> = Syste...more >>

Faxing from ASP.NET
Posted by David Lozzi at 3/16/2006 3:12:40 PM
Howdy, I'm trying to send faxes from my asp.net code. I'm getting a "server threw exception". Real helpful. here's my code Dim FXServ As New FAXCOMLib.FaxServer Dim FXDoc As FAXCOMLib.FaxDoc Dim iFaxJob As Integer 'FXServ.Connect("SERVER") FX...more >>

animated gifs with codebehind...
Posted by Dale Reed at 3/16/2006 2:26:08 PM
Hi, I have a button on an aspx page (I'm using vs2005 with asp2), which when clicked takes a while to do some data processing before it posts back to the screen to display the results. I therefore created a little animated gif, which, when the button is clicked, I display using javascrip...more >>

Problems with ASP.NET temporary DLL's
Posted by Gal Steinitz at 3/16/2006 2:08:26 PM
I am running a high traffic web site on ASP.NET 2.0. I'm getting this error every few days, usually when I deploy a control that is very active. The only way to fix this problem that I've found so far is to stop the web service, delete the ASP.NET temporary files under C:\WINDOWS\Micro...more >>

Service Unavailable under Windows Server 2003
Posted by Simon Hart at 3/16/2006 2:02:50 PM
Hi, We have one site where whenever they try to connect to our web application they are getting a "Service Unavailable" message. there is no HTTP error code and no other information. the have installed ASP.NET and of course IIS. They are trying the connection on the local machine. If they t...more >>

Other newsgroups for newbies?
Posted by Rob Richardson at 3/16/2006 1:56:23 PM
Greetings! I have spent my entire career using C++ and C# for Windows apps. I am venturing cautiously and ineptly into the world of ASP.Net. Are there other newsgroups that you would recommend for ASP.Net newbies like me? Thanks! RobR ...more >>

What files do I have to upload?
Posted by Rob Richardson at 3/16/2006 1:53:51 PM
Greetings! I am trying to develop my first ASP.Net application. I wanted to make sure I could upload an application to our host and get it to work. I used a simple application copied from the book I'm trying to learn ASP.Net from. The app works on my machine. On the host, it generates the f...more >>

ClientID problem in Asp.Net 2.0
Posted by Miguel Dias Moura at 3/16/2006 1:30:38 PM
Hello, I am having problems in accessing controls in my Asp.Net 2.0 pages. I know Asp.Net 2.0 generates a ClientId. In a Javascript function I tried to hide a panel as follows: function ChangePanel() { document.getElementById("<%=Panel1.ClientID %>").style.display = "block"; ...more >>

Dropdownlist Autopostback not working
Posted by indigator at 3/16/2006 12:31:10 PM
I am using ASP.NET 2.0. I have 2 dropdownlists in my page. One holds the list of all the countries and other holds the list of all States. When the user selects the country as United States, I want the second dropdownlist to show all the states in US, otherwise I want the state dropdown to be ...more >>

Generating controls at the run-time
Posted by Diffident at 3/16/2006 12:30:33 PM
Hi All, I need to generate controls at run-time based on the necessity. For example controls like textboxes,radio buttons etc and I also need to be able to persist their view state. Does anyone know of any good articles that talk about controls that are generated dynamically? Thank you!!...more >>

PostBackUrl with a variable attached?
Posted by KBuser at 3/16/2006 11:59:09 AM
I've been looking around for the proper syntax, and have only found one instance where it appeared somebody else was trying the same thing, but didn't post how they had achieved their desired result. What I want to do is PostBackUrl="mypage.asp?myid="+txtSearch where txtSearch is the name of...more >>

Random Numbers and Chance
Posted by Chu at 3/16/2006 11:43:20 AM
I'm developing a game - in the game, the character has a 1 in 1000 chance of finding a special weapon. The pseudo code idea is this: get a random number from 1 to 1000 If random number is "1" then the user found a special weapon. My question is - will using .NET's buildin Random class real...more >>

Re-render the page
Posted by Ryan at 3/16/2006 11:39:25 AM
Using ASP.NET 1.1 I make a change that effects the .text property on all the labels on page load. However, since the page_load event is raised automatically on post-back before the click event, when I make an explict call to page_load I get 2 copies of my form. The top one is the old one, a...more >>

aspx page displays the html as text
Posted by Craig at 3/16/2006 10:56:10 AM
I've done this before, but I must be missing something.... I got a new laptop, installed .net framework 1.1, IIS, VS 2003, and now when I try and create a Virtural Directory and open it up in a browser, I see the html text (the actual html text of the default.aspx page). What am I doing wr...more >>

aspnet_wp.exe and memory management
Posted by Alex D. at 3/16/2006 10:37:00 AM
is there any way to free some garbage memory used by the aspnet working process without restarting the server? one of my pages is loading objects in demand into memory but it seems that is not working ok because if flooding the server's memory, then I dont have a clue on how to free the memor...more >>

repost: headaches with formatting in VWD
Posted by D. Shane Fowlkes at 3/16/2006 10:12:10 AM
The Smart Indenting "feature" is driving me absolutlely crazy in VWD. Problem: VWD in Code View insists on tabbing a lot of my code over to it's own liking and effects mainly my comments in the code. First of all, I've searched the help files and searched forums.asp.net. I can't seem to fin...more >>

DetailsView with Dataset
Posted by Maurizio Poletto at 3/16/2006 10:01:26 AM
Hi I'm trying to read values from editing row. I attempt to use : protected void _DetailsView_RowUpdating(object sender, GridViewUpdateEventArgs e) { string s = e.NewValues["columnName"]; ..... } but e.NewValues.Count = 0 and e.OldValues.Count = 0 and e.Keys.Count = 0. DataKeyNames is...more >>

Split datagrid into newspaper-style columns?
Posted by Dave at 3/16/2006 9:30:28 AM
Is there a way to divide a datagrid into "newspaper" style columns so that column 1 would have rows 1-10, column two would have rows 11-20 etc? Thanks, Dave. ...more >>

oops :)
Posted by Tina at 3/16/2006 9:04:05 AM
Sorry, that was some other directory that I gave file access to :) he he T ...more >>

File access Permission Denied
Posted by Tina at 3/16/2006 8:59:17 AM
I have given myMachineName\ASP.NET full control on my c:\inetpub\wwwroot\myapp\Data directory. But when I attempt a file.delete(path) I am getting an access denied. I am able to write new files to that directory but unable to get this delete to work. Anyone know why? Thanks , T ...more >>

Strange effects from IE7 browser freezing on ASP site
Posted by Dan at 3/16/2006 8:51:11 AM
I have a strange problem as a result of installeing the beta version of IE7. Through a process of elimination I am 98% sure IE7 is the cause. What happens is I have a website that is built with ASP 2.0 and DNN 4.02 There is nothing added to the site other then the basic install. And actually t...more >>

C# partial classes - get the namespace as a type!
Posted by dhnriverside at 3/16/2006 8:49:20 AM
Hi guys I'm using .net 2, partial classes. I've got a function (not mine unfortunately, it's in a dll) and I need to pass this function a Type - the Type of my namespace. I can get the namespace name with... System.Reflection.Assembly.GetAssembly(typeof(<myclass>)).GetName().Name.ToStri...more >>

ASP.net add a NT user - possible?
Posted by pRobinson at 3/16/2006 8:37:23 AM
I would like to add a user to the windows NT group within a webpage in ASP.net. But I can't seem to find info to guide me in the right direction. I currently have a SQL Database storing the user name and password for the web forms authentication. I have a webpage that I can INSERT a new user...more >>

Display an HTML object referred to by SQL Server
Posted by Paul at 3/16/2006 8:29:42 AM
how can I display an HTML document that has been referred to by a SQL address? For example, I have a HTML doc called WoofInfo.htm. In a column in my SQL Server, I have the address a ~/Info/WoofInfo.htm. How can I get an ASP.Net page to display the contents of the HTML file? TIA, Paul ...more >>

Funky address change.
Posted by Tracy at 3/16/2006 8:25:16 AM
Just recently have I noticed that when we run our production application it is adding some funky directory to the address, (fwuhjo45ohmpj35552vwim55), which doesn't exist but it still works. This wasn't happening when we first deployed the web application. Has anyone else seen this before? ...more >>

trouble binding a datagrid to a custom collection
Posted by viktor9990 at 3/16/2006 8:14:27 AM
I'm trying to bind a custom collection to an autogenerated datagrid without success. I'm getting this error: DataGrid with id 'DataGrid2' could not automatically generate any columns from the selected data source. Could you help me to find a solution? What is the problem in my code? Thanks....more >>

Is there any way to allow an Object property to be set in aspx?
Posted by Todd Burry at 3/16/2006 7:48:47 AM
I created a server control that inherits from WebControl that has the following property: private Object _Value; public Object Value { get { return _Value; } set { _Value = value; } } I want to be able to set this property on the aspx as follows: <my:Control ID="TestControl" Value...more >>

Web site not available
Posted by sweetpotatop NO[at]SPAM yahoo.com at 3/16/2006 5:44:47 AM
Hello, I have a site created by asp net, due to the weekend construction, this particular site need to be shut down during the weekend. I wonder if there is a quick way to have a page or whatever method (without recompiling the whole apps), so that when users try accessing the page, they wi...more >>

Maintain view state using AJAX or Callback
Posted by Varangian at 3/16/2006 5:25:07 AM
Hi there again... is there a way to maintain the ViewState of WebControls when using AJAX or Callbacks ? Every time I refresh a page or use a postback from a control it would loose the components contents! how can I resolve this problem? thanks ...more >>

Where do I put my Database relations... at DATABASE level or in PROGRAM LEVEL?
Posted by mesut NO[at]SPAM edpnet.be at 3/16/2006 5:09:01 AM
Mybe it's a stupid question but : I'm starting to learn VB.NET. I have some basic skills. I'm from Mainframe world and I have same question to make my DATABASES (tables and relation) I would like to make ask my question by example. Let's say I'm a sales company I'm selling products to customers...more >>

Off topic
Posted by Fastau B at 3/16/2006 12:16:58 AM
Sorry about this off-topic post, but I took a dump and it was completely green. Am I missing my gall bladder or something? ...more >>

Practical .NET2 and C#2
Posted by Patrick Smacchia at 3/16/2006 12:00:00 AM
Hi, I've just released the book Practical .NET2 and C#2. More info is available on the site http://www.PracticalDOT.NET You can download sample chapters about CLR, Security, Threading/Synchro and some C#2 features here: http://www.practicaldot.net/en2/Sample.htm Here is a link to some ...more >>

Profile information
Posted by Deer.Chief at 3/16/2006 12:00:00 AM
Hi to all, I'm quite new to ASP.NET programming. I know you can use the "Profile" auto-generated object to store and read users profile informations. Anyway it seems that the auto-generated "Profile" object exists only in page-derived class. I'm trying to access users profile information ...more >>

Current Page Index Changed!!!
Posted by Adam J Knight at 3/16/2006 12:00:00 AM
Hi all, ASP 1.1!!! I am trying to tie the PageIndexChanged event to a datagrid in my c# code behind. I have tried the following: private void InitializeComponent() { dgMyGrid.PageIndexChanged += new System.EventHandler(this.dgMyGrid_PageIndexChanged); } public void dgMyGrid_...more >>

Good places to learn the framework
Posted by Tarun Mistry at 3/16/2006 12:00:00 AM
Hi everyone, I have just completed my first large scale ASP.NET deployment and thanks to the amazing help available here it was a great success, so thank you! However, I know that during much of the development I have written "bodged code" simply because I didnt know how todo something due ...more >>

Problem with ASP.NET Web Service
Posted by Kiran A K at 3/16/2006 12:00:00 AM
Hi, When I try to return an object of type "System.Diagnostics.PerformanceCounter" from a web method(written in C#) i got the following error: Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite. The above web service example is given in a tu...more >>


DevelopmentNow Blog