Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Cameron Evans   on Mar 30 In Asp.net Category.

  
Question Answered By: Marta Kim   on Mar 30

what I am doing now is on the edit  mode if the selection clicked is = Add row  I am setting a public Boolean var to true then in the update  cmd I check for that var to be either true or false and based on that I am doing something BUT

IN my edit cmd I have


If CType(e.Item.Cells(1).Controls(1), LinkButton).Text = "Add New" Then

Addrow = True

Response.Write(Addrow clicked)

End If


Then in my update command I am doing:

Response.Write(Addrow)

If Addrow = True Then

Response.Write("True")

ElseIf Addrow = False Then

Response.Write("False")

End If

I know I can simplify that saying If addrow then but!!!!


It always sets itself to false EVEN if I click on add  row which is suppose to set the public var to true....

WHY what am I doing wrong here?

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Link buttons on DG Or get search suggestion and latest updates.


Tagged: