1,105,578 Community Members

Create button dynamic

Member Avatar
chamnab
Junior Poster in Training
70 posts since Aug 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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 ?

Member Avatar
JorgeM
IT Addict
6,413 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

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

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