.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

creating dynamic hyperlinks

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :ASP.Net

I am a new member to this forum. I have spent some time reading the posts and trying to expand my knowledge with the Microsoft Framework.

I was just looking for a good link to do some research on creating dynamic hyperlinks and passing values threw the URL.

Thanks a lot

View Complete Post

More Related Resource Links

Dynamic .NET: Creating Interactive Bing Maps with Silverlight and IronRuby


Silverlight provides support for dynamic languages such as IronRuby and IronPython. We'll walk you through the creation of a custom Silverlight control using Bing Maps and IronRuby.

Ashish Ghoda

MSDN Magazine February 2010

Design Patterns: Creating Dynamic Factories in .NET Using Reflection


Design patterns are a powerful tool for designing flexible soft-ware. They provide well-tested solutions to recurring software design problems. One such widely used pattern is the Concrete Factory.

Romi Kovacs

MSDN Magazine March 2003

dynamic creating controls in webpart


Hello everybody,


My webpart (wss 3.0, VS2005) initialy contain a listbox. Depeding on the selection made a certain amount of textboxes are to be created and rendered. Via these dynamically created / rendered textboxes text can be submitted (via a button), for futher processing.


I am not sure how, or where in the webpart code, to dynamically create these textboxes.


Maybe somebody can give me some advise on this topic.


Thanks in advance









Help with creating dynamic XAML

Hi,  I need some help creating a complex XAML. I have a HotelRoom table with the below fields, ID Hotel HotelName Date RoomType Quantity  1    34    Hilton        3/5     Single      30  2    34    Hilton        3/6     Single      30  3    34    Hilton        3/7    Double     100  4    39    Express     3/5     King         10  5    39    Express     3/6    Double      20 Now I want the UI to display as a list of different records of Hotels with room details in them and I have created an object that has all the fields from the HotelRoom table,   HILTON               Single     Double    3/5        30          0    3/6 &n

Re;Creating Dynamic Control

Hi, I have a table which stores the data like mentioned below ID Name Values 1 States Karnataka,Tamilnade,AP,UP 2 Karnataka Bangalore, Mysore, Bidar 3 tamilnadu Salem,Chennai,Pondicherry 4 AP Hyderbad,Secunderabad,Vishakapatanam 5 UP Delhi,Agra Now i have to create a dynamic controls for each and every states from the above table. A Sate Name should be dispalyed with checkbox on check of checkbox i have to enable all the cities which is again associated with the checkbox.How do i simulate this functionality using dynamic checkbox and labels. Please help me with a sample code.

Creating Dynamic Group Fields for a Crystal Report?

I have a VB.Net application which generates quite a few Crystal Reports. One report in particular has a Group Section. What I am trying to do with my VB.Net app is pass a value (a sql server column name used in the report). This value is represented by radio buttons. For example, the user may check either "ZipCode" or "State" or "Category" or "Type" or "Vendor". Each of these options represent a column in the database table used in the report. I simply want to be able to write the "SelectionFormula" using one of these options but not sure how to go about it. Thanks, Blake

Custom Field - SP is creating HyperLinks and using HTML entities

Hello. I'm seeking help with a problem related to a custom field in SharePoint 2010. Our Custom Field builds upon (extends) the SPFieldMultiLineText field. Data saved to our Custom Field is being processed by SharePoint before it is sent to the client. For example < and > is replaced by HTML entities (&lt; and &gt;). Text such as http://bing.com and mail@bing.com is automatically being converted to hyper links (<a href="mailto:mail@bing.com">mail@bing.com</a>). Is it in any way possible to have SharePoint deliver the data as it was stored in the custom field? We don't want it to replace HTML with HTML entites, nor should it create hyperlinks automatically. I have attached our XSL file below. <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Micros

Creating dynamic template columns in gridview

