Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 31st, 2007, 02:48 AM
Authorized User
 
Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default TextBox's ReadOnly problem ...

Dear Friends ..

I have created one form on which there is one TextBox which is ReadOnly="True"

When I submit the button the values in TextBox can not be read by the program.

But when i set ReadOnly="False" it can be read after submit.

This problem occurs for no. of times. I am not getting why it occurs and how to resolve it.

Please friends help me out.

Thanking You.
With regards
AMOL

Amol Chikurte
__________________
Amol Chikurte
 
Old May 31st, 2007, 05:38 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes, this seems to be a strange problem with 2.0 version, to overcome this, set the ReadOnly property from codebehind, & not from the HTML part, e.g. write the following to the Page_Load event:

TextBox.Attributes.Add("readonly","true");

Regards
Mike

Don't expect too much, too soon.
 
Old May 31st, 2007, 05:53 AM
Authorized User
 
Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot Mike...

Ya thats working fine.

But again i do have one query, one of friend working in JSP, he also got the same problem. So do u have any solution over this. If then please reply.


Thanks again

AMOL

Amol Chikurte
 
Old May 31st, 2007, 06:30 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well, I am afraid I won't be able to help you out with JSP....

Regards
Mike

Don't expect too much, too soon.
 
Old May 31st, 2007, 06:37 AM
Authorized User
 
Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok mike..

Thanks for reply

Regards
AMOL

Amol Chikurte





Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset is readonly vb.net-newbie ADO.NET 1 May 8th, 2007 11:12 AM
DataBase is readonly debabrata ASP.NET 2.0 Professional 0 April 17th, 2007 04:54 AM
readonly checkbox Dj Kat HTML Code Clinic 3 November 10th, 2006 08:34 AM
Readonly checkbox nerssi HTML Code Clinic 1 May 20th, 2005 06:28 AM





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