So there is no solution to this?

In My Web.sitemap I have the following:

<siteMapNode url="~/Groups/ViewGroups.aspx" urlRoute="groups/{PostId}/{PostTitle}" />
</siteMapNode>

In my MasterPage I have implemented the ItemDataBound event to try and set the title of each page that implements the master page dynamically but for some reason the title is not being set.

protected void SiteMapPath1_ItemDataBound(object sender, SiteMapNodeItemEventArgs e)
{
    string CurrentNodeTitle = GetTitleFromDatabase();

    if (e.Item.ItemType == SiteMapNodeItemType.Current) {
         e.Item.SiteMapNode.Title = CurrentNodeTitle;
    }
}

If I set the title in the Web.sitemap then it works perfectly but when I set it using e.Item.SiteMapNode.Title = CurrentNodeTitle; the title is nto being set.

Is it possible to create a custom Pager for the GridView control of ASP.NET that looks liek this?

http://i47.tinypic.com/2925ssj.png

If so, can anyone give me some ideas or some starting code into how to create it?

Thank you.

Greetings,

I have a User Control called: Share.ascx

I have a page called: News.aspx

In News.aspx I created a ModalPopupExtender, then I addeda Panel and inside the Panel I added the User Control: Share.ascx so that when the Popup Extender is called the Panel with the User Control is displayed.

The problem:

I can only HIDE the ModalPopupExtender from News.aspx because ModalPopupExtender is defined there but I need to call the HIDE funciton of ModalPopupExtender from the User Control: Share.ascx.cs

How do I do that?

Thank you.

I can locate the image using the physical path but for some resaon when I use the Image.FromFile method an Exception occurs.

Thanks for the reply but it didn't work, I still get the same FileNotFoundException exception.

Hello,
I have an image in one of my project folders:
Lets say its in: ~/App_Themes/Default/images/SomeImage.png

I want to load this image into a System.Drawing.Image, how do I do that?

If I try using the FromFile method of the Image class:
Image img = Image.FromFile("~/App_Themes/Default/images/SomeImage.png", true);

I get a "FileNotFoundException".
I have read some suggesting to store the image into the Server but that's not an option. Is there any way to load this into the Image?

Greetings to all,

I have two functions:

Function 1: ImageToByteArray: Is used to Convert an Image into a Byte Array and then Store in an Oracle Database, in a BLOB Field.

            public byte[] ImageToByteArray(string sPath)
            {
                byte[] data = null;
                FileInfo fInfo = new FileInfo(sPath);
                long numBytes = fInfo.Length;
                FileStream fStream = new FileStream(sPath, FileMode.Open, FileAccess.Read);
                BinaryReader br = new BinaryReader(fStream);
                data = br.ReadBytes((int)numBytes);
                return data;
            }

Function 2: ByteArrayToImage: Is used to Convert a Byte Array from the Database into an Image:

           public System.Drawing.Image ByteArrayToImage(byte[] byteArray)
            {
                MemoryStream img = new MemoryStream(byteArray);
                System.Drawing.Image returnImage = System.Drawing.Image.FromStream(img);
                return returnImage;
            }

In my Markup I have an Imgage Control:
<asp:Image ID="Image1" runat="server" />

In the Code Behind I want to Assign the Returned Value from Function 2 to (which is of type System.Drawing.Image) to the "image1" control which is of type (System.Web.UI.WebControls.Image).

Obviously I can't just assign:
image1 = ByteArrayToImage(byteArray);
because I'd get the following error: Cannot implicitly convert type 'System.Drawing.Image' to 'System.Web.UI.WebControls.Image'

Is there anyway to do this?

I bought this laptop:
[CODE]http://www.newegg.com/Product/Product.aspx?Item=N82E16834101203[/CODE]

[B]Features:
Model
Brand Gateway
Model P-7908u FX Edition
General
Operating System Windows 7 Home Premium 64-bit
CPU Type Intel Core 2 Duo P8700 2.53G
Screen 17" WXGA+
Memory Size 4GB DDR3
Hard Disk 500GB
Optical Drive DVD Super Multi
Graphics Card NVIDIA GeForce GTX 260M
Video Memory 1GB GDDR3
Display
Screen Size 17.0"
Wide Screen Support Yes
Display Type Wide XGA+
Resolution 1440 x 900
LCD Features Ultrabright LCD Display
[/B]

CAN I REPLACE the 17" [B]WXGA [/B]screen (which has a maximum resolution of [B]1440x900[/B]) with a 17" [B]WUXGA [/B]screen (which has a maximum resolution of [B]1920x1200[/B]).