Showing posts with label simply. Show all posts
Showing posts with label simply. Show all posts

Saturday, March 24, 2012

Strong name for dll??

Heya,
I'm trying to create a strong name for a dll that I purchased. The dll is simply a PDF Merge dll. This dll is not something that I created. I want to know is it possible to give it a strong name? I've tried using al.exe (which comes with .net) and sn.exe. But I dont think I'm doing it right? Could someone please help me out. I'm using XP with .net 2003. Framework is v1.1.
The reason why I need this dll as a strong name is becuase I'm using Telstra as my web host and they support a hosted trust level. The only way I can use third party dll's is to give them a strong name...

Thankx in advance
Karl
:)Have you referred to MSDN yet?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconAssigningAssemblyStrongName.asp
Yes I have... And thankx for your reply... All help is appreciated...
I believe that the article is refering to creating strong names for dll's that you have created via code. I dont have the code for this dll. I purchased it. I only have the dll. So my question is can I give it a strong name still or do I have to have the code as well?

Thankx again in advance
Karl
You should have Code for Giving it a Strong Name.
Yes, I've tried to create a strong name once for a third-party DLL, but simply couldn't because I didn't have all parameters ready.
So any ideas on what I should do? Or what I could do?

Thankx again...
Karl
:)
Ask your web hosts to install it for you?
Thankx for your help... I will see if my web host will agree to that...
Thankx again
Karl
:)

Tuesday, March 13, 2012

Stuck Passing a DataList to a User Component

Hello,

Stuck on this one: I have User Component that is the main content table on my web page. It simply serves as a table with decorative border and header. All content (mostly text) is placed inside this User Component on each of my web pages by accessing the UserControl's properties.

However, now I have a web page with a DataList control, and would love to place this control inside my UserControl, but am stuck.

In my previous pages, I access the UserControl's strContent property that sets the cell.text property to the text coming from my dbase, but once again, is it somehow possible to put my DataList inside this Cell or something similar.

Thanks again,
JohnHad the same problem, here's my solution:


<DefaultProperty("Title"), ParseChildrenAttribute(False), ToolboxData("<{0}:WindowPanel runat=server></{0}:WindowPanel>")> Public Class WindowPanel
Inherits System.Web.UI.WebControls.WebControl

Dim _title As String
Dim _cssclass As String
Dim _width As System.Web.UI.WebControls.Unit

<Bindable(True), Category("Appearance"), DefaultValue("")> Property [Title]() As String
Get
Return _title
End Get

Set(ByVal Value As String)
_title = Value
End Set
End Property

<Bindable(True), Category("Appearance"), DefaultValue("")> Overrides Property [CSSClass]() As String
Get
Return _cssclass
End Get

Set(ByVal Value As String)
_cssclass = Value
End Set
End Property
<Bindable(True), Category("Appearance"), DefaultValue("")> Overrides Property [Width]() As System.Web.UI.WebControls.Unit
Get
Return _width
End Get

Set(ByVal Value As System.Web.UI.WebControls.Unit)
_width = Value
End Set
End Property

Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
output.Write("<table border=""0"" cellspacing=""0"" cellpadding=""0"" style=""width:" & _width.ToString & ";border: 1px solid;border-collapse:collapse;"" class=""" & _cssclass & """>" & vbCrLf & _
" <tr>" & vbCrLf & _
" <td style=""padding: 3px; border: 1px solid;"" class=""" & _cssclass & """>" & _title & "</td>" & vbCrLf & _
" </tr>" & vbCrLf & _
" <tr>" & vbCrLf & _
" <td style=""padding: 3px;"">" & vbCrLf)
Me.RenderContents(output)
output.Write(" </td>" & vbCrLf & _
" </tr>" & vbCrLf & _
"</table>")
End Sub

End Class

The important thing to remember is the "ParseChildrenAttribute(False)" Statement to be able to include other controls within this custom control.