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 > february 2006 > threads for friday february 10

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

ASP.Net 2.0 Page Layout - How to?
Posted by Bill Cohagan at 2/10/2006 9:21:19 PM
I'm trying to construct a page that will approximate a windows form page. It will include 5 or 6 "rows" of controls with each row containing several labels, textboxes, maybe a dropdown, a button or two, etc. I've found that using the default flow approach wont' let me come even close. I've ...more >>

Events and how to use them (c#)
Posted by Tarun Mistry at 2/10/2006 9:18:54 PM
Hi everyone, im trying to follow the example given here http://steveorr.net/faq/PassDataFromUserControl.aspx (in VB) to pass data from a user control back to the calling page. Here events are used, however I have no experinace with them and looking at exisiting examples is really confusing. ...more >>

Duplicate custom controls
Posted by Tumurbaatar S. at 2/10/2006 8:36:17 PM
Hi! I created some user control (ASCX) and it works fine. The control is created one of subfolders of my project, so its namespace looks like: namespace myproject.subfolder1 { public class route : System.Web.UI.UserControl .... In another subfolder I also created second control, but I...more >>

How can I extend the ASP.NET DataGrid ?
Posted by Rick at 2/10/2006 7:55:23 PM
If I create a class that inherits from the asp.net datagrid, and the enhancements only relate to the codebehind, what does the grid's html look like in design mode? I mean, whereas I might have an unadorned DataGrid as such... <ASP:DataGrid id="aspDataGrid" runat="server" ... templates...more >>

Data List question
Posted by Aaron at 2/10/2006 7:15:24 PM
Howdy, I have a datalist(datalist1) that is getting data from an xml file(query1.xml) Here is the layout of the xml file. How do I binding the xml file to display all the supporters/name <query1> <supporters> <Name>xxxxxx xxxxxxxx</Name> </supporters> .... .... ...more >>

ASP.NET application load time after some change
Posted by Ravi Ambros Wallau at 2/10/2006 6:14:18 PM
Hi: We developed a set of ASP.NET Web Applications that never runs in stand-alone mode, but always inside a portal (Rainbow Portal). All modules are copied on that portal. My question is: load time takes, sometimes, three or four of minutes in a medium-level machine (a PIII 1.5 Ghz),...more >>

Live Demo of Veriview E-Business Suite (SQL and ASP.NET 2.0)
Posted by AA Computer Services at 2/10/2006 6:00:37 PM
Veriview E-Business Suite is a Web-based, three-tier, multiple-user database application for small- and medium-sized businesses. It uses high-performance Microsoft ASP.NET platform and SQL database to store and access your business data. Veriview can be hosted on our standard server or a thi...more >>

Default page names?
Posted by Ken Spreitzer at 2/10/2006 5:25:59 PM
Hi, all. This should be a simple question. What are the default page names when the web site is running ASP.NET? I'm referring to the list that you see when you run the IIS Mgr and choose a website's properties then go to the Documents tab. For a standard, pre-ASP.NET website the defau...more >>



For Each Statement
Posted by Stephen at 2/10/2006 4:41:15 PM
Hi is there a way of using for each statement to increment by a value? say For each File in Arraylist 'Do something next 4 (or something) Thanks, stephen ...more >>

AJAX + ASP.NET
Posted by Griff at 2/10/2006 4:32:11 PM
The use of AJAX as an approach seems to be taking off. Is this correct, or have I just read the hype? Is Ajax a proven approach that one should look at for building high-load websites? If yes, can anyone recommend good reading material? I see that there is a Wrox Professional Ajax book...more >>

config file using .net 2.0
Posted by Ashish at 2/10/2006 3:49:16 PM
I am writing a business layer component and want to store some configuration parameters for it, i dont want to use web.config of the web application that would use this business layer because of testing reasons... I created a file called Mydllname.dll.config file and set the build action ...more >>

Gridview - Convert Data Type in filterexpression
Posted by DummyDumb at 2/10/2006 3:47:07 PM
Hi, I've got a Gridview utilizing a filterexpression: <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OnDeleted="ItemDeleted" EnableCaching="true" SqlCacheDependency="APP_TIMESHEET:AB" CacheKeyDependency="AB" SelectMethod="GetABs" TypeName="RetrieveABData" DeleteMethod="Del...more >>

Custom HTML Control Tags - Lets Try Again :)
Posted by Tarun Mistry at 2/10/2006 3:30:58 PM
Hi all, firstly appologies for the earlier stupid post. Ok, I am using a repeater to make a table. This will be used to allow the user to select a particular object (the table displays the contents of an ArrayList of objects). I would like todo this by selecting a radio button applied on e...more >>

SmartNavigation won't work on server
Posted by Rudy Ko at 2/10/2006 3:26:06 PM
Hi, I have a long site with SmartNavigation on. It works on my developing machine. When I published to server, it doesn't work on any machine. What do I miss? Anybody know? Thank you for any kind of help. -Rudy ...more >>

Repaters with multiple values?
Posted by Tarun Mistry at 2/10/2006 3:16:52 PM
Hi there, I would like to impliment a repeater on an ArryaList of objects, the objects contain 5 piecies of information, how do I go about displaying this information, using a repearer and the positiondata class you can only output 2 pieces of information? Please help, Thanks. Taz ...more >>

Using american dates by default
Posted by thechaosengine at 2/10/2006 3:09:48 PM
Hi guys, I'm developing a web app on a UK computer. When I put a date into a textbox, its in the format DD/MM/YY. The DateTime object takes that in and handles in perfectly. Now, I need to start using the american format MM/DD/YY. My question is, how do I get the DateTime object to rec...more >>

List files in a directory, modify name.
Posted by Øyvind Isaksen at 2/10/2006 1:26:35 PM
Hi, I have made a code that list all files in a directory on the server. It works fine, but I need to modify the filename (remove the 7 first char in the name) that is displayed in the datagrid. Example: The file "123456_myfile.jpg" shoult be displayed like this: "myfile.jpg" ----------...more >>

Set TimeZone for an ASP.NET Web App
Posted by Dotnet Gruven at 2/10/2006 1:07:52 PM
Hi, If a server is physically localled in CST and is shared, how can one create a Web Application on that server that has its timezone for EST??? I've seen other threads in this group that talk about using UTC/GMT and also getTimezoneOffset(), but in this case, the business rules are such ...more >>

Session unavailable in PostAcquireRequestState/PreRequestHandlerExecute
Posted by Flinky Wisty Pomm at 2/10/2006 12:44:24 PM
Hi all, I'm tearing my hair out here and I'm desperately hoping someone has a fix. I've got a .Net 2.0 web service for which I need session state, I can't use cookies because I'm using the .NetCF, I used a cookieless session and that was fine over Wi-Fi but borked horribly over GPRS, for which...more >>

passing value datagrid
Posted by Donkey at 2/10/2006 12:19:00 PM
Hi, Despite the many examples i can't find the right way to pass a value of a datagrid to another form. So could someone please explain me what i am doing wrong. so i have a datagrid with an invisible column and a templatecolumn with which i want to pass the value of the first column. <a...more >>

Null reference
Posted by MasterChief at 2/10/2006 11:52:55 AM
I was wondering if somebody could look at my code below. It is deleting the boxes that I chose out of the database but I am getting an error at the line below. It says that I am referencing a null object. gvName.DataSource = objCommand.ExecuteReader() Here is my code. The gridview on my aspx p...more >>

How can I tile an Image over top of a DIV tag?
Posted by JeffDotNet at 2/10/2006 11:45:10 AM
I have an application (asp.net 2.0) that allows people to review documents. I need to place a tiled image (a ‘Void document Not accepted’ graphic) on top of a div. The div will have an asp:label to display the document and some other goodies. I need to print the page with this image ...more >>

Embedded Media Player
Posted by codepuller at 2/10/2006 11:38:36 AM
I have a embedded media player into an ASP.NET web page and it all works except for the first time the page loads, when the user clicks on the play button, the player acts like it is going to play and then it stops. When I refresh the page, it works fine. Not sure what to think here about this...more >>

can I publish changes only in 2005?
Posted by The Colonel at 2/10/2006 11:13:36 AM
I'm using Studio 2005. Seems no matter what, I get the "Existing files in the destination location will be deleted" prompt, then of course it takes forever because it moves EVERYTHING over again. ...more >>

file feed
Posted by CsharpGuy at 2/10/2006 10:28:30 AM
I'm getting a text file formatted like this: Car VIN: 1252532525253 Make: BMW How can i get only the number out of there? ...more >>

BinaryWrite or OutputStream.Write
Posted by PrePort at 2/10/2006 10:13:31 AM
The goal here is to return a dynamic image from an HttpHandler that I have written. 2 questions 1. I am reading the images into byte[] fine and cacheing them fine, but what should I use to deliver the image to the client? My code: context.Response.ContentType = "image/gif"; context.Respo...more >>

Help! Delete a project in Visual Studio 2005
Posted by Progman at 2/10/2006 9:52:53 AM
How to delete project in Visual Studio 2005 ...more >>

SqlDataSource not getting update when using DataKeyNames
Posted by rlueneberg NO[at]SPAM gmail.com at 2/10/2006 9:44:52 AM
I am having problem updating the value of a texbox control inside a gridview in which its bound field is also specified in DataKeyNames. What I noticed is that If I remove accountid from DatakeyNames the update works automatically with no code. So, now what I am trying to do is to programatic...more >>

PostBackURL to new window
Posted by bill at 2/10/2006 9:28:44 AM
I am using Visual Web Developer 2005. Can I use the button PostBackURL to open a second web form in a new window, instead of replacing the current page? Thanks Bill ...more >>

Can't get around STAThreadAttribute
Posted by SAL at 2/10/2006 9:19:30 AM
When the following code is excuted from my .apsx page: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim test As New MyTestClass 'Create an Instance of the ClipBoard Object Dim sHyperLink As String ...more >>

Not your usual bonehead ASP.NET permissions issue...
Posted by Kirk at 2/10/2006 9:18:40 AM
My web page needs to start a process on the server that runs as a domain user so it can access the network. I'm using web services and the new feature in .NET 2.0 that lets you start a process as a different user. The following web service works fine until I uncomment the lines setting UserNam...more >>

Timeout uploading large files
Posted by Steven Berkovitz at 2/10/2006 9:02:29 AM
Hi there, I am having a problem with an ASP.NET 1.1 application running on II6. When uploading large files, the attempt seems to timeout (in the form of a IE DNS error) after about a minute even though I have adjusted the executionTimeout and maxRequestLength attributes of the httpRuntime ...more >>

change from "//localhost:numbers/" to just "//localhost/"?
Posted by KenLee at 2/10/2006 8:36:14 AM
help: how can I change from "//localhost:numbers/" to just "//localhost/"? I can see the web pages using "//localhost:numbers/" instead of ""//localhost/". I use asp.net 2.o. and windows 2000. how can i set up from "//localhost:numbers/" to just "//localhost/" so that other people could se...more >>

crystal report viewer in landscape
Posted by Ralf at 2/10/2006 8:33:18 AM
I posted under a different subject earlier, no responses. I have changed the question somewhat. Is there a way to have the report come up in landscape, not just print in landscape? I know how to get it to print in landscape no problem. I want the report to display to the user in landscape....more >>

'Timeout period elapsed prior to obtaining a connection from the pool.' - Please help.
Posted by UJ at 2/10/2006 7:48:39 AM
We have recently started getting the following error message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. This is on a connection.open command. ...more >>

text file
Posted by CsharpGuy at 2/10/2006 7:30:28 AM
I have a text file that i have to read and insert into a database table. The files has over 30 lines of data in it, I need to start inserting data from line 8 in the file. How can I start inserting the data from line 8 of my text file? So from line 1-7 are read only (headers) and starting with...more >>

How do I set the CssClass for a GridView sorting link?
Posted by rob NO[at]SPAM thinknow.co.uk at 2/10/2006 7:13:30 AM
Hi, If I set "AllowSorting=true" on a GridView in ASP.NET 2.0, it adds a hyperlink to the top of each column. How do I apply a CssClass directly to that hyperlink? I've tried every property I can find. Thanks, Rob ...more >>

ASP 2.0 - Buttons aren't firing correctly now
Posted by JohnW at 2/10/2006 6:21:56 AM
I recently installed .NET Framework 2.0 and have an ASP application created through VS 2005. This application runs on the same web server as .NET Framework 1.1 applications. I created a separate Application Pool for this new 2.0 application and I can run all applications just fine. However,...more >>

Transactions in ADO.Net or in the Database?
Posted by NH at 2/10/2006 4:22:27 AM
Is it best practice to handle transactions in ADO.Net or in the database level within stored procedures?...more >>

Why use disconnected datasets?
Posted by NH at 2/10/2006 3:45:30 AM
Ok, the reasons I see for using them are: 1: Database portability 2: Improved Performance on Database server as it has less work to do The disadvantages... 1: Uncessarily comlicated to handle updates back to the database If I am not concerned about database portability and the load on the ...more >>

Referencing the data within a sqldatasource dataset
Posted by Neil at 2/10/2006 3:13:44 AM
Is it possible to reference the dataset of a sqldatasource from code? I've looked at the properties for the sqldatasource but don't see anything obvious. In particular, I have a bit field in the dataset that identifies if the user is permitted to make changes to the record. I have what I term ...more >>

browser compat issue
Posted by AVL at 2/10/2006 2:40:27 AM
Hi, I've a issue in browsing web pages in netscape. I've a multiline text box on my web page. the word wrap for the multiline text box is not working in netscape...it's extending towwards the right infinitely.... I've used the below code, but it din't help if(Regex.IsMatch(Request.UserAg...more >>

Wierd Warnings: mailSettings modification results in many web.config messages
Posted by VB Programmer at 2/10/2006 1:27:11 AM
When I change my "from" and "host" I get a slew of web.config messages... Here's the mailsettings... <system.net> <mailSettings> <smtp from="me@mydomain.com"> <network host="mail.mydomain.com" /> </smtp> </mailSettings> </system.net> The 101 web.config me...more >>

What causes JIT errors?
Posted by Mark at 2/10/2006 12:46:18 AM
Hi - I've an asp.net 1.1 web app, which causes JIT errors every time I run it. The error is very vague - Access is Denied - and I can't find any useful information on why it happens, or how to track it down. I have other web apps running with no problem. Any help would be very much apprecia...more >>

How to Store web pages to local disk using httpwebrequest
Posted by Indiresh at 2/10/2006 12:43:28 AM
Hi all, I have a problem downloading web pages to my local system. I am using the HttpebRequest class to query a web site and get the response from the same. UndNow, when i asy a web page, all the images and support files such as JS file, CSS files are also in picture. I want to store t...more >>

Multiple developer environment
Posted by Beegee at 2/10/2006 12:24:56 AM
Hi Please tell me how multiple developers update different pages simulatneously. Scenarios like one of the page being edited by other developer has error, but I want to compile and run my page for testing. Let this project with VSS. Thanks Gopalan ...more >>

Occurence of Char!
Posted by Mr Ideas Man at 2/10/2006 12:00:00 AM
Hi all, Can anyone tell me if vb.net contains a function that can tell me the number of times a character appears in a string. For example: Given the value ",34," the function would report that ',' occurs twice. Cheers, Adam ...more >>

Datagrid at sort postback how can i retrivie the sortcommand before binding?
Posted by Pablo at 2/10/2006 12:00:00 AM
Hi! I try to create a custom DataGrid and i need to retrive the SortExpression that i send when i click on the header of a column. Ok i know, i can handle the OnSortCommand event. But i don't want to create an handle function in the code behind. I want to directly expose a property of the dataG...more >>

asp.net control to run in web page like just COM
Posted by vikas at 2/10/2006 12:00:00 AM
Hi All, I need to run a ASP.NET (C#) native compiled binary on a web page. COM runs using a OBJECT tag, I need to know how can a .net control run in the same manner. If possible, what are the browser constraints if any. Regards, Vikas...more >>


DevelopmentNow Blog