Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?

Archives
Steve Trefethen Steve's RSS Feed Subscribe or via email
What's this?
Contact me Send mail to the author(s)
About Me
View my LinkedIn profile

Add to Google
Subscribe with Bloglines
MCP Microsoft Certified Professional

Falafel Software
ActiveFocus Project Management Solution by Falafel Software
Online or OnSite TestComplete Training
Blogroll
Recent Comments
My Online Tools
Stats
Total Posts: 443
This Year: 48
This Month: 4
This Week: 1
Comments: 1552
Tags
Disclaimer
The posts on this weblog are provided �AS IS� with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer�s view in any way.
My most popular blog posts (Q1 2008)
 Monday, April 21, 2008

URL rewriting in ASP.NET and web.config settings

Posted @ 9:27AM by Steve Trefethen

Categories: ASP.NET | Blogging | Open Source

Tags:  |  | 

The other day I blogged about potentially switching to blogengine.net but one of the major issues is ensuring the URL’s I have in dasBlog either continue to work or redirect accordingly. To that end, I started investigating URL rewriters for ASP.NET and found this post of ScottGu’s very helpful. He mentioned two different Open Source rewriters and I opted for UrlRewriter.net which describes itself as:

UrlRewriter.NET is an open-source, light-weight, highly configurable URL rewriting component for ASP.NET 1.1 and 2.0. UrlRewriter.NET provides similar IIS Rewrite capabilities that the Apache web server provides with mod_rewrite and .htaccess. You don’t need to install an ISAPI Rewrite filter to use the component. Best of all, UrlRewriter.NET is free and licensed with a very permissive MIT-style licence.

I found it to be all of the above and the install/configuration to be very straightforward not to mention it has good online help and a support forum.

One caveat that I ran into though was that once installed at the root I started seeing this error in my other ASP.NET applications:

Server Error in '/blog' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Intelligencia.UrlRewriter' or one of its dependencies. The system cannot find the file specified. (E:\web\xxxxxxx\htdocs\web.config line 11)

Source Error:

Line 9:    <system.web>
Line 10:     <httpModules>
Line 11:       <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, 
Intelligencia.UrlRewriter" />
Line 12: </httpModules> Line 13: </system.web>

Source File: E:\web\xxxxxxxx\htdocs\web.config    Line: 11


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

The Fix

To fix this I added the following to the web.config files of my other ASP.NET applications removing the new assembly dependency:

1 <system.web> 2 <httpModules> 3 <remove name="UrlRewriter" /> 4 </httpModules> 5 </system.web>

If you’re aware of other options that don’t require changes to every web.config I’d love to hear about them. At any rate, while I haven’t decided to switch blog engines yet I now have the pieces in place to do just that.

What do you use for URL rewriting particularly in a hosted environment?
 Monday, January 14, 2008

Facebook Starter Kits for VS.NET updated

Posted @ 11:41PM by Steve Trefethen

Categories: ASP.NET | Development | Facebook

Tags:  |  | 

Since I’ve had a lot of interest in the VS.NET Starter Kits I created for the Facebook development I thought it worth mentioning I’ve updated both to their latest releases.

Facebook Developer ToolKit is now at v1.5 (starter kit download)

Facebook.NET is now at v0.3 (starter kit download)

Here are the relevant blog posts:

Visual Studio Starter Kit for Facebook application development

VS.NET starter kit for Nikhil Kothari’s Facebook.NET

Enjoy!
 Sunday, December 30, 2007

Microsoft's ASP.NET MVC framework will be great for Automated UI testing

Posted @ 10:12PM by Steve Trefethen

Categories: ASP.NET | Automation | Testing

Tags:  |  | 

I’ve written automated UI tests using Selenuim running against a large ASP.NET Web 2.0 ERP application with great success. However, IMO the single biggest productivity killer for writing such tests is ASP.NET WebForms ID name mangling where ID’s are changed from something like "lblSysMText" at design time to "ctl00_cphContents_dlMessages_ctl01_lblSysMText" at runtime. Fortunately, Selenuim supports the use of XPATH expressions so searching for the above tag can be done using the following:

//span[contains(@id, "lblSysMText")]

Name mangling is a huge problem and thwarts all sorts of automated test tools whether you’re using AutomatedQA's TestComplete or a something like Selenuim. Whenever you have a situation where a simple containership change like moving a control into a DIV can break an automated test you’ve got a problem. These sorts of changes occur all the time on WebForms which are actively being developed meaning unless your tests are written using a partial match logic, like what I’ve illustrated above, you’ll be faced with lots of bogus failures which not only kill productivity but undermine your test automation efforts as the tests will be viewed as fragile and a waste of time.

