.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

adding a link like a control in toolbox

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

Hello all forum members,

I was getting tired of copying and pasting Lorem Ipsum text on my web page.

how can i made a Lorem Ipsum text script as link in tool box, so that, after th

View Complete Post

More Related Resource Links

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Adding new items to a Repeater control with transitions?



I am currently in the process of writing a facebook type 'activity feed' for a site. Currently I am binding the last 10 items to a repeater control, which contains a usercontrol representing each item. This works fine but there are a couple of requiremnts that are giving me problems and wondered if the the good people of the forum could make some suggestions.

The requirement is that when a user clicks a refresh button any new events are added to the top of the list, the previous items drop down and the equivalent number of old items drop off the bottom, all with nice slider transitions.

I have put the repeater inside of an update control and are able to handle the transitions by using RegisterStartup script to drop jquery calls onto the page for the slider. However I cannot find a way to dynamically add or remove new datarows to the repeater. I need the old items to stay in the repeater and be pushed down by the new items, so completely refreshing the datasource seems like a bad idea.

I was thinking about maybe storing the datasource in the viewstate and adding rows to that, maybe with an extra column on the end which stores what transition is needed on the databind for my jquery, but there will be a 'View more items' link at the bottom of the page, so I am worried that the list could get pretty large and there

video tutorial link for composite and rendered custom server control


hii all

i am new to technology so go easy on this post

according to what i read from web there are 3 type of custom server controls

1 superclass

2 composite

3 rendered

i found video tutorial for superclass custom server control but couldnt find video tutials for other 2.

please forward me link for composite and rendered custom server controls video tutorial  

How can i make a WPF transparent group box control that is in the toolbox?

How can i make a WPF transparent Groupbox control that will show a picturebox image behind it? Thanks -civilwarrock

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

Adding Control To The Child ASPX Page

While i add a asp.net label control to the existing child page to modify it. It gives an error  "SharePoint Designer cannot render the XSLT in this Data View. Try to undo your changes or re-insert the Data View.Failed setting processor stylesheet : 0x80004005 : Keyword xsl:when may not be used here."  Pl z suggest the solution

"Unknown error" when adding link to My Links

When I click "Add to my Links" I get an unknown error, but only with some users. "Manage Links" works, mind you. But I still can't figure out what differs between those users... any suggestions?(People in this thread have a somewhat similar error, but with "Manage Links" instead of "Add to my Links".)

Adding a column from another List to a Dataview? Must I link sources or can I just add a new data so

Using Designer, I added a dataview to a webpart page and dragged in a single list source. It works as expected. I now want a column from another list in my view. Must I link in another datasource, or can i just insert the data source for the second list into my datasources? The new datasource is there in the code and I see the caml select for it. but my XSL still does not find data: <xsl:value-of select="/dsQueryResponse/Master/Rows/Row[@ID = current()/@Key]/@Lastname" /> I noticed my new columns are not in the <datafields> tag, I tried adding them but it did not help. If Master is my lookup list , @Key is the dataview I will match with and @ID is the column in Master, and @Lastname column I want to return, is the above syntax correct? Many Thanks.    

Why the installed 'Ajax Control Toolkit' tab disappeared from VS Toolbox? Where is HTMLEditor?

I am new to AJAX and here are my questions for Ajax Control Toolkit.1. I had downloaded the 'Control Toolkit' to my c: drive and added 'Ajax Control Toolkit' tab to VS toolbox.  Somehow the 'Ajax Control Toolkit'    tab disappeared later on, although the AjaxControlToolkit.dll is still shown in the bin folder and the Ajax Control Toolkit is still available in the    aspx file I created before.  Why?  This is probably the 4th time I added the toolbox tab for the Ajax Control Toolkit.2. I checked the Ajax Control Toolkit list in my VS Toolbox, there is no HTMLEditor.  Or any other names for this HTMLEditor?  Or I need to    download the updated Ajax Control Toolkit? --  Jeffrey      *******************************************************************************************************************************Here is my notes to instal Ajax Control Toolkit A.      Download the Control Toolkit: http://www.asp.net/Ajax/AjaxControlToolkit.Click "AjaxControlToolkit-Framework3.5.zip to extract to C:\AjaxControlToolkit.B.      Copy the available toolkit files to Binaries folder: Open :\Program Files\ AjaxControlToolkit\ SampleWebSite\bin and copy all the files and paste to Binaries folder.  C.&nbs

Adding XAML via control property

Hi, I'm attempting to create a custom chart control that has 1 or many line series within it. My question is, is it possible to create a property of that control, that when checked in the designer, will automatically add the line series xaml within the chart series? For example, if you click on the "Add Test Series" check box, which is of type boolean, it will then add <chartingToolkit:LineSeries /> into the xaml of the control as well as to the series of the control.   <local:TestChartControl> <chartingToolkit:LineSeries /> </local:TestChartControl>     Thanks  

