D
Dstl Web Team
Any advice on the following please?
Got a repeater on my page listing records from a database.
I slot a button in the last column which takes the record unique ID as
it's CommandName.
When the button is clicked it calls a function and passes the ID
So:
Sub FuncName(ByVal sender as system.object, ByVal e as
RepeaterCommandEventArgs)
Dim btn as Button
Dim IDdata
IDdata = btn.CommandName
IDdata is then used to query a database to return all the record
details for that unique ID
End FuncName.
I get the error of "Object reference not set to an instance of an
object". I'm definetly pulling a value out because the following test
prints the value to the screen.
TextBox.text = IDdata
Help
Thanks
Kevin
Got a repeater on my page listing records from a database.
I slot a button in the last column which takes the record unique ID as
it's CommandName.
When the button is clicked it calls a function and passes the ID
So:
Sub FuncName(ByVal sender as system.object, ByVal e as
RepeaterCommandEventArgs)
Dim btn as Button
Dim IDdata
IDdata = btn.CommandName
IDdata is then used to query a database to return all the record
details for that unique ID
End FuncName.
I get the error of "Object reference not set to an instance of an
object". I'm definetly pulling a value out because the following test
prints the value to the screen.
TextBox.text = IDdata
Help
Thanks
Kevin