473,665 Members | 2,827 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Formatting appSettings data using Expression Builder

Does anyone know if it's possible to format data stored in an appSetting node
when it's bound to a form control? I would like to format a date stored in
appSettings, and I bind to it as follows:

<asp:Label ID="SomeLabelID " Runat="Server" Text="<%$AppSet tings:someDate %>"
/>
Nov 19 '05 #1
2 1440
Hey,

Are you trying to achieve something like this?

<input type=text
value="<%=Syste m.Configuration .ConfigurationS ettings.AppSett ings["fDate"].ToString()%>">
fDate is the key given in web.config.

Hope this would help u.

-Baskar BV-

"Darren Carter" wrote:
Does anyone know if it's possible to format data stored in an appSetting node
when it's bound to a form control? I would like to format a date stored in
appSettings, and I bind to it as follows:

<asp:Label ID="SomeLabelID " Runat="Server" Text="<%$AppSet tings:someDate %>"
/>

Nov 19 '05 #2
That will definitely work, but I was hoping that I could use declarative
syntax like $AppSettings:fD ate since it is much easier for our designers to
use that syntax instead of the full declaration.

"BASKAR BV" wrote:
Hey,

Are you trying to achieve something like this?

<input type=text
value="<%=Syste m.Configuration .ConfigurationS ettings.AppSett ings["fDate"].ToString()%>">
fDate is the key given in web.config.

Hope this would help u.

-Baskar BV-

"Darren Carter" wrote:
Does anyone know if it's possible to format data stored in an appSetting node
when it's bound to a form control? I would like to format a date stored in
appSettings, and I bind to it as follows:

<asp:Label ID="SomeLabelID " Runat="Server" Text="<%$AppSet tings:someDate %>"
/>

Nov 19 '05 #3

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

Similar topics

6
2689
by: Sam Lazarus | last post by:
I need to import data from a website, but the text is arranged badly: Name:John Doe Title:Grunt ID:314159 Name:Jane Doe Title:Queen-Bee ID:271828 etc...
1
1200
by: Duppypog | last post by:
I want the contents of a textbox to be ALL CAPS when added to the database. How do I do that? And on the flip side - if I have existing data, what's the data formatting expression for ALL CAPS in the Datagrid Property Builder? Thanks much!! Lynnette
7
4670
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is quite ugly. The black area is larger then it is once an item is added. How can I solve this problem either by: A) Having only the header black and the rest of the empty block white or gray (preffered solution) B) Having the color gray or white...
4
3229
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
0
994
by: KentEMon | last post by:
I have a field in my SQL database table which has phone numbers stored with no "-" character. That is, 4540090 rather than 454-0090. I have a webform datagrid and wish to display these values in a 454-0090 format(with the "-" character.) I have gone to the Property Builder on the data grid, selected columns option, chose my phone number column and attemtped to use the "Data Formatting Expression" to do this. I cannot find an "expression"...
7
3106
by: L. Scott M. | last post by:
Have a quick simple question: dim x as string x = "1234567890" ------------------------------------------------------- VB 6 dim y as string
2
3737
by: =?Utf-8?B?Uml0YUc=?= | last post by:
Hello. I could not find a Web discussion group (only saw Web Services) so am posting my question here. I have a C# Web application that has a form with a datagrid. One of the columns of the data grid is filled with a column from a table that is varChar(500). I only want to display the first 50 character of that column. I want to be able to use the "Data Formatting Expression" in the datagrid columns property page. I could only find...
10
8632
by: Lyn | last post by:
Hi, I would like to make a bound text box not visible if it is empty (not just disable it). This option is not available from the standard conditional formatting feature (at least, not that I can find). I thought of calling a class module function via Expression Builder for the control. I have written a basic function, but don't seem to be able to pass the relevant arguments correctly. It seems to me that I need to pass two...
6
4590
by: Tomasz J | last post by:
Hello developers, I bind my TextBox control specyfying a format stored in my application global ApplicationContext object - it has a static string CurrencyFormat property. The problem - this works fine: Text='<%# Eval("Price", ApplicationContext.CurrencyFormat) %>'
0
8438
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
8863
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8549
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
7376
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
6187
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
4186
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...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1761
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.