开发者

how to test my web application on server

开发者 https://www.devze.com 2022-12-11 23:27 出处:网络
i have to test what is happening in the code on the server: if (impersonateValidUser(userName, domain, password))

i have to test what is happening in the code on the server:

if (impersonateValidUser(userName, domain, password)) 
        {

        }
        else
        {

        }

like where is the code going after checking the condition

Should i use a messagebox or some other return way???

I am not sure how to do it

any h开发者_JAVA百科elp... thanks


Weird question. If the function is defined, I would guess(or hope) it should return true or false. Whether this is true or false I guess you could determine by just printing a text in each case? Response.Write("true") or Response.Write("false").


This is usually done by logging. Do you use any logging framework in your application such as log4net? If not you could always write to a file by hand:

File.AppendAllText(Server.MapPath("~/log/myapp.txt"), "some message to write");
0

精彩评论

暂无评论...
验证码 换一张
取 消