or
| Webpage error details |
| User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; FDM; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729) |
| Timestamp: Thu, 27 Aug 2009 14:19:42 UTC |
| Message: 'style.getPropertyValue' is null or not an object |
| Line: 176 |
| Char: 1 |
| Code: 0 |
| URI: http://www.arkadas.com.tr/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41 |
| <telerik:RadMenu Width="150px" DataFieldID="OID" DataValueField="OID" |
| DataTextField="Name" ID="MenuCategories" runat="server" |
| DataSourceID="DataSourceMenu" |
| AppendDataBoundItems="False" DefaultGroupSettings-Flow="Vertical" |
| Flow="Vertical" Skin="MyDefaultLeft" EnableEmbeddedSkins="false" |
| ondatabound="MenuCategories_DataBound" DataFieldParentID="OIDParent" |
| MaxDataBindDepth="2" EnableAutoScroll="True"> |
| <ItemTemplate> |
| <table width="140px"> |
| <tr> |
| <td id="td" runat="server" onmouseover='<%#Open(Eval("OID"))%>' onmouseout='<%#Close(Eval("OID"))%>'> |
| <asp:LinkButton ID="linkButton" Font-Underline="false" OnClick="linkButton_Click" CommandArgument='<%#Eval("OID") %>' runat="server" Text='<%#Eval("Name")%>'></asp:LinkButton> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </telerik:RadMenu> |
| public string Open(object o) |
| { |
| string ret = ""; |
| if (!Categories.Exists(x => x.OIDParent == new Guid(o.ToString()))) |
| { |
| ret = string.Format( "newwindow=window.radopen('../PageReproductionDetails.aspx?oid={0}',null);" , o.ToString() ) + "newwindow.moveTo(520,300);"; |
| } |
| return ret; |
| } |
| public string Close(object o) |
| { |
| string ret = ""; |
| if (!Categories.Exists(x => x.OIDParent == new Guid(o.ToString()))) |
| ret = "newwindow.close();"; |
| return ret; |
| } |

| // Abbreviated function for ease of reading |
| function ShowContext(sender,args){ |
| var menu = $find("GridContextMenu"); |
| var selectedindex = args.get_itemIndexHierarchical(); |
| //Not sure about below |
| var parentindex = sender.get_parentView().getDataKeyNames("EventId"); |
| menu.show(args.get_domEvent()); |
| } |
I'm working on a project where i need to upload images to a DB. The images could vary in size when being uploaded by the clients, but when inserted in the DB, they cannot be larger than 640x480. I went through the examples in the documentations, they all reference saving the images to the file system. I'm having a hard time doing the conversion to a bitmap, then to a GraphicImage, then back to a byte stream to insert in the DB. Loading the original UploadedFile into the DB is not an issue at all:
Dim FileBytes(PhotoFile.InputStream.Length - 1) As Byte
PhotoFile.InputStream.Read(FileBytes, 0, PhotoFile.InputStream.Length)
Any help would be appreciated,
-Sam