c# - How to pass Authenticate .asmx webservice(adding webreference of .asmx webservice dynamically using ScriptManager and ServiceReference) -


i have .asmx web service used call java script. havn't added service reference instead adding dynamically in default.aspx page using below code,

scriptmanager manager = scriptmanager.getcurrent(this.page); if (manager != null) {                  manager.services.add(new servicereference(configurationmanager.appsettings["webserviceurl"])); } 

till working fine, need add authentication .asmx webservice. have added windows authentication .asmx webservice. need pass credential(authenticate) .asmx webservice. when navigate default.aspx, prompt credential. need pass credential programmatically. how can it.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -