473,778 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide/Show Controls during a callback

Hi,

Is it possible to Hide/Show controls during a callback? I have a radio
button list that does the callback. When it does the callback I need to
refresh the grid to reflect the selected value in the radio button. Also I
need to hide some check boxes based on the selected value. The checkboxes and
radiobuttons are both server controls. Please let me know.

Thanks,
Apr 11 '07 #1
4 2290
Change their Visible property to True or False.

"Sridhar" <Sr*****@discus sions.microsoft .comwrote in message
news:35******** *************** ***********@mic rosoft.com...
Hi,

Is it possible to Hide/Show controls during a callback? I have a radio
button list that does the callback. When it does the callback I need to
refresh the grid to reflect the selected value in the radio button. Also I
need to hide some check boxes based on the selected value. The checkboxes
and
radiobuttons are both server controls. Please let me know.

Thanks,

Apr 11 '07 #2
That won't work because there is no postback occuring where the server can
pick this up.
You need to use client script to set the display attribute of the control
(you can also use the visibility attribute; each has a different effect.)
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Aidy" wrote:
Change their Visible property to True or False.

"Sridhar" <Sr*****@discus sions.microsoft .comwrote in message
news:35******** *************** ***********@mic rosoft.com...
Hi,

Is it possible to Hide/Show controls during a callback? I have a radio
button list that does the callback. When it does the callback I need to
refresh the grid to reflect the selected value in the radio button. Also I
need to hide some check boxes based on the selected value. The checkboxes
and
radiobuttons are both server controls. Please let me know.

Thanks,


Apr 11 '07 #3
Hi,

Thank you for the reply. I have already thought about that. Now I am having
a different problem. I am using ScriptManager and UpdatePanel controls to do
the callbacks. I have a radio button list that does the callback. The
radiobuttonlist has three options. The first option is selected by default.
So when the user gets the page for the first time it uses that option to
display the data. when I switch to another option it is doing the callback
and everything is working fine. However if I select the first option(which is
default) it is not doing the callback. I am assuming that since it didn't
update the viewstate during the callback the asp.net framework is thinking
that the selectedindex didn't change for the radiobutton list. That is why
it is not doing callback. When I searched online they sugested to call
WebForm_InitCal lback() manually. But I am not knowing where to include that
code since the ScriptManager automatically inserts the necessary javascript
code for the callbacks. Please let me know.

Thanks,
"Peter Bromberg [C# MVP]" wrote:
That won't work because there is no postback occuring where the server can
pick this up.
You need to use client script to set the display attribute of the control
(you can also use the visibility attribute; each has a different effect.)
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Aidy" wrote:
Change their Visible property to True or False.

"Sridhar" <Sr*****@discus sions.microsoft .comwrote in message
news:35******** *************** ***********@mic rosoft.com...
Hi,
>
Is it possible to Hide/Show controls during a callback? I have a radio
button list that does the callback. When it does the callback I need to
refresh the grid to reflect the selected value in the radio button. Also I
need to hide some check boxes based on the selected value. The checkboxes
and
radiobuttons are both server controls. Please let me know.
>
Thanks,
Apr 11 '07 #4
Are there solution about it ??
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

"Sridhar" wrote:
Hi,

Thank you for the reply. I have already thought about that. Now I am having
a different problem. I am using ScriptManager and UpdatePanel controls to do
the callbacks. I have a radio button list that does the callback. The
radiobuttonlist has three options. The first option is selected by default.
So when the user gets the page for the first time it uses that option to
display the data. when I switch to another option it is doing the callback
and everything is working fine. However if I select the first option(which is
default) it is not doing the callback. I am assuming that since it didn't
update the viewstate during the callback the asp.net framework is thinking
that the selectedindex didn't change for the radiobutton list. That is why
it is not doing callback. When I searched online they sugested to call
WebForm_InitCal lback() manually. But I am not knowing where to include that
code since the ScriptManager automatically inserts the necessary javascript
code for the callbacks. Please let me know.

