473,404 Members | 2,114 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,404 software developers and data experts.

Rendering of Code

Hello I am having a problem with code not being rendered. I have a checkboxlist that is databinded in the Not Page.IsPostBack() sub, and the visibility is set to true/false depending on certain requirements. If the user modifies the page in a certain way then the checkboxlist will be made visible again using JavaScript code. The problem is, that if I set visible=false in the page load sub, then the code for the checkboxlist never gets rendered on the Html Page, so then the JavaScript will go to enable the visibility of the checkboxlist, but it won't even exist on the page. Does anybody know how to have the visible property set to false and still have the code render on the page?
ThankYou
Ryan
Nov 18 '05 #1
3 1122
Server Side, the "visible" property means actually that this control is not
"rendered" at all (as a result you won't see any HTML code for this control
client side).

You should hide it instead.

Patrice

--

"Ryan Scully" <Ry********@discussions.microsoft.com> a écrit dans le message
de news:43**********************************@microsof t.com...
Hello I am having a problem with code not being rendered. I have a checkboxlist that is databinded in the Not Page.IsPostBack() sub, and the
visibility is set to true/false depending on certain requirements. If the
user modifies the page in a certain way then the checkboxlist will be made
visible again using JavaScript code. The problem is, that if I set
visible=false in the page load sub, then the code for the checkboxlist never
gets rendered on the Html Page, so then the JavaScript will go to enable the
visibility of the checkboxlist, but it won't even exist on the page. Does
anybody know how to have the visible property set to false and still have
the code render on the page? ThankYou
Ryan

Nov 18 '05 #2
Sure. Use styles.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ryan Scully" <Ry********@discussions.microsoft.com> wrote in message
news:43**********************************@microsof t.com...
Hello I am having a problem with code not being rendered. I have a checkboxlist that is databinded in the Not Page.IsPostBack() sub, and the
visibility is set to true/false depending on certain requirements. If the
user modifies the page in a certain way then the checkboxlist will be made
visible again using JavaScript code. The problem is, that if I set
visible=false in the page load sub, then the code for the checkboxlist never
gets rendered on the Html Page, so then the JavaScript will go to enable the
visibility of the checkboxlist, but it won't even exist on the page. Does
anybody know how to have the visible property set to false and still have
the code render on the page? ThankYou
Ryan

Nov 18 '05 #3
Use the "display:none" CSS style and keep the Visible property server side
to True. As a result :
- with Visible set tot True, the HTML code is rendered
- with the "display:none" style, this part is hidden

You can then later use JavaScript to change style.display to '' making
appear the corresponding HTML.

--

"Ryan Scully" <Ry********@discussions.microsoft.com> a écrit dans le message
de news:CC**********************************@microsof t.com...
could you please give me some idea of where to start with this? I want to be able to manipulate the visible property of the checkboxlist in source
code. I guess somehow I'd have to programmatically create a style, then set
the visibility property to false??? Thanks
Ryan

"Kevin Spencer" wrote:
Sure. Use styles.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ryan Scully" <Ry********@discussions.microsoft.com> wrote in message
news:43**********************************@microsof t.com...
Hello I am having a problem with code not being rendered. I have a

checkboxlist that is databinded in the Not Page.IsPostBack() sub, and the visibility is set to true/false depending on certain requirements. If the user modifies the page in a certain way then the checkboxlist will be made visible again using JavaScript code. The problem is, that if I set
visible=false in the page load sub, then the code for the checkboxlist never gets rendered on the Html Page, so then the JavaScript will go to enable the visibility of the checkboxlist, but it won't even exist on the page. Does anybody know how to have the visible property set to false and still have the code render on the page?
ThankYou
Ryan


Nov 18 '05 #4

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

Similar topics

6
by: David Opstad | last post by:
I have a question about text rendering I'm hoping someone here can answer. Is there a way of doing linguistically correct rendering of Unicode strings in Python? In simple cases like Latin or...
3
by: David Whitney | last post by:
All: I have a control that renders a table. As the table is rendered, each row in the table is constructed by creating a run-time (dynamic) object that is derived from an HtmlTableRow. The row...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
4
by: tobfon | last post by:
I'm creating a scientific visualization application with rather high demands on performance. I've created a nice rendering engine for it in C++/OpenGL and a python interface to the rendering...
2
by: Spotnick | last post by:
I have no idea why, but since I'm trying to recreate my website using ASP.NET 2.0 I've encountered so many performance issues that I'm about to give up and continue using v1.1 Seriously, how can...
0
by: Jeff Morgan | last post by:
I have an application that runs on ASP.NET. We have been working through performance testing and it appears that at about 40-50 users, I start to get CPU bound. The application is a three form,...
0
by: Juan R. | last post by:
Since the idea of encoding mathematics using MathML is being very far from popular due to a number of factors -expensive tools, bad accesibility of generated code, unusual verbosity, lack of...
5
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a...
12
by: Boris Borcic | last post by:
Hello, I am trying to use UI Automation to drive an MS Windows app (with pywinauto). I need to scrape the app's window contents and use some form of OCR to get at the texts (pywinauto can't...
6
by: Justin.Voelker | last post by:
Can anyone clue me on on how to have my html page continue rendering past a MySQL error? If you visit www.Base2WebDesign.com, click login, type in anything for a username and password, then view...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.