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 ?

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

  button.Attributes.Add();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.