Click here to Skip to main content
15,881,455 members
Home / Discussions / C#
   

C#

 
GeneralRe: Still having problems with IActiveDesktop Pin
Stephane Rodriguez.3-Oct-02 18:43
Stephane Rodriguez.3-Oct-02 18:43 
GeneralRe: Still having problems with IActiveDesktop Pin
Nathan Tran5-Mar-03 16:29
Nathan Tran5-Mar-03 16:29 
Questionapi available for this purpose? Pin
imran_rafique3-Oct-02 16:12
imran_rafique3-Oct-02 16:12 
AnswerRe: api available for this purpose? Pin
Furty3-Oct-02 16:22
Furty3-Oct-02 16:22 
GeneralDate Controlled Content -- Basic C# Pin
yakfreek3-Oct-02 13:58
yakfreek3-Oct-02 13:58 
GeneralRe: Date Controlled Content -- Basic C# Pin
Paul Riley3-Oct-02 15:26
Paul Riley3-Oct-02 15:26 
GeneralRe: Date Controlled Content -- Basic C# Pin
4-Oct-02 5:40
suss4-Oct-02 5:40 
GeneralRe: Date Controlled Content -- Basic C# Pin
Paul Riley4-Oct-02 7:30
Paul Riley4-Oct-02 7:30 
There are ways to do it inline like this but I would advise forgetting the way you used to do things (scripting) and thinking in terms of .NET.

In short, you can have two <asp:label ...%gt; tags and write the code you want (your two tables) into the labels "Text" properties.

eg.
<asp:label id="lblBeforeTime" runat="server">
All this week, Monday through Firday, your chance at $100 at the following times:
6:30am, 7:30am, 8:30am
</asp:label>
Then add code to your Page_Load saying
// Note: the format of the DateTime constructor here is
// DateTime(year, month, day, hour, min, sec, millisec)
if (DateTime.Now < new DateTime(2002, 9, 27, 0, 0, 0, 0))
	lblAfterTime.Visible = false;
else
	lblBeforeTime.Visible = false;
Does this make sense? Are you using VS.NET or hand-coding?

Paul
Questionwhat can cause DB_E_ABOTLIMITREACHED? Pin
Anonymous3-Oct-02 5:04
Anonymous3-Oct-02 5:04 
AnswerRe: what can cause DB_E_ABOTLIMITREACHED? Pin
leppie3-Oct-02 9:25
leppie3-Oct-02 9:25 
GeneralRe: what can cause DB_E_ABOTLIMITREACHED? Pin
David Stone3-Oct-02 9:58
sitebuilderDavid Stone3-Oct-02 9:58 
GeneralRe: what can cause DB_E_ABOTLIMITREACHED? Pin
Anonymous4-Oct-02 2:45
Anonymous4-Oct-02 2:45 
GeneralRe: what can cause DB_E_ABOTLIMITREACHED? Pin
leppie4-Oct-02 8:04
leppie4-Oct-02 8:04 
AnswerRe: what can cause DB_E_ABOTLIMITREACHED? Pin
James T. Johnson3-Oct-02 9:55
James T. Johnson3-Oct-02 9:55 
GeneralC# client sending SOAP/HTTP request to Apache serve Pin
Anonymous2-Oct-02 20:28
Anonymous2-Oct-02 20:28 
Generalscroll bars Pin
Anonymous2-Oct-02 19:52
Anonymous2-Oct-02 19:52 
GeneralRe: scroll bars Pin
Stephane Rodriguez.2-Oct-02 20:05
Stephane Rodriguez.2-Oct-02 20:05 
Generalbasic C# question Pin
Anonymous2-Oct-02 19:27
Anonymous2-Oct-02 19:27 
GeneralRe: basic C# question Pin
Stephane Rodriguez.2-Oct-02 19:51
Stephane Rodriguez.2-Oct-02 19:51 
GeneralRe: basic C# question Pin
James T. Johnson3-Oct-02 1:49
James T. Johnson3-Oct-02 1:49 
QuestionCan anyone help with a Shell32 problem? Pin
Furty2-Oct-02 17:58
Furty2-Oct-02 17:58 
AnswerRe: Can anyone help with a Shell32 problem? Pin
Stephane Rodriguez.2-Oct-02 21:28
Stephane Rodriguez.2-Oct-02 21:28 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Furty3-Oct-02 0:18
Furty3-Oct-02 0:18 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Stephane Rodriguez.3-Oct-02 0:22
Stephane Rodriguez.3-Oct-02 0:22 
GeneralRe: Can anyone help with a Shell32 problem? Pin
Furty3-Oct-02 0:54
Furty3-Oct-02 0:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.