是否可以在asp.net c#的数据表中添加用户控件?下面的代码生成的是: System.Web.UI.WebControls.TextBox,而不是输入
dr[0] = new TextBox (); // where dr is a dataRow and the datatable is
// bound to a datagrid in the user control
我正在尝试读取存储在MongoDB中的图像文件,为此,我在ASP.net MVC3项目中编写了以下代码
public FileContentResult ProfileImage(ObjectId id)
{
using (var db = new MongoSession<User>())
{
var user = db.Queryable.Where(p => p.Id == id).FirstOrDefault();
if (user != null && user.ProfilePicture != n