Re: getElementById failing

2012-01-04 Thread David Walker
Havent' done ASP.Net for a while but could you try do it later than you are - 
pre_render or something.

On 5 Jan 2012, at 01:05, Greg Keogh wrote:

> I just noticed that the IDs don’t match. In the rendered page I see this:
>  
> function NoteCheck()
> {
>   var text = 
> document.getElementById('ctl00_ContentPlaceHolder1_UMAuthRepeater_ctl01_converseCtl_conitemCtl_textNote');
>   var btn = 
> document.getElementById('ctl00_ContentPlaceHolder1_UMAuthRepeater_ctl01_converseCtl_conitemCtl_btnConSave');
>   var len = text.value.length;
>   btn.disabled = (len == 0);
> }
>  
>  id="ctl00_ContentPlaceHolder1_UMAuthRepeater_ctl02_converseCtl_conitemCtl_textNote"
>  onFocus="NoteCheck();" onKeyUp="NoteCheck();" 
> style="height:60px;width:300px;" />
>  
> So my JavaScript logic is probably still correct, but the IDs don’t match. I 
> also tried <%=textNote.ClientID%> style syntax instead of string.Format, but 
> it makes no difference. I’ve not seen this mismatching ID problem before, but 
> at least I now know why it’s crashing, but don’t know the underlying cause or 
> cure.
>  
> Greg



Re: getElementById failing (sort of solved)

2012-01-04 Thread David Walker
I think its' all to do with the INamingContainer that it belongs to inferring a 
name for it. Someone else suggested predictablenames which sounds like what you 
want.

On 5 Jan 2012, at 02:14, Greg Keogh wrote:

