Hi nauna,
Use below code.
HTML
<input id="myRange" type="range" runat="server" step="1" value="3" />
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
myRange.Attributes.Add("min", "1");
myRange.Attributes.Add("max", "8");
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
myRange.Attributes.Add("min", "1")
myRange.Attributes.Add("max", "8")
End Sub