MVC to the Rescue

Scott Guthrie wrote:

This model view controller (MVC) framework for ASP.NET provides a structured model that enables a clear separation of concerns within web applications, and makes it easier to unit test your code and support a TDD workflow. It also helps provide more control over the URLs you publish in your applications, and more control over the HTML that is emitted from them.

With the MVC framework name mangling will be a thing of the past. I believe not only will the MVC framework make unit testing easier it will be a major win for automated UI testing for ASP.NET apps. You’ll no longer have to jump through hoops to figure out the ID of a given tag on the page.

Last but not least, with MVC style development you’ll finally be able to use ID’s like #lblSysMText in your CSS again.

 Thursday, December 20, 2007

Microsoft's MVC framework means you'll need to rethink your WebForm world

Posted @ 12:10PM by Steve Trefethen

Categories: ASP.NET | Development

Tags:  | 

With the advent of Microsoft’s new MVC framework for ASP.NET I think there will be a fairly significant impact on developers who have come to rely heavily on WebForms and related controls. I believe the new framework will require a significant "rethink" of how applications and controls are developed. If you watch Scott Hanselman’s video you’ll see he uses Rob Conery’s Mvc.ToolKit to flesh out the UI and notice that it doesn’t use the designer nor web controls at all.

The MVC framework is clearly going to change how the VS.NET web form designer will be used and certainly makes it less important. It will be interesting to follow the evolution of the framework and to see how MS updates the designer and code editor to fit this new (as in new to MS) model. It will also be interesting to see how 3rd party control companies like Telerik and Developer Express respond.

While at CodeGear I had frequent discussions with Jim Tierney (who I co-developed Delphi’s ASP.NET designer with) about moving Delphi’s designer away from being a WebForm centric because of the development costs involved and instead focus more on the code editing experience. I think the MVC style of development does just that and I expect Microsoft to come up with a number of improvements to the framework and tooling to better support it. I’ll be curious to watch what this means for Delphi’s ASP.NET support.

One thing I think is particularly interesting is with WebForms out of the way ASP.NET developers will be in a better position to leverage non-Microsoft AJAX frameworks such as Dojo, Prototype etc. etc.

Kudos to Microsoft for following through on this much needed alternative to WebForms!
 Thursday, November 15, 2007

Facebook Developer Toolkit v1.3 Starter Kit updated

Posted @ 11:01PM by Steve Trefethen

Categories: ASP.NET | Facebook

Tags:  | 

I’ve updated my Facebook Starter Kit to version 1.3 of the Facebook Developer Toolkit published by Microsoft available on CodePlex. I also cleaned up the code and moved the Appkey and Secret so their read from web.config.

Btw, I’ve had a few questions in email about how to fetch a friend list which can be done as follows:

if (!IsPostBack)
{
System.Collections.ObjectModel.Collection
<User> userinfo = _fbService.GetUserInfo(_fbService.UserId); Label1.Text = "Hi, " + userinfo[0].FirstName;
Image1.ImageUrl
= userinfo[0].PictureUrl.ToString();

// Use the FacebookService Component to populate Friends System.Collections.ObjectModel.Collection<User> Friends =
_fbService.GetFriends();
for (int i = 0; i < Friends.Count; i++)
DropDownList1.Items.Add(Friends[i].FirstName.ToString());
}

If you haven’t seen it I’ve also created a starter kit for Nikil Kothari's Facebook.NET framework so be sure to take a look a that as well.

Enjoy!

 Tuesday, July 31, 2007

Automated testing of ASP.NET web applications using Selenium

Posted @ 1:06AM by Steve Trefethen

Categories: .NET | AJAX | ASP.NET | Automation | Continuous Integration | Open Source | Quality | Recommended | Testing | Tools

Tags:  |  |  |  |  |  |  |  |  | 

Lately, I've been focused on Web Application testing frameworks and I've been looking at a number of different options and having varying degrees of success. That is, of course, until I started looking at Selenium after Lino mentioned it to me and I'm very impressed. Selenium is an open source project with multiple tools designed for testing web applications. Selenium includes:

  • Selenium IDE an add-on to Firefox use for recording test scripts
  • Selenium RC (Remote Control) a Java server used for execution of test scripts
  • Selenium Core client side testing support for web applications added directly to your application
All of these are interesting in their own right so be sure to look closely at each piece.

