Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 14th, 2007, 02:27 AM
Registered User
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default UpdatePanel Problem?

I have a page where the user enters the information, and clicks on submit then the information is saved into the database. Second time, when the same user navigates to that page, the page picks up the data from database and be populated accordingly.

I have implemented ASP.Net Ajax: UpdatePanel into this page. First time (at the time of creation), it works perfectly. But when it comes second time (in edit mode), as the page is popupated as values from the database, it does not work properly.

For example:

- There is a RadioButtonList and TextBox with Submit Button on the page.

- TextBox is disabled by default.

- RadioButtonList has two options (Yes) and (No)

- Selecting (Yes) from RadioButtonList, TextBox is enabled and on selecting (No), TextBox is disabled.

- But RadioButtonList needs a postback and page flickers. So, I decided to implement Ajax:UpdatePanel into the page.

- After implementing UpdatePanel with UpdateMode=Conditional, when you select (Yes) or (No) on RadioButtonList, it only renders TextBox and page does not flicker, it means it works perfectly.

- But second time (in edit mode, when record already exists in database), in Page_Load, it fetches the record from the database and as per values populates the page. Like if RadioButtonList was Yes then it is selected as Yes and TextBox is populated with value. Now you try to select (No) from RadioButtonList, it will disable the TextBox and select again (Yes) option, -- it will not enable the TextBox to enter the value.--

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
UpdatePanel daniel.mihalcea Ajax 10 September 27th, 2008 07:39 AM
Problem with ajax updatepanel alexmalayil ASP.NET 2.0 Professional 0 October 18th, 2007 05:07 AM
UpdatePanel/ModalPopUp Postback Problem jlrolin ASP.NET 2.0 Professional 3 August 13th, 2007 01:23 PM
Prblem while using <asp:updatepanel> rajatake ASP.NET 2.0 Professional 5 March 22nd, 2007 02:05 PM

All times are GMT -4. The time now is 07:38 PM.

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