Ajax - literal not updated after adding a regular html link

Hi,Took me a while to track this down and a number of hours trying to figure it out, but at this point I just do not get it. I have a master page and a content placeholder in it encompassed in UpdatePanel like this:...<aspUpdatePanel...>    <asp:ContentPlaceHolder...>    </asp:ContentPlaceHolder...></asp:UpdatePanel>...<asp:UpdateProgress...>...</asp:UpdateProgress>And then a page like this:...<asp:Register ... MyControl...><asp:Content...>    ...        <ctl:MyControl ID="myControl"... />    ...        <asp:Literal ID="literalError"... />        <asp:Button ID="ButtonSubmit" OnClick="ButtonSubmit_Click"... /></asp:Content>Now, the control's .aspx is like this:...some .net controls here...And the code-behind is like this:protected override void ValidateForm(){     ... some validation here ... this.error = "some error"...}The control inherits from a custom control that looks like this:public abstract class MyCustomControl : UserControl{    ...    private string error;    ...    protected abstract void ValidateForm(

Adding New Error Message to Validation Summary Control



 In the code behind based on a condition i want to add a error message to the Validation Control.

 I tried the below.

 'Call function to add error message.
protected void AddErrorToValidationSummary(string errorMessage)
 CustomValidator custVal = new CustomValidator();   
 custVal.IsValid = false;   
 custVal.ErrorMessage = errorMessage;  
 custVal.EnableClientScript = false;   
 custVal.Display = ValidatorDisplay.None;        



adding ClientID to server control


hey all,

need help withthis one...

I need to add ClientID of one control to another server control attribute

this line works

<div content="<%= challengesTab_content.ClientID%>"  id="challengesTab">Challenges</div>

but when I add runat=server it doesn't get the clientid and just renders whatever is in content attribute

<div runat="server"  content="<%= challengesTab_content.ClientID%>"  id="challengesTab">Challenges</div>


so is there any way I can do it since I want to access this control on server side :s


adding windows user control in asp.net application


hi fri i had created one user control in c# and i want to add this user control in asp.net application pl tel me how to do this

thanks in advance

How to populate a link on a Label control?


I have a requirement where I need to place a link inside a label. I am giving the method below for your reference.

  public override void PopulateDataUI(Object o)
              CustomerInvoice data = o as CustomerInvoice;

              CIPI_InvoiceNumber.Text = data.InvoiceNumber.ToString();

            //I have written as below but it's not working.    

            //LinkLabel lnk = new LinkLabel();
           // lnk.Text = data.InvoiceNumber;
           // CIPI_CustomerName.Text = lnk.Text;


       NB:     CIPI_InvoiceNumber is the name of the Label I am using.


Can anybody please  suggest me a solution. I am working on C#.net 3.5 and my project is a Windows Application






Gridview Link Button control click event


Respected Reader,

I have  Web page that uses LinkButton control inside Template Fields of Gridview.

I am trying to work on LinkButton Click event and trying to preserve the Value of LinkButton that user click, and based on that value, i want to refresh tha page data.

I used CommandName and CommandArgument property of Linkbutton, but i can use that property only in GridView_RowCommand method by checking e.CommandName expression. But the problem with that Gridview_RowCommand event fire after all other page_load activity. So the value never used in the page_load event to refresh the data in all other control.

I also tried to use OnClick Method, Session variable and Hidden variable. but when i run Response.Redirect method from Gridview_RowCommand, it clear all the Session and Hidden variable values. also tried (Response.Redirect(,false)) method but never got success.

Any suggestion will be appricated in advance.

Error adding Global Navigation Link


We the following error when adding a custom link to the Global Navigation at the top-level of the site (sub-sites inherit Global Nav):

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Here is the full error log:

09/29/2010 13:38:11.66 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Name=Request (POST:http://SERVER:80/_layouts/AreaNavigationSettings.aspx)	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.66 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Site=/	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.71 	w3wp.exe (0x1194)            	0x03A4	Web Content Management    	Publishing Cache       	fev4	Medium 	CreatePageFromUrlNoUpperCase failed with ArgumentException. Url = '/TEST/SITEPAGES/HOME.ASPX'.	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.71 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Monitoring          	b4ly	High  	Leaving Monitored Scope (CachedObjectFactory: Caching Page at: /TEST/SITEPAGES/HOME.ASPX). Execution Time=19.7002691682881	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.72 	w3wp.exe (0x1194)            	0x03A4	Web Content Management    	Publishing Cache       	fev4	Medium 	CreatePageFro
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