Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Disabled Controls are not submitted asp.net 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Meels Lilbok - 14 Apr 2008 14:12 GMT
Hi

i have following problem

1) I add checkbox controls dynamically to webpage

2) user has time limit to check those boxes

3) if time is over checkboxes are disabled and Submit button appears

4) User presse submit button  - problem disabled controls are not submitted!

Im using Page.Form.SubmitDisabledControls = true  and form has also
SubmitDisabledControls=True

Any suggestions?

Meelis
bruce barker - 14 Apr 2008 16:06 GMT
this is a feature of the browser. no disabled fields are posted back. you can
have client script copy the values to hidden fields that do postback.

-- bruce (sqlwork.com)

> Hi
>
[quoted text clipped - 16 lines]
>
>  
Patrice - 14 Apr 2008 16:29 GMT
I would have a look at how it works client side. Actually I didn't even know
it was possible as usually a browser doesn't submit disabled fields by
design so there is likely a workaround (such as perhaps creating hidden
fields for those values ?).

Are you sure you create those controls at the approprioate step including
recreating them when appropriate ? My first thought would be that the way
those controls are created defeats the workaround provided by ASP.NET. I'll
have to give this a closer look as I didn't even noticed ASP.NET included a
workaround for this...

--
Patrice

> Hi
>
[quoted text clipped - 15 lines]
>
> Meelis

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.