Google Groups Home
Help | Sign in
using ajax pro and custom server control
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
Ton  
View profile
 More options Jul 9, 11:38 am
From: Ton <tonvrys...@wxs.nl>
Date: Wed, 9 Jul 2008 08:38:55 -0700 (PDT)
Local: Wed, Jul 9 2008 11:38 am
Subject: using ajax pro and custom server control
Hi
I developed a custom server control (using CreateChildControls to add
several controls like comboboxes, textboxesm checkboxes and so on).
I've also developed some javascript functions to fill a particular
combobox once it got the focus. This works fine. I use an Ajaxpro
procedure, which connects the database and fills the combobox with the
datatable values.
The big advantage is the only choosen values are posten to the client
and only when the user click on th combobox the possioble values are
loaden. This is very fast in posting and collecting.

All is working fine. But now I'm modifying the selected value of the
combobox and during postback (hitting the save button). I cannot see
the modified value.

I know that in the form I could use Request.Form(id of the combobox to
get the value posted by the user. But I have to have this value in my
webserver control. How can this be done?

And offcourse I do not want to write form code, because I have to
write this could in each form where I will use my custom server
control. So I need a way to get the actual value in the custom sefrver
control.

thanx

ton


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BadDotNetCoda  
View profile
 More options Jul 31, 8:35 am
From: BadDotNetCoda <stephan.a...@googlemail.com>
Date: Thu, 31 Jul 2008 05:35:08 -0700 (PDT)
Local: Thurs, Jul 31 2008 8:35 am
Subject: Re: using ajax pro and custom server control
Hmm , I think you have to write code to post your values to server via
ajax.
If you hit a button and cannot read out controlvalue on server-side
your enableviewstate might be false...
but working with roundtrips while using ajax?
to hold values in custom webcontrols u have to code a property for it.

hope this helps...

On 9 Jul., 17:38, Ton <tonvrys...@wxs.nl> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google