Selenium IDE

Selenium IDE
The Selenium IDE is a non-modal dialog add-on for Firefox that supports Selenium test development. In fact, it's more than fair to call this single dialog an IDE because it fully supports recording, development and debugging of test scripts. Additionally, it can format test scripts in any of the following for use with Selenium RC:
  • HTML
  • Java
  • C#
  • Perl
  • PHP
  • Python
  • Ruby

A Selenium test script consists of a series of Commands which have a Target and optionally a Value. For example, browsing to a web page using Selenium consists of the following:

Command: open
Target: http://localhost/myapp

To click on a link titled "About" on a page the Command might look like this:

Command: clickAndWait
Target: link=About

This will initiate the click and wait until the new page is done loading. There are literally hundreds of commands to choose from covering input (both keyboard and mouse), control manipulation, drag/drop, evaluation, verification, waiting, browser manipulation and just about anything else you'll need.

If you've done any UI testing at all you're familiar with the challenge of manipulating a UI programmatically in a manner independent from of the size, position or location of the control you're trying to manipulate. Selenium solves this problem using XPATH and providing the ability to locate controls based on XPATH expressions alleviating the need to hard code HTML tag structure into a test script. This is particularly crucial for ASP.NET testing since the runtime mangles the ID attributes of rendered tags. For example, the ASP.NET runtime may render ID attributes that look like:

id="ctl00_cphContents_gridMaint_DataGrid"

Finding this control using an XPATH expression can be simplified to something like this:

//table[contains(@id, "gridMaint")]

In the event the nesting of the DataGrid changes the script will continue to function properly as long as table's ID contains the text "gridMaint".

Example of using the Find button on the Selenium IDE

Notice the link is highlighted in the browser

Playing back tests using Selenium TestRunner

The Selenium IDE has a toolbar button that will launch a feature called TestRunner which allows you to playback your tests using controls hosted in an IFRAME inside your browser. Here's what it looks like:

Selenium TestRunner

You can playback your entire test from right within your browser. It's like having the IDE built right into your application.

Selenium RC

Next, is Selenium RC which is a Java server application used execute Selenium tests and drive a browser instance through AJAX communication with the browser. To start Selenium RC simply execute the following from a command prompt:

java -jar selenium-server.jar -interactive

Since I'm focused on .NET I'll discuss the C# approach. Once you've recorded and debugged your test you can capture it as C# and compile it into an NUnit compatible assembly where upon execution it will drive Selenium RC to manipulate the web application through a browser instance running on your desktop. Here is an example of the above recorded test in C#:

