Feb 20 2009

Connection Creation on Windows Vista and Windows Server 2008

Category: Windows Server 2008 | Windows VistaBil@l @ 17:08

I have been encountering a problem lately on my Windows Vista and Windows Server 2008 laptops whenever I try to create a new connection from the Network and Sharing Center applet. The message that I receive is:

"The wizard cannot create the connection"

After so many googling I found out that two main services should be enabled & started to be able to create a connection, regardless of the type of the connection. The services are:

  1. Telephony
  2. Remote Access Connection Manager

Just enable and start the above two services and that's it. Your problem is solved.

 

Hope this helps,
Regards

Tags: ,

Feb 20 2009

Microsoft® Silverlight™ Tools for Visual Studio 2008 SP1

Category: silverlight 2.0Bil@l @ 13:27

A new update has been published recently for the Silverlight 2.0.

Read more here: Silverlight 2 GDR1 Now Available...

 

Happy Silvering ;)

Regards

 

 

 

Tags:

Feb 20 2009

Silvelright 2.0 GDR1 Released

Category: silverlight 2.0Bil@l @ 13:27

A new update has been published recently for the Silverlight 2.0.

Read more here: Silverlight 2 GDR1 Now Available...

 

Happy Silvering ;)

Regards

 

 

 

Tags:

Feb 8 2009

How to Popup a Centered Window from inside Silverlight?

Category: silverlight 2.0Bil@l @ 18:48

You have always used JavaScript to pop up Windows from an ASP.NET or HTML page. Now the question comes to my mind, how to show a Popup Window from inside Silverlight territories.

It is so simple! Silverlight contains a class, System.Windows.Browser.HtmlPage, that allows access to the Browser's Document Object Model. It has a method called PopupWindow, that allows a Silverlight developer to open a Popup Window from inside Silverlight.

A sample code can help understand this better:

            HtmlPopupWindowOptions options =
                new HtmlPopupWindowOptions();
            options.Directories = false;
            options.Toolbar = false;
            options.Status = false;
            options.Menubar = false;
            options.Location = false;
            options.Width = 400;
            options.Height = 400;
            options.Top = (Convert.ToInt32(HtmlPage.Window.Eval("screen.height")) - options.Height)/2;
            options.Left = (Convert.ToInt32(HtmlPage.Window.Eval("screen.width")) - options.Width) / 2;
            HtmlPage.PopupWindow(new Uri("http://www.silverlight.net"), "_blank", options);

 

Notice the bolded words above. The HtmlPopupWindowOptions class allows you to set options for the Window that is to be opened. For example, show/hide the Toolbar, Menubar, etc ...

The HtmlPage.PopupWindow is the method that you can use to show the Popped up Window. It takes as input, a URI representing the URL to open, the target of the Popup Window and finally an instance of the HtmlPopupWindowOptions.

Notice how I used the HtmlPage.Window.Eval method to evaluate ANY JAVASCRIPT code you want. In this case, I wanted to grab the "Screen.Width" and "Screen.Height" to use them to center the Popped up Window.

That's it. Now you have a Centered Popup Window triggered from inside Silverlight application.

Hope this helps,
Regards

 

Tags:

Feb 3 2009

New Demo Application in ASP.NET MVC

New Demo Application in ASP.NET MVC

Check out Telerik's new demo application, a fully functional online forum, which demonstrates tight integration between ASP.NET MVC, RadControls for ASP.NET AJAX and OpenAccess ORM...

 

Hope this helps,
Regards

Tags: , , , ,

Feb 2 2009

How to center the Silveright application inside the ASPX page

Category: silverlight 2.0Bil@l @ 21:29

A very simple CSS trick to center the Silverlight application, check the following:

<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%;">
<head runat="server">
    <title>SilverlightDataGrid</title>
    <style type= "text/css">
        body { text-align: center; }
        div#container { margin-left: auto; margin-right: auto; width: 50em; }
    </style>

</head>
<body style="height:100%;margin:0;">
    <form id="form1" runat="server" style="height:100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div id="container" style="height:100%;">
            <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/SilverlightDataGrid.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" />
        </div>
    </form>
</body>
</html>

 Notice the bolded sections above. This is enough to center your application in the middle of the ASPX page.

 

Hope this helps,
Regards

Tags:

Feb 1 2009

How to configure IIS 7.0 to run and process WCF Services

Category: WCF ServicesBil@l @ 14:35

By default, IIS 7.0 is not configured to run WCF Services. To allow IIS 7.0 to handle those services, two configuration settings are to be added either on the Application Level or the Default Web Site Level on IIS 7.0. For this post, I will show you how to configure IIS 7.0 to run WCF Services on the Default Web Site Level:

Click on the Default Web Site node, you will get a list of all applet icons on the right side.

  1. Double click on the MIME Types applet. On the Actions menu, click on the Add menu item. A window pops up, enter the following information:

    File name extension: .svc
    MIME type:  application/octet-stream

  2. Click again on the Default Web Site node on the left side, then double click on the Handler Mappings applet icon on the right side. On the Actions menu, click on the Add Managed Handler. A window pops up, enter the following information:

    Request path: *.svc
    Type: System.ServiceModel.Activation.HttpHandler
    Name: svc-Integrated

That's all what you need to do to allow IIS 7.0 to handle and process WCF Services.

Hope this post helps,
Regards

 

Tags:

Jan 28 2009

A Guide to Learning ASP.NET MVC Release Candidate 1

Category: ASP.NET MVC RC 1Bil@l @ 08:10

As you know ASP.NET MVC Release Candidate 1 has been released and a very good guide for you to learn it, is to follow this guidelines, by the LEGEND!

A Guide to Learning ASP.NET MVC Release Candidate 1

 

Hope this helps,
Regards

Tags:

Jan 23 2009

IIS 7.0 Configuration Reference

Category: IIS 7.0 | IIS 7.0 Configuration SystemBil@l @ 21:31

IIS 7.0 introduced a new configuration system that is based on XML similar to that in ASP.NET.

I discussed this new configuration system in my book ASP.NET 3.5 Security, Membership and Role Management with C# and VB. However, I noticed on the IIS 7 website, a new page that is dedicated to explain all the XML elements in details.

Check it out at: http://www.iis.net/configreference

Enjoy!

Tags: ,

Jan 23 2009

Thumbnails not showing/previewing in Windows Explorer - Windows Server 2008

Category: Windows Server 2008Bil@l @ 21:18

I have always found it bothering not to be able to view the image thumbnails inside Windows Explorer in Windows Server 2008. What I did to solve the problem and be able to view the thumbnails, is go do the following:

  1. Inside Windows Explorer, go to Tools menu
  2. Select *Folder Options*
  3. Select the *View* tab
  4. Deselect the first checkbox "Always show icons, never thumbnails"

That's all what you need to do :)

 

Regards

Tags: