473,785 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detecting selected account

Hi,

I am looking for different ways this can be accomplished, I can think
of a way, but I'm not too happy with it...

The Problem: Users with multiple accounts can switch between them;
however, the selected account is highligted by adding an invalid
"udb_id" attribute to the <trtag and replacing that tag with the
color that we want

<tr onmouseover="hi ghlight('on', this);" onmouseout="hig hlight('off',
this)" udb_id="####### ######">

to

<tr onmouseover="hi ghlight('on', this);" onmouseout="hig hlight('off',
this)" bgcolor='#ffe4b 5'>

using XSL style sheet

<code>
strHTML = TransformXML(Se ssion("User_Pro file"),
"xsl/AccountProfile. xsl")
If strHTML <"" Then
strHTML = Replace(strHTML , strSearchAccoun t, "<img alt=''
src='images/red_arrow.gif' width='10' height='10'>")
strHTML = Replace(strHTML , strSearchBGColo r,
"bgcolor='#ffe4 b5'")
</code>

XSL snippet is below

<tr onmouseover="hi ghlight('on', this);" onmouseout="hig hlight('off',
this)">
<xsl:attribut e name="udb_id">< xsl:apply-templates
select="udb-id|ccex-id|portfolio-id|infolease-id"/><xsl:value-of
select="program-type"/></xsl:attribute>
<td valign="middle" ><img alt="" src="/images/spacer.gif"
width="3" height="1"/><xsl:comment>< xsl:apply-templates
select="udb-id|ccex-id|portfolio-id|infolease-id"/><xsl:value-of
select="program-type"/></xsl:comment></td>

Now, I want the page to be HTML 4.01 compliant and hence, remove the
udb_id attribute.

I've thought of adding a comment with the udb_id beside the <trtag
and replace it with what i want upon selection (ie remove comment and
end of <trtag and add in gbcolor), but I dont really like that
solution.

Can anyone recommend something better? I still need to use the XSL on
my XML-like session profile...

Cheers

Jan 11 '07 #1
9 1466
I realize also that the id may also be passed in through the query
string.

Jan 11 '07 #2
wrote on 11 jan 2007 in microsoft.publi c.inetserver.as p.general:
I realize also that the id may also be passed in through the query
string.
What are you posting about?

Is Sigmund Freud's Id passed away?

[please always quote on usenet]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 11 '07 #3

Evertjan. wrote:
What are you posting about?

Is Sigmund Freud's Id passed away?

[please always quote on usenet]
The post just above it regarding how to get that ID while switching
account, I remembered something an added it in, I saw no need to
quote..

Does anyone know how to pass in a parameter from ASP to XSL?

Jan 11 '07 #4
wrote on 11 jan 2007 in microsoft.publi c.inetserver.as p.general:
Evertjan. wrote:
>What are you posting about?

Is Sigmund Freud's Id passed away?

[please always quote on usenet]
The post just above it regarding how to get that ID while switching
account, I remembered something an added it in, I saw no need to
quote..
"The post just above it" is only pertinent to your news reader,
but can be quite another post in another one.

That other post could be not yet or no more be available
on anothers news server.

So your "I saw no need to quote" was a bad sight.
Does anyone know how to pass in a parameter from ASP to XSL?
<% = myParameter %>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 11 '07 #5
"The post just above it" is only pertinent to your news reader,
but can be quite another post in another one.

That other post could be not yet or no more be available
on anothers news server.
OK, here it is again
-----
Hi,

I am looking for different ways this can be accomplished, I can think
of a way, but I'm not too happy with it...
The Problem: Users with multiple accounts can switch between them;
however, the selected account is highligted by adding an invalid
"udb_id" attribute to the <trtag and replacing that tag with the
color that we want
<tr onmouseover="hi ghlight('on', this);" onmouseout="hig hlight('off',
this)" udb_id="####### ######">
to
<tr onmouseover="hi ghlight('on', this);" onmouseout="hig hlight('off',
this)" bgcolor='#ffe4b 5'>
using XSL style sheet
<code>
strHTML = TransformXML(Se ssion("User_Pro file"),
"xsl/AccountProfile. xsl")
If strHTML <"" Then
strHTML = Replace(strHTML , strSearchAccoun t, "<img alt=''
src='images/red_arrow.gif' width='10' height='10'>")
strHTML = Replace(strHTML , strSearchBGColo r,
"bgcolor='#ffe4 b5'")
</code>
XSL snippet is below
<tr onmouseover="hi ghlight('on', this);" onmouseout="hig hlight('off',
this)">
<xsl:attribut e name="udb_id">< xsl:apply-templates
select="udb-id|ccex-id|portfolio-id|infolease-id"/><xsl:value-of
select="program-type"/></xsl:attribute>
<td valign="middle" ><img alt="" src="/images/spacer.gif"
width="3" height="1"/><xsl:comment>< xsl:apply-templates
select="udb-id|ccex-id|portfolio-id|infolease-id"/><xsl:value-of
select="program-type"/></xsl:comment></td>
Now, I want the page to be HTML 4.01 compliant and hence, remove the
udb_id attribute.
I've thought of adding a comment with the udb_id beside the <trtag
and replace it with what i want upon selection (ie remove comment and
end of <trtag and add in gbcolor), but I dont really like that
solution.
Can anyone recommend something better? I still need to use the XSL on
my XML-like session profile...
Cheers
>
Does anyone know how to pass in a parameter from ASP to XSL?

