Sunday, July 15, 2012

String concatenation with double quotes?

StringBuffer strbuf = new StringBuffer();

String inputType ="Textbox";
String selectedRadio = "";
String inputAppendID = "123";


strbuf.append("<Input ID=\"" + inputAppendID +"\" "+ " Type=\""+ inputType +"\" "+ ">" + "<Option SelectedItem=\""+ selectedRadio +"\" "+ "/>" + "</Input>");

No comments:

Post a Comment