retrieve the default site URL(azurewebsites.net) from an Azure website (xyz.com)

Azure websites have a default “site URL” , something like mysite.azurewebsites.ne(which i don’t have, I only have the xyz.com). Is it possible to get this URL just by knowing the address aka custom domain (xyz.com) , keep in mind that im not the admin of the site and all I have is normal access

What will be the best practices in my code to prevent sql injection?

What will be the best practices to prevent sql injection? My client asked me to prevent sql injection. I used this structure for data inserting or updating public bool Add(GreenItem aGreenItem, Employee emp) { aGreenItem.GreenItemCode = new CommonBLL().GetMaxId("[GreenItemCode]", "[Processing].[GreenItem]", "GTM"); using (SqlConnection objConnection = Connection.GetConnection()) { SqlTransaction transaction = objConnection.BeginTransaction("SampleTransaction"); try { string query = … Read more

Cannot Update WCF reference for android application

As the name suggest, I cannot update the reference to a service. I start the service on my machine, then try to update the service, but to no avail. Following the error log, I came to the conclusion that I am missing the Java.Interop… But I checked, I don’t see any reference to that file in either of my solutions. I think the other errors are cascading from there. Here’s the log:

How can ModelState be accessed in HttpPut if it is only created in HttpPost?

“The ModelState represents a collection of name and value pairs that were submitted to the server during a POST.” That is the best definition I have found for the ModelState property. So I have some code using a web api that Creates a customer and Updates a customer, and my question is, since I have accessed ModelState in CreateCustomer, wont the ModelState always be not valid if I hadnt already submitted a Post request with CreateCustomer? Or is the ModelState updated with both PUT and Post requests? Because according to the definition above, the ModelState property wont be initialized until I create a customer, and in my UpdateCustomer method, I need to check if the customer object given in the parameters is the one that is valid, not any Model that was submitted to the server during a different POST request.