473,321 Members | 1,748 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,321 software developers and data experts.

Question: Minor personalization

Simple scenario:
I have a ASP.NET website that users log into. Everyone has a personal page
which they're redirect to after login. Everyone is redirected to the SAME
HTML page, with the exception of this: Near the header it says, "Hi <insert
name>. You live in <city>. Welcome!" Their login name is inserted here,
as well as their <city> which comes from a db. This is the only dynamic
portion of the personal page.

What is the best way to do this? Suggestions?

Thanks!
Nov 18 '05 #1
2 856
One cheap trick is to use <%=Function%> where Function is declared as
Protected in the code-behind and returns a string.

"VB Programmer" <gr********@go-intechN0SPAM.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Simple scenario:
I have a ASP.NET website that users log into. Everyone has a personal page which they're redirect to after login. Everyone is redirected to the SAME
HTML page, with the exception of this: Near the header it says, "Hi <insert name>. You live in <city>. Welcome!" Their login name is inserted here,
as well as their <city> which comes from a db. This is the only dynamic
portion of the personal page.

What is the best way to do this? Suggestions?

Thanks!

Nov 18 '05 #2
If you want to do it in a more ASP.NET kind of way you could add
labels to the page.

Hi <asp:Label id="lblName" runat="server"></asp:Label>. You live in
<asp:Label id="lblCity" runat="server"></asp:Label>

Then write:
lblName.Text=theName;
lblCity.Text=theCity;
in the page load event handler.

/Hugo

On Tue, 25 May 2004 10:06:14 -0400, "VB Programmer"
<gr********@go-intechN0SPAM.com> wrote:
Simple scenario:
I have a ASP.NET website that users log into. Everyone has a personal page
which they're redirect to after login. Everyone is redirected to the SAME
HTML page, with the exception of this: Near the header it says, "Hi <insert
name>. You live in <city>. Welcome!" Their login name is inserted here,
as well as their <city> which comes from a db. This is the only dynamic
portion of the personal page.

What is the best way to do this? Suggestions?

Thanks!


Nov 18 '05 #3

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

Similar topics

0
by: Danny Tuppeny | last post by:
Hi all, I'm after some advice... I'm building a website which will have a login etc.. The Personalization in asp.net 2 stuff looks like it'll save me some time (login controls etc.), however,...
2
by: bradgatewood | last post by:
I am in the process of developing a highly customizable application and I'm looking for a way to allow personalization by role. This is different than shared scope in the fact that I want to allow...
2
by: Roger23 | last post by:
I have a requirement where I need to remove or disable the entire personalization feature of my web application. I am not allowed to have a SQL express on my web server and I am not allowed to have...
3
by: Q. John Chen | last post by:
I have an INTRAnet site that need to add some content management feature. And I thought that I can use the WebParts. Since this is an internal site, I use Windows authentication so the use don't...
3
by: Cirene | last post by:
I have been looking into Personalization, Membership and Role Management. If I understand it correctly, I should use Personalization to store extra info about the user, such as: First Name, Last...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.