CodeRush Xpress for C#

10. November 2008 13:24
Developer Express and Microsoft have arranged a free copy of limited features from CodeRush and Refactor! Pro that is available for C# developers using Visual Studio 2008. You can read about the details here:

http://msdn.microsoft.com/en-us/vcsharp/dd218053.aspx

Here are some of the features included in this extensive and quite powerful package:

  • Find any File or Symbol...
  • Tab to Next Reference
  • Expand/Shrink Selection
  • TDD-Style Intelligent Declaration Based on Usage
  • Professional Grade Refactorings
  • Editor Features
  • Navigation Features
  • Smart Cut
  • many more....

Currently rated 2.0 by 1 people

  • Currently 2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net

Text to Speech Add-in for Microsoft Word 2007 with Visual Studio 2008

28. October 2008 07:49


Visual Studio 2008 contains Office tools allowing developers to set up customary components (such as add-ins, for example) for Microsoft Office System applications writing code.

Writing custom components is quite straightforward and easy to discern due to the powerful environment provided by Microsoft Visual Studio 2008 and .NET Framework 3.5.

Additionally, while not being restricted to a small set of libraries or user controls, it is possible to incorporate various technologies, thus making the best use of .NET Framework in your Office solutions.

For instance, you could create a custom component for Microsoft Word 2007 and integrate Text-to-Speech capabilities which would enable your (or your customer’s) computer to verbalize a Microsoft Word text.

In this article (Click Here) from MSDN you will be exposed to the techniques of creating a custom task pane for Microsoft Word 2007 and, subsequently, combining it with the Text-to-Speech facilities offered by .NET Framework since version 3.0.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net

ASP.NET Basics

27. October 2008 20:34

ASP.NET Special Folders

Bin                               Contains assemblies used by the web application

App_Code                      C# or VB source code that is common to the web site.

                                    Utility classes, modules BasePages etc.

App_Data                       SQLExpress databases used by the web site.

App_GlobalResources      Resources shared across all pages and controls.

App_LocalResources        Resources specifi c to a page or control

App_WebReferences       References to web services

App_Themes                 Contains .skin, .css and image fi les used for the themes of the site.

App_Browsers                Optional .browser capabilities files.

ASP.NET Common Page and Control Directives

<%@ Page Language="C#" %>
<%
@ Page Language="VB" %>
<%
@ Page Language="C#" CodeFile="Page1.ascx.cs" Inherits="Control1" %>
<%
@ Page Language="VB" CodeFile="Page1.ascx.vb" Inherits="Control1" %>

<%@ Control Language="C#" %>
<%
@ Control Language="VB" %>
<%
@ Control Language="C#" CodeFile="Page1.ascx.cs" Inherits="Control1" %>
<%
@ Control Language="VB" CodeFile="Page1.ascx.vb" Inherits="Control1" %>

<%
@ Register TagPrefi x="uc1" TagName="Control1" Src="Control1.ascx" %>
<%
@ Register TagPrefi x="lvs" Namespace="Lvs.Web.UI" Assembly="Lvs.Web" %>

<%
@ Import Namespace="System.Data" %>

<%
@ OutputCache Duration="60" VaryByParam="none" %>
<%
@ OutputCache Location="Server" VaryByParam="param1;param2" Duration="60" %>
<%
@ OutputCache Location="None" NoStore="true" %>

ASP.NET Code Blocks

Inline code block                                                                          
<% Response.Write("Hello World"); %>

Inline render bloc                                                                         
<%= string.Format("2+2={0}", 2+2); %>

Data binding expression block                                                        
<%# Container.ItemIndex %>

Expression block                                                                          
<%$ Resources:String, Hello %>

Page level code. Methods, properties, variable and event handlers.   
<script runat="server"></script>

ASP.NET Markup and Code in Separate Files. "code behind model"

<%@ Page Language="C#" ClassName="Page1_aspx" Inherits="Page1" CodeFile="Page1.aspx.cs" %>

ASP.NET Resources

