I am joking about vb.net as I am the only one in this shop using C# and probably must start writing vb.net soon. I started from Java before I came to .net so vb.net is too wordy for my taste.
--- In [email protected], "scaevola637" <[EMAIL PROTECTED]> wrote: > > No, I got it to work and I am happy enough. You wrote the code > using that accursed vb.net. I talked to a Java programmer yesterday > and he said C# had left Java in the dust a while ago. Coming from a > Java progammer I was astounded. I had up to that time thought that > C# was MS's poor attempt to implement Java. > > > > --- In [email protected], Charles Carroll > <[EMAIL PROTECTED]> wrote: > > http://www.learnasp.com/freebook/learn/literalsrock.aspx > > You just assign this to a literal. > > > > You don't need the HTMLTextWriter for this > > > > DIM q as string = """" > > dim sbTempHTML as new stringbuilder > > with sbTempHtml > > .append("<td valign=") > > .append(q & "true" & q) > > .append("color=") > > .append(q & "brown" & q) > > end with > > > > BUT I stronnglyu suspect the fact you are asking this at all is > > because you are taking the wrong approach to converting the code. > > > > PLEASE send me the original ASP page off list to > > [EMAIL PROTECTED] > > and I will give you the correct conversion of it to ASP.net. It > seems > > unlikely to me that the way we are discussing is the best way. > > > > > > On Thu, 13 Jan 2005 13:44:53 -0000, scaevola637 <[EMAIL PROTECTED]> > wrote: > > > > > > If I want to create HTML in the code behind to appear in an <% = > %> > > > block on the aspx page, what is the best way? I would like to > use > > > HTMLTextWriter but not sure that is possible. The trouble is, > in C# I > > > do not know how to concatenate all those """ that exist in > HTML. For > > > instance: > > > <!-- code > > > <td valign="true" color="brown"> > > > --> > > > HTMLTextWriter makes all this much easier to do, but is is > possible in > > > the page_load method to create a string to assign to <%= mySTr % > >? > > > > > > I hope so > > > > > > > > > > > > > > > ________________________________ > > > Yahoo! Groups Links > > > > > > To visit your group on the web, go to: > > > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ > > > > > > To unsubscribe from this group, send an email to: > > > [EMAIL PROTECTED] > > > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
