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

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT
Post New Web Links

Problems with control

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
Hi thereI am currently helping out with a website and we are using literals to display images. This works fine in Internet Explorer but as soon as I run it in google chrome the images do not load. The following is the code using linq to sql & MVVM to pull the information out the database. Any Assistance would be appreciated. phWomen is the name of the literalStringBuilder sb = new StringBuilder();             foreach (WomenViewModel wvm in Women)             {                 sb.Append("<a href='_Portfolio.aspx?ID=" + wvm.Women.WomenID.ToString() + "'><img alt='' border='0' height='152' width='238' src='Content.aspx?ItemID=" + wvm.Women.WomenID.ToString() + "&ItemName=womanmainphoto'/></a>");                              }             phWomen.Text = sb.ToString();StringBuilder sb = new StringBuilder();foreach (WomenViewModel wvm in Women){           sb.Append("<a href='_Portfolio.aspx?ID=" + wvm.Women.WomenID.ToString() + "'><img alt='' border='0' height='152' w

View Complete Post

More Related Resource Links

Has anyone experienced problems using a reorder list control in Chrome/Firefox?


I have three reorder lists on a page, one does not want to work. It is no different to the others, but is behaving like it is not enabled.

All working fine in IE 7 + 8.

Any ideas appreciated :)

Having problems with the TreeView control.

I'm having problems with the TreeView Web Control.  What I am aiming to accomplish is to populate a TreeView control with my Active Directory information (similar to how it is structured in Active Directory Users and Computers) and when a node is selected, it's associated value is displayed in a text box.  I have the OnTreePopulate method and OnSelectedNodeChanged method implemented.  Each node has a name and value, which the value is the LDAP path I want displayed in the text box.  SelectAction = TreeNodeSelectAction and PopulateOnDemand =true.  Is there anything I'm missing? thanks, Pat

Problems with the TreeView Web Control

I'm having problems with the TreeView Web Control. What I am aiming to accomplish is to populate a TreeView control with my Active Directory information (similar to how it is structured in Active Directory Users and Computers) and when a node is selected, it's associated value should be displayed in a text box. I have the OnTreePopulate method and OnSelectedNodeChanged method implemented. Each node has a name and value, which the value is the LDAP path I want displayed in the text box. SelectAction = TreeNodeSelectAction and PopulateOnDemand =true. Is there anything I'm missing? thanks, Pat 

Problems with a .NET4 Control GAC Reference failing at runtime but fine during debugging

I believe this question is specific to the CLR how ever I will test this in a Forms Application later. I have multiple .Net 4 Targeted WPF Applications that Reference Non Microsoft .NET 4 WPF Controls that I can confirm are in the GAC. Everything Debugs Great (Noting that none of the references are copied to the output directory) and Install's well using a Setup Package and manually installing has the same effect even after a reboot. The problem is the application will not start even as an administrator as it does not find the Control References in the GAC. This also happens if I try to start the application manually in the visual studio output Directory. I can also confirm that opening the application in reflector that reflector is able to correctly find the references. Finally if I copy the controls (.dll's) to the location of the application everything runs as expected for all the above issues.   My question here is why is my application not able to load the .NET 4 controls from the GAC? Also note that everything uses a Strong Name.

Problems with People-picker control in a large organisation.

We are experiencing very slow people searches, when trying to pick a user from a SP group containing 500 names. Some people this week have experienced errors after about 10 minutes of waiting. Background: I have a form where the users need to pick an Authoriser. The List of Authorisers is held in a Custom Sharepoint Group. Site column was then built to select people from that SP Group. The good news is the Lookup address book dialog shows the group members OK Unfortunately if the users do a search in this dialog, or from the main form, the server now takes (on average)  around 3 minutes 51s to find the user (from about 500 names), and sometimes fails completely - either with an error, or just returns control to the form with no result. Has Microsoft changed the algorythm for this search to search the entire AD? (I am working in a huge organisation with domains round the world, some are NT4). On a previous project (last year) a similar search only look 2 s! Any suggestions? Any recent Server packs that might impact this (possitively or negatively?) Thanks Ruth, UK

