Showing posts with label dotnet. Show all posts
Showing posts with label dotnet. Show all posts

Saturday, February 09, 2008

Pushing limits with web services

There are several considerations when you call or provide a web service that can send a lot of data or take a long time.

In .Net you can set the timeout period to be higher.


Also in .Net... "When the amount of data send or received by the Web service exceeds 4 MB, configure the Web server to handle the larger amount of data."
How to: Enable a Web Service to Send and Receive Large Amounts of Data

Saturday, June 25, 2005

Rich Text Editor for asp.net

I was recently tasked with finding an editor for asp.net web pages that would allow formatting, much like the editor in blogger.

I looked at the FCK Editor, but was unable to figure out the installation. In the end I used Free Text Box.

Wednesday, May 11, 2005

Team System

In addition to Visual Studio 2005, MS will be rolling out a new suite of products called Team System. It includes Team Foundation server and three SKU versions of Visual Studio, namely Architect, Developer and Tester. Although there is a stand alone Visual Source 2005, Team Foundation Server includes a completely new Source Control sytem as well as integrated project and task management, process managment (eg. msf agile) and project reporting.

Team Server source control will address several of the long standing issues associated with VSS.
TSSC has parallel development, so you don't have to exclusively check out files.
TSSC has remote development so you can easily connect over web and don't have to be on the lan.
TSSC uses SQL Server under the covers so it's less likely to be corrupted and it supports atomic checkins.

Team Server is about $3,000. It integrates tightly into Visual Studio 2005 with a new "Team Explorer" window. Team Server can also integrate with MS Project, and Excel. In addition some features and reports can be accessed through a web based interface that is using sharepoint under the covers.

Tuesday, May 10, 2005

Scoop on Whidbey and refactoring

According to Bill Gates Visual Studio 2005 is coming out this summer, according to the Prashant Sridharan, the Senior Product Manager for Visual Studio, it will be the end of the year.

At any rate here is the low down on refactoring changes. VB will have refactoring features from a developers express plugin that is free w/ VS 2005, however the C# stuff will only have 5 refactoring options that the MS C# team wrote. Developer Express also has a C# plug in that has refactoring. It's $250, and there is no demo. It looks like it has lots of features, but they are missing support for pulling in using statements. However there is a user plug in that does this... Now that I have more ram I have got to get resharper or this developer express plugin.

Monday, May 09, 2005

Security Session

How to keep secrets in asp.net

suggestions are to keep passwords in one way hash using the primary key of user record as the salt.

use symmetric keys to store info like connection strings and credit card numbers. the dpapi is used to help store/hide keys, but if the machine crashes you will not be able to retrieve data. so you could use dpapi for data that you can recreate (like connection strings), but not for data that you can't recreate (like credit cards).

hiding the key for symmetric encryption is ultimately a network security issue. you can keep it in the registry, in a file, in the code (probably not the best place :), etc. where ever you put it be sure that only asp.net user has access, and that it is out of the web root. on a web farm it will be easier to deploy it in a file.

Sunday, May 08, 2005

VS Live

This week I will be blogging from VS Live in Las Vegas.
Changes for asp.net 2.0:

ViewState will be split into control state, and another state. This will mitigate the problem with cutting off viewstate to reduce it's size, but then breaking the functionality of the control.

There is a new feature called CrossPagePost Backs that allow forms to submit to other pages than itself. It also contains a mechanism to access the previous page in a type safe manner.

DataGrid will not being moving forward, and is being superceded by a new control called GridView.

AutoScroll on PostBacks

Master Pages is a new mechanism for building templates for web pages.

Themes is a new feature that seems to add little beyond what you can already do with css.

ADO.net
Sql Cache invalidation will allow data to be cached until it is notified that it has been modified.

C# 2.0
Generics will allow type safe collections.

Visual Studio Productivity Features:
There will be limited refactoring support built in to Whidbey. Currently there are five refactorings for C# including extract method.

Inserting of code snippets or templates is now supported. the shortcut is ? space.

There is a new web basesd ui that will change web.config file.

Friday, February 25, 2005

Removing VSS Integration out Visual Studio

After searching for quite some time I found how to remove VSS integration from VS in the google cache. I only did steps 1, 2, and 4 and it worked for me.

1. Clear the read-only attribute from all files

2. Delete all source safe files (*.scc, *.vspcc, and *.vssscc)

3. Edit each solution file (*.sln) and remove the section starting with

GlobalSection(SourceSafeControl) =3D preSolution
and ending with
EndGlobalSection

4. Edit each project file (*.csproj or *.vbproj) and remove the four
lines that begin with "Scc"

5. Edit each setup project file (*.vdproj) and remove each line that
begins with "Scc"


(Full credit to: David Neal at http://maxyourasp.com/)

Tuesday, February 22, 2005

object moved to here error on asp.net pages

I am having a sporadic problem with a page that does a Response.Redirect giving the error message "Object moved to here". Adding Response.BufferOutput = true; before the call to Response.Redirect() seems to have fixed it, but it's hard to tell since it isn't consistant.

Monday, February 21, 2005

disabling buttons in javascript with asp.net

Here is how to call Javascript that will disable a button after it is clicked to prevent double submission. The problem is that if you just disable it in javascript it messes up the postback.

LoginButton.Attributes.Add("onClick", "disableButtons();" +
GetPostBackEventReference(LoginButton).ToString());

Friday, November 22, 2002

in c# putting an @ in front of a string makes it a verbatim string. that means it doesn't try and use backslashes for escaping. ie. @"c:\MyFolderMySubFolder\MyFile.txt"