RSS Links

 

Here are all of the RSS links for sections of this site

VB.NET/ASP.NET
 Java
 Unix/Linux
 Windows
 SQL Server

Login Form






Lost Password?
No account yet? Register
Home
Why in UserControls the tags aren't working
Sunday, 01 November 2009
This problem catches me everytime - I create a user control

<foot:footer id="Foot1" runat="server" />

and I add a new property called prop which I want to assign a value using server tags

<foot:footer id="Foot1" runat="server" prop="<%= GetTheProperty() %>" />

which just doesn't work.

The reason that it isn't working is that its a server based control and is entirely setup serverside, so to get it working you
need to add an additional DataBind in the page_load sub and to user the late binding version of the server tags (<%#)

i.e.

<foot:footer id="Foot1" runat="server" prop="<%# GetTheProperty() %>" />
Page.Form.FindControl("Foot1").DataBind()

would do it for the above example


Last Updated ( Sunday, 01 November 2009 )
 
Enabling AgentXPs in SQL Server 2008
Thursday, 03 September 2009
To run maintenance plans you need to have AgentXPs enabled.

To enable this in SQL Server 2008 use

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Agent XPs', 1;
GO
RECONFIGURE
GO

More information at http://msdn.microsoft.com/en-us/library/ms178127.aspx
 
Creating files with dates and times in batch jobs
Friday, 11 June 2010
The article at the link below describes how to use the for loop with the date command to create files / directories with a date and time.

An example script looks like this :-

rem create directory based on current month
for /f "tokens=1-4 delims=/ " %%d in ("%date%") do set DIRNAME=Archive%%e-%%f
echo %DIRNAME%
mkdir %DIRNAME%

You can find more information in this excellent article at Computer Hope http://www.computerhope.com/issues/ch000987.htm
 
 
Designed by Graham Robinson Software