473,778 Members | 2,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ponder points. "code behind" framework

I understand that the code behind concept is a framework that separates code
logic from visulization code.

I belive this is true for pages that are mostly static. Ie. Forms elements
on a page that are fixed in number.

What if i had a requirement that involves a highly dynamic page, with a
dynamic number of form elements based on various user selections. I cant
see how I cant separate code that splits the "form generation logic" as a
code behind and have another file that would just hold "visulisati on code".

Any thoughts on this?

Thanks,
Girish
Nov 18 '05 #1
1 1304
If your page is completely unpredictable, then the .aspx page would be
pretty much empty, and the code behind would truly generate all the content.
It can do this by dynamically creating elements (textboxes, labels, grids,
etc) and adding them to the page at run time.

Otherwise, your page might have placeholders for certain pieces, and your
codebehind would filll in the blanks at run time depending on what it needed
to do.

So this model allows for any level of extensibility. The page can be
completely static, or completely dynamic, and this model supports both.

"Girish" <gb****@tietron ixstw.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I understand that the code behind concept is a framework that separates code logic from visulization code.

I belive this is true for pages that are mostly static. Ie. Forms elements
on a page that are fixed in number.

What if i had a requirement that involves a highly dynamic page, with a
dynamic number of form elements based on various user selections. I cant
see how I cant separate code that splits the "form generation logic" as a
code behind and have another file that would just hold "visulisati on code".
Any thoughts on this?

Thanks,
Girish

Nov 18 '05 #2

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

Similar topics

3
2203
by: Graham | last post by:
On page 89 of Stroustrup's book "The C++ Programming Language" 3rd Ed. He says that multidimensional arrays are best avoided outside low-level code. What precisely does he mean by low-level code? That is fairly relative terminology. Is he saying that the use of multidimensional arrays in C++ are not desirable? That doesn't seem right to me.
3
10758
by: Praveen_db2 | last post by:
Hi All db2 version 8.2.2 Windows I have installed the database and created Sample db. Now when I am giving db2stop ,it says C:\Documents and Settings\buntyaru>db2stop 11/10/2005 00:13:14 0 0 SQL1025N The database manager was not stopped because databases are still active. SQL1025N The database manager was not stopped because databases are still
3
7274
by: John Baker | last post by:
Hi: As in the "Wizard of Oz", I want people to "pay no attention to the man behind the curtain", by freezing the screen while a whole lot of things happen. I know about ECHO OFF, but this appears to reset when forms are opened and under other conditions. Are there any commands (Screen Refresh=False?) that will stop screen refreshing until another command is encountered that turns the screen refreshing on again? Thanks in advance.
1
3510
by: | last post by:
Hi guys! I am a beginner with aspx (i have some background with .asp). And i am trying tu use a 'code-behind' page in order to execute all transactions in that page and leave as clean as possible the .aspx with the html. As my start-point, i am building a login page. I put the textbox and submit button on the page index.aspx; and, i put all the db validation on the page maquinaria.vb. on index.aspx i have this button:
6
1612
by: swartzbill2000 | last post by:
Hello, I have some downloaded source code on my machine that the .net framework thinks is "not fully trusted". How can I fix this? I assume I use the 'Microsoft .NET Framework 1.1 Configuration' in some way. Bill
1
1932
by: QLD_AU | last post by:
I am having trouble when viewing the code behind a form, any events i do are shown, however the Windows Form Designer generated code Section is not shown, Does anyone know how to turn this on and off.
0
1072
by: Sharon | last post by:
Hello, Is there a way to force the dropdownlist control to go "behind" another control on a webform? I have a calendar control that is positioned near a dropdown list in the next row, and when the calendar is opened it is partially obscured by the dropdown. Is there a way to resolve this? If not, can someone recommend a calendar
6
6019
by: Nathan Sokalski | last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET is done using VB.NET). After converting, everything was fine, and worked and compiled correctly, but I noticed one big difference between the VB.NET code of the converted files in the projects and the VB.NET code in new pages. The new pages use...
2
4837
by: thirunavukarasukm | last post by:
Hai.... "i want used confirm in javascript in code behind" i am used confirm button ,,,in code behind. if the confirm button worked the function is return the true...
0
10296
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
10068
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...
1
7474
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5370
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
2863
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.