Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 7th, 2004, 01:35 PM
Authorized User
Join Date: Jan 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to creative_eye
Default setting the ReadOnly property with a function

I'm developing a web application in ASP.NET using VB.NET. I have finished its First module. Now i want to set the "ReadOnly" property to True of all the text boxes while in the view mode. There are approximately 25 forms. If i starts doing from first form to the end (setting the "ReadOnly" property of every text box to 'True') it'll take plenty of time.
The thing i want to know is, Is it possible to do by writing any function or any suggestion from urside.

Old May 7th, 2004, 02:17 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts

I don't have the code handy- but you there is a object that tells you about all the objects on the page. you can loop through that and make changes on each.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
Old May 10th, 2004, 02:34 PM
Authorized User
Join Date: Jan 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to creative_eye

can u plz arrange the codea or the name of the object.
I'll highly oblige u.

Old May 10th, 2004, 03:27 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Could you elaborate a bit about what you're trying to do?
What do you mean with "25 forms"? Are you talking about 25 separate Web pages? Do you want to change these settings at run-time or design-time??


Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Come Out and Play by The Offspring (Track 7 from the album: Smash) What's This?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if dropdown readonly property is "true" ismailc XSLT 2 January 21st, 2008 04:18 AM
DefaultValue Property Setting Failing SerranoG Access VBA 5 April 2nd, 2007 12:40 PM
Setting "DBEngine.SystemDB" property jkuusik BOOK: Access 2003 VBA Programmer's Reference 2 December 28th, 2005 06:51 AM
How to set textbox property to readonly when text bekim Classic ASP Basics 1 July 12th, 2005 12:06 AM
Setting ReadOnly Property Values Gavin265 General .NET 8 May 19th, 2005 12:49 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.