sub

Managing mandatory fields with triggers

I would like to set mandatory field backgrounds are red and others are green. So I try to implement below. But I could not control ValueConstraint Nullable property with trigger. Could you help please ? <Window x:Class="TriggerGirilmesigerekenalanlar.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmln...

Perl - Subroutine redefined

I have asked this question before or searched and seen others ask - why am I getting the warning "Subroutine mySub redefined at ../lib/Common.pm line x"? and you always get the answer you declared the sub twice in the same code. I created this test package: ENTIRE FILE --------------- package Common; use strict; sub thisSubroutineIs...

Copy specific File from a list to Directory & sub Directory

Friends I have alist of Files and its location, in text format, I want to copy few files to other location maintaing the Directory Tree structure.e.g below give TestFile1 under the subdirectory TestFolder3 e.g. Source File TestFolder TestFile1.txt TestFolder2 TestFile2.txt TestFolder3 TestFile1.txt TestFile3.txt Destination...

Update sub document in MongoDB

Right now I am working on MongoDB in ASP.NET and just gone through an article in which it has taken a blog post example and mentioned the following steps to update comments (sub document). The blog was taken a main document Comments were taken as sub document and posted along with main document When we need to insert a new comment to a...

Creating a reusable site structure in ASP.NET 4.0 with C#

Hello, I wish to streamline and best practiceify the way that I setup websites for my clients. General information: -- ASP.NET Forms style of website i.e. not MVC -- Web applications (not website) -- I am using OneClick deploy -- I wish to package the main web application -- Ideally, I wish to package the sub applications also. -- A...

ASP.NET Build path and deployment

Hello, Technology: C# ASP.NET WebForms VS2010 I have been trying to create sub web applications that build into a main web application i.e. build path is the main web application as described here: http://blogs.msdn.com/b/webdevtools/archive/2006/07/01/652986.aspx The aim is that I can separate all my website 'apps' separate web appli...

Visual Basic 2010/ Sub Procedure

I copied the exact codes from my textbook and I have the following errors. Error 3 'txtOutput' is not declared. It may be inaccessible due to its protection level. C:\Users\Woong-Sup\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 13 17 WindowsApplication1 Error 4 'txtOutput' is not declared. It may be ina...

How to host sub domain on another hardware

My website (developed in PHP) is currently having 2 sub domains and hosted on the same server hardware. Due to heavy traffic, I want to move one sub domain to another hardware. Is this possible? Generally domain Name Servers point out to hosting provider DNS entries. If there are two sub domains hosted on two different servers, what are...

How can I pass two arrays and a string to a Perl subroutine?

How can I pass two arrays and a string to a sub? Here's what I'm trying to do: use strict; use warnings; my @x = qw(AAAA BBBB CCCC DDDD EEEE); my @y = qw(1111 2222 3333 4444 5555); my $z = "hello"; Hello(@x,@y,$z); exit(0); sub Hello { my (@x,@y,$z) = @_; print "$_\n" for @x; print "$_\n"; print "$_\n" for @y; ...