<% = myParameter %>
ummm, no!? thats a response.write

Jan 11 '07 #6
wrote on 11 jan 2007 in microsoft.publi c.inetserver.as p.general:
Does anyone know how to pass in a parameter from ASP to XSL?

<% = myParameter %>
ummm, no!? thats a response.write
So?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 11 '07 #7
Evertjan. wrote on 11 jan 2007 in microsoft.publi c.inetserver.as p.general:
wrote on 11 jan 2007 in microsoft.publi c.inetserver.as p.general:
>Does anyone know how to pass in a parameter from ASP to XSL?

<% = myParameter %>
ummm, no!? thats a response.write

So?
Ah, wait, perhaps you ment ASP.net?

If so Then you are asking in the wrong NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 11 '07 #8

Evertjan. wrote:
Does anyone know how to pass in a parameter from ASP to XSL?

<% = myParameter %>

ummm, no!? thats a response.write
So?

Ah, wait, perhaps you ment ASP.net?

If so Then you are asking in the wrong NG.
I don't think so, I think you are just misunderstandin g my question. I
want to pass the variable to an XSL stylesheet not for HTML rendering.

Jan 11 '07 #9
wrote on 11 jan 2007 in microsoft.publi c.inetserver.as p.general:
>
Evertjan. wrote:
>Does anyone know how to pass in a parameter from ASP to XSL?

<% = myParameter %>

ummm, no!? thats a response.write
So?

Ah, wait, perhaps you ment ASP.net?

If so Then you are asking in the wrong NG.
I don't think so, I think you are just misunderstandin g my question. I
want to pass the variable to an XSL stylesheet not for HTML rendering.
Where are you using an .asp page then?

If you want a parameter in ASP it surely must be on an asp page, and that
asp page will send a stream to the user, and that stream contains your
stylesheet, or am I wrong?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 12 '07 #10

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

Similar topics

4
9334
by: Doug van Vianen | last post by:
Hi, I am working on an Applet which provides some mouse practice for new computer users in our local seniors' computer club. The applet contains several cards, in a card layout, which are displayed to the user one after the other as needed to present some particular mouse operation. This all works fine. One card (card 4 below) includes a textarea and a button. What I wish to do is have the user use the mouse to select some text from the...
4
1655
by: Robb Meade | last post by:
Hi all, I am planning out the stages for an application at work, the application needs to detect when a client has emailed 'us' and then trigger a new row written to a database and email the client back by return. I can see how most of what our application needs to do can be achieved with ASP/SQL Server - but the part I am unsure of is the email detection...I suppose the closest thing to what we are aiming for would be one of those...
1
1487
by: Andy Fish | last post by:
Hi, Part of my web form allows the user to select their favourite color (well it doesn't but it's a good example). There is a dropdown box with red, green, blue, and custom. When they click custom, a pop-up window allows them to select from other colors. This is done by an onclick event on the <select> element. So far so good. But what if they have selected a custom color and then want to change it?.
5
1369
by: Jim Slade | last post by:
I've been doing some research on security and it seems like hashing/salting passwords is a good idea - but still not really all that secure against dictionary attacks (the salt just makes the hacker run their dictionary against every single account - not much of a challenge for a competent hacker) Just wondering what value would be added by adding some column to the database to record failed login attempts. The idea would be that the...
2
3041
by: Sam-Kiwi | last post by:
I've spent the last 6 months developing a pay-per-download website using ASP.NET Users purchase documents and then download them. The intention is that users are only charged for documents they successfuly download. My problem revolves around detecting a successful download, the steps I take to handle the download are as follows:
5
1837
by: needin4mation | last post by:
Hi, I have an asp.net 1.1 application that populates data from a database. When the user changes data, they have to hit a button to update the data. The data entry form (same form that is populated) is from several different tables. To the user, of course, this is not seen. Scenario: After the page is populated, assume a change is made to the form and the user hits update. The page then goes back, reads the database for that record...
4
2565
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True lblP1JoyRight.BackColor = clrLabelMove
2
1693
by: Siah | last post by:
Hi, It's a mess. After an hour of hacking the closest I could get to detecting the current value (Not key, but value) of select statement that works both in Firefox and IE is : selectElem.options.firstChild.nodeValue Which is SICK, but I would be more than happy with it, except @ %$*@ Internet Explorer selectElem.selectedIndex is somehow always 0 (ZERO).
1
4350
by: Roshan | last post by:
Hi, I wanted a reliable way of detecting if a given NTAccount object represents a user account or group account. I was using SecurityIdentifier.IsAccountSid() method but this doesn't work as I expected. It returns true for user accounts and also for groups created by administrator. Right now I am using the WMI class System.Management.ManagementClass to get a list of all local user accounts and am iterating over them to see if the given...
0
9645
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
9481
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,...
1
10095
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
9954
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
8979
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...
0
6741
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
5383
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...
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
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.