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

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="<%$AppSettings:someDate %>"
/>
Nov 19 '05 #1
2 1434
Hey,

Are you trying to achieve something like this?

<input type=text
value="<%=System.Configuration.ConfigurationSettin gs.AppSettings["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="<%$AppSettings:someDate %>"
/>

Nov 19 '05 #2
That will definitely work, but I was hoping that I could use declarative
syntax like $AppSettings:fDate 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="<%=System.Configuration.ConfigurationSettin gs.AppSettings["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="<%$AppSettings:someDate %>"
/>

Nov 19 '05 #3

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

Similar topics

6
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
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...
7
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...
4
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
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...
7
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
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...
10
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...
6
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...
1
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.