TextBox5.Text = Format(TextBox5.Text, "####.##")
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<asp:TextBox ...... onkeyup="dothis()" ....../>
<script>function dothis(){$("#"+<%= TF.ClientID %>).val($("#"+<%= Fattend.ClientID %>).val() * $("#"+<%= Fhour.ClientID %>).val())}</script>
CommandArgument='<%# Bind("VersionID") %>
protected void gridView_RowCommand(Object sender, GridViewCommandEventArgs e) { if( e.CommandName == "Add") { Response.Redirect("/your page.aspx?VersionID=" + e.CommandArgument.ToString()); } }
Protected Sub ddcategory_SelectedIndexChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddcategory_SelectedIndexChange Dim strSQL As String Dim connection As SqlConnection = New SqlConnection("Data Source=ML0003135586;Initial Catalog=TestSQL;Integrated Security=True") strSQL = "SELECT [CourseTitle] FROM [tblTrainingPlan] WHERE ([Category] LIKE '%' + @Category + '%')" connection.Open() Dim command As New SqlCommand(strSQL, connection) command.Parameters.AddWithValue("@Category", ddcategory.SelectedValue.ToString()) cbTitle.DataSource = command.ExecuteReader cbTitle.DataTextField = "CourseTitle" cbTitle.DataValueField = "CourseTitle" cbTitle.DataBind() command.Dispose() connection.Close() End Sub
protected int CurrentPageNo { get { object value = ViewState["CurrentPageNo"]; return value == null ? 1 : (int)value; } set { ViewState["CurrentPageNo"] = value; } }
tiff0.GoToPage(<%= CurrentPageNo %>)