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

bind session key to label or textbox?

is there an easy way to bind the value of a session variable to a textbox or
label instead of setting it in code behind?

Thanks much.
Jul 18 '06 #1
2 8194
You could try databinding and / or using some of the variations of the
<#%=Container.DataItem... or eval(....) %methods inline in the ASPX HTML
Markup.
Otherwise, what's the big inconvenience?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dabbler" wrote:
is there an easy way to bind the value of a session variable to a textbox or
label instead of setting it in code behind?

Thanks much.
Jul 18 '06 #2
sorry, always looking for shortcuts ;) if I could just <#%=
eval("Session["""mySessionKey"""]") %>

"Peter Bromberg [C# MVP]" wrote:
You could try databinding and / or using some of the variations of the
<#%=Container.DataItem... or eval(....) %methods inline in the ASPX HTML
Markup.
Otherwise, what's the big inconvenience?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Dabbler" wrote:
is there an easy way to bind the value of a session variable to a textbox or
label instead of setting it in code behind?

Thanks much.
Jul 18 '06 #3

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

Similar topics

2
by: Vijaya | last post by:
Can we bind data to textbox in a headertemplate in a template column of a datagrid? If so please give some code snippets. Thank you
3
by: Jurjen de Groot | last post by:
I'm experimenting with StyleSheets in ASP.NET. If I put a label on my webform and <LINK> the CSS file with the following entries to the webform it doesn't work. It only works if I fill the...
0
by: mimo | last post by:
Hello, This is a really easy asp.net 2.0 question that some how I am missing. How do I bind a label to a field in an object datasource control? Thanks!
1
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page with a TemplateField and an Asp Label inside it. I need to access that Label in runtime and change the field to which it is binded. Can someone please...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
3
by: Randy | last post by:
Can anybody help me to complete the code for a dynamically added textbox? I can get as far as adding the textbox and placing in the right location, but now I need to bind it to a datasource. Here...
1
by: kostareject | last post by:
Hello! Can anyone tell me how can I printi label/textbox Text property in MDI Child by clicking MDI Parent print button in C#! I have MDI Chil form with several labels and textboxes, and I want...
0
by: kostareject | last post by:
Hello! Can anyone tell me how can I printi label/textbox Text property in MDI Child by clicking MDI Parent print button in C#! I have MDI Chil form with several labels and textboxes, and I want...
3
by: Nivia | last post by:
Am trying to bind a value that comes from DB to a asp:textbox in gridview. but am unable to use bind & parsefloat together. where do i include parsefloat in the below code line Text='<%#...
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
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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....

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.