how to create dynamic template columns in gridview  . I have writing some of the code but it gives me error The type or namespace name 'GridViewLabelTemplatecould' not be found (are you missing a using directive or an assembly reference?)    I have paste some my code /con.Open();        string strsql = "select ID,CompanyName from tblcompany";               SqlCommand cmd = new SqlCommand();        cmd.CommandType = CommandType.Text;        cmd.CommandText = strsql;        cmd.Connection = con;        SqlDataAdapter adpt = new SqlDataAdapter();        adpt.SelectCommand = cmd;        adpt.Fill(dt);        GridView1.Columns.Clear();        for (int i = 0; i < dt.Columns.Count; i++)        {            TemplateField tf = new TemplateField();            // create the data rows       

Creating views on a form does not allow Hyperlinks to be clicked.

I have successfully created an Info Path 2010 form which 5 views.  On each view it has a raft of information, on some of the views they are multiselect items to other sharepoint lists.  This is the basic make up of the form. The form is about Software Application information. Page 1 is General Information Page 2 Environment Page 3 Support This form is the form that opens for the SP list called Software Applications. When I open this list it shows the Software Application list as expected.  When I click on one of these applications it brings up the form mentioned.  The problem is, when the form loads it does not show the other views, so I am unable to change views.  If I am to change views I must first select EDIT and then the views are available.  The problems is when selecting the other views I can not select the hot links to the other items.  This is a major pain.  The only way I can see around this is only containing one view with the information broken up on one huge page. :(  Any ideas?

Creating dynamic Tab Control in SharePoint


Hello Every one

I have to create dynamic TAB control which display relivance as tabs using jQuery.

Thank you



Customize Live Search.

creating dynamic mini representation of the Active directory tree.

First of all I would like to thank Dunnry for the great output he has provided to almost any post in this forum. I see he has helped almost all of. Also the link with the vb.net web resources he has provided in some of his posts is great. Now I know how to pretty much do anything I need for my project, except one last thing.

In my web interface with active directory I would like to create a represantation of the active directory tree. I would like a user to be able to click on one OU and then get all the child OU listed under that OU and (etc). At the end he/she would be able to create a user in the final OU. I first thought that would not be such a big deal I could use a bunch of nested datagrids or datarepeaters and the result would look like somewhat real structure of active directory. I already built an array and then populated with the names and bounded to a datagrid, just to see if it works, it does. I spent hours online looking for some information or ideas, but I could not find anything. All I found is one javascript, I have not had time to look at the code, but I doubt it that it is server based. I could use the datagrids and repeaters, but the problem is that our tree is huge and different containers have different number of children. It sounds insane to have for example five nested datagrids I don't even want to think about all the code I woul

Creating a dynamic site using custom template programmatically.



I have sites like




I have created Project1 as Template (Save as Template) and this template is available at http://kashyap Site Gallery > Solutions

http://kashyap/Team has a list called projects. I want to do custom workflow which is run by user manually(It is not problem). I want to create site programmatically  based on the template. I did some code Its

 private void codeCreateSite_ExecuteCode(object sender, EventArgs e)
      SPWeb web = workflowProperties.Web;

      SPListItem lst = workflowProperties.Item;
      string title = lst["Project Title"].ToString();
      string url = Common.UrlString(title);
      string desc = "Project from " + Common.GetFormatedValue(Convert.ToString(lst["Customer"

Creating dynamic web controls outside Init method



I am creating a dynamic <asp:Table> based on a user's selection from a DropDownList. The number of columns and rows in the table depends on the user's choice from the DropDown.

The final two columns in each row needs to contain an Edit and Delete button. I am able to create these buttons programmatically. However, I am unable to get the click event to fire.

After researching this, it appears to be the case that my dynamic Web controls need to be created in the page Init method.

However, I am unable to do this as I do not know how many table rows, columns and buttons to create, until after the user has made a selection from a DropdownList.

I would be be very grateful for some tips on the correct way to create and enable the events for my dynamic buttons, in this scenario.

Here is a brief outline of how the program currently works (this is just a brief outline I quickly sketched, small details may be wrong!):


<asp:DropDownList ID="ddlMyDropDown" runat="server" 
                onselectedindexchanged="ddlMyDropDown_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>

<asp:Table ID="tblMyTable" runat="server" /> 

Creating a pivot of a collection and displaying it in a databound grid with dynamic columns



I'm trying to create a pivot of some data that I have about translation.

Basically what I have now is a collection of "Translation" objects which look like that :

Public Class SystemText
  Inherits Entity

#Region "Private variables"
  Private _textCategory As String
  Private _textName As String
  Private _languageCode As String
  Private _description As String
#End Region

#Region "Properties"
  Public Overridable Property TextCategory() As String

Creating dynamic category menu integrate with back office.


Dear friends,

Im developing ecommerce website and i want to add category menu to my website. This category menu should have 2 levels for sub categories as well. I tried navigation controls in ASP.net. But still i cant understand how to create the navigation menu in order to integrate with back office. I understand that i can do this with XML file, But if i want to add new products categories or remove categories, XML file should update automatically according to that. I don't understand how to do that. In brief all i want is create category menu with subcategories and i want to control this from my back office.

i read this tutorial http://www.asp.net/web-forms/tutorials/tailspin-spyworks-part-3  But it doesnt shows subcategory menus.

Im new to asp.net. so please explain me what is the simplest way to create such menu,

Creating function in all databases using dynamic sql



We have to create a stored procedure which runs in SQL 2000. The swtored procedure has to take a database name as input paramaeter and then it has to create a scalar valued function in the input database. Following is the query i'm using but it's creatin in on the current database only not on the input database.


SET @SQL2='CREATE function dbo.fn_C (@string1 varchar(15))
 returns varchar(15)
  --Manipulation steps

    RETURN @string2

Even I tried to merge use db statement before create function, but it's throwing an error saying 'create function has to be the first parameter'

Please suggest how can I acheive the functionality by modifying the stored procedure.

Thanks in dvance.

Creating Dynamic Expressions for Lambda IQueryable Expressions



I have a ListBox that contains userNames which is inputted by a user during run time. This number of items in the ListBox is dependent on the user's input. These userNames will then be used in a Lambda expression like this:

var vHandleResult = vHandleResult.Where(a => a.UserName.Contains("userName"));

This works fine when there is only 1 user in the ListBox but doesn't produce the correct results when there are multiple items in the listBox. I tried manually creating the expression which should be written as this:

var vHandleResult = vHandleResult.Where(a => a.UserName.Contains("userName1") || a.UserName.Contains("userName2") || a.UserName.Contains("userName3") || a.UserName.Contains("userName4"));

I tried forming the "a.UserName.Contains("userName") expression as a string which is dependent on the number of the items (using foreach) and then just plug in the resulting string in the expression but it seems that it doesnt accept string as an expression.

Can someone help me identify the best approach for this?

Thanks in Advance!


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend