Second Problem arises How to pass values from datagrid?
Frst I M setting the datakeyNames to the Primary key of the table then
I M retrieving the value saying AuthorView.SelectedValue then I m Using the EditUrl
Response.Redirect(EditUrl("AuthorID",AuthorView.SelectedValue, "EditAuthors"), True)
After writing this Method Url is
http://localhost/dnn435/TestMyPage/tabid/55/ctl/EditAuthors/mid/399/AuthorID/1/Default.aspx
With value of the AuthorId as "1"
method passing to the Control Key "EditAuthors" Now On the Second page I m retrieving the value using
Request.QueryString(
"AuthorID")
On Second Page I m getting the Error as
Error: EditAuthors is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.UI.UserControl.get_Request() at DesktopModules_Authors_EditAuthors..ctor() in D:\WORK\Matra Creation\DeriveTech\SOURCE CODE\DotNetNuke_4.3.5_Source\Website\DesktopModules\Authors\EditAuthors.ascx.vb:line 7 at ASP.desktopmodules_authors_editauthors_ascx..ctor() in D:\WORK\Matra Creation\DeriveTech\SOURCE CODE\DotNetNuke_4.3.5_Source\Website\DesktopModules\Authors\EditAuthors.ascx.vb:line 912304 at __ASP.FastObjectFactory_app_web_dltgseuf.Create_ASP_desktopmodules_authors_editauthors_ascx() at System.Web.Compilation.BuildResultCompiledType.CreateInstance() at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in D:\WORK\Matra Creation\DeriveTech\SOURCE CODE\DotNetNuke_4.3.5_Source\Library\Components\Skins\Skin.vb:line 446 --- End of inner exception stack trace ---
AuthorView is name of my Gridview
So plz can anybody help.