B
Bobby Edward
I had a simple admin form for "Categories"...
Details View: To INSERT new Category
Grid View: To View, Edit and Delete all Categories
I decided to put the INSERT Details View inside of a ModalPopupExtender.
PROBLEM 1:
Dragging a ModalPopupExtender control to my webform gives me a gray box in
Design View:
Error Creating Control - ModalPopupExtender1
Unknown server tag 'ajaxToolkit:ModalPopupExtender'.
Any idea why? I registered it at the top of the page (by the way this page
is referencing a master page):
<%@ Page Title="" Language="VB" MasterPageFile="~/membersonly/member.master"
AutoEventWireup="false"
CodeFile="managefaqs.aspx.vb" Inherits="admin_managefaqs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %>
PROBLEM 2:
The pop up actually comes up. But, when I type in a new category and hit
"insert" on the detailsview I get this error:
"Databinding methods such as Eval(), XPath(), and Bind() can only be used in
the context of a databound control."
It's for this line:
<InsertItemTemplate>
<aspropDownList ID="DropDownList1" runat="server"
DataSourceID="odsCategories"
DataTextField="Category" DataValueField="CategoryId"
SelectedValue='<%# Bind("FaqCategoryId") %>'>
</aspropDownList>
</InsertItemTemplate>
Any idea why? It used to work before I tried putting it in a modal...
QUESTION 3
Any idea how I can refresh the datagrid on the main form after I insert a
new category with the ajax modal?
Thanks
Details View: To INSERT new Category
Grid View: To View, Edit and Delete all Categories
I decided to put the INSERT Details View inside of a ModalPopupExtender.
PROBLEM 1:
Dragging a ModalPopupExtender control to my webform gives me a gray box in
Design View:
Error Creating Control - ModalPopupExtender1
Unknown server tag 'ajaxToolkit:ModalPopupExtender'.
Any idea why? I registered it at the top of the page (by the way this page
is referencing a master page):
<%@ Page Title="" Language="VB" MasterPageFile="~/membersonly/member.master"
AutoEventWireup="false"
CodeFile="managefaqs.aspx.vb" Inherits="admin_managefaqs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %>
PROBLEM 2:
The pop up actually comes up. But, when I type in a new category and hit
"insert" on the detailsview I get this error:
"Databinding methods such as Eval(), XPath(), and Bind() can only be used in
the context of a databound control."
It's for this line:
<InsertItemTemplate>
<aspropDownList ID="DropDownList1" runat="server"
DataSourceID="odsCategories"
DataTextField="Category" DataValueField="CategoryId"
SelectedValue='<%# Bind("FaqCategoryId") %>'>
</aspropDownList>
</InsertItemTemplate>
Any idea why? It used to work before I tried putting it in a modal...
QUESTION 3
Any idea how I can refresh the datagrid on the main form after I insert a
new category with the ajax modal?
Thanks