<< < 26 27 28 29 30 31 32 33 34 35 36 > >>   Sort: Rank

Can the validation be done in the server side? Or this can be done only in the Client side?
Can the validation be done in the server side? Or this can be done only in the Client side? Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.
2013-10-01, 1676👍, 0💬

How do you validate the controls in an ASP .NET page?
How do you validate the controls in an ASP .NET page? Using special validation controls that are meant for this. We have Range Validator, Email Validator.
2013-10-01, 1682👍, 0💬

What is view state?
What is view state? The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control
2013-09-30, 1658👍, 0💬

What is smart navigation?
What is smart navigation? The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.
2013-09-30, 1744👍, 0💬

How ASP .NET different from ASP?
How ASP .NET different from ASP? Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.
2013-09-27, 1763👍, 0💬

How is .NET able to support multiple languages?
How is .NET able to support multiple languages? A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. S...
2013-09-27, 1698👍, 0💬

How many languages .NET is supporting now?
How many languages .NET is supporting now? When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported.
2013-09-26, 2087👍, 0💬

What is .NET?
What is .NET? .NET is essentially a framework for software development.It is similar in nature to any other software development framework (J2EE etc) in that it provides a set of runtime containers/capabilities, and a rich set of pre-built functionality in the form of class libraries and APIs The .N...
2013-09-26, 1929👍, 0💬

How do you give functions private variables that retain their values between calls?
How do you give functions private variables that retain their values between calls? Create a scope surrounding that sub that contains lexicals. Only lexical variables are truly private, and they will persist even when their block exits if something still cares about them. Thus: { my $i = 0; sub next...
2013-09-25, 2170👍, 0💬

How many ways can we express string in Perl?
How many ways can we express string in Perl? Many. For example 'this is a string' can be expressed in: "this is a string" qq/this is a string like double-quoted string/ qq^this is a string like double-quoted string^ q/this is a string/ q&this is a string& q(this is a string)
2013-09-25, 2252👍, 0💬

How do I print the entire contents of an array with Perl?
How do I print the entire contents of an array with Perl? To answer this question, we first need a sample array. Let's assume that you have an array that contains the name of baseball teams, like this: @teams = ('cubs', 'reds', 'yankees', 'dodgers'); If you just want to print the array with the arra...
2013-09-24, 2280👍, 0💬

How do you match one letter in the current locale?
How do you match one letter in the current locale? /[^\W_\d]/ We don't have full POSIX regexps, so you can't get at the isalpha() &lt;ctype.h&gt; macro save indirectly. You ask for one byte which is neither a non-alphanumunder, nor an under, nor a numeric. That leaves just the alphas, which ...
2013-09-23, 2201👍, 0💬

Assume that $ref refers to a scalar, an array, a hash or to some nested data structure. Explain the following statements:
Assume that $ref refers to a scalar, an array, a hash or to some nested data structure. Explain the following statements: $$ref; # returns a scalar $$ref[0]; # returns the first element of that array $ref- &gt; [0]; # returns the first element of that array @$ref; # returns the contents of that ...
2013-09-23, 2222👍, 0💬

What happens to objects lost in "unreachable" memory..... ?
What happens to objects lost in "unreachable" memory..... ? What happens to objects lost in "unreachable" memory, such as the object returned by Ob-&gt;new() in `{ my $ap; $ap = [ Ob-&gt;new(), \$ap ]; }' ? Their destructors are called when that interpreter thread shuts down. When the interp...
2013-09-20, 2209👍, 0💬

When would `local $_' in a function ruin your day?
When would `local $_' in a function ruin your day? When your caller was in the middle for a while(m//g) loop The /g state on a global variable is not protected by running local on it. That'll teach you to stop using locals. Too bad $_ can't be the target of a my() -- yet.
2013-09-20, 2164👍, 0💬

How do I read command-line arguments with Perl?
How do I read command-line arguments with Perl? With Perl, command-line arguments are stored in the array named @ARGV. $ARGV[0] contains the first argument, $ARGV[1] contains the second argument, etc. $#ARGV is the subscript of the last element of the @ARGV array, so the number of arguments on the c...
2013-09-19, 2206👍, 0💬

How to concatenate strings with Perl?
How to concatenate strings with Perl? Method #1 - using Perl's dot operator: $name = 'checkbook'; $filename = "/tmp/" . $name . ".tmp"; Method #2 - using Perl's join function $name = "checkbook"; $filename = join "", "/tmp/", $name, ".tmp"; Method #3 - usual way of concatenating strings $filename = ...
2013-09-19, 2181👍, 0💬

What is the easiest way to download the contents of a URL with Perl?
What is the easiest way to download the contents of a URL with Perl? Once you have the libwww-perl library, LWP.pm installed, the code is this: #!/usr/bin/perl use LWP::Simple; $url = get 'http://www.websitename.com/';
2013-09-18, 2128👍, 0💬

How do I replace every &lt;TAB&gt; character in a file with a comma?
How do I replace every &lt;TAB&gt; character in a file with a comma? perl -pi.bak -e 's/\t/,/g' myfile.txt
2013-09-18, 2817👍, 0💬

How do I do &lt; fill-in-the-blank &gt; for each element in an array?
How do I do &lt; fill-in-the-blank &gt; for each element in an array? #!/usr/bin/perl -w @homeRunHitters = ('McGwire', 'Sosa', 'Maris', 'Ruth'); foreach (@homeRunHitters) { print "$_ hit a lot of home runs in one year\n"; }
2013-09-16, 2195👍, 0💬

If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}? The second is disallowed under `use strict "refs"'. Dereferencing a string with *{"STR"} is disallowed under the refs stricture, although *{STR} would not be. This is similar in spirit to the way ${"...
2013-09-16, 2316👍, 0💬

What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash? 5 length() is a built-in prototyped as sub length($), and a scalar prototype silently changes aggregates into radically different forms. The scalar sense of a hash is false (0) if it's empty, otherwise it's...
2013-09-13, 2041👍, 0💬

How to dereference a reference?
How to dereference a reference? There are a number of ways to dereference a reference. Using two dollar signs to dereference a scalar. $original = $$strref; Using @ sign to dereference an array. @list = @$arrayref; Similar for hashes.
2013-09-13, 2155👍, 0💬

Does Perl have reference type?
Does Perl have reference type? Yes. Perl can make a scalar or hash type reference by using backslash operator. For example $str = "here we go"; # a scalar variable $strref = \$str; # a reference to a scalar @array = (1..10); # an array $arrayref = \@array; # a reference to an array Note that the ref...
2013-09-12, 2069👍, 0💬

<< < 26 27 28 29 30 31 32 33 34 35 36 > >>   Sort: Rank