By Blog User on
3/27/2012 9:42 PM
How to customize the View Response menu link and the Response Survey button in just a few steps through Javascript
|
By Blog User on
3/3/2012 3:42 PM
Sometimes it's neccesary to retrieve the User's Full Name (or Display name) instead of just the network Name.
This can be easily obtained from the System.DirectoryServices.AccountManagement namespace introduced with the .NET Framework 3.5. This Namespace gives you access to the UserPrinciple class which encapsulates "principles that are from user accounts."
|
By Blog User on
10/5/2011 2:25 PM
In many cases it's possible that the IE (in my case, the 9) restart at a certain page.
This may be caused by some Add-On that is cancelling it.
The best way to test this is passing by parameter the -extoff command which disable the extensions.
|
By Blog User on
6/4/2011 12:20 PM
|
By Blog User on
5/6/2011 5:59 PM
When using a Textbox with TextMode="multiLine", the MaxLength isn't respected.
A possible solution to this problem is to put the following script:
function ValidateCharacters(textareaControl,maxlength){
if (textareaControl.value.length > maxlength){
textareaControl.value = textareaControl.value.substring(0,maxlength);
}
}
and in textbox you have to add:
onkeypress="ValidateCharacters(this, 100);" onkeyup="ValidateCharacters(this, 100);"
|
By Blog User on
1/18/2011 11:40 PM
When the HeaderText property of a DataGrid is set, it must be done before doing the DataBind. Otherwise, this change won't be updated until the grid be refreshed.
|
By Blog User on
12/23/2010 10:18 AM
The following article explains how to enable compression on IIS 6.0
http://www.codeproject.com/KB/aspnet/EnableGzip.aspx
This post is more complete than the other:
http://techdoc.superoffice.com/sixWebZip.html
If you need to disable an specific file or a folder from the compression, you must to run the following script:
cscript adsutil.vbs create W3SVC/1/ROOT/SystemName/Misc/DownloadFile.aspx IIsWebFile
cscript adsutil.vbs set W3SVC/1/ROOT/SystemName/Misc/DownloadFile.aspx/DoDynamicCompression false
cscript adsutil.vbs set W3SVC/1/ROOT/SystemName/Misc/DownloadFile.aspx/DoStaticCompression false
It's important that the intermediate routes (as Misc, in this case) exist in the Meta Base. This can be verified with the Meta Base explorer.
To enable HTTP compression for an individual site or an individual element of the site (Virtual Directory) ...
|
By Blog User on
8/24/2010 8:32 PM
There are 2 properties for retrieving the User with which it is working.
System.Security.Principal.WindowsIdentity.GetCurrent().Name
Retrieve the User Name with which it is impersonating
HttpContext.Current.User.Identity.Name
Retrieve the name of the online User. This is set automatically or manually (depending on the authentication type) on the property.
Ex.: if the authentication is by form, the value depends on what the programmer has set. If the authentication is integrated, the network user is taken automatically
http://forums.asp.net/p/1507047/3582459.aspx
|
By Blog User on
8/16/2010 10:00 PM
To emulate the behavior of IE7 in IE8 from the code (compatibility mode with previous version), you can specify the following Meta-Tag in Global.asax.cs
1
2
3
4
5
6
Private Sub Global_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.BeginRequest
'Set IE8 compatibility
If ConfigurationManager.AppSettings.Item("EmulateIE7") = "1" Then
Response.AppendHeader("X-UA-Compatible", "IE=EmulateIE7")
End If
End Sub
...
|
By Blog User on
8/16/2010 9:09 PM
Enterprise Library Caching application block
|
By Blog User on
6/2/2010 12:48 AM
The following article explains the functionality of that Users. They replace Users older than IIS 7.
IUSR replaces IUSR_[Machine Name]
IIS_IUSRS replaces IIS_WPG or Network Service
IIS_[Machine Name] is still there when FTP is installed with compatibility with IIS 6.
|
By Blog User on
5/21/2010 1:33 PM
The following link explains the different precompile options allowed by the .NET compiler. Some of them, facilitate the deployment of the Site because they produce a pre-compiled code, avoiding the initial delay when accessing to each page of the site.
http://msdn.microsoft.com/en-us/library/bb398860.aspx
|
By Blog User on
11/11/2009 2:25 PM
I've tried the VS 2003 on Windows 7 in Compatibility Mode with XP Service Pack 3 and it works very well.
|
By Blog User on
11/10/2009 7:11 PM
This guide explains how to configure an application that the Framework 1.1 uses of .NET with the IIS 7.0.
It's important to take into account that the IIS 7.0 isn't compatible with several tags of Web.Config, for example: 'system.webServer'.
|
By Blog User on
10/21/2009 1:47 PM
script language="javascript">
function CheckTypes(value, chkName1, chkName2)
{
var chkObj1 = document.getElementById(chkName1);
var chkObj2 = document.getElementById(chkName2);
chkObj1.disabled = value;
chkObj1.parentElement.disabled = value;
chkObj2.disabled = value;
chkObj2.parentElement.disabled = value;
}
script>
The problem was that the "parentElement" of each checkbox should also have been set. So, the tag "Span" that contains these checkbox has to be set. With the code above, the problem has been solved. ...
|
By Blog User on
7/29/2009 9:55 AM
The fields which type is Password, don't allow the assignment of text using the text propertie. To assign the text, it must be used:
txtPassword.Attributes["value"] = "text"
|
By Blog User on
7/15/2009 12:17 PM
|
By Blog User on
5/22/2009 6:53 PM
Disable Proxy for Local Connections
|
By Blog User on
12/30/2008 6:04 PM
I share you a link of a page that generates regular expressions in many languages.
|
By Blog User on
11/14/2008 1:41 AM
The following links refers to Tips for improving performance of applications developed in .NET
Some of them are basic, but others are quite interesting.
|
By Blog User on
9/12/2008 7:14 PM
To identify the features of non-standard browsers, it's necessary to define them previously in a .browser file.
This file may reside in the APP_Browser folder of our project or could be installed on the Web Server in the folder: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers.
If you haven't installed this last folder, you need to run the following command so that it would be installed:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regbrowsers.exe -i
|
By Blog User on
5/20/2008 12:56 PM
|
By Blog User on
5/20/2008 12:17 PM
This service allows users to get the quotation of a certain currency, referring to another.
If you are going to implement it on a project, you will need to analyze the availability of it and if it is upated.
|
By Blog User on
5/6/2008 12:53 PM
This command allows users to create a folder that is actually a link to an existing one.
The syntax is:
LinkD [origin] [destination]
Origin is the link to be created and destination is the existing physical folder.
|
By Blog User on
1/28/2008 4:41 PM
You can get the value through the form:
txtQty3.Text=Request.Form[txtQty3.UniqueID]
|
By Blog User on
7/10/2007 9:29 PM
This key that belongs to ASP NET 2.0 it's required to upload files larger than 256 bytes (its default value) so it's necessary to specify it to a larger size which shouldn't exceed the size of the MaxRequestLength (in KB)
Key:
RequestLengthDiskThreshold="10240" (bytes)
Be careful with the units!!! The requestLengthDiskThreshold is in Bytes and the MaxRequestLenght is expressed in KBytes
Example:
<httpRuntime executionTimeout="3800" maxRequestLength="40000" requestLengthDiskThreshold="400000"/>
|
By Blog User on
4/20/2007 4:22 AM
Percentages Validation
^100$|^100.0$|^100.00$|^\d{1,2}(\.\d{1,2})? *%?$|^\d{1,2}(\,\d{1,2})? *%?$
|