1.11M Members

Create button dynamic

 
0
 
Dim edit As New Button   
edit.ID = "edit" & i
edit.CssClass = "floatLeft"

This code will create a button but its type is 'submit' .
How can i change it to 'button' type ?

 
0
 

I've added different attributes to controls like this...

  button.Attributes.Add();
You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article