Patrick Wright's Blog RSS 2.0
# Saturday, December 26, 2009

 

 

I bought myself a new monitor and new new video card to push it.  This monitor will join my two 24 inch Sansungs on my main machine.  I planned to use the new video card to push the new HP monitor and use an old 9800 GT to push the two Samsungs.  I was a little worried about mixing the ATI card with the Nvidia card but a little research on the internet put me at ease.  I read that Vista cannot use two video drivers but Windows 7 can…  My card arrived I downloaded the latest drivers and tried to install them.  The installation program did not work!! I ran it a number of times with the same result,  the installation would just stop.  No error, it would just stop.  I was sick!   I checked the event log and found this.

image

Not much help.  I did some digging on the internet and found a post on forums.amd.com that helped.  I found out that because I am running a64 bit OS I need to install the drivers from the command line.

ATISetup.exe –Install –output screen

The command line installation did the trick!  Why did ATI do this?  If they are going to release an installation program that does not work on a 64 bit OS some instructions in the box would be good. 

Saturday, December 26, 2009 11:23:03 PM (Eastern Standard Time, UTC-05:00)  #    Comments [1] -

# Saturday, December 12, 2009
del.icio.us Tags: ,

I was creating a very simple page  to play around with the Update Panel when I came across a weird error.  

The page uses an Asynchronous post back trigger on an update panel to control the updating of the panel.  Seems simple enough but I ran into trouble.  The code I tried to run is below.

<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Label ID="Label1" runat="server" Text="Label" Width="300"></asp:Label>
        <asp:UpdatePanel ID="MyPanel1" runat="server">
            <ContentTemplate>
                <p>
                    <hr />
                    <asp:Label ID="Label2" runat="server" Text="Label" Width="300"></asp:Label>
                    <hr />
                </p>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="MyButton" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <p>
            <asp:Label ID="Label3" runat="server" Text="Label" Width="300"></asp:Label>
        </p>
        <p>
            <asp:Label ID="Label4" runat="server" Text="Label" Width="300"></asp:Label>
        </p>
        <asp:Button runat="server" ID="MyButton" OnClick="MyButton_Click" Text="click me" />
    </div>              
</form>
</body>


   

protected void Page_Load(object sender, EventArgs e)
{
    Label1.Text = DateTime.Now.ToString();
    Label2.Text = DateTime.Now.ToString();
    Label3.Text = DateTime.Now.ToString();
    Label4.Text = DateTime.Now.ToString();

}
protected void MyButton_Click(object sender, EventArgs e)
{
    

}

 

When I ran the code above I received a weird error from Visual Studio.

image

 

I did some digging and found the offending code to be the paragraph tags “<p>” and “</p” inside the ContentTemplate tags.  Removing the paragraph tags allowed me to run the code without error and continue to play!

The new code is below.

<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Label ID="Label1" runat="server" Text="Label" Width="300"></asp:Label>
        <asp:UpdatePanel ID="MyPanel1" runat="server">
            <ContentTemplate>
                    <hr />
                    <asp:Label ID="Label2" runat="server" Text="Label" Width="300"></asp:Label>
                    <hr />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="MyButton" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <p>
            <asp:Label ID="Label3" runat="server" Text="Label" Width="300"></asp:Label>
        </p>
        <p>
            <asp:Label ID="Label4" runat="server" Text="Label" Width="300"></asp:Label>
        </p>
        <asp:Button runat="server" ID="MyButton" OnClick="MyButton_Click" Text="click me" />
    </div>              
</form>
</body>

Saturday, December 12, 2009 4:41:00 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
code
Categories
 
Archive
<January 2012>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Patrick Wright
Sign In
Statistics
Total Posts: 2
This Year: 0
This Month: 0
This Week: 0
Comments: 1
All Content © 2012, Patrick Wright