1 using System; 2 using System.Text; 3 using System.Text.RegularExpressions; 4 using System.Threading; 5 using NUnit.Framework; 6 using Selenium; 7 8 namespace SeleniumTests 9 { 10 [TestFixture] 11 public class NewTest 12 { 13 private ISelenium selenium; 14 private StringBuilder verificationErrors; 15 16 [SetUp] 17 public void SetupTest() 18 { 19 selenium = new DefaultSelenium("localhost", 4444, "*firefox", 20 "http://localhost:4444"); 21 selenium.Start(); 22 verificationErrors = new StringBuilder(); 23 } 24 25 [TearDown] 26 public void TeardownTest() 27 { 28 try 29 { 30 selenium.Stop(); 31 } 32 catch (Exception) 33 { 34 // Ignore errors if unable to close the browser 35 } 36 Assert.AreEqual("", verificationErrors.ToString()); 37 } 38 39 [Test] 40 public void TheNewTest() 41 { 42 selenium.Open("/selenium-ide/"); 43 selenium.Click("link=About"); 44 selenium.WaitForPageToLoad("30000"); 45 } 46 } 47 } 48

Generation of NUnit compatible tests is great because it makes it really easy to incorporate Selenium test suites into a continuous integration environment like CruiseControl.NET.

Conclusion

If you're in need of a web application testing framework you owe it to yourself to check out Selenium. I'd go so far as to say if you're doing doing any web related development and you're not already using Selenium you should stop right now and go download it. Here are there RSS feeds.

After playing with Selenium for about an hour I was easily able to:

  • Record tests against a RIA
  • Build a C# NUnit compatible assembly to drive Selenium RC
  • Integrate the tests into an automated build using CruiseControl.NET

Since then I've been able to really dig in and accomplish a lot of work in a very short period of time. The next step is to build up a nice battery of tests and dig into NCover to help figure out where the holes are.

Lastly, I just want to tip my hat to the ThoughtWorks and volunteers and supporters of the Selenium project. Kudos for such a great framework!

 Tuesday, July 17, 2007

Visual Studio Starter Kit for Facebook application development

Posted @ 1:08AM by Steve Trefethen

Categories: ASP.NET | Development | Facebook

Tags:  |  | 

I've created a Visual Studio Starter Kit for developing Facebook applications in ASP.NET using C#. This isn't necessarily new though this post title more accurately describes the download. I'd never created a Start Kit before and in fact, it was easier than I thought. I've been following Internet Searches people use to find my blog and "Facebook" as a search term is certainly picking up and it seems many, many people are blogging about FB these days.

Let me know if you have any problems or suggestions for improvements.

 Sunday, June 10, 2007

Developing Facebook applications in C# with ASP.NET

Posted @ 2:04AM by Steve Trefethen

Categories: ASP.NET | Development | Facebook

Tags:  |  | 

I mentioned previously I've created my first Facebook (FB) application (which is still under development) but I've learned a lot along the way. I haven't found the Facebook documentation very useful at all and have gleened a lot through Google, the Facebook developer group and simply tinkering with things. As a result I've put together some steps I think could help save you some time if you're looking to write a Facebook application using ASP.NET and C#. Btw, you'll get no help from facebook.com regarding ASP.NET development.

One thing that took me awhile was understanding how an FB application appears on your profile page. I eventually realized that FBML can be used to push markup onto a users profile page. This block of markup can be set at the time you create a new application though the first time around, if you're like me, this may see a bit confusing keep in mind I'm new new to FB itself so a lot of this was confusing. From the FB toolkit you can also use the method setFBML to programmatically set this block of markup. Needless, to say being used to MSDN documentation FB doc leaves a lot to be desired. That said there are a few tools you can use to play with the API as well as sample your FBML markup.

Facebook start app screenshot

At any rate, here are the steps I followed to get my application working. Note, the project includes support for Microsoft AJAX so you'll want to have that installed as well although you could just tweak the .aspx and web.config files and use it without AJAX. The screenshot illustrates what you should get when your done. NOTE: In the following steps several links won't work unless you have an FB account.

UPDATE: I've created a new page on my wiki with updated steps and a VS.NET starter kit to make this much easier.

  1. Sign up for a Facebook account
  2. Add the Developer application to your account (you need an account for that link to work)
  3. Click Developer application from the left column and select click Set Up New Application
  4. Enter the Application Name and expand Optional Fields
  5. Under Optional Fields
    1. Set your callback URL http://localhost... will work just fine for development
    2. Select "Use iframe"
    3. Click Yes for "Can your application be added on FaceBook"
  6. Under Installation Options
    1. Check "Developer Mode"
    2. Under Site Nav use the same URL from Canvas Page URL (see Optional Fields)
    3. If you use my template set Edit URL to your Canvas Page URL + /settings
  7. Click Save then from the Developers Application browse to My Applications
  8. Click View About Page then click Add Application. This will allow you to easily work with your application during development.
  9. Download the Facebook Developer Toolkit from Microsoft
  10. Download my C# ASP.NET app to get you started or generate the boilerplate code for handling login (sorry I don't do VB.NET)
  11. You'll need to add a reference to the Facebook assemby to this project as I didn't want to include it as it being updated frequently right now
  12. Open Default.aspx.cs and fill in FACEBOOK_APPKEY and FACEBOOK_SECRET from your application's page on Facebook.
  13. Fire up the browser and hit your http://apps.facebook.com/<your_app_name> and you're off!

Please let me know what problems you have or let me know if these steps need tweaking.

Was this helpful?

[Updated: June 11, 2007] Added link to an update page on my wiki with this content.

[Updated: Feb. 24, 2008] Since this post was written I've created two VS.NET starter kits, one for Facebook Dev Toolkit and Facebook.NET. Here are some additional links:
 Wednesday, March 07, 2007

Fixing ASP.NET error: The state information is invalid for this page and might be corrupted.

Posted @ 9:48PM by Steve Trefethen

Categories: ASP.NET | dasBlog | Hosting | Recommended

Tags:  |  |  | 

I've been running dasBlog for several months now and I'd been having problems with my login timing out very quickly. I added a HealthMonitoring section to my web.config so as to get email notifications when errors occurred. Right away I noticed that simply refreshing the browser could trigger an authentication error like:

Forms authentication failed for the request. Reason: The ticket 
supplied was invalid.

I Googled for ways to resolve these errors and found this article from my hosting provider no less. I then used the online machinekey generator and added it to my web.config and my dasblog login errors were history as well as the invalid viewstate problems! Basically, the key used for encrypting the authentication information was getting changed between request as a result of either the server or the ASP.NET worker process being recylced.

<providerplug>
You can probably tell I really like DiscountASP.NET they've got a great options, a great control panel (which is frequently enhanced) and they have some great technical staff who post to their support forums. I've gone so far as to join their referral program, so if you sign up please use the link above which includes my referral ID to let them know I sent you!
</providerplug>

 Friday, January 19, 2007

Delphi ASP.NET AJAX demo fixed on CodeCentral

Posted @ 10:23AM by Steve Trefethen

Categories: .NET | AJAX | ASP.NET

Tags:  |  | 

Doh! I just realized one of the Delphi ASP.NET AJAX demos I posted to CodeCentral is missing the actual download zip file. I just fixed the problem so if you're interested you can get it here: Updated: I just uploaded both of these demos to my website so now you can actually see the Delphi versions live (yet another advantage of hosting my own blog). Here are the links: Update: Fixed the spelling of Delphi in this blog entry (doh!)
 Saturday, December 30, 2006

ASP.NET error: Unrecognized configuration section 'connectionStrings'

Posted @ 9:22PM by Steve Trefethen

Categories: ASP.NET

Tags:

I've run into this ASP.NET 1.1 error countless times and at least one of the reasons it occurs is that the IIS virtual directory is set to use the 1.1.4322 version of the .NET framework instead of 2.0. There are a few ways to correct this problem:

From the command line:

from:

c:\windows\Microsoft.NET\framework\v2.0.50727

aspnet_regiis -s w3svc/1/root/<virt_dir>

Where <virt_dir> indicates the name of the virtual directory

Using the MMC snap-in for IIS:

  1. From the Start menu select Administrative Tools|Internet Information Services (refer to "Select Taskbar and Start Menu" from this post for information how to enable this menu item)
  2. Open up the treeview to the virtual directory where the error message occurs
  3. Right click the virtual directory and select properties
  4. Click the ASP.NET tab
  5. Using the drop down change ASP.NET Version to 2.0.50727
Update: Tweaked the font size of the above command-line to fix rendering in IE.
 Sunday, December 24, 2006

Blog comment attacks blocked by ASP.NET's ValidateRequest feature

Posted @ 10:08PM by Steve Trefethen

Categories: ASP.NET | Blogging

Tags:  | 

For several days now the logs for my blog are showing the ASP.NET error message "A potentially dangerous Request.Form value was detected from the client" which is ASP.NET's way of preventing potentially harmful postbacks that are coming from the comment form used here on my blog. This is probably one of those features that people love to hate but in this case I think it's quite effective. For more information see ValidateRequest.

 Wednesday, November 08, 2006

Learning all about ASP.NET 2.0's size and complexity

Posted @ 7:20AM by Steve Trefethen

Categories: ASP.NET

Tags:

I started working with ASP.NET 2.0 well before the "go-live" license which came out around March of 2005. Throughout its development I've read ASP.NET books/blogs, watched lots of online presentations, downloaded and tried tons of demos, written my own demo and sample websites and even done some contracting work building an ASP.NET site and frequently I still think there is more I don't know than what I do. What I do know can be summed up in two words: It's huge.

ASP.NET 2.0 is simply immense and getting larger with each passing month as Microsoft adds things like CSS control adapter, AJAX support along with the new AJAX control toolkit to name a few. The web is evolving so quickly I give kudos to MS for trying to keep pace and in a some ways to catch up.

That said, Jim Tierney and I worked on the ASP.NET 1.1 designer that currently ships in the BDS IDE and we've been discussing for a long time the complexities of ASP.NET 2.0 development and what it means to the BDS developer. If you've been doing development with ASP.NET I'd love to hear from you about how you develop web sites and what technology.

 Wednesday, November 01, 2006

AJAX/RSS examples uploaded to code central

Posted @ 1:14PM by Steve Trefethen

Categories: AJAX | ASP.NET | Delphi | RSS

Tags:  |  |  | 

I'm not sure why I hadn't done this before but I just uploaded the two Delphi for .NET AJAX examples and my recent Windows RSS Platform example to CodeCentral. You can find links for all of these downloads on my author page. The examples include:

Updated Jan 19, 2007: Fix URLs

 Saturday, October 14, 2006

Resolving "Access Denied" errors in the BDS ASP.NET designer with IE7 installed

Posted @ 7:44AM by Steve Trefethen

Categories: ASP.NET

Tags:

Here is a Windows Registry file (.reg) that you'll need to add to your registry if you using the ASP.NET/HTML features of BDS when IE7 arrives. Without this registry key you'll see "Access Denied" error messages in the IDE. For more details refer to my previous posts here and here.
 Saturday, September 02, 2006

Internet Explorer 7 (IE7) and C#Builder, Delphi 8, BDS 2005 and BDS 2006

Posted @ 8:54AM by Steve Trefethen

Categories: ASP.NET

Tags:

In my last blog post I mentioned an issue with IE7 and BDS where the ASP.NET designer fails to load with an "Access Denied" error and I also updated that post with the workaround though I feel it's important enough to have it's own post. It turns out that this is "as designed" by Microsoft and to get around the issue people will need to use the following workaround in order to get the IDE working again. Here is what Microsoft had to say about the problem:
After further investigation, it looks like this is an issue with the object caching feature, which was enabled by default for all applications in IE7.

To resolve the issue, we recommend turning off this feature for your applications with the FeatureControl keys. Information on how to do this is available in the MSDN article: Security and Compatibility in Internet Explorer 7.

Btw, I'd like to thank Microsoft and the IE compatibility team, they've been very helpful working to resolve issues related to IE7.

 Thursday, January 19, 2006

An AJAX example in Delphi with ASP.NET using MagicAJAX.net

Posted @ 9:31AM by Steve Trefethen

Categories: AJAX | ASP.NET

Tags:  | 

I've been playing with AJAX a lot lately and thought it would be good to post an AJAX example using Delphi for .NET. There are lots of AJAX libaries/frameworks available and the one I've chosen for this example is magicAJAX.net. Rather then reinvent the wheel I've taken this example and converted it to use Delphi.

I'm going to assume you'll be running this example from IIS. To get this example to work in Delphi for .NET you'll need to do the following:

  1. Grab the magicAJAX.net download from here. All you're really going to need is the magicajax.dll assembly.
  2. Download the Delphi example source code here
  3. Unzip delphi_magicajax.zip into \inetpub\wwwroot (it contains a directory called DelphiMagicAjax)
  4. Create a virtual directory under IIS and point it at the directory created above
  5. Under \inetpub\wwwroot\DelphiMagicAjax create a directory called "bin"
  6. Unzip magicajax.dll from the download in step 1 into the bin directory created above
  7. Start the IDE and open DelphiMagicAjax.bdsproj
  8. From the Project Manager right click References and select Add Reference and add magicajax.dll
  9. Compile and run the project, you should see a page that looks like this
To add the magicAJAX.net panel to your palette:
  1. Select Component | Install .NET Components...
  2. Click Select an Assembly and locate magicajax.dll and click OK
For more information check out the magicAJAX.net website.

Tags:

 Friday, December 09, 2005

Easily edit ASP.NET template controls using the Delphi Tag Editor

Posted @ 9:36AM by Steve Trefethen

Categories: ASP.NET

Tags:

One feature I've mentioned but haven't directly discussed is Delphi's HTML/ASP.NET Tag Editor window. This is a small code editor at the bottom of the HTML/ASP.NET designer that displays the markup of the selected tag. In Delphi 2006 the Tag Editor includes the following features:
  • Live markup tag editing including ASP.NET controls
  • Code completion
  • Markup error insight
  • Tag zooming or the ability to "zoom" out to the selected tag's parent up to the tag
  • Designer tag highlighting (see the yellow region on the designer below) so it's easier to see what markup is reflected in the tag editor
Here is a screenshot of the ASP.NET designer including the Tag Editor (click to zoom):

This screenshot highlights many features of the Tag Editor including error insight, code completion and designer tag highlighting. Additionally, if you've worked with ASP.NET at all you can appreciate the fact that the Tag Editor makes it easy to edit things like asp:datalist templates without having to switch back and forth between the designer and the code editor.

The Tag Editor isn't limited to editing existing markup as you can easily enter any new markup and immediately see the results in the designer.

 Tuesday, September 27, 2005

ASP.NET features in Dexter (the next release of Delphi)

Posted @ 9:44AM by Steve Trefethen

Categories: ASP.NET | Delphi.NET

Tags:  | 

In light of the public display of the roadmap I thought I'd mention a few of the improvements to the product in relation to the HTML/ASP.NET designer. As I've mentioned before a major focus on this release