-1

Hello everybody,

I want to transfer gridview cells values from one page to another. Here I used query string but to shock its working for some fields and for other fields(gridview cell values) its not working.

The page which has gridview I used this syntax:

Public ReadOnly Property email() As String
Get
Return GridView1.SelectedRow.Cells(3).Text
End Get
End Property

The page where i want to use those values I used this syntax

lblemail.Text = Request.QueryString("email").ToString

Error: Object reference not set to an instance of an object

Thanks for your help..

Votes + Comments
post your response
2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by kamilacbe
0

hi..

this error can be caused when u attempt to hold some data and insert into table or to next page .. when u catch that exception debug it in run time and find which control is empty or null and work for that particular cell or column control ..

hope this would help you..

0

hi..

this error can be caused when u attempt to hold some data and insert into table or to next page .. when u catch that exception debug it in run time and find which control is empty or null and work for that particular cell or column control ..

hope this would help you..

yeah its from null or empty value, but my gridview cells has values. Why i'm gettin this error.

thanks ...

0

hi..

can you explain more about your task..are you selecting a full row from gridview ?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.