Click here to Skip to main content
15,993,913 members

Comments by rukhs (Top 24 by date)

rukhs 13-Jun-15 14:35pm View    
thnks.. its working..
can u tell me one thing please... is thr any way of backtracking..i mean if i know attribute value (eg.in my example attribute class =" ایر") i want to get its correponding element name (i.e element= "year").

what i am doing is :


class_type="ایر";

string attrval1 = doc.SelectSingleNode("/car_ads/car_make/year/@class").Value;
if (attrval1 == class_type)
{
element= "year";
}

i am assigning this year value to element. which is static.. so if i change class_type value to "قیمت".. it wil still give me year.. but the output should be price
rukhs 12-Jun-15 1:14am View    
this is used when we already know the element name. but what i want is i knw element attribute and attribute value.. i want to get attribute name using attribute value.
rukhs 11-Jun-15 7:25am View    
its urgent because i have to finish a project.. n yes i have searched evrything.. Xpath, linq .. everything .. n if we google it i will get plenty of solution but wen i m nt gettng my solution thts y m here.
rukhs 31-May-15 8:37am View    
yes this is a windows form application ... and there is no main form. i have created each form from project solution explorer window...right click on project_name and than add new window form.
rukhs 31-May-15 8:30am View    
But i am not creating form using any code..its already there in my project.

i am using the code below to run one form from another .. but i dnt knw how to transfer the data..
private void button1_Click(object sender, EventArgs e)
{
query_eval.ActiveForm.Close();

System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ThreadProc));

t.Start();
}

public static void ThreadProc()
{
Application.Run(new analyse_query());
}

i want to transfer textbox value in form query_eval.cs form to text box in analyse_query form..

plz tell me the code if u can .. coz i m confused..i am new to c#.
Thnx