Thanks,
"Peter Bromberg [C# MVP]" wrote:
That won't work because there is no postback occuring where the server can
pick this up.
You need to use client script to set the display attribute of the control
(you can also use the visibility attribute; each has a different effect.)
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Aidy" wrote:
Change their Visible property to True or False.
>
"Sridhar" <Sr*****@discus sions.microsoft .comwrote in message
news:35******** *************** ***********@mic rosoft.com...
Hi,

Is it possible to Hide/Show controls during a callback? I have a radio
button list that does the callback. When it does the callback I need to
refresh the grid to reflect the selected value in the radio button. Also I
need to hide some check boxes based on the selected value. The checkboxes
and
radiobuttons are both server controls. Please let me know.

Thanks,
>
>
>
Apr 24 '07 #5

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

Similar topics

0
2100
by: Efkas | last post by:
I have a full custom application with some widged extending Controls like Label and PictureBox. I build a menu with these widgets. When I click on one of them, it calls a function to display some stuff in the main display area. The stuff to display is one of many assemblies loaded at the opening of the application by Activator.CreateInstance, because I want it independant of the main application, as a plugin. All assembly are loaded...
12
15679
by: Jerad Rose | last post by:
I searched for a while trying to find the answer to this, but to no avail. I am trying to find the best way (or any way) to dynamically show and hide groups of TR's. For example, I have a section of about 6 table rows that all need to be hidden if a certain condition is met. But I don't want to hide the whole table. And, I don't want to split up the table because the columns need to remain intact. I thought about using runat=server...
5
3202
by: dje | last post by:
In the OnClick event on a radioButtonList, I run a javascript to show/hide the appropriate div along with a submit button, which displays as expected. The problem is the submit no longer works on the button. If I quit using the divs, and do a postback on the radiobutton selection, showing/hiding tables instead, the button is ok and continues to work. I've tried a variety of controls instead of the button in a variety of places but it...
4
2507
by: Sosh | last post by:
Hi, I wonder if anyone knows how an application that employs remote scripting/callbacks should deal with an authentication timeout during a callback? At the moment my application just stops working until I refresh the page and log in again. I'm not really sure what its going in - perhaps the framework is trying to redirect the callback result to the login page? Any ideas?
2
3821
by: Øyvind Isaksen | last post by:
Is it possible to show/hide a usercontrol code behind? <uc1:topart id="Topart1" runat="server"></uc1:topart> This is what i want to do, but this does not work: if objDR.read me.Topart1.show 'Show usercontrol if datareader.read else me.Topart1.hide 'Hide usercontrol
5
3990
by: Mike TI | last post by:
March 24, 2006 Hi all I am new to VB.NET and am using VB.NET 2005. I have an MDI form with a Split Container Control. On demand I am adding and removing User Controls on Panel 2. I am using Show() and Hide(). It works perfectly. The only thing is I would like to remove the User Control from memory instead of hiding. I tried Dispose(), however then I cannot show this
3
7732
by: | last post by:
I'm using the DataList and GridView controls, and I am trying to wrap my head around the problem of conditionally showing or hiding cells/cell content based on the presence or absence of DB data. I am finding this sort of problem by far the most annoying part about working with ASP.NET controls. What I want is to know how to do three things: - conditionally show or hide an ImageField +column+ based on whether or not an the...
13
2265
by: jeff | last post by:
I am attempting to be able to show and hide a form called viewAllForm. I declared an instance of the form in a module. Public viewAllForm As New frmViewAll However I keep getting runtime errors when I close and try and show it again. What is the proper way to do this? I only want 1 open at a time. They can cover it up and leave it open if they want. But whenever they click to show it I want it to come to the surface and/or to load if it...
5
13302
by: Amit | last post by:
Can anyone write the code to hide tabpage of tab control in windows form 2.0 Thanks, Amit
0
9628
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10292
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8954
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5368
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.