Re: Error executing version of Net Framework
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Thu, 08 Feb 2007 11:42:52 GMT
Hello Hermawih,
Thanks for your followup.
For your custom GridView column problem, I've just performed some test in
my local environment. It seems my custom GridView (put in App_Code
directory) can be correctly used in aspx page(no matter I precompile the
site or not). My test class and the regsiter directive is very simple as
below:
========class=========
namespace GridViewColumns
{
public class SimpleGridViewField : DataControlField
{
public SimpleGridViewField()
{
}
public override void InitializeCell(DataControlFieldCell cell,
DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
{
Label lbl = new Label();
lbl.ID = "lblInput";
lbl.Text = "Input: ";
TextBox txt = new TextBox();
txt.ID = "txtInput";
cell.Controls.Add(lbl);
cell.Controls.Add(txt);
}
protected override DataControlField CreateField()
{
return new SimpleGridViewField();
}
}
}
========================================
===============
<%@ Register Namespace="GridViewColumns" TagPrefix="cust" %>
===============
So I think there may have some difference between my test and your
application. Are you using the "Publish Web Site" to precompile the web
application or use "Web Deployment project" ? I've tried both cases and
the custom gridview column seems work well.
Please feel free to let me know if there is anything I missed.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Error executing version of Net Framework
- From: Hermawih
- Re: Error executing version of Net Framework
- From: Hermawih
- Re: Error executing version of Net Framework
- References:
- Re: Error executing version of Net Framework
- From: Hermawih
- Re: Error executing version of Net Framework
- From: Steven Cheng[MSFT]
- Re: Error executing version of Net Framework
- From: Hermawih
- Re: Error executing version of Net Framework
- From: Steven Cheng[MSFT]
- Re: Error executing version of Net Framework
- From: Hermawih
- Re: Error executing version of Net Framework
- From: Steven Cheng[MSFT]
- Re: Error executing version of Net Framework
- From: Hermawih
- Re: Error executing version of Net Framework
- Prev by Date: .net user permissions in IIS
- Next by Date: RE: .net user permissions in IIS
- Previous by thread: Re: Error executing version of Net Framework
- Next by thread: Re: Error executing version of Net Framework
- Index(es):
Loading