Hi all,
I have converted my existing ASP.NET project from 1.1 to 2.0 and i have
found that everything works fine except the linkbutton control in my
datagrid which throws an javascript error when clicked. I thought the
control might be the problem, so i deleted the old control and binded
the new linkbutton control but am still getting the same error. Am
using visual studio 2005.
Source code inside my grid:
----------------------------------------
<asp:LinkButt on ID="LinkButton2 " runat="server" Text='<%#
GetText(Contain er,"Publish") %>' CommandName="Ed it"
CommandArgument ='<%# GetURL(Containe r,"Publish") %>'></asp:LinkButton>
Edit Command
-----------------------
private void dgScreenDetails _EditCommand(ob ject source,
System.Web.UI.W ebControls.Data GridCommandEven tArgs e)
{
string splitString = e.CommandArgume nt.ToString();
string[] arrCommandArgum ent = splitString.Spl it('|');
if (arrCommandArgu ment[0].ToString() == "Publish")
{
ModuleListingGe neralFunctions. PublishModule(a rrCommandArgume nt[1].ToString());
BindDataToGrid( );
}
}
Error:
--------
'Event' is null or not an object
can anyone please solve my problem.
NB: It works fine in my local machine but only when i access it from
other machine using URL. this error is getting throwed.
Thanks in advance.
Shiva.
I have converted my existing ASP.NET project from 1.1 to 2.0 and i have
found that everything works fine except the linkbutton control in my
datagrid which throws an javascript error when clicked. I thought the
control might be the problem, so i deleted the old control and binded
the new linkbutton control but am still getting the same error. Am
using visual studio 2005.
Source code inside my grid:
----------------------------------------
<asp:LinkButt on ID="LinkButton2 " runat="server" Text='<%#
GetText(Contain er,"Publish") %>' CommandName="Ed it"
CommandArgument ='<%# GetURL(Containe r,"Publish") %>'></asp:LinkButton>
Edit Command
-----------------------
private void dgScreenDetails _EditCommand(ob ject source,
System.Web.UI.W ebControls.Data GridCommandEven tArgs e)
{
string splitString = e.CommandArgume nt.ToString();
string[] arrCommandArgum ent = splitString.Spl it('|');
if (arrCommandArgu ment[0].ToString() == "Publish")
{
ModuleListingGe neralFunctions. PublishModule(a rrCommandArgume nt[1].ToString());
BindDataToGrid( );
}
}
Error:
--------
'Event' is null or not an object
can anyone please solve my problem.
NB: It works fine in my local machine but only when i access it from
other machine using URL. this error is getting throwed.
Thanks in advance.
Shiva.
Comment