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

implementing iteration- and conditional-tags with ASP.NET

Hi,

I want to write iteration- and conditional-tags with asp.net, but I
found nothing about it in books, MSDN or online-articels.

Could someone please explain me or post a link to an article where is
described how I can do that ?
Maybe I'm using the wrong expressions. Conditional- and Iteration-Tags
is how you call this in JSP.

thanks for your help,
jurujuba
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 19 '05 #1
3 1361
Do you mean server tags that you put in.aspx files like <asp:label ...> and
they would operate like javascript if and for statements?

Eliyahu

"jurujuba" <ju******@gmx-dot-de.no-spam.invalid> wrote in message
news:42********@127.0.0.1...
Hi,

I want to write iteration- and conditional-tags with asp.net, but I
found nothing about it in books, MSDN or online-articels.

Could someone please explain me or post a link to an article where is
described how I can do that ?
Maybe I'm using the wrong expressions. Conditional- and Iteration-Tags
is how you call this in JSP.

thanks for your help,
jurujuba
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 19 '05 #2
Hi,

yes, that's what I mean. Do I have to use javascript for that ?
the usage of the conditional-tag could look like this:

<mytag:condition execute="true" runat="server">
<b>it is true!</b>
</mytag:condition>
<mytag:condition execute="false" runat="server">
<b>it is NOT true</b>
</mytag:condition>

this code-snippet would result in the output "it is true !" because
the conditional-tag would not execute it's body if execute is set
"false".

How can you do that with ASP.net ?

(I'm sorry, I'm a Java-programmer and new to .net Wink)

And there is another question...
How can I define tags with a body in ASP.NET ?

thanks for your help,
Frank
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 19 '05 #3
Frank,

Yes, you need to write server-side scripts for that.

Eliyahu

"jurujuba" <ju******@gmx-dot-de.no-spam.invalid> wrote in message
news:42********@127.0.0.1...
Hi,

yes, that's what I mean. Do I have to use javascript for that ?
the usage of the conditional-tag could look like this:

<mytag:condition execute="true" runat="server">
<b>it is true!</b>
</mytag:condition>
<mytag:condition execute="false" runat="server">
<b>it is NOT true</b>
</mytag:condition>

this code-snippet would result in the output "it is true !" because
the conditional-tag would not execute it's body if execute is set
"false".

How can you do that with ASP.net ?

(I'm sorry, I'm a Java-programmer and new to .net Wink)

And there is another question...
How can I define tags with a body in ASP.NET ?

thanks for your help,
Frank
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 19 '05 #4

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

Similar topics

35
by: Raymond Hettinger | last post by:
Here is a discussion draft of a potential PEP. The ideas grew out of the discussion on pep-284. Comments are invited. Dart throwing is optional. Raymond Hettinger ...
1
by: adeleinandjeremy | last post by:
I am taking a second programming course in Java and am currently attempting to apply what I have learned using Python instead. One thing that is puzzling me is how to use an iterator. I am...
3
by: Adelein and Jeremy | last post by:
I am taking a second programming course in Java and am currently attempting to apply what I have learned using Python instead. One thing that is puzzling me is how to use an iterator. I am...
2
by: Abdullah Khaidar | last post by:
Is there any iteration style we must use to get faster processing time? I've tried with some style to concat number in list. But I still don't know which one is the recommended style. >>> def...
13
by: Thomas Heller | last post by:
I'm trying to implement __iter__ on an abstract base class while I don't know whether subclasses support that or not. Hope that makes sense, if not, this code should be clearer: class Base: def...
9
by: Bernard | last post by:
Hi All, I am not sure if I should be asking this question on clc or clc++. Let me try on both. I hope that this is not too trivial for the brilliant minds over here. I know that OOP questions...
70
by: Rajan | last post by:
Hi, I am trying to simulate a memcpy like this void* mem_cpy(void* dest, void* src, int bytes) { dest = malloc(bytes); } Now if I want to copy the bytes from src to dest, how do I copy these...
27
by: Pete | last post by:
I'm doing exercise 8-2 from "Accelerated C++" where we're supposed to implement library algorithms, trying to minimize the number of iterator operations. I have two questions so far. First,...
75
by: Sathyaish | last post by:
Can every problem that has an iterative solution also be expressed in terms of a recursive solution? I tried one example, and am in the process of trying out more examples, increasing their...
9
by: raylopez99 | last post by:
What's the best way of implementing a multi-node tree in C++? What I'm trying to do is traverse a tree of possible chess moves given an intial position (at the root of the tree). Since every...
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
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: 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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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.