小编Mas*_*mie的帖子

如何从安卓设备访问本地主机网站

我的笔记本电脑中有一个 ASP.net Web API,地址如下:

本地主机:99949

我将它添加到 IIS Express,我可以从同一局域网中的另一台计算机访问我的 web Api,它是这样的:

尼米斯:80

我可以从其他 PC 访问我的 web api,但是当我尝试使用我的 android 设备访问它时,它显示“网页不可用”错误。

我关闭了所有防火墙。

我该怎么做才能解决它?

iis android localhost

5
推荐指数
1
解决办法
6698
查看次数

VS11应用程序上的关闭按钮

我尝试使用带有C#的VS 11在Windows 8上创建一个应用程序,我需要在我的应用程序中使用一个按钮,当人们单击此按钮时,我的应用程序将关闭.

但我找不到任何退出或关闭功能添加到我的Click事件.

我该怎么做这个按钮?或者你提出解决这个问题的建议是什么?

c# windows-8 windows-runtime winrt-xaml

4
推荐指数
2
解决办法
2415
查看次数

函数返回值

我有2张桌子:CustomerCustomer_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# linq function return-value

3
推荐指数
1
解决办法
121
查看次数