Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to write a image file name which is in aspx page in xml file by click on it.

thnx
Posted
Updated 31-Aug-11 20:48pm
v2
Comments
Abhijit Jana 29-Aug-11 4:01am    
Your question is not clear. You want to write some data on xml file or what ?

In which control do you have the image in? If it is not ImageButton, you will not have OnClick event. You will have to handle the click in javascript and then call a server side method from there. This can be done using __DoPostBack or by using a hidden field and form.Submit.

In that method, you can get the file path from the Image control and save it to the XML file. To save data to the XML file, you can make use of LINQ2XML, XMLDocument or any other preferred way.
 
Share this answer
 
Comments
adadsadsasd 29-Aug-11 5:06am    
i show a image in aspx page dynamically from folder. i dont use any image box. just write img src in response.write and passing a query string from aspx page to .cs page. now i have to work on write click. i want when i right click on image only 1 option is chow there. "HIDE & Write in XML". when i click on it image name save in xml file and image visibility will be false. by rightcontext menu is work. but hide and write name in xml file is not working.. please help me inthis.
I think your Problem seems to be valid, But the way you wrote made it so confusing. You can think of using Ajax for this.

Simplifying Asp.Net Core Ajax
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900