Click here to Skip to main content
15,885,881 members
Home / Discussions / C#
   

C#

 
AnswerRe: error CS0246: The type or namespace name 'DescriptionAttribute' could not be found (are you missing a using directive or an assembly reference?) Pin
Guffa19-Jan-06 22:29
Guffa19-Jan-06 22:29 
Question.PDF 2 .EMF (Enhanced Meta File) Pin
NewbieDude19-Jan-06 21:19
NewbieDude19-Jan-06 21:19 
Questionbuiding an installing application Pin
Fendefa19-Jan-06 21:07
Fendefa19-Jan-06 21:07 
AnswerRe: buiding an installing application Pin
Dave Kreskowiak20-Jan-06 4:47
mveDave Kreskowiak20-Jan-06 4:47 
GeneralRe: buiding an installing application Pin
Fendefa22-Jan-06 20:44
Fendefa22-Jan-06 20:44 
GeneralRe: buiding an installing application Pin
Dave Kreskowiak23-Jan-06 1:55
mveDave Kreskowiak23-Jan-06 1:55 
GeneralRe: buiding an installing application Pin
Fendefa23-Jan-06 2:52
Fendefa23-Jan-06 2:52 
QuestionBinding an Xml file with a DropDown Control, URGENT!!!! Pin
ajmal419-Jan-06 20:25
ajmal419-Jan-06 20:25 
I'm getting some problem to bind my DropDown control with an xml file...

I made an example using xmlTextReader displaying it in a table format. its working...

But i need to display data in my dropdown control using xmlTextReader....

please help....


here is my example coding...

private void Page_Load(object sender, System.EventArgs e)
{
// Placer ici le code utilisateur pour initialiser la page
string strAtt,strType,strName,strValue,strTemp,strPath;

strPath=Server.MapPath("list.xml");

System.Xml.XmlTextReader xmlRdr;

xmlRdr=new
System.Xml.XmlTextReader(strPath);

strTemp="<table border=1 width=100%><tr><th width=150px>ISBN No.</th><th>Book Name</th></tr>";

Response.Write(strTemp);

while(xmlRdr.Read())

{strType=Convert.ToString(xmlRdr.NodeType);

strName=xmlRdr.Name;

if(strType=="Element")
{
if(strName=="subject")
{
strAtt=xmlRdr.GetAttribute("name");

strTemp="<tr><td colspan=2 align='left' bgcolor='pink'>"+strAtt+"</td></tr>";


Response.Write(strTemp);}

else if(strName=="book")
{
strAtt=xmlRdr.GetAttribute("isbn");

xmlRdr.Read();

strValue=xmlRdr.Value;

strTemp="<tr><td>"+strAtt+"</td><td>"+strValue+"</td></tr>";

Response.Write(strTemp);
}
}
}
Response.Write("</table>");

xmlRdr.Close();





}

and now how will i change this code to display in a dropdown control????

-- modified at 3:07 Friday 20th January, 2006
QuestionAdd a User Control to a TreeView Pin
tyours bobby19-Jan-06 20:07
tyours bobby19-Jan-06 20:07 
QuestionHow to use labels to pring class data Pin
Albert8319-Jan-06 19:51
Albert8319-Jan-06 19:51 
AnswerRe: How to use labels to pring class data Pin
mav.northwind19-Jan-06 23:44
mav.northwind19-Jan-06 23:44 
GeneralRe: How to use labels to pring class data Pin
Albert8322-Jan-06 18:34
Albert8322-Jan-06 18:34 
Questiondeactivated form Pin
Martin Leung19-Jan-06 19:40
Martin Leung19-Jan-06 19:40 
AnswerRe: deactivated form Pin
Dave Kreskowiak20-Jan-06 4:21
mveDave Kreskowiak20-Jan-06 4:21 
GeneralRe: deactivated form Pin
Martin Leung20-Jan-06 14:53
Martin Leung20-Jan-06 14:53 
GeneralRe: deactivated form Pin
Dave Kreskowiak20-Jan-06 18:20
mveDave Kreskowiak20-Jan-06 18:20 
QuestionContainer versus Scrollable Pin
tylerl19-Jan-06 19:28
tylerl19-Jan-06 19:28 
QuestionListView Control Pin
PrakashBhaskar19-Jan-06 19:10
PrakashBhaskar19-Jan-06 19:10 
AnswerRe: ListView Control Pin
Werdna20-Jan-06 6:17
Werdna20-Jan-06 6:17 
QuestionCreate database SQL by coding C# Pin
tadung19-Jan-06 16:16
tadung19-Jan-06 16:16 
AnswerRe: Create database SQL by coding C# Pin
Christian Graus19-Jan-06 16:27
protectorChristian Graus19-Jan-06 16:27 
AnswerRe: Create database SQL by coding C# Pin
Colin Angus Mackay19-Jan-06 22:34
Colin Angus Mackay19-Jan-06 22:34 
QuestionFrameWork and the final software Package Pin
ranzask19-Jan-06 15:47
ranzask19-Jan-06 15:47 
AnswerRe: FrameWork and the final software Package Pin
Christian Graus19-Jan-06 16:12
protectorChristian Graus19-Jan-06 16:12 
GeneralRe: FrameWork and the final software Package Pin
ranzask20-Jan-06 2:18
ranzask20-Jan-06 2:18 

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.