thanks paresh for the help.
Actually i have a textbox in which i will write any item which i want to search,then i will click the button and after that it will search from sql database and it will show the matching items in a repeateting table.
So in button cllick event i have used some coding,
SqlConnection cn = new SqlConnection("server=aaa;database=CMS;UID=xyz;PWD=***;");
cn.Open();
SqlCommand cm = new SqlCommand();
cm.Connection = cn;
cm.CommandType = CommandType.Text;
cm.CommandText = "select * from AreaMaster";
SqlDataAdapter da = new SqlDataAdapter(cm);
DataSet ds = new DataSet();
da.Fill(ds);
XmlNamespaceManager ns = this.NamespaceManager;
XPathNavigator node = this.CreateNavigator().SelectSingleNode("/my:myFields/my:txt", NamespaceManager);
for(int i=0;i<ds.Tables[0].Rows.Count;i++)
{
if (ds.Tables[0].Rows[i][1].ToString() == node.Value)
{
cm.CommandText="select * from AreaMaster where AreaName='" + node.Value + "'";
DataSet ds1 = new DataSet();
da.Fill(ds1);
}
}
So now in data set i got the data's but my problem is how to show the data's in info path form.
As i am new to infopath don't have that much idae...
if their is any other way to do it..then let me know..........
So please help me.