Click here to Skip to main content
15,919,121 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding a checkbox to a datagridview Pin
Mogaambo17-Aug-08 22:34
Mogaambo17-Aug-08 22:34 
GeneralRe: adding a checkbox to a datagridview Pin
laziale17-Aug-08 22:39
laziale17-Aug-08 22:39 
QuestionString placeholder and html causing it to encode Pin
reverland17-Aug-08 20:56
reverland17-Aug-08 20:56 
AnswerRe: String placeholder and html causing it to encode Pin
Guffa17-Aug-08 21:00
Guffa17-Aug-08 21:00 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 6:17
reverland18-Aug-08 6:17 
GeneralRe: String placeholder and html causing it to encode Pin
Guffa18-Aug-08 6:50
Guffa18-Aug-08 6:50 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 7:02
reverland18-Aug-08 7:02 
GeneralRe: String placeholder and html causing it to encode Pin
Guffa18-Aug-08 10:45
Guffa18-Aug-08 10:45 
You are obviously not seeing the result of that code. Check that you are actually watching the page where you change the code, and that the page is not cached.

I tried this code in code behind:
int RoomNum = 42;
int NumberAdults = 2;
int NumberChildren = 1;
divResultsHeader.InnerHtml = string.Format(
	"Results for room {0}.{1}All shown rooms are suitable for {2} adults and {3} children",
	RoomNum,
	"<br/>",
	NumberAdults,
	NumberChildren);

The element in the page markup code looks like this:
<div id="divResultsHeader" runat="server"></div>

The resulting code in the page looks like this:
<div id="divResultsHeader">Results for room 42.<br/>All shown rooms are suitable for 2 adults and 1 children</div>


Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 10:53
reverland18-Aug-08 10:53 
Questionvisual c++ vs c# Pin
Mogaambo17-Aug-08 20:53
Mogaambo17-Aug-08 20:53 
AnswerRe: visual c++ vs c# Pin
Christian Graus17-Aug-08 21:56
protectorChristian Graus17-Aug-08 21:56 
GeneralRe: visual c++ vs c# Pin
Mogaambo17-Aug-08 22:06
Mogaambo17-Aug-08 22:06 
GeneralRe: visual c++ vs c# Pin
Manas Bhardwaj18-Aug-08 2:39
professionalManas Bhardwaj18-Aug-08 2:39 
QuestionBinding DataGridView Columns with DataTable Columns Pin
Piyush Vaishnav17-Aug-08 20:16
Piyush Vaishnav17-Aug-08 20:16 
QuestionParsing Nullable DateTime Pin
N a v a n e e t h17-Aug-08 19:48
N a v a n e e t h17-Aug-08 19:48 
AnswerRe: Parsing Nullable DateTime Pin
Guffa17-Aug-08 21:03
Guffa17-Aug-08 21:03 
GeneralRe: Parsing Nullable DateTime Pin
N a v a n e e t h17-Aug-08 21:05
N a v a n e e t h17-Aug-08 21:05 
GeneralRe: Parsing Nullable DateTime Pin
benjymous17-Aug-08 23:57
benjymous17-Aug-08 23:57 
GeneralRe: Parsing Nullable DateTime Pin
Guffa18-Aug-08 2:42
Guffa18-Aug-08 2:42 
QuestionRename xml file name in C# [Resolved] Pin
CodingLover17-Aug-08 18:24
CodingLover17-Aug-08 18:24 
AnswerRe: Rename xml file name in C# Pin
CodingLover17-Aug-08 19:00
CodingLover17-Aug-08 19:00 
QuestionC# CodeDom CodeMethodInvokeExpression Class Pin
AndieDu17-Aug-08 16:27
AndieDu17-Aug-08 16:27 
QuestionDoes a method execute on the same thread for its entire length? Pin
JoeRip17-Aug-08 14:07
JoeRip17-Aug-08 14:07 
AnswerRe: Does a method execute on the same thread for its entire length? Pin
Judah Gabriel Himango17-Aug-08 14:28
sponsorJudah Gabriel Himango17-Aug-08 14:28 
GeneralRe: Does a method execute on the same thread for its entire length? Pin
JoeRip17-Aug-08 14:32
JoeRip17-Aug-08 14:32 

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.