Click here to Skip to main content
15,896,507 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Web.Config, DLLs and NUnit Pin
Kevin McFarlane9-Jul-07 11:51
Kevin McFarlane9-Jul-07 11:51 
QuestionFiltering files Pin
suparichit9-Jul-07 2:20
suparichit9-Jul-07 2:20 
AnswerRe: Filtering files Pin
Dave Sexton9-Jul-07 2:32
Dave Sexton9-Jul-07 2:32 
GeneralRe: Filtering files Pin
suparichit9-Jul-07 2:34
suparichit9-Jul-07 2:34 
QuestionControl Memory Footprint Pin
Dave Sexton9-Jul-07 1:54
Dave Sexton9-Jul-07 1:54 
QuestionPopulating DropDownList from XML? Pin
chand109-Jul-07 1:36
chand109-Jul-07 1:36 
AnswerRe: Populating DropDownList from XML? Pin
valerian.precop9-Jul-07 2:05
valerian.precop9-Jul-07 2:05 
AnswerRe: Populating DropDownList from XML? Pin
Imran Khan Pathan9-Jul-07 2:07
Imran Khan Pathan9-Jul-07 2:07 
Try this

<br />
function Dataset XMLfile()<br />
{<br />
XmlDataDocument xdoc = new XmlDataDocument();<br />
return xdoc.DataSet.ReadXml(Server.MapPath("XMl.xml"));<br />
}<br />
 protected void Page_Load(object sender, EventArgs e)<br />
{<br />
dataset ds=XMLfile();<br />
dd1.datasource=ds;<br />
dd1.datatextField="StateCode";<br />
dd1.databind();<br />
}<br />
<br />
<br />
protected void dd2_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
 dataset ds=XMLfile();<br />
 datarow[] dr=ds.table.select("StateCode='"+dd1.selectedItem.Text+"'");<br />
datatable tb1; <br />
foreach(datarow dr1 in dr)<br />
  tb1.ImportRow(dr1);<br />
<br />
dd2.datasource=tb1;<br />
dd2.datatextfield="CountyName"<br />
dd2.databind();<br />
}<br />
<br />



Best Regard

Pathan

GOD HELP THOSE WHO HELP THEMSELVES

QuestionSqlDataSource - use info in cs file?? Pin
munklefish9-Jul-07 1:30
munklefish9-Jul-07 1:30 
AnswerRe: SqlDataSource - use info in cs file?? Pin
Fred_Smith9-Jul-07 1:39
Fred_Smith9-Jul-07 1:39 
GeneralRe: SqlDataSource - use info in cs file?? Pin
munklefish9-Jul-07 2:37
munklefish9-Jul-07 2:37 
GeneralRe: SqlDataSource - use info in cs file?? Pin
Fred_Smith9-Jul-07 3:15
Fred_Smith9-Jul-07 3:15 
GeneralRe: SqlDataSource - use info in cs file?? Pin
munklefish9-Jul-07 3:28
munklefish9-Jul-07 3:28 
GeneralRe: SqlDataSource - use info in cs file?? Pin
Fred_Smith9-Jul-07 5:02
Fred_Smith9-Jul-07 5:02 
GeneralC# 2.0 Book Pin
Kuricheti9-Jul-07 1:18
Kuricheti9-Jul-07 1:18 
GeneralRe: C# 2.0 Book Pin
Parwej Ahamad9-Jul-07 1:32
professionalParwej Ahamad9-Jul-07 1:32 
GeneralRe: C# 2.0 Book Pin
Sathesh Sakthivel9-Jul-07 2:06
Sathesh Sakthivel9-Jul-07 2:06 
GeneralRe: C# 2.0 Book Pin
Dave Sexton9-Jul-07 2:35
Dave Sexton9-Jul-07 2:35 
GeneralRe: C# 2.0 Book Pin
Vasudevan Deepak Kumar9-Jul-07 2:54
Vasudevan Deepak Kumar9-Jul-07 2:54 
Questionpopup... Pin
pradeep kumarappagari9-Jul-07 1:15
pradeep kumarappagari9-Jul-07 1:15 
AnswerRe: popup... Pin
Parwej Ahamad9-Jul-07 1:28
professionalParwej Ahamad9-Jul-07 1:28 
GeneralRe: popup... Pin
pradeep kumarappagari9-Jul-07 1:31
pradeep kumarappagari9-Jul-07 1:31 
Questionhow to find lenth of div Pin
Piyush Vardhan Singh9-Jul-07 0:57
Piyush Vardhan Singh9-Jul-07 0:57 
AnswerRe: how to find lenth of div Pin
Christian Graus9-Jul-07 1:01
protectorChristian Graus9-Jul-07 1:01 
AnswerRe: how to find lenth of div Pin
Vasudevan Deepak Kumar9-Jul-07 3:50
Vasudevan Deepak Kumar9-Jul-07 3:50 

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.