CSharp/C# >> Stupid question

by Ayende Rahien » Fri, 12 Dec 2003 14:59:31 GMT

I've an XML document that has HTML data inside one of the tags (with < & >
encoding as < etc)
I'm Transform()ing the document using output method="html", but I get the
< encoding instead of < > and friends.
How do I make this work?
If I just throw the HTML data (it's well formed) to the document and select
the containing node's contents I get the text without any HTML Formatting.
If I encode it using < I get the same < as I put in, instead of
reversing it to <
If I put it in a CData (using < & > OR <) I get < !
I'm sure it's a simple question, but I've been googling for the past hour
without success.



CSharp/C# >> Stupid question

by Julian F. Reschke » Fri, 12 Dec 2003 16:28:02 GMT



You are probably using

<xsl:value-of select="." />

Instead, use:

<xsl:copy-of select="node()" />

CSharp/C# >> Stupid question

by Ayende Rahien » Fri, 12 Dec 2003 20:27:30 GMT


the
select
Formatting.

Thanks, that works.

CSharp/C# >> Stupid question

by Eugene Bykov [MSFT] » Sat, 13 Dec 2003 03:14:17 GMT

Hello Ayende,
You can try to use disable-output-escaping attribute to solve the problem.
For example: <xsl:value-of select="." disable-output-escaping = "yes/>

--
Thanks,
Eugene
-------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.





select

CSharp/C# >> Stupid question

by Antonio » Sun, 02 Jul 2006 11:13:08 GMT

With all these new terms, is DataGrid and GridView the same thing?

CSharp/C# >> Stupid question

by Steve » Sun, 02 Jul 2006 12:22:02 GMT

i could be wrong, but at a guess the gridview may be read only.

CSharp/C# >> Stupid question

by Mark Rae » Sun, 02 Jul 2006 14:49:41 GMT


Are you referring to ASP.NET 2? If so, the GridView is a new webcontrol
which provides much richer functionality than the v1.1 DataGrid, though the
DataGrid is still supported for backwards compatibility.

http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG ,GGLG:2005-48,GGLG:en&q=DataGrid+GridView

CSharp/C# >> Stupid question

by Michael A. Covington » Sun, 02 Jul 2006 22:21:32 GMT


DataGridView is a new object that replaces DataGrid and is easier to use.

CSharp/C# >> Stupid question

by chanmm » Sun, 02 Jul 2006 22:53:15 GMT

No, there are not the same. You can get Datagid back from VS 2005 by right
click the Toolbox -> Chosee Items...

chanmm

CSharp/C# >> Stupid question

by ReyN » Mon, 03 Jul 2006 08:52:59 GMT


The GridView in ASP.NET 2.0 looks and behaves much like the DataGrid in
1.1, but is enhanced with new features and added functionalities,
enablimg devs to do more with the control with less coding.

http://authors.aspalliance.com/aspxtreme/webforms/controls/gridviewanddatagrid.aspx

CSharp/C# >> Stupid question

by james.curran@gmail.com » Mon, 03 Jul 2006 23:37:03 GMT

Actually, I think the real question is, why did the Winform DataGrid
and the WebForm dataGrid have the same name, when they were quite
different....

CSharp/C# >> stupid question

by aWxrZXI » Wed, 10 Sep 2008 22:12:00 GMT

I developing my own application.

I Just wandering, do I import some extra .net class library dll files into
my exe (project) ?

CSharp/C# >> stupid question

by Alberto Poblacion » Wed, 10 Sep 2008 22:56:09 GMT


For a basic .Net application you only need to reference mscorlib.dll,
which is normally referenced by default, and you will usually want to import
the System namespace by means of a "using" directive.
You only have to reference additional .Net libraries if you are going to
use them. For example, if you plan to use GDI+ to draw graphics, you will
need to reference system.drawing.dll (and you will probably want import the
System.Drawing namespace with a "using" directive). It all depends on the
kind of application that you are writing and the functionality that you wish
to use from the libraries.

CSharp/C# >> stupid question

by Cor Ligthert[MVP] » Wed, 10 Sep 2008 23:30:26 GMT

ilker,

You have different ways to do that, two of those

Either you set the project that created the DLL into your solution and use
Project -> references and add the project to your main (startup) project.
This is usefull as you are still busy with the DLL.

Either you choose in the Solution Explorer the DLL using the browsing option
to add it to your main Project (as it is a DLL that you are not updating
anymore).

The two ways of using Project of References in the Solution explorer are in
both situations usable.

Don't forget to set the using clause in your startup project.

Cor




"ilker" < XXXX@XXXXX.COM > schreef in bericht

CSharp/C# >> stupid question

by aWxrZXI » Thu, 11 Sep 2008 00:45:02 GMT

sorry for my bad engish :)
I think I can't explain exactly

I want to Import (merge) external (3th party) .net class library dll files
into my project cause I don't want to deliver any extra files but mine
executables

Similar Threads

1. Stupid Compiler Question or Compiler Stupid Question

I am confused why I must cast an enum to a type int if I defined the enum as follows:

enum COLUMNS :int
{
      IP=0,
      MSG =1
}

IMHO the compiler should be able to make the conversion without requiring a cast. I am curious why the cast is required.

Bill

2. Add which references in C# -- stupid question?

3. stupid question.

How can i open a form from another form in the same window?
Like when i install a program and i press next,next...
Thanks!!!!

4. Stupid question? - CSharp/C#

5. Pretty stupid question


I have been handed a program that someone else wrote to preform simple 
maintenance on. I had a request to fix a minor bug, so I checked the program 
out of Source Safe and attempted to just build it.

When I do, I get a build error

 Could not find type 'MyProject.MyControl'.  Please make sure that the 
assembly that contains this type is referenced.  If this type is a part of 
your development project, make sure that the project has been successfully 
built.


The previous programmer had created a user control that is refrenenced all 
over this program, it is part of the same namespace.

My thought is that it needs to be complied before the rest of the pages in 
the program and that is not happening.

Anyone got a quick way to fix this?

Thanks,
Justin 


6. OpenFile Stupid question - CSharp/C#

7. stupid question, ASP.NET / C#

i have my form (default.aspx) and then my logic (default.aspx.cs) and when 
the logic is done, i want it to go to  another page to display the results 
(results.aspx)...

i dont really want to have to clear or hide my form on the default.aspx 
page...

i need to pass a few control values to a new page and just display them.

i assume this is easy, and stupid but i couldnt locate it.

with asp i would do something like server.transfer or response.redirect

is that still the case here?

Thanks
Justin 


8. this may very well be a stupid question - CSharp/C#