我的笔记本电脑中有一个 ASP.net Web API,地址如下:
本地主机:99949
我将它添加到 IIS Express,我可以从同一局域网中的另一台计算机访问我的 web Api,它是这样的:
尼米斯:80
我可以从其他 PC 访问我的 web api,但是当我尝试使用我的 android 设备访问它时,它显示“网页不可用”错误。
我关闭了所有防火墙。
我该怎么做才能解决它?
我尝试使用带有C#的VS 11在Windows 8上创建一个应用程序,我需要在我的应用程序中使用一个按钮,当人们单击此按钮时,我的应用程序将关闭.
但我找不到任何退出或关闭功能添加到我的Click事件.
我该怎么做这个按钮?或者你提出解决这个问题的建议是什么?
我有2张桌子:Customer和Customer_Address
我有一个功能:
public IEnumerable<Customer_Address> ReadAddressForCustomer(int CustomerID)
{
ProjectServiceForCustomerDataContext DB = new ProjectServiceForCustomerDataContext();
var CA = (from C in DB.Customer_Addresses
join cust in DB.Customers
on C.CustomerID equals cust.ID
where C.CustomerID == CustomerID
select new
{
CustomerName=cust.Name,
CustomerAddress=C.Address,
CustomerTel=C.Telephone
}).ToList();
return CA;
}
Run Code Online (Sandbox Code Playgroud)
但CA不是IEnumerable(Customer_Address)因为它有Customerfield(cust.Name)
我怎么解决这个问题 ?
c# ×2
android ×1
function ×1
iis ×1
linq ×1
localhost ×1
return-value ×1
windows-8 ×1
winrt-xaml ×1