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 2004 > threads for friday february 20

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

Share SQL DB Among Dozens of Sites
Posted by Guadala Harry at 2/20/2004 11:27:47 PM
I'm looking at taking on a project that would require dozens of ASP.NET applications (on different servers) to share one centralized SQL Server 2000 database. Unfortunately this won't all be inside a nice big corp intranet where we have lots of control over server placement and access; rather, it...more >>


User Control and Parent
Posted by Joe Fallon at 2/20/2004 10:05:57 PM
What is the code to read a field value of the Parent Page from an embedded User Control? I can use reflection to get it, but I thought there would be an easier way. -- Joe Fallon ...more >>

Advanced stuff!
Posted by Karl Jensen at 2/20/2004 9:53:28 PM
Hello gurus, I recntly came accross a web custum control wrtten by an intern Microsoft developer : http://www.gotdotnet.com/team/eilon/ I downloaded the code and it looks quite impressing. I would like to use the control in my own way. Eg: use an asp.net server control as a nodes. If an...more >>

A question about VS.NET
Posted by Ing. Rajesh Kumar at 2/20/2004 9:45:43 PM
Hello Everybody I just started to use VS.NET. I came to know that it only allows to use = code behind. I normally use one *.aspx file but does not matter. I can = start using Code Behind, but what I do not like is that VS.NET = automatically create *.VB code behind files to use with compilation,...more >>

