Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all i am working in a project which having 5 layers no matter how many that but i just want that the the value which is coming through data base output parameter no i am able to access that value into all the layer now i want that value should be access on UI with label through json how can any body help it out
Posted
Comments
Brij 16-Jul-13 2:37am    
How are sedning the data to UI?
Abhimanyu vij 16-Jul-13 2:45am    
through json function CheckLogin() {
var email1 = document.getElementById("txtLoginusername").value;
var pass = document.getElementById("txtLoginpassword").value;



// alert(email1 + " , " + pass);
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../WebServices/CheckLoginService.asmx/LoginCh",
data: "{'email':'" + email1 + "','password':'" + pass + "'}",
dataType: "json",
success: function (response) {
var Result = response.d
if (Result == true) {
var url = 'http://localhost:51001/UI/RegisterUser.aspx';
$(location).attr('href', url);


}
// alert(Result);
},
error: function (result) {

var Result = result.d;
if (Result == false) {


alert(Result);
}

}
})

return false;
plz tell Me solution

Your label is nowhere in context of your code as you are just redirecting your on success. So Where you want to access that label? or where you are trying to assign value to that label?

Things that need to be clear.

As you are accessing WebMethod/WebService which is static in nature and has an isolated identity. which is completely unaware of you UI/HTML and Sessions etc.
 
Share this answer
 
Thanks i got it.................
 
Share this answer
 

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