I have this code to fill the TagCloud control, but I don't know how can I set the NavigateUrl to a field which is not contained in database, something like ("~/Postbackpage.aspx?Make=Audi") ...for each tag there will be a different querystring for the NavigateUrlField.
protected void BindTagCloudToDataTable(RadTagCloud cloud) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["SpecsConnectionString"].ConnectionString); SqlDataAdapter adapter = new SqlDataAdapter("SELECT [Make],count(*) AS [Weight] FROM [VehicleSpecs] group by [Make] ORDER BY [Make]", con); DataTable links = new DataTable(); adapter.Fill(links); cloud.DataTextField = "Make"; cloud.DataWeightField = "Weight"; cloud.DataNavigateUrlField = "NavigateUrl"; cloud.DataSource = links; cloud.DataBind(); }
I haven't use the TagCloud but I would think that you can do something like this:
protected void BindTagCloudToDataTable(RadTagCloud cloud) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["SpecsConnectionString"].ConnectionString); SqlDataAdapter adapter = new SqlDataAdapter("SELECT [Make],count(*) AS [Weight] FROM [VehicleSpecs] group by [Make] ORDER BY [Make]", con); DataTable links = new DataTable(); adapter.Fill(links); cloud.DataTextField = "Make"; cloud.DataWeightField = "Weight"; cloud.DataNavigateUrlField = "/PostBackPage.aspx?Make=" + "Make" cloud.DataSource = links; cloud.DataBind(); }
Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.
Now many of you may wonder how you can reach great design with least number of essentials. Isn’t stuffing ‘more and more number of elements that speak for the purpose’ the right way to do it? Erm, not always, and in this write-up, you will see why.
Laravel is the most sought after web development framework. It comes with ample amount of features that make it easy for developers to work around it. Know about its features in detail.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern:
T…