I have a Asp form.in my code i have a static method i want to access the page controls Inside the static method.Suggest some ideas..
- [System.Web.Services.WebMethod]
- public static Dictionary<string, object> LoadAssetAssignView()
- {
- datetime mydate=datetime.parse(TextBox1.Text);//Can't access the form control
- .
- .
- .
- .
- .
- }

Mangesh GRank #294 · 8.6K reputationPosted Dec 28, 2016, 7:31 PM EST
Mangesh GRank #294 · 8.6K reputationPosted Dec 28, 2016, 7:13 PM EST
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Dec 28, 2016, 7:26 PM EST
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Dec 28, 2016, 7:34 PM EST
Mangesh Gaherwar
Mangesh GRank #294 · 8.6K reputationPosted Dec 28, 2016, 7:56 PM EST
Nithin TN10 reputationPosted Jul 22, 2019, 11:31 PM EDT