I want fill dependent dropdown by XML file which be create(data by sql server) on session intialization.
Loading
I want fill dependent dropdown by XML file which be create(data by sql server) on session intialization.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Jul 28, 2023, 2:00 PM
Hi Yash,
do refer below article
https://www.c-sharpcorner.com/uploadfile/b19d5a/dropdownlist-data-binding-from-xml-file-in-Asp-Net/
Tahir AnsariPosted Jul 27, 2023, 10:05 AM
Hello Yash Singh Try below sample code:
Convert the query result into XML format using SQL Server's
FOR XMLclauseSave the XML result into an XML file using C# code or any other preferred method.
2. Load XML Data on Session Initialization:
Html + Javascript code
adjust the according to your requirement!