473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems with viewstate with custom control in update panel.

Hi all,

I have a custom control that Inherits WebControl, Implements
INamingContainer and Implements IPostBackDataHandler
It works flawlessly on a page that does not have an update panel.

However when it is enclosed in an update panel the viewstate for it gets
lost and it contains no data.

I would be very grateful for advice of how to do error searching .

/k
Jul 1 '08 #1
5 2932
Hi,

I found few of the articles on msdn to implement a ajax enabled custom
web server control
http://msdn.microsoft.com/en-us/library/bb386519.aspx

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jul 1 '08 #2
Do not use ASPX

it is a flawed design - not meant to be used for professional web
applications

instead use IHttpHandler and build a sensible application

that way you won't need to battle against a bad architecture that adds
complexity and limitations but gives nothing in return
Jul 1 '08 #3
On Jul 2, 5:00 am, John Rivers <firs...@btinternet.comwrote:
Do not use ASPX

it is a flawed design - not meant to be used for professional web
applications

instead use IHttpHandler and build a sensible application

that way you won't need to battle against a bad architecture that adds
complexity and limitations but gives nothing in return
you are SO going to have to justify those statements.
Jul 1 '08 #4
Do you think I have to rewrite the control according to this:
http://forums.asp.net/p/1040033/1445844.aspx

/k
"Munna" <mu******@gmail.comwrote in message
news:f3**********************************@i76g2000 hsf.googlegroups.com...
Hi,

I found few of the articles on msdn to implement a ajax enabled custom
web server control
http://msdn.microsoft.com/en-us/library/bb386519.aspx

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com

Jul 2 '08 #5
you are SO going to have to justify those statements.

This forum is full of people struggling to do simple things with a
broken architecture.

I have 15 years commercial web development experience and I would not
consider using ASPX pages for any project.

IIS is good - ASP.NET HttpHandlers are good - ASPX is junk.

ASPX is Microsoft's (failed) attempt at creating a Windows Forms type
development experience for Web Applications.

they are trying to "dumb down" web development to make it easy for
amateur developers such as web design agencies, bedroom coders and
"the bloke in IT"

but they made tragic mistakes in the architecture:

- forcing people to use javascript
- not supporting redirect after state change
- a ridiculous object model and event model

The end result is a system that actually makes web application
development harder and produces sub-standard results.

My solution is to create my own parser and code generator - replacing
the ASPX page handler completely with an intelligent one.

I can develop highly sophisticated web applications targetting
multiple browsers with full interactive AJAX at ten times the speed of
an ASPX developer.
Plus my applications conform to best practices in enterprise class web
applications that have been refined over the last 15 years.

Can you find me one top-grade public web application that uses ASPX ?

DELL uses ".aspx" extensions - but look closely - behind the scenes
they are not using ASPX !

Can you show me one bank that uses ASPX for its online banking ?

You won't find any - because at that level they can not afford to use
flawed sub-standard technology.

I feel sorry for people who lack the experience to question the
validity of ASPX and waste their time and energy using it.

I am always happy to be proved wrong - if you can provide URLs of a
ASPX web app that isn't a joke I will eat my words.
Jul 2 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
1
by: Sky | last post by:
Although I've been using C# for the last month or so, and accepting out of blind faith the ViewState, I do have some nagging questions about it... can you help verify the following statements? ...
2
by: BluDog | last post by:
Hi I have a created a custom web control called ImageBrowser, extract is below: <Code> #Region "Properties" Public Property Images() As ImageCollection
0
by: spacehopper_man | last post by:
hi - I am writing a "tab" control. - but it's losing the viewstate of the content pane when I switch between tabs. can anyone shed any light on why I'm losing ViewState based on my simple...
1
by: Tim | last post by:
Greetings! I have a UserControl. On this UserControl is a Panel and a RadioButtonList. The Panel's Visible property is set to false by default. When the user selects a particular...
3
by: Adrian Parker | last post by:
v1.1 and v2.0 We have a problem with viewstate not being stored. What's happening is that we create controls in CreateChildControls and add them to a container on the page (whether it be a...
4
by: scottcly | last post by:
I have a simple editor with a Gridview and a DetailsView. The Gridview handles DELETE and the DetailsView handles UPDATE and ADD. A panel around each one and some minor event handling is used to...
0
by: Walter | last post by:
Hi, can someone please help me with my custom control viewstate problem....I haven't slept for hours trying to get this fixed. I am making two custom controls which will be included on a single...
2
by: sck10 | last post by:
Hello, I have a web page that has a GridView and a FormView, each in its own panel. The GridView shows a list of records in a database. When a row in the GridView is selected the FormView...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.