Re: Weird issue with System.NullReferenceException

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ciaran (ciaran_at_theodonnells.plus.com)
Date: 01/01/05


Date: Sat, 1 Jan 2005 20:42:10 -0000

I think it would be helpful if you posted the code behind up.

Ciaran

"Shannon" <shannon.albeke@state.co.us> wrote in message
news:1104539835.316353.53060@c13g2000cwb.googlegroups.com...
>I am having a very strange issue with my asp.net application. I have
> created a datagrid which dynamically gets populated from a person
> choosing a value from a dropdown list and entering a quantity into a
> text box (a simple version of a shopping cart). When I run/debug the
> web page using the localhost in the page URL
> (http://localhost/mypage.aspx), the datagrid updates properly when a
> command button is clicked and all is well. However, when I run the web
> page using the machinename (http://mymachine/mypage.aspx) I recieve the
> error "Object Reference not Set...System.NullReferenceException" when I
> click the command button to update the datagrid with new values. Does
> anyone have a solution as to why it works as localhost but does not as
> machinename? And does anyone have a solution? Thanks in advance.
> Shannon
>



Relevant Pages

  • Weird issue with System.NullReferenceException
    ... created a datagrid which dynamically gets populated from a person ... web page using the localhost in the page URL ... page using the machinename I recieve the ... click the command button to update the datagrid with new values. ...
    (microsoft.public.dotnet.general)
  • Re: IPostBackDataHandler not working properly with DataGrid
    ... Your code snippet worked like a charm. ... the user control nested in a datagrid. ... Only command events are raised and exposed ... public virtual void RaisePostDataChangedEvent() ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Weird LinkButton!
    ... Am using the command name of the datagrid. ... this code works fine when run in the local machine but throws javascript ... >> in linkbutton control and for my surprise am getting the same error. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple table in dataset query
    ... Here is some information on placing a combobox into a datagrid in .Net 1.1: ... a new parameterized query for the update and insert command which is then ... Private Sub frmStaff_Load(ByVal sender As System.Object, ... Dim dcConn as New OleDB.OleDbConnection("Integrated Security=SSPI;Packet ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Itemcommand event uses wrong comand
    ... and used an EditCommandColumn to get ... Handles property for each command. ... It does edit mode fine, ... "Edit"), and when I click Cancel, it removes the row from the datagrid. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)