Click here to Skip to main content
15,891,136 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to run asp.net applications in one system which is developed using Visual studio 2005(5.1.6 connector) and 2008 (6.1.3 connector) Pin
sr15925-Nov-10 18:07
sr15925-Nov-10 18:07 
GeneralRe: How to run asp.net applications in one system which is developed using Visual studio 2005(5.1.6 connector) and 2008 (6.1.3 connector) Pin
Not Active25-Nov-10 18:19
mentorNot Active25-Nov-10 18:19 
GeneralRe: How to run asp.net applications in one system which is developed using Visual studio 2005(5.1.6 connector) and 2008 (6.1.3 connector) Pin
sr15925-Nov-10 22:55
sr15925-Nov-10 22:55 
GeneralRe: How to run asp.net applications in one system which is developed using Visual studio 2005(5.1.6 connector) and 2008 (6.1.3 connector) Pin
Luc Pattyn26-Nov-10 1:54
sitebuilderLuc Pattyn26-Nov-10 1:54 
QuestionSgen tool Pin
Member-495917624-Nov-10 18:16
Member-495917624-Nov-10 18:16 
AnswerCross post. Pin
Pete O'Hanlon24-Nov-10 22:23
mvePete O'Hanlon24-Nov-10 22:23 
AnswerRe: Sgen tool Pin
RaviRanjanKr25-Nov-10 16:39
professionalRaviRanjanKr25-Nov-10 16:39 
QuestionCustom web control property does not accept ldquo and rdquo Pin
Gregory Gadow19-Nov-10 11:35
Gregory Gadow19-Nov-10 11:35 
I have a custom web control that formats links. Here is a typical example of it being used:

HTML
<mine:DispatchLink ID="DispatchLink1" runat="server"
    NavigateUrl="#" 
    Text="Test "double" and apostrophe’s" 
    ExtendedText="Test "double" and apostrophe’s"/>

This creates a link with href set to NavigateUrl, the inner value of the anchor set to Text and both the title attribute and text following the link set to ExtendedText. (There are other properties and a number of standard layouts not shown in this example.)

My problem is that the left double quote and right double quote entities are going into the control as plain double quotes; instead of getting Test “double” and apostrophe’s, I'm getting Test "double" and apostrophe’s. Yes, this affects only the double quotes and not the right single quote.

The code for both Text and ExtendedText look like this:
VB
<Bindable(True), Category("Details"), DefaultValue("")> _
Public Property Text() As String
    Get
        Dim o As Object = ViewState("Text")
        If o Is Nothing Then
            Return ""
        Else
            Return o.ToString
        End If
    End Get
    Set(ByVal value As String)
        'For testing
        HttpContext.Current.Response.Write("<!-- ExtendedText: " + value + " -->" + vbCrLf)

        ViewState("Text") = value
    End Set
End Property

The test output in the Set part shows that value already contains the quote literals; this is not a matter of them somehow being translated by ViewState.

I can get the right output by using the entity numbers -- &#8220; and &#8221; -- but I use the entity names everywhere else on the site, and it will be confusing when I have to come back latter and make updates.

My questions: 1) Is this a known issue and 2) is there any way to pass these entity names into a custom control and have them not get changed?
AnswerResolved... sort of Pin
Gregory Gadow22-Nov-10 5:51
Gregory Gadow22-Nov-10 5:51 
AnswerRe: Custom web control property does not accept ldquo and rdquo Pin
Jörgen Andersson22-Nov-10 10:16
professionalJörgen Andersson22-Nov-10 10:16 
QuestionWhich versions of VS 2010 allow you to write Windows Services? Pin
Gregory Gadow18-Nov-10 4:17
Gregory Gadow18-Nov-10 4:17 
AnswerRe: Which versions of VS 2010 allow you to write Windows Services? PinPopular
Simon P Stevens18-Nov-10 4:54
Simon P Stevens18-Nov-10 4:54 
GeneralRe: Which versions of VS 2010 allow you to write Windows Services? Pin
Henry Minute18-Nov-10 7:00
Henry Minute18-Nov-10 7:00 
GeneralRe: Which versions of VS 2010 allow you to write Windows Services? Pin
Gregory Gadow19-Nov-10 4:06
Gregory Gadow19-Nov-10 4:06 
GeneralRe: Which versions of VS 2010 allow you to write Windows Services? Pin
Simon P Stevens19-Nov-10 4:16
Simon P Stevens19-Nov-10 4:16 
GeneralRe: Which versions of VS 2010 allow you to write Windows Services? Pin
PIEBALDconsult19-Nov-10 8:46
mvePIEBALDconsult19-Nov-10 8:46 
GeneralRe: Which versions of VS 2010 allow you to write Windows Services? Pin
Gregory Gadow19-Nov-10 11:40
Gregory Gadow19-Nov-10 11:40 
GeneralRe: Which versions of VS 2010 allow you to write Windows Services? Pin
PIEBALDconsult19-Nov-10 14:01
mvePIEBALDconsult19-Nov-10 14:01 
AnswerRe: Which versions of VS 2010 allow you to write Windows Services? Pin
PIEBALDconsult18-Nov-10 7:54
mvePIEBALDconsult18-Nov-10 7:54 
QuestionOpen Custom form in Exchange Server 2010 Pin
stambekar16-Nov-10 19:19
stambekar16-Nov-10 19:19 
QuestionRe: Open Custom form in Exchange Server 2010 Pin
Richard MacCutchan16-Nov-10 21:17
mveRichard MacCutchan16-Nov-10 21:17 
AnswerRe: Open Custom form in Exchange Server 2010 Pin
stambekar17-Nov-10 0:20
stambekar17-Nov-10 0:20 
Questionmozilla not recognising childnodes-getting console error Pin
balaji.t16-Nov-10 2:26
balaji.t16-Nov-10 2:26 
AnswerRe: mozilla not recognising childnodes-getting console error Pin
Dave Kreskowiak16-Nov-10 3:50
mveDave Kreskowiak16-Nov-10 3:50 
AnswerRe: mozilla not recognising childnodes-getting console error Pin
Tarun.K.S18-Nov-10 20:52
Tarun.K.S18-Nov-10 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.