skip to Main Content

'Incorrect syntax near '.'.' – Asp.net

TextBox txtStatus = GridView1.Rows[e.RowIndex].FindControl("TextBox6") as TextBox; string strcn = ConfigurationManager.ConnectionStrings["dbconnection"].ConnectionString; SqlConnection con = new SqlConnection( strcn); con.Open(); SqlCommand cmd = new SqlCommand("update Associate_Table set [Status] = @Status where [Associate ID] =+Convert.ToInt32(id.Text)", con); cmd.Parameters.AddWithValue("@Status", txtStatus.Text); int i = cmd.ExecuteNonQuery(); con.Close(); plz…

VIEW QUESTION

Blazor binding issues with parameter – Asp.net

I've got a component like this: <h3>@IsEnabled</h3> @code { [Parameter] public bool IsEnabled { get; set; } } And a page like this: !!! OLD CODE, CHANGED CODE WITHOUT INFINITE LOOP BELOW !!! @page "/" <PageTitle>Binding Test</PageTitle> <BlazorBindingTest.Components.MyComponent IsEnabled="@IsEnabled"></BlazorBindingTest.Components.MyComponent> @code…

VIEW QUESTION

Gremlin.net.dll not found – Asp.net

when moving from Gremlin.net 3.6.1, to 3.6.2 I get a FileNotFound Exception pointing to "rootOfProject"/Gremlin.net.dll This is happening in my startup.cs when instantiating the GremlinClient services.AddSingleton<GremlinClient>(s => { GremlinServer server = new GremlinServer(hostname: "host", port: 443, enableSsl: true, username: $"collection",…

VIEW QUESTION

how to pass float type to url in c#? – Asp.net

in client side : <script type="text/javascript"> function ShowDetailPopup(FPS_Code, PhaseNo) { popup.SetContentUrl("test4.aspx?id=" + FPS_Code + "&PhaseNo=" + PhaseNo); popup.Show(); } </script> in server side: using (SqlConnection con = new SqlConnection(strcon1)) { SqlCommand cmd = new SqlCommand("SELECT ID,DocumentNo,ReleaseNo,PhaseNo,FPS_Code,DrawingNo FROM Project1 WHERE FPS_Code=@FPS_Code…

VIEW QUESTION
Back To Top
Search