View Complete Post
I created a Visual Web Part project in VS 2008. Try to create the proxy code for a site using SPmetal. I got this error:
Error: An item with the same key has already been added.
We have two requirements:
First, we need a column which shows the count of attachments that are for uploaded each item, the list structure is like below:
I am a 'newbie' to VWD and I am slowly working through the Basic Walkthrough Help files, and learning plenty along the way.
However, when I tried to create a new database in the LINQ control walkthrough I found that the option to create a new database is missing, and further investigation has found that many other new item templates are missing.
I am using a brand new machine with Windows 7 Ultimate and have enabled IIS and .NET from Control Panel-Programs-Turn Windows Features On-Off. I used the WPI to install all basic elements eg. IIS Components, SQL Server Express.
The only 'new item templates' I have when I right-click the App_Data Folder and choose 'new item' are:-
ADO.NET Data Service
AJAX Enabled WCF Service
Dynamic Data Field
SQL Server Database
Does anyone know where I have gone wrong.
Michael J. Hill
hi to all ..thanks in advance
I have Two datatables dtA,dtB ,both contains column name is "FiledName" I need to remove item
from dtA when same row data exists in dtB. please tell me how to do it
I want o/p like this
I am new to this, so bear with me. I am writing an application in C# that uses LINQ to validate a datacontext off a textbox to see if the record exists already. If the record does exist I inserted an if statement to advise the user that the record exists, if the record does not exist I would like to allow the record to be added to the database. If I take out my else statement everything works fine as far as inserting goes, but I do not want to allow inserts in this scenario. I have tried moving the if and else statement to different parts of the code but can't quite figure this one out. Any help would be apprecaited, attached is the code. This code is set to a button press. As a matter of fact, if you see any other errors along the way please feel free to point them out.
protected void enterBTN_Click(object sender, EventArgs e)
//make new data context
SHCDataContext insNewAll = new SHCDataContext();
//LINQ to check if customer exists in database
var checkExisting = from c in insNewAll.Customers
//make list to store values
I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.
I have the following questions:
In this column, Brian Randell explains how to build a simple Work Item explorer and demonstrates the core operations needed to add work item support when building your own add-in.
Brian A. Randell
MSDN Magazine April 2007
Visual Studio 2005 introduces a new model that lets you define your own project templates and starter kits, something developers have been requesting for some time. Here Matt Milner shows you how to consume, create, and customize these templates.
MSDN Magazine January 2006
Direct Internet Message Encapsulation (DIME) is a new specification for sending and receiving SOAP messages along with additional attachments, like binary files, XML fragments, and even other SOAP messages, using standard transport protocols like HTTP. In this article, the author explains what DIME is and how it differs from MIME encapsulation. A detailed description of the message format and how it is parsed, as well as working with SOAP and extending it with WSDL, is also included.
Jeannine Hall Gailey
MSDN Magazine December 2002
I want to apply a css class to the level 1 menu item (parent) when it or any or it's children are selected.
I've looked at MSDN documentation and any number of examples and walkthroughs but I haven't come up with a way of managing this. I was thinking something like this might work but the style is not being applied to the parent. To further complicate matters, if I try to apply a css style to StaticSelectedStyle it doesn't pick it up at all.
<StaticSelectedStyle Font-Bold="True" ForeColor="#3333CC" />
protected void MenuItemClick_NavMenu(Object sender, MenuEventArgs e)
MenuItem parentItem = e.Item.Parent;
if (parentItem != null)
parentItem.Selected = true;
i have a dropdownbox and a gridview
what I want is to have a list item which populates all data in a gridview.
I have tried using list item selected value=0 but to no avail.
what is the easiest way to achieve this?
I have a form where I took 2 dropdownlists. In 1st ddl I displayed all Religions and in 2nd DDL I displayed related castes. When my user filled the form so everything saved it. But when user logged in I unable to show him his choosen caste. Religion I displayed throgh RellgionId. But I don't understand how to do that?
Can anyone tell me where I am doing mistake?
I am working with a company that has 1 site collection with several sub sites. I have built 3 document libraries with workflow in 3 different sub sites and all behave as expected. I have one site where ALL libraries do something perplexing;
If you are in a custom personal view and you go into the properties of a document and then exit (update or not, does not matter) it reverts back to the default view of that library.
Has anyone seen this? is there an option when creating an album that could cause this?
thanks in advance for any input on this odd issue.
Has anyone run into this? We have a calendar that, only on the 8th and 9th of the month, fails to show the last item:
It shows the hyperlink for "1 more item", but when you click it, it remains at "1 more item", rather than changing to "collapse". After verifying, there is one more item in the list that isnt getting displayed.
I am running WSS 3.0 with other workflows which are functioning correctly.
I created a new workflow in Visual Studio 2008 and was able to successfully run it in my dev environment.
I attached the workflow to a task list in my dev environment and was able to manually start the workflow by using the drop down workflow option and using the menus to manually start it.
I installed this workflow in our production environment and attached it to the task list (which had a SPD workflow attached to it which stopped working about a month ago).
I made sure that the option to manually start the workflow was checked.
When I tried to manually start the workflow, (hover mouse over title, drop down) there isn’t a workflow option.
The workflow also will not start automatically when a task is changed.
I attached this same workflow to a different task list in production and get the option to start it.
I have tried creating a small workflow in SPD 2007 and attaching it to the task list.
It shows that it is attached, when I look at the workflows that are attached to the task list, but I still don’t get the option to manually start it.
I have checked my security and I have fu