> >Havent' done ASP.Net for a while but could you try do it later than you are 
> >- pre_render or something.
>  
> You’re right !!! Page_Load is too early ... well ... I suppose it is, but the 
> symptoms of getting mismatching ClientIDs is quite frightening and 
> misleading. I moved the register script call to  before base.OnPreRender in 
> the vague hope that the IDs would be “stable” by them.
>  
> At the same time I changed my code. Instead of smartly enabling the save 
> button as the text changes, I dumbly block save on click if the text is 
> empty. This is not as elegant, but still acceptable for live use. The old 
> code had a bug where the state of the button was incorrect when the page 
> first loaded and I couldn’t figure out how to fire the script on load to set 
> the initial state correctly, that wasted another 30 minutes. The working code 
> now looks like this:
>  
> Page.ClientScript.RegisterStartupScript(GetType(), "s3",
> string.Format(@"function CheckNote()
> {{
> var text = document.getElementById('{0}');
> if (text.value == '')
> {{
> alert('You cannot save a blank message.');
> return false;
> }}
> else
> {{
> return true;
> }}
> }}", textNote.ClientID), true);
> btnConSave.Attributes["onClick"] = "return CheckNote();";
>  
> I also found that using <%=textNote.ClientID%> does not work in the get.
>  
> So there you go, I’ve spent 2 and a half hours this morning trying to make 
> this work. Why does it have to be so hard?
>  
> Greg



Re: Unhooking events from Handler

2012-04-01 Thread David Walker
http://msdn.microsoft.com/en-us/library/ee658248.aspx search on the page for 
'static event' should find the best ways to do this.

Typically the child will unsubscribe itself inside Dispose()

On 2 Apr 2012, at 02:21, Stephen Price wrote:

> Hey all,
> 
> I've got a Static class that's behaving like an EventHandler in that you 
> assign values to it via an operator + or - method. 
> 
> I need a method on this thing or some way that I can unhook the ones from one 
> particular class (called from the dispose of that class) so that it can 
> remove only the ones that were added from that class. Its accepting an Enum, 
> so is there a way to see the owner of an Enum or where it was created? 
> 
> Or do I need to store something along with the Enum that can later be used to 
> identify who attached it? 
> 
> If you imagine it as a Static eventhandler, how can I look through the 
> references and only unhook the ones from a particular class. (assuming 
> internally you can loop through each handler.
> The actual problem is that it's causing a memory leak if I don't unhook these 
> things when that page/veiwmodel is disposed.
> 
> hope the above makes some kind of sense to someone. :)
> 
> cheers,
> Stephen



Re: [OT] FYI, Large Dell Monitor Sale (again).

2012-06-04 Thread David Walker
I have 2 24s 1920x1200 and have one in portrait. Works really well for coding 
as well as for scanning longer articles on the web.

I think my perfect point would be a 30 in the middle and 2x24s in portrait on 
the left and right hand side.

On 4 Jun 2012, at 23:07, Clint Colefax wrote:

> Anyone run these monitors in portrait for coding? I have vision of getting 3 
> 16:10 ratio monitors and running some in portrait, had a quick go at it at a 
> friends work and for certain situations, I found it great, not sure about 
> long term\for everything tho.
>  
> Thanks
> Clint Colefax
>  
> From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
> Behalf Of Greg Keogh
> Sent: Tuesday, 5 June 2012 8:00 AM
> To: 'ozDotNet'
> Subject: RE: [OT] FYI, Large Dell Monitor Sale (again).
>  
> For Greg and others: If you run 2 screens move to 3 and you'll love it. Just 
> find the right screens, make sure they are all exactly the same and have the 
> same settings and are at the same height.
>  
> You may be right, my two screens are different resolutions, slightly 
> different sizes, at different angles and there is a 2 inch gap between them. 
> It’s the gap that most irritating due to the frame, if only they could be 
> tiled like paper -- Greg



[OT] Perth Port 80 meeting

2010-04-07 Thread David Walker
Hey there,

 

Was interested in going to tonights Port 80 meeting in Perth down at the
Flying Scotsman however I have never been to one. 

 

Does anyone from this list attend and if so is it very relevant for web
programmers or is it more of a designer meet business type of meeting?

 

Dave



Microsoft Certifed Partner

2010-04-13 Thread David Walker
Hey,

 

Was wondering if anyone knew the costs of becoming a certified partner
or a gold certified partner? There is an unspecified Microsoft Partner
Network fee on the site but no indication of cost?



log4Net on Windows server 2008

2010-06-30 Thread David Walker
Hey guys,

 

Has anyone had any issues with getting log4net working in an ASP.Net
project running on Windows Server 2008 (IIS 7). My configuration works
on both my Windows 7 development machine and another windows server 2003
web server. I have cut the config down but still nothing works.

 

This is a pretty broad question but I am kind of out of ideas.

 

Cheers,

 

Dave



RE: log4Net on Windows server 2008

2010-06-30 Thread David Walker
I'll try the console app and if doesn't work will post some code.

 

From: ozdotnet-boun...@ozdotnet.com
[mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Michael Minutillo
Sent: Thursday, 1 July 2010 10:41 AM
To: ozDotNet
Subject: Re: log4Net on Windows server 2008

 

Hi David,

 

What sort of issues are you having? Windows 2008 is probably:

 

a) Packed full of more fine grained security controls AND

b) Even more secure by default

 

Failing that here are a few questions that you've probably already gone
through yourself:

 

* Are the framework versions the same?

* Are the App Pools configured the same?

* Can you get a simple one page app with log4net working? i.e. Is it
log4net or the config

* Can you get log4net working in a console app on that machine? i.e. Is
it IIS/ASP.NET

 

On Thu, Jul 1, 2010 at 10:32 AM, David Walker
 wrote:

Hey guys,

 

Has anyone had any issues with getting log4net working in an ASP.Net
project running on Windows Server 2008 (IIS 7). My configuration works
on both my Windows 7 development machine and another windows server 2003
web server. I have cut the config down but still nothing works.

 

This is a pretty broad question but I am kind of out of ideas.

 

Cheers,

 

Dave




-- 
Michael M. Minutillo
Indiscriminate Information Sponge
Blog: http://wolfbyte-net.blogspot.com



RE: log4Net on Windows server 2008

2010-06-30 Thread David Walker
I thought as much originally so I culled the config back to just send an email 
from a test page.  Manually created and sent an email from the function which 
worked fine.

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Alan Heywood
Sent: Thursday, 1 July 2010 11:25 AM
To: ozDotNet
Subject: Re: log4Net on Windows server 2008

 

Hi David,

 

I am using log4net in IIS7 on Server 2008 without any issues.  One thing you 
might want to check is that the App pool user has permission to write the log 
file.

 

If your site is www.somesite.com, by default the application pool runs under a 
user called "IIS AppPool\www.somesite.com".  The trick is that this user does 
NOT show up in the standard file\folder security dialog.  You need to type it 
an as above, then click Check Names and it should be recognised.

 

Failing this you could try Process Monitor to see if there are any failed 
writes to the log file due to security.

 

Cheers,
Alan

 

On 1 July 2010 12:32, David Walker  wrote:

Hey guys,

 

Has anyone had any issues with getting log4net working in an ASP.Net project 
running on Windows Server 2008 (IIS 7). My configuration works on both my 
Windows 7 development machine and another windows server 2003 web server. I 
have cut the config down but still nothing works.

 

This is a pretty broad question but I am kind of out of ideas.

 

Cheers,

 

Dave

 



RE: log4Net on Windows server 2008

2010-07-03 Thread David Walker
Ok ended up being a bunch of issues, the main one being that for some
reason the configuration call was not being picked up in my global.asax
file. 

 

protected void Application_Start( object
sender, EventArgs e )

{

 
log4net.Config.XmlConfigurator.Configure();

 

I read somewhere that if you change the 'Managed Pipeline Mode' of the
application pool from Integrated to Classic (IIS 6) that this would fix
things however it didn't seem to help in my case. So now pulled the
configuration call out into a http module to ensure its all setup. 

 

Once I got that going I just used the log4net internal log and a trace
listener to work out what else was wrong with things.

 

So yeah, thanks everyone for your help. A pretty silly fix in the end.

 

From: ozdotnet-boun...@ozdotnet.com
[mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Michael Minutillo
Sent: Thursday, 1 July 2010 10:41 AM
To: ozDotNet
Subject: Re: log4Net on Windows server 2008

 

Hi David,

 

What sort of issues are you having? Windows 2008 is probably:

 

a) Packed full of more fine grained security controls AND

b) Even more secure by default

 

Failing that here are a few questions that you've probably already gone
through yourself:

 

* Are the framework versions the same?

* Are the App Pools configured the same?

* Can you get a simple one page app with log4net working? i.e. Is it
log4net or the config

* Can you get log4net working in a console app on that machine? i.e. Is
it IIS/ASP.NET

 

On Thu, Jul 1, 2010 at 10:32 AM, David Walker
 wrote:

Hey guys,

 

Has anyone had any issues with getting log4net working in an ASP.Net
project running on Windows Server 2008 (IIS 7). My configuration works
on both my Windows 7 development machine and another windows server 2003
web server. I have cut the config down but still nothing works.

 

This is a pretty broad question but I am kind of out of ideas.

 

Cheers,

 

Dave




-- 
Michael M. Minutillo
Indiscriminate Information Sponge
Blog: http://wolfbyte-net.blogspot.com



RE: Double click solution does nothing....

2010-07-14 Thread David Walker
Or you have 'run as administrator' set in your VS properties - likely if
you got sick of debugging and having to restart. If this is the case you
have to open VS first then open the solution within there from the
File>Open.

 

From: ozdotnet-boun...@ozdotnet.com
[mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Kean
Sent: Thursday, 15 July 2010 10:57 AM
To: ozDotNet
Subject: RE: Double click solution does nothing

 

It's likely that it was created in a beta version of VS - create a new
VS 2010 solution, open it notepad, copy the first the line and then
replace the first line of the solution that won't open.

 

From: ozdotnet-boun...@ozdotnet.com
[mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Anthony
Sent: Wednesday, July 14, 2010 7:54 PM
To: 'ozDotNet'
Subject: Double click solution does nothing

 

When i double click  a visual studio solution file...nothing happens..is
this normal.  I have vs2005,vs2008,vs2010 installed.  The icon of the
file appears to be correct but nothing happens when i double click it!

 

 

12GIG RAM Rocks!

 

 

 

 



[OT] Usefulness of Microsoft Certifications

2010-11-10 Thread David Walker
Hi everyone,

the developers at our work are just looking at doing our MCPD for .net 4 and 
were wondering if anyone has any input or insight on the usefulness of these 
certifications?

I currently have a MCAD (.net 1.1 - assuming its still valid) and I honestly 
don't know if it helped me beyond ticking some recruiters boxes. Have they 
changed much?

Are there any other industry certifications, perhaps independent ones, which 
are held in higher regard?

Also has anyone done the exam on Silverlight development? Is that any good?

Thanks heaps in advance,

Dave Walker


RE: [OT] Usefulness of Microsoft Certifications

2010-11-10 Thread David Walker
Yeah fair enough. We all have CS degrees now - is it worth extending these to a 
Software Engineering degree/masters degree? Does any education provider offer 
something like this? My CS course spent alot of time dealing with topics which 
honestly I have never used, and will never use - PRNG's, assembly etc...

 
On 11 November 2010 13:51, David Walker wrote:

>  the developers at our work are just looking at doing our MCPD for .net 4
> and were wondering if anyone has any input or insight on the usefulness of
> these certifications?
>
In my view, they are completely worthless. Maybe some people are more
inclined to hire you on the basis of sitting a multiguess exam for an hour -
I don't know. All these certifications prove to me is that someone is adept
at content recall and a particular flavour of the month way of doing things.
They are easily obtained by people who wouldn't know what a principle of
computer science was if it ran over them with a race condition.

> I currently have a MCAD (.net 1.1 - assuming its still valid) and I
> honestly don't know if it helped me beyond ticking some recruiters boxes.
> Have they changed much? Are there any other industry certifications, perhaps
> independent ones, which are held in higher regard?
>
Everyone has their own opinions, but a bachelor's degree or better in
computer science and/or software engineering is the only sort of
qualification that floats my boat (for the line of work I'm in).

-- 
*David Connors* | da...@codify.com | www.codify.com
Software Engineer
Codify Pty Ltd
Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417
189 363
V-Card: https://www.codify.com/cards/davidconnors
Address Info: https://www.codify.com/contact

<>

RE: [OT] Usefulness of Microsoft Certifications

2010-11-10 Thread David Walker
I agree - several of our best programmers have never been to University at all. 
You have to wonder if three years worth fluff is really any good for a career - 
especially as the lecturers are generally poor teachers who are forced to give 
lectures as part of their tenure...

-Original Message-
From: ozdotnet-boun...@ozdotnet.com on behalf of Nathan Schultz
Sent: Thu 11/11/2010 13:03
To: ozDotNet
Subject: Re: [OT] Usefulness of Microsoft Certifications
 
I know one IT manager who actually likes employing programmers with degrees
outside of CS. People with vastly different backgrounds tend to think about
problems differently. I remember reading Boeing does the same when they
develop their flight-systems, which are not only are quadruple-backed up,
but are written by totally different teams with different backgrounds, as to
help minimize a bug being in the same place.

There is also one programmer at work without a tertiary degree but is
passionate about it and is one of the best guys here.

That said, I still believe getting a CS degree (at the very least) is
worthwhile.



On Thu, Nov 11, 2010 at 12:51 PM, David Connors  wrote:

> On 11 November 2010 14:26, David Walker wrote:
>
>> Yeah fair enough. We all have CS degrees now - is it worth extending these
>> to a Software Engineering degree/masters degree?
>
>
> I think it depends on the institution and course. When I was at uni I did a
> bachelor of information technology with a major in SE and minor in AI.  I
> think all the degrees are pretty well rounded these days with soft systems
> methodology type stuff rather than just 100% dry comp sci.
>
>
>> Does any education provider offer something like this? My CS course spent
>> alot of time dealing with topics which honestly I have never used, and will
>> never use - PRNG's, assembly etc...
>>
>
> The particular language programming task or language isn't really the issue
> - it is all the foundation knowledge and theory you get in the process. That
> stuff is good for a lifetime transcends language/runtime/programming
> problem.
>
> --
> *David Connors* | da...@codify.com | www.codify.com
> Software Engineer
> Codify Pty Ltd
> Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417
> 189 363
> V-Card: https://www.codify.com/cards/davidconnors
> Address Info: https://www.codify.com/contact
>
>

<>

[OT] Remote worker

2011-02-14 Thread David Walker

Hi all,

I have recently decided to take the plunge and move overseas away from this 
great country and off to sunny Scotland.

As part of my transition I will be working for my company remotely for the 
short term (at least three months).

I am primarily a web developer however we deal with some rather large code 
bases and databases. Our current company policy is to use Citrix to RDP/VNC to 
our local machine however I have struggled with this for any extended period of 
time. Previously I have used Cisco VPN to join my companies network from my 
home machine and then just worked as normal... however this doesnt seem to be 
supported on Windows 7 64 bit and I really can't see myself going back to < 4 
gigs of ram!

I have done some reading online and have some reccomended strategies to use 
Open VPN and to have a Quarentine before it is allowed to join the network 
completly? I may have my terms wrong here; Networking is not one of my strong 
points... 

Does anyone have any tips - especially on software - that can help make 
development life bearable?

Cheers in advance,
Dave