protected void Page_Load(object sender, EventArgs e)
{
Label1.Text=Resources.
Strings.Hello;
}

<asp:Label ID="Label1" Text="<%$ Resources:Strings, Hello %>" runat="server" />

ASP.NET App Settings

<appSettings>
    <add key="MyKey" value="MyValue" />
</
appSettings>

ASP.NET Connection Strings

<connectionStrings>
    <
add
        name="LocalSqlServer"
        connectionString="
            data source=.\SQLEXPRESS;
            Integrated Security=SSPI;
            AttachDBFilename=|DataDirectory|aspnetdb.mdf;
            User Instance=true
"
        providerName="System.Data.SqlClient"
    />
</
connectionStrings>

ASP.NET Authentication

<authentication mode="Windows" />

<
authentication mode="Forms">
    <
forms
       
loginUrl="Login.aspx"
        defautUrl="Page1.aspx"
        cookieless="AutoDetect"
        domain="mydomain.com"
        requireSSL="true"
    />
</
authentication>

ASP.NET Authorization

<authorization>
    <!--
Deny anonymous users -->
    <
deny users="?" />
    <!--
Allow all authed users -->
    <
allow users="*" />
    <!--
Allow admin role -->
    <
allow roles="Admin" />
</
authorization>

ASP.NET Custom Error Pages

<customeErrors mode="RemoteOnly"
                      defaultRedirect="MyErrorPage.htm">
    <
error statusCode="403" redirect="NoAccess.htm" />
    <
error statusCode="404" redirect="FileNotFound.htm" />
</
customErrors>

ASP.NET Default Settings for Pages

<pages
    theme="MyTheme"
    styleSheetTheme="MyTheme"
    autoEventWireup="true"
    masterPageFile="MyMaster"
    pageBaseType="MyBasePage"
    userControlBaseType="MyBaseControl"
>
    <
controls>
        <
add tagPrefix="uc"
                t
agName="MyControl"
                src="~/Controls/MyControl1.ascx" />
       <
add tagPrefix="pfx"
               tagName="MyAssembly"
               src="My.Namespace" />
    </
controls>
    <
namespaces>
        <
add namespace="System.Text" />
    </
namespaces>
</
pages>

ASP.NET Providers

<membership>
    <
providers>
        <
clear />
        <
add
            name="AspNetSqlMembershipProvider"
            type="System.Web.Security.SqlMembershipProvider,
                System.Web,
                Version=2.0.0.0,
                Culture-neutral,
                PublicKeyToken=b03f5f7f11d50a3a" 
            connectionStringName="LocalSqlServer"
            enablePasswordRetrieval="false"
            enablePasswordReset="true"
            requiresQuestionAndAnswer="true"
            applicationName="/"
            requiresUniqueEmail="false"
            passwordFormat="Hashed"
            maxInvalidPasswordAttempt="5"
            minRequiredPasswordLength="7"
            minRequiredNonalphanumericCharacters="1"
            passwordAttemptWindow="10"
            passwordStrengthRegularExpression=""
        />
   
</providers>
</membership>

<profile>
    <providers>"
        <
clear />
        <add
            name="AspNetSqlProfi leProvider"
            connectionStringName="LocalSqlServer"
            applicationName="/"
            type="System.Web.Profi le.SqlProfi leProvider,
                     System.Web,
                     Version=2.0.0.0,
                     Culture-neutral,
                     PublicKeyToken=b03f5f7f11d50a3a"
    </providers>
</profi le>

<
roleManager>
    <providers>
        <
clear />
        <add
            name="AspNetSqlRoleProvider"
            connectionStringName="LocalSqlServer"
            applicationName="/"
            type="System.Web.Profi le.SqlRoleProvider,
                     System.Web,
                     Version=2.0.0.0,
                     Culture-neutral,
                     PublicKeyToken=b03f5f7f11d50a3a"
    </providers>
</roleManager>

 

 

 

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | ASP.NET



Powered by BlogEngine.NET 1.4.5.0