Dynamic Textbox List Control - problems refreshing


Ive been stuck on this one for a month:

So I have a custom control that has a list of textboxes, and a button that will dynamically add a new textbox to the list.

 So I have an addTextbox() function, that will do something like

TextbBox t = new TextBox()

 then I add it to the page.  So adding a new textbox works fine, but I have values that I want to put into each textbox and upon each page load, the values get replaced.  What I need to do is get the textboxes from the viewstate so I can use their values for other textboxes, but since they are created anonymously, im not sure how I can do that.  I tried to get the unique name and put all of them into an arraylist, then upon the next page load, load the names from the list, but the unique name isnt unique.  Thanks

x86 to x64 problems with ResourceDictionary Custom Control


I created a Resource Dictionary in x86 architecture and it worked perfectly until i tried building it in x64. The error Im getting is:

Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Client.Controls' that is not included in the assembly.    C:\Users\[USER]\Documents\Visual Studio 2010\Projects\Client\Client\Resources\Label.xaml


The ResourceDictionary looks as followed:


I have a class with the

Auto click Literal Control on Form Load


Hi Everyone,

          How can one Auto click a Literal Control button on Form Load???

Literal control decoded text & XSS attack


Hi all-

I have a FreeTextBox editor set up on a page for clients to HTML format the data they enter.  I collect the data, encode it and save it to the DB.  Upon retrieval, I decode it and display it in a literal control. 

Everything I'm reading to prevent an XSS attack says it should be encoded in the literal control.  But if I do that, the data won't display how the client formatted it - it displays as encoded text.

So, how do I show the formatted data (html) in the literal control and prevent a XSS attack at the same time?

asyncfileupload problems when upload two files with the same control


Hello, first of all, sorry for my English,

I'm using AsyncFileUpload, when i upload a file all works fine, but when upload finish, i want to upload another file with the same control, but not work,  always enter in the uploadError event, i dont know why.

¿What can i do for reset the control?

Thank you,


Problems with Repeater Control, Update Panel and the Toolkit controls


Hi Guys,


Having a bit of an issue with the Toolkit controls.

I have a Repeater Control nested inside the Update panel, the repeater item template contains a multiview control allowing users to flick through seperate bits of information. This was working fine the async update was perfect, no issues.

I have then decided to include the rating control to one of the views. problem is now everytime i want to change the view it causes the whole page to postback.  

Attached is the code.

Any help is much appreciated

Problems with Treeview control and button


I have a page with an ExtJS window and a asp:TreeView control and a asp:button inside it. When I click in the button, it doesn't fire the onclick event. When I change the UseSubmitBehavior property to false, it does fire the event, but the treeview CheckedNodes.Count is equal zero. I don't use (intentionally) any AJAX component in this page, so, why the onclick button doesn't work without "UseSubmitBehavior=false"? And why my CheckedNodes.Count is always zero? I have another simple page (without any complex javascript library) with the same treeview and button objects, and all controls works fine.

AJAX Validatorcallout control problems


Hiii Everyone i have been trying to use the AJAX Validatorcallout control to my asp project...but it gives some error that it cannot be used with asp textboxes...any way to use it...

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.

Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

In-Depth look at the GridView Control

In the last article we looked at few of the new controls available in Asp.net 2.0. We also talked about Grid View Control which has replaced the Asp.net 1.1 DataGrid control for good. In this article we will examine more features of the Grid View control. In this article we will see some of the common operations that can be performed using the GridView control. Apart from these operations there are many more functions that can be performed on the control and which we will see in the later articles

ASP.NET repeater control - databind with style

even used the inline editing features, which I at the time thought was the coolest way possible to write ASP.NET code ( I managed to write code to hide all other rows and only show the current one - the row being edited). With a nice looking EditTemplate it looked indeed very slick but it really turned into giant and hard to manage code behind files.
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