Button event in DataList
Posted by David W. Simmonds at 2/20/2004 9:23:59 PM
I have a Button in a DataList Footer. I add the click event like this: void Item_DataBound(Object sender, DataListItemEventArgs e) { if(e.Item.ItemType == ListItemType.Footer) { Button ctlSave = (Button)e.Item.FindControl("ctlSave"); ctlSave.Click += new EventHandler(...more >>

security
Posted by Muckey at 2/20/2004 9:23:50 PM
does anyone have any links for a step by step tutorial on how to grant an assembly permission to access the local file system through ie? thanks ...more >>

Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300">
Posted by Carpe Diem at 2/20/2004 7:53:10 PM
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function Session_Start() { Session.Timeout = 3000; } in global.asax Can you give me pointers on how to a...more >>

ASPX pages give Server not found or DNS Error
Posted by Ken Cooper at 2/20/2004 7:35:51 PM
I have just encountered a problem that was driving me nuts. Every aspx page in my web application gave the error "Cannot find server or DNS Error". I was multi-tasking at the time and was developing and downloading from the internet. I ran a virus scan and found a trojan on my system which I del...more >>



ASP.net websites
Posted by Chad Z. Hower aka Kudzu at 2/20/2004 6:03:48 PM
What ASP.net web sites do you visit? I'm looking for non MS ones as I already know about those ones. -- Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/ "Programming is an art form that fights back"...more >>

aspx page can't be found
Posted by feng at 2/20/2004 5:53:11 PM
I have aspx code that I know works. I moved the whole side from a wroking server to a new one, but now it gives me "The page cannot be found" error with the 404 code. I tried if I access a html page, instead of aspx page, it works. I reinstalled asp.net by runing "aspnet_regiis -i", and ...more >>

File Upload Limits
Posted by Jerry Camel at 2/20/2004 5:39:50 PM
I'm using the file upload control form the HTML tab in VS. I can upload small files successfully, but if I try to upload larger files, say 300MB, the upload fails and I get "Page could not be found" error. What do I need to do so that large files can be uploaded? Thanks. Jerry ...more >>

Reporting Writer Alternatives
Posted by Guadala Harry at 2/20/2004 5:31:47 PM
I'm looking for opinions or recommendations of ActiveReports vs. Crystal Reports (or other 3rd party report writer) for reporting in ASP.NET applications. Thanks. ...more >>

blob or store server
Posted by Selen at 2/20/2004 5:26:47 PM
which one is good blob or store documents on the server???? Thanks ...more >>

DataGrid row formatting
Posted by Katie at 2/20/2004 5:26:06 PM
How can I change the background color/forecolor for specific rows in a datagrid TIA, Katie...more >>

text overflow ==> "..."
Posted by Eidolon at 2/20/2004 5:12:05 PM
Anyone know of a way, or a control, which would allow me to clip text with a "..." displayed at the end? We have a product comparison page, with products lied up side by side... one of the fields displayed is the manufacturer, and some of them have VERY long names, so id like to when the name ...more >>

Customize Error Message caused by uploading big file? (No DNS error)
Posted by chenhongv NO[at]SPAM yahoo.com at 2/20/2004 5:10:20 PM
Hi all, When user upload a file, there is a size limit (default is 4M). And we can change this size limit by changging the config file. If a user upload a file bigger than this size, an DNS error will be displayed. Now my question is whether we can customize this error message? Displaying a ...more >>

Datagrid to Excel problem (ASP dot net)
Posted by Steve Chatham at 2/20/2004 5:03:23 PM
I use the following code: Private Sub RbtnExport_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnExport.SelectedIndexChanged Dim sFile As String = Session("User") & "-Customer List-" & Today() sFile = sFile.Replace("/", "") RbtnExport.Visible = Fal...more >>

ADO.NET DataReaders and the Middle Tier
Posted by Guadala Harry at 2/20/2004 4:43:17 PM
I'm trying to design all of my data access logic into one centralized assembly. I'm wondering how to implement DataReaders. There's plenty of documentation on passing DataSets to the client from the middle tier... but what about DataReaders? Do I have to bypass the centralized data access assemb...more >>

Javascript Popup window
Posted by Paul Krasucki at 2/20/2004 4:33:51 PM
This is for a search page that takes parameters on one page, processes the query, and displays them on another page. I've got a javascript popup window on a button click event. When the user clicks the button, the popup window opens, and the parent page goes on with the query. No problem there...more >>

a utility dll's own .config file possible?
Posted by Jiho Han at 2/20/2004 4:32:56 PM
If there is a dll that my asp pages uses but is in a separate assembly, can I define a separate config for it and will it read? For example, if I have a MyLibrary.dll and I define a MyLibrary.dll.config, will objects in MyLibrary.dll have access to the .config? Thanks ...more >>

Redirect all http requests to web application
Posted by Brian Smith at 2/20/2004 4:02:25 PM
Good afternoon. How can I force all images and static html files within an ASP.NET Web Application to be redirected if the user has not logged in yet via Forms Authentication. For example, I have a web application name TestWebApp with Forms authentication set to redirect to logon.aspx. I...more >>

how to set property of web control to constant
Posted by Bob at 2/20/2004 3:41:13 PM
Ok, I have a custom web control (a server control) and I want to set a property on this control equal to a constant that exists in my code behind. Is there a nice way to do this by putting code into my aspx file (it's nice to see the properties all in one place). In ASP I think you could d...more >>

Response.redirect for a particular frame in the frameset
Posted by Anita C at 2/20/2004 3:37:18 PM
How do I implement response,redirect for a particular frame of the frameset in a .aspx page? Thanks ...more >>

.NET connection pool problems
Posted by greg at 2/20/2004 3:36:35 PM
Hi We have w2k, iis5, .NET/c# I periodically receive this message and the system freezes ++++++++++++++++++++++++++++++++++++++++++++++++++ Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections we...more >>

Where/How to Securely Store ID and Password?
Posted by Guadala Harry at 2/20/2004 3:33:09 PM
What are my options for *securely* storing/retrieving the ID and password used by an ASP.NET application for accessing a SQL Server (using SQL Server authentication)? Please note that this ID and password would be different than the one the user enters for ASP.NET forms authentication. The ID/pa...more >>

Help - how could I get web response after submitting programmatically?
Posted by Jackal at 2/20/2004 3:30:16 PM
I have a form page(abc.aspx) that contains some fields need to be filled in before submitting, and the action of the form is "def.aspx". After peocessing the filled-in data, it'll return the result. Is there any chance I could get the result by programming? [Original Process] Fill in data on...more >>

WebSvc Proxy File
Posted by Vai2000 at 2/20/2004 3:24:00 PM
If I edit a proxy of web service in my asp.net application do I need to recompile the ASPX Project? If not then how will the change get in affect? TIA ...more >>

Looking for free datagrid
Posted by John Sutter at 2/20/2004 3:21:12 PM
I am looking for a free datagrid. I have looked at some at the component gallery but they were mostly for sorting and pagination. I am looking for one for more of a data entry functionality. Thanks. John...more >>

Client side questions
Posted by Jerry Camel at 2/20/2004 3:13:53 PM
1. I can add a value to a listbox, but when the page posts back, I lose the items I added from client side script. (Items added in server script stay in the list.) I'm guessing it's a view state issue or something. How do I add items to a listbox on the client side and have them acknowledged b...more >>

Textbox Bug?
Posted by at 2/20/2004 3:13:35 PM
Weird Bug.. I am trying to execute this code, essentially a few fields to update a custom user login / info form values from DB This code works; txtUsername.Text = userReader.Item("username") txtPassword.Text = userReader.Item("Password") However, it displays the password of the user. I want t...more >>

Failed to start monitoring file changes when impersonation="true".
Posted by Edward Yang at 2/20/2004 3:13:16 PM
I setup web.config with impersonation=3D"true". On our local server the = project works great. I did the same procedures on our staging server, = but it failed with an impossible error: =20 Server Error in '/' Application.=20 ---------------------------------------------------------------------...more >>

Session state
Posted by Janaka at 2/20/2004 3:02:09 PM
Help I can't get rid of session state! I've set <sessionState = mode=3D"Off" /> in my web.config file and EnableSessionState=3D"false" = in my aspx page. However when i check my trace cookies i keep seeing = ASPSESSIONIDCCTATRDC in the collection. How can this be if sessionState = is turned ...more >>

Displaying an Excel spreadsheet
Posted by Tim Marsden at 2/20/2004 3:01:37 PM
Hi I am a complete ASP novice. Is it possible to display an Excel spreadsheet in a web page? Can any input to the sheet be captured and sent back to the server? Regards Tim ...more >>

Word.ApplicationClass-Server Error executing
Posted by Markusek Peter at 2/20/2004 2:58:42 PM
I got this error: Exception Details: System.Runtime.InteropServices.COMException: Server execution failed Source Error: Line 29: protected System.Web.UI.HtmlControls.HtmlGenericControl zzz; Line 30: protected System.Web.UI.WebControls.Button Button1; Line 31: private Word.Application...more >>

simple DataGrid
Posted by Katie at 2/20/2004 2:56:05 PM
Hi If I add a row to a dataset which is bound to a datagrid, how can I change the backgrond color and text font etc DataRow BlankRow = ds.Tables[0].NewRow( ) BlankRow[ "Commission" ] = String.Format("{0:c}", totalCommission.ToString()) DataView source = new DataView(ds.Tables[0]) ResultsD...more >>

Performance Issues / ASP.NET
Posted by smoody at 2/20/2004 2:53:02 PM
I have an ASP.NET application which uses a .NET Web Service as a wrapper to a COM+ DLL. Performance for a single user is very good. However, I have noticed that when multiple requests are made simultaneously to the page, it takes (2 x number of users) longer to serve the page. Interestingly en...more >>

Enum Question
Posted by George Durzi at 2/20/2004 2:47:34 PM
I have an enum defined as public enum WineType { Bubbly, Dessert, Pink, Red, White }; In the codebehind of a webform, I'm doing this: switch ((WineType) drBottle["Type"]) { // do something ... drBottle["Type"] would come in as "Bubbly" or "Dessert", etc... ...more >>

How do I put multiple objects in a NavigateURL link?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 2/20/2004 2:38:08 PM
Consider: NavigateUrl= '<%# DataBinder.Eval(Container.DataItem, "ORDER_ID", "informationmain.aspx?txt_command=EDIT&case_id={0}&ddl1_selected_value=1&ddl2_selected_text=Complaint") %> Obviously, the last part is hard coded (past the {0}). What I am trying to find out is how to put more t...more >>

Rendering HTML
Posted by Cobus Lombard at 2/20/2004 2:13:04 PM
Hi all I need to create an ASP.NET control that will allow me to do an HttpRequest, parse the HTML and then render it in a thumbnail (sorta like a preview of a site without browsing to it). Managed code would be ideal, but after struggling to find help on doing this in C#, I'm starting to d...more >>

Printing in ASP.NET
Posted by Sandeep KAistha at 2/20/2004 1:56:08 PM
how do I use the print funtionality in ASP.NET if I have to print a page?? please help...more >>

Create cookie in what event when leaving page?
Posted by Rich at 2/20/2004 1:48:26 PM
Hello, I want to create a cookie that will expire in a few mintues after a user leaves my page so that they can return without having to login again if they were only gone for a few minutes. I tried putting this code in the Page_Unload event but got an error message that cookies not su...more >>

$ symbol
Posted by Steve Bywaters at 2/20/2004 1:19:59 PM
Does the "$" (dollar) symbol have some special meaning in ASP.NET (VB)? I am trying to parse a string like: 2 for $30, 2 for $40, 2 For $50, 2 For $60 using Split, etc But while I can see the record containing in a Datagrid... a DataREder - using the same data source - jumps over it! ...more >>

Session VAriables
Posted by brian at 2/20/2004 1:17:48 PM
If I declare a session variable: session("Link") and later code: session("Link") = Nothing, will that free up the space taken up by the variable? Or do you have to abanden the session? Thanks...more >>

Dropdown List Box - Adding an item value
Posted by Brian Candy at 2/20/2004 1:01:19 PM
With a drop down list box, I have discovered how to add a text description. Now how do I go about adding a value? For FNa = 0 To dsDetails.Tables("Team").Rows.Count - 1 Row = dsDetails.Tables("Team").Rows(FNa) dlTeam.Items.Add(Row.Item("Description")...more >>

Visual Studio .Net not recognizing ASP.NET 1.1 on same machine
Posted by Craig Traxler at 2/20/2004 12:31:13 PM
I have a windows 2000 machine and added IIS 5.0. I installed Visual Basic .Net 2003 on the machine and attempted to create a new ASP.NET Web Appication. I received the following message when attempting to create the projec "Visual Studio .NET has detected the the specified Web server is not runn...more >>

VS.NET Newbie Q
Posted by Justin Dutoit at 2/20/2004 12:20:46 PM
I'm new to visual studio.net, and on a page I've got the error: Could not load type 'WebApplication12.WebForm1'. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication12.WebForm1"%> It is just the code-behind clas...more >>

Custom IIdentity class - how to set it?
Posted by Tim Mulholland at 2/20/2004 12:20:35 PM
I have created my own IIdentity class (actually inherited from GenericIdentity) to contain lots of extra useful information to be passed around with the user's basic information. The class compiles fine, no problems there. My problem is that i'm not sure where to actually set this to be part o...more >>

extract blob from database
Posted by Selen at 2/20/2004 11:59:00 AM
I would like to be able to extract a BLOB from the database (SqlServer) and pass it to a browser without writing it to a file. (The BLOB's are word doc's, MS project doc's, and Excel spreadsheets. How can I do this? ...more >>

Page_Load Event Fires Twice When Sending Down a PDF
Posted by Jay Douglas at 2/20/2004 11:53:14 AM
Hello all, I have a asp.net page that creates a pdf on the fly and sends the pdf down to the browser. When calling the page up in IE the Page_Load event is fried twice. This doesn't happen with mozilla, just IE. This is a big problem because the PDF can be 20+ MB in size and is causing s...more >>

Impersonation Problems HELP!!!!!!!!
Posted by Sean McKaharay at 2/20/2004 11:30:10 AM
Hey All, This is what I have. I have an application running on Server1 and I have impersonation equal to true. I have another Server2 as a file server. I want my asp application to create a file on Server2 but it is giving me a login screen then tell me I don't have privileges on the Server2 b...more >>

ViewState not available on Page_Init?
Posted by Craig Buchanan at 2/20/2004 11:29:17 AM
If I set a ViewState variable in the page_load event, then try to access that same ViewState variable in the Page_Init event *after* a postback, the variable's value is different. I only set it in this one place. What is happening? Thanks, Craig Buchanan ...more >>

How to choose Virtual Server in Web Setup Project?
Posted by Matthew Belk at 2/20/2004 11:24:33 AM
I am trying to figure out how to allow the user to select on which virtual server to install an ASP.NET web application. It seems like the default behavior for the web setup projects is just to install to the first virtual server in the list. How can I intercept that and change it? Ideally, ...more >>

Problem posting data, page reloaded not processed
Posted by Anibal Acosta at 2/20/2004 11:21:32 AM
Hello, I have problems with my aspx page. The problem is in certain number of client (Browsers) not all of them. When the client try to submit a form, the aspx don't process the request, just reload the same page setting al fields to the default value. Thanks for your time. AA ...more >>

Rebinding page after image is resized on server not showing new sized image
Posted by Earl Teigrob at 2/20/2004 11:16:34 AM
I have written a photo app that allows the administrator to resize photos in an admin panel above the photo on the page. When the the new size is entered, the data is saved into a datastore and the page is rebound. During the rebining process, the size of the image on the server is phisically ch...more >>

Declaring readonly public property in C#
Posted by Jon Maz at 2/20/2004 10:57:02 AM
Hi, Quick & easy one - why does this code give an error? ===== CODE ===== private int numberOfPages; public readonly int NumberOfPages { get { return numberOfPages; } } ====== ERROR ====== The modifier 'readonly' is not va...more >>

handling Request Timed Out
Posted by William F. Robertson, Jr. at 2/20/2004 10:52:40 AM
Some of my users are receiving an error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Request timed out. Description: An unhandled exception occurred during the execution of the current web request. Please review the sta...more >>

Web site content determined by login credentials?
Posted by Michael Hogan at 2/20/2004 10:44:25 AM
We are an architectural firm, and we would like to integrate a secure area with a username and password on our web site that would allow our clients to view progress information pertinent to their projects. I'm the only guy here, and I'm more of connection/server guy than a web designer, so pleas...more >>

client side
Posted by Marcinek Tracz at 2/20/2004 10:41:17 AM
Hi! It is posibble to run C# programs on the client side? For example, some code I have to run on server and some on client side. Can I do this or I have to use JavaScript? Thanks Marcin...more >>

Tree View - How to deploy
Posted by LIN at 2/20/2004 10:37:25 AM
I created a tree view in ASP .NET. When i deploy my application on a server which doesn't have the TREE Control installed it simply doesn't work... how do I resolve this issue? Please advice. Thank You! LIN ...more >>

View ASP .NET variable values in C#
Posted by Antoni Massó Mola at 2/20/2004 10:23:31 AM
I have a form that sends data to another .aspx page. In the second .aspx I have this code to retrieve the form's values and create sessions: Application("Login") = Request.Form("txtLogin") Application("Password") = Request.Form("pwdPassword") I need to validate this values with the C#...more >>

Culture settings of an application.
Posted by Ashish at 2/20/2004 10:16:47 AM
I have a application in which culture settings are customizable, they dont depend on the machine settings on which the application is running, I need to make sure that all the threads running in the application have the correct culture settings .. I have some questions to better understand ...more >>

Rewrite Form action
Posted by TruongLapVi at 2/20/2004 10:13:55 AM
Hi all Is there any method to chage html form's action using HtmlForm object ? Thank you. -- Vi ...more >>

Can not use native characters
Posted by Dmitry Davletbaev at 2/20/2004 10:12:40 AM
Using HttpRequest.Form property I can't retrieve native characters (Russian). For example, if I submit string "eeennneee" where "n" is native character I retrieve only "eeeeee". The same when I work with HTTP query string variables. How can I resolve it? -- Dmitry Davletbaev ...more >>

Server Time
Posted by brian at 2/20/2004 9:55:08 AM
I have an intranet set up and when the user clicks a button I want the time on the server to appear in the text box. By reading through the post I found many that said DateTime.Now.Hour.ToString should bring back the server's time. But it brings back the time on my local machine. Fr...more >>

how to write hashtable object to StateServer session variable ?
Posted by Bill L at 2/20/2004 9:45:36 AM
Hi Guys, I found a wired problem with writing HashTable object into StateServer Session, the HashTable object is serializable, but after serialization, it converts to stream and stream is from mashalbyRef, StateServer session management not allow any marshalbyref object, so that means we can w...more >>

Working with XML files
Posted by DaWoE at 2/20/2004 9:41:03 AM
Hey all, I'm learning ASP.NET with VB.Net. Can somebody tell me where to find info about working with XML-files in .NET The thing i want to do is read in XML-files from a remote site and stuff the data in my SQL-db. -- DaWoE ...more >>

ASP.Net stops working after re-install vs.net
Posted by feng at 2/20/2004 9:25:33 AM
Hi, I just re-installed my VS.Net and my ASP.Net stops working. I just noticed that the ASP.Net engine, aspnet_wp.exe, is not running on my machine. Any aspx page access request will return with a message that says "page can not be dsiplayed." Is there anything I need to do after insta...more >>

Multiple asp:buttons on one form but ONLY one should submit?
Posted by D. Shane Fowlkes at 2/20/2004 9:19:11 AM
Sorry for the length of this post. I have created a rather complex form which has a header/line item (parent and child records) structure. It's for an intranet. A screenshot can be seen here: http://www.drpt.virginia.gov/temp1.gif All the fields on this form have validation controls on the...more >>

simple question
Posted by Allan Rojas at 2/20/2004 9:09:24 AM
Hi there, i'm having this problem and i hope someone can help me out. We have this WebApplication in ASP.NET; we work on it in our local webserver. When we're done, we must upload the application to the FTP located in our hosting location. The first time it was a full-upload of the project f...more >>

LoadControl and PostBack Issue
Posted by Craig Buchanan at 2/20/2004 9:06:42 AM
i am building a webform that dynamically loads one of two web usercontrols during the webform's page_load event. during the postback i reload the appropriate web usercontrol. so far so good. unfortunately, none of the controls, except a label, have any values. what am i not doing? all the ...more >>

image resizing
Posted by Brent Burkart at 2/20/2004 9:03:47 AM
I have a shopping cart where I have a product page which has an image webcontrol. In my code behind, I load pictures into the image webcontrol. I would like to dynamically resize the picture (mostly jpg's) before displaying the webpage. I have read through some examples, but I am having all ki...more >>

Server.UrlEncode error???
Posted by msn at 2/20/2004 8:52:48 AM
Invalid file name for monitoring: 'E:\inetpub\wwwroot\xxxxxxx\xxxxxxx\Server.UrlEncode("login.aspx'. File names for monitoring must have absolute paths, and no wildcards. Response.Redirect("Server.UrlEncode(""login.aspx?res=no&url=page2.aspx"")") ...more >>

Help with opening a new window
Posted by REB at 2/20/2004 8:49:21 AM
Can someone help me with adding some javascript functionality to a button? What would the proper syntax for for (please help with the javascript I am rusty) for doing this: btnMyButton.Attributes.Add("onclick", **Open a new window with no toolbar or address bar to address http://mysite.com/v...more >>

generate popup for search, then populate parent window with selection
Posted by Mark at 2/20/2004 8:36:07 AM
Any suggestions on how to go about generating a popup, giving the user a way of searching for something, and then taking their selection after closing the pop-up and populating the parent form with the selection from the child? I can do everything up until the point of having to populate the pare...more >>

Div Tag
Posted by Jim Heavey at 2/20/2004 8:32:47 AM
If I use a Div tag to hide/unhide a block of controls, how exactly do I turn it on and off in code? <div id="MyDivTag" style="display:'none';"></div> I am unsure of what the code would look like to toggle the value. Don't I need a "runat=server" as well on this div tag? Thanks in advan...more >>

Best sample asp.net app to learn from?
Posted by John Sutter at 2/20/2004 8:23:00 AM
I am looking for a sample app to learn from for best OO and ADO.NET practices. I am aware of the sample kits, sample programs at Microsoft site, duwamish, petstore, IBUYSPY, fitch & mather. I really do not have time to pour over all of them and decide which one to concentrate on. Looking for...more >>

Can't find validator objects on the visual studio.net
Posted by su_yu NO[at]SPAM hotmail.com at 2/20/2004 6:57:27 AM
Hi all, After create a component, I can't find any validator. I searched all the properties. There was no such kind of property. Does anyone here can help me out? Thank you in advance jack...more >>

Throwing Exceptions
Posted by Clive at 2/20/2004 6:51:06 AM
Hi I have Sub2 that I call from Sub1 If Sub2 evaluates to false I throw a custom exception e. If mVal = True The Throw New exCustomExceptio End I I then catch this in Sub1 in my catch like.. Catch exCustom as exCustomExceptio ........bla bl My question is- Should I also be catching...more >>

Subclassing from System.Web.UI.Page - Designer Error
Posted by Chuck Haeberle at 2/20/2004 6:06:05 AM
We have need to share functionality across all of our application web pages, so we decided to subclass from System.Web.UI.Page. When we create a new aspx, the Visual Studio designer automatically puts in the codebehind, as such: public class testsubclass : System.Web.UI.Page We change this to b...more >>

Different Server Controls in DataGrid
Posted by Machi at 2/20/2004 3:06:06 AM
Can anyone provide any advice or article on creating DataGrid and bind it with data but for every column of data, there may be different Server Controls. To make it clear, let say i want bind 1 field in one DataGrid, but for the only field i want to bind, i may have Label control from rows 1 - 5 and...more >>

events on a control
Posted by Karl Hungus at 2/20/2004 3:02:19 AM
If a control exposes an event, must it be surrounded by a <form runat=server> tag to work properly? ...more >>

Losing Session State
Posted by register NO[at]SPAM sosgmbh.at at 2/20/2004 2:20:48 AM
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can find one? Thanks Werner P.S. Somehow I did not manage to do a followup in Googles newsgroups. ...more >>

Unpridictable Results of Application Center Test..
Posted by msaeed_ahmed NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/20/2004 1:27:51 AM
Hi, i am using microsoft "Application Center Test" tool for load testing of my website, i executed the same test two or three times and every time i got diffirent results (ASP/Request Execution Time and other performace counter's values), i always restart the IIS before running the test, can an...more >>

Displaying text/plain as text in IE with asp.net
Posted by Mike Bridge at 2/20/2004 1:04:21 AM
Is there any way to get Internet explorer to treat a text/plain .net page as plain text using asp.net? It seems like IE doesn't trust text/plain as a mime type, and so it (ironically) displays it as text/html. (This works fine in Mozilla, though.) I thought maybe IE would use the file extens...more >>

how can I get client IP addresses?
Posted by DirkDiggler at 2/20/2004 12:51:58 AM
hello How can I get a client IP address, and if he uses proxy his (forwarded for) original address in my web application? Thanks in advance Luke ...more >>


DevelopmentNow Blog