Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

ASp.Checkbox in Grid view + asp.net/vb.net

I am getting the following error.  Cannot figure , what is this error, which character is not valid. Urgently rneeded to figure it out.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30037: Character is not valid.

Source Error:

 

Line 39:                      <HeaderTemplate>Aktiver/ deaktiver</HeaderTemplate>
Line 40:                      <ItemTemplate>
Line 41:                       <asp:CheckBox ID="chkActiveVoucherSeries" runat="server"  AutoPostBack="true" OnCheckedChanged="chkStatus_OnCheckedChanged"
Line 42:
Line 43:                       Checked='<%# Convert.ToBoolean(Eval("Aktiv")) %>'
 

Source File: D:\Utvikling\ProvisoWebCon\Web\Events\Admin\ActivateVoucherSeries.aspx    Line: 41

0
Ammar Iqbal
Asked:
Ammar Iqbal
1 Solution
 
Jerry MillerCommented:
I think that it is on this line:
<HeaderTemplate>Aktiver/ deaktiver</HeaderTemplate>

I believe that you would want to put the text in a label if you want to display it as your header.
<HeaderTemplate><asp:Label ID="lblHeader" runat="server" text="Aktiver/ deaktiver" /></HeaderTemplate>
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now