Parameterized Queries - Asp.Net

Feb 20, 2019 BY xtreme

A parameterized query includes placeholders for the actual data to be passed inUsing Sql Commandstring strQuery = "select Id,Name from Table where Name = @name"; SqlCommand cmd = new SqlCommand(strQuery, con); cmd.Parameters.AddWithValue("@name", txt.Text.Trim()); DataTable dt = GetData(cmd); ...

Tab n MultiView Control In Asp.Net

Feb 19, 2019 BY xtreme

INTRODUCED IN ASP.NET 2.0The New MultiView control works in tandem with an embedded View Control. Each View Control acts as a content container and behaves very much like a Panel or Canvas Area. At run time, the MultiView control manages the view controls to ensure only one View is visible at a time...