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

Home Posts Topics Members FAQ

Login checking inline... im confused

Hi everyone. I want to perform some login checking in one of my webforms to
decide on what content to show, is this possible? Should i be doing this
differently (btw im a new .net programmer moving from PHP).

So depending on the value of x and y (defined in my code behind) i want todo
something like this in the code.

<% if(x > y) {%>

<p>HELLO WORLD</p>

<%} else {%>

<p>BYE WORLD</p>

<% } %>

Please help! :D

Appreciate any words of wisdom.

Kind Regards
Taz
Feb 6 '06 #1
4 1157
Im terrible sorry, the work "login" shuold read "logic"!!

Thanks,
Tarun
Feb 6 '06 #2
In ASP.NET you could define a server side label control and set its Text
property programmaticaly :

http://samples.gotdotnet.com/quickst...rverctrls.aspx
(Working with Server Controls tutorial)

--
Patrice

"Tarun Mistry" <no****@nospam. com> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
Hi everyone. I want to perform some login checking in one of my webforms to decide on what content to show, is this possible? Should i be doing this
differently (btw im a new .net programmer moving from PHP).

So depending on the value of x and y (defined in my code behind) i want todo something like this in the code.

<% if(x > y) {%>

<p>HELLO WORLD</p>

<%} else {%>

<p>BYE WORLD</p>

<% } %>

Please help! :D

Appreciate any words of wisdom.

Kind Regards
Taz

Feb 6 '06 #3
But i have huge chunks of HTML, this wouldnt be feasable would it?

Surely there must be a better way.

Thanks,
Taz

"Patrice" <a@bc.c> wrote in message
news:eI******** *****@TK2MSFTNG P09.phx.gbl...
In ASP.NET you could define a server side label control and set its Text
property programmaticaly :

http://samples.gotdotnet.com/quickst...rverctrls.aspx
(Working with Server Controls tutorial)

--
Patrice

"Tarun Mistry" <no****@nospam. com> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
Hi everyone. I want to perform some login checking in one of my webforms

to
decide on what content to show, is this possible? Should i be doing this
differently (btw im a new .net programmer moving from PHP).

So depending on the value of x and y (defined in my code behind) i want

todo
something like this in the code.

<% if(x > y) {%>

<p>HELLO WORLD</p>

<%} else {%>

<p>BYE WORLD</p>

<% } %>

Please help! :D

Appreciate any words of wisdom.

Kind Regards
Taz


Feb 6 '06 #4
Then have a look to user controls. It allows to design an HTML fragment and
even companion code and to reuse this on several pages.
Here you could have two user controls and load one of them dynamically on
the page as needed...

Another option would be also to have this code in the page and just set the
visible property of its container (so that the HTML markup is just not
rendered).

Basically the idea is that ASP.NET expose the current page throught an
object model so it's likely best to start thinking of your page as objects
you interact with rather than rendering directly the HTML markup as we are
more likely used with previous tools...

See :
http://samples.gotdotnet.com/quickst...bpagelets.aspx

--
Patrice

"Tarun Mistry" <no****@nospam. com> a écrit dans le message de
news:OH******** *****@TK2MSFTNG P14.phx.gbl...
But i have huge chunks of HTML, this wouldnt be feasable would it?

Surely there must be a better way.

Thanks,
Taz

"Patrice" <a@bc.c> wrote in message
news:eI******** *****@TK2MSFTNG P09.phx.gbl...
In ASP.NET you could define a server side label control and set its Text
property programmaticaly :

http://samples.gotdotnet.com/quickst...rverctrls.aspx
(Working with Server Controls tutorial)

--
Patrice

"Tarun Mistry" <no****@nospam. com> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
Hi everyone. I want to perform some login checking in one of my webforms
to
decide on what content to show, is this possible? Should i be doing

this differently (btw im a new .net programmer moving from PHP).

So depending on the value of x and y (defined in my code behind) i want

todo
something like this in the code.

<% if(x > y) {%>

<p>HELLO WORLD</p>

<%} else {%>

<p>BYE WORLD</p>

<% } %>

Please help! :D

Appreciate any words of wisdom.

Kind Regards
Taz



Feb 6 '06 #5

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

Similar topics

3
2805
by: janet | last post by:
hI ... I am newbie to ASP ... i am trying to write a code to accept login and passwor from a user and verify through a table created in MySQL. I am just trying to write a code on my own seeking help from code here and there and from my understanding. I am completely zapped :-(((
20
3158
by: Grumble | last post by:
Hello everyone, As far as I understand, the 'inline' keyword is a hint for the compiler to consider the function in question as a candidate for inlining, yes? What happens when a function with extern linkage is inlined? Should the compiler still export the function? Or is an inlined function implicitly static?
7
1564
by: Michael Kennedy [UB] | last post by:
Hi, I am back with more bug reports from Visual Studio.NET 2003's C++ compiler (unmanaged). Consider the following method: --------------------------------------------- __forceinline bool CReplayBase::ReplayFillBuffer() { CFile* pFile = NULL;
2
2075
by: Newbie \(C#,Asp.net\) | last post by:
Hi I have two simple questions that I make sure that I have underestood them 1) what is the main difference between inline coding and code behind besides that code behind is part of DLL and is not visible like inline coding . 2) I am strill kind of confused why there is HTML server control when we have equivalents in Web server controls ,why we should make an HTML control to be run at server ?? what is the main difference betwwen these...
4
7250
by: Sean | last post by:
I am a little confused by the "extern inline and static inline" rules. I understand that "extern inline" guarantees no function storage is created (all are inlined). But the following test seems to contradict what I expect---I found inc_i() is actually compiled as a linkable function in the a.out >g++ main.cpp call_inc.cpp >nm a.out ...... 0804875e W _Z5inc_iv
6
2916
by: pookiebearbottom | last post by:
Let's say I have headers Sal.h with this class class Sal { public: int doit() { return 1;} }; now I know that the compilier can choose NOT to inline this function. So if I include this in two different libraries, they both choose to
1
6990
by: bobmct | last post by:
Again: struggling to convert old-style HTML to html using css. I am trying to create a rectangular box divided into approx three vertical sections. The top section contains an image I would like on the extreme left of the box, the text centered in the reamaining space in that section. The center third contains two lines prompting for a user's login and password with a thirdline with some info (this section actually look OK now).
2
3778
by: Nagrik | last post by:
Dear Group, The book of Bjarne Stroustrup in chapter 5.4.4 says the following "The word static is one of the most overused words in C and C++. For static data members it has both of the common meanings: static as in "statically allocated" as opposed to on the stack or on the free store and static as in "with restricted visibility" as opposed to with external linkage. For member functions, static has the second meaning."
1
2018
by: geetamadhavi | last post by:
Hi All, I have developed a php applciaiton where a new window is opening on checking the whether valid user orntot how to make that in same window after checking i have die(' not valid user ' ); i even tried with echo also how to solve this the message should come under in the same window only see my code it is program ---- <?php // Connects to your Database mysql_connect('localhost', 'root', 'epara') or die(mysql_error());
0
9716
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
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10354
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
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
9177
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
7643
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
6870
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
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
4314
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

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.