|
I have an asp.NET 3.5 web project in C# that includes references to
System.Core
System.Data.Linq
System.Xml.Linq
and a page with the following test code ...
var a = (from b
in columns
where b.IndexOf("IDENTITY") == -1
select b).Single();
The solution compiles, but when I run the application I get the following error ...
Compilation Error
Description: An error occurred during the compilation of a
resource required to service this request. Please review
the following specific error details and modify your
source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Linq'
does not exist in the namespace 'System' (are you missing an assembly reference?)
Source Error:
Line 15: using System.Text;
Line 16:
Line 17: using System.Linq;
Can anyone help?
EDIT: I've just found this page http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3114187&SiteID=1[^]
It looks like I need to add the correct version of the references and add some information to the web.config file.
EDIT 2: I've checked all the references and they are fine, now I get a different error ...
CS1026: ) expected
yet this works fine in a console application with exactly the same references!?
Jim
modified on Thursday, May 8, 2008 5:23 PM
|
|
|
|
|
I used to get a lot of errors about LINQ earlier.
You need to re-create the references again for LINQ from following path:
C:\WINDOWS\Microsoft.NET\Framework\v3.5
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
How should I use database in multiple languages website?(I use localization in my website).How should design the tabels?
|
|
|
|
|
I dunno that I'd expect to store multi language stuff in the DB, but if I did, I'd probably have a column for each language supported.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
can you give me a reasorce for How use my database?
|
|
|
|
|
If you google your query then you may found some more articles relating to what you want
|
|
|
|
|
I am creating a custom gridview and need to pass the page's sortExpression string to the custom gridview control. I tried using the ViewState; however, it does not work. Next, I wanted to use a .Net class that implements the IStateManager for this purposed; however, I could not find one available. What is the best way to use the viewstate for passing a string value from a web page to a custom control or is there a class that implements the IStateManager that I can use. I would hate to build a new class the implements IStateManager just for passing a string. Note: currently I have to use a static property in the custom control for doing this but would like to use viewstate.
Thanks
|
|
|
|
|
The obvious way is to have a property in your custom control and just pass it in with code from the page that contains it. Viewstate exists only within the page, or the control, it doesn't cross over like session state does.
Steve Holdorf wrote: Note: currently I have to use a static property in the custom contro
Why ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The reason I used a static property in the custom control is because on each postback the custom control is garbage collected so if the property were not static it would be lost.
Thanks!
|
|
|
|
|
Anybody Knows How to create Dynamic gridview? Plz put the code.
Thanks in Advance!!!
Sabarees
|
|
|
|
|
GridView gv = new GridView();
Then add it to a controls collection. Why do you want to do this ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello friends,
Please first visit my page tutorbene.co.uk
there click on free demo i have used a div that is poping out but my problem is that if i scroll this page up or down the whole div moves.
I want this div to be positioned on the left bottom position.
Please help me.....
Deepak Nigam
|
|
|
|
|
How to display same column values in a harizontal order in gridview?
Thanks in Advance!!!
Sabarees
|
|
|
|
|
You can't, unless you change your data source accordingly. The easiest way to do this is a repeater.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
Is there a way that I can dynamically determine all the images in a bannerfarm and then display them as thumbnail images. so if some of the image are removed or added on the bannerfarm it will update on the site and only display what is in the bannerfarm.
I'm trying to keep the site independent from the bannerfarm.
If someone can just nudge me in the right direction, this is the first time that I'm working with bannerfarms so I'm not exactly sure how to approach this.
thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
I need to display image on IMAGE control at my ASP.NET page. Image is saved on SQL binary field. How can I retrive image from binary field and display on Image control? Please help me.
|
|
|
|
|
This gets asked at least four times a day. Write a HTTP handler that takes the id of the image and streams back the bytes, and then put links to that handler in your img tags
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
We have an web user control (dashboard control) contained in the master page that has 1 webPartManager and 1 Scriptmanager and 4 WebPartZones
Users can add assigned WebParts to this page.
These WebParts have 1 UpdatePanel each with UpdateMode=Conditional
When all 4 Zones have WebParts, clicking a button in one of the webparts triggers a posback of the whole page triggering postback in each of the other three webparts on the page. What I expect is to do an asynchronous postback and trigger the click event in one webpart.
Is there a way to isolate the events in a WebPart from the other zones?
|
|
|
|
|
it is possible create Report without creating rdlc file?
Ex_AppBL.ExBL ExBL = new Ex_AppBL.ExBL();<br />
DataSet ds = new DataSet("DataSet1");<br />
DataTable dt = ExBL.GetExDetails(4);<br />
<br />
ds.Tables.Add(dt);<br />
<br />
<br />
ReportViewer1.LocalReport.ReportEmbeddedResource = "?????????";<br />
<br />
Microsoft.Reporting.WebForms.ReportDataSource rds = new Microsoft.Reporting.WebForms.ReportDataSource();<br />
rds.Name = "dsOrders_dtOrders";<br />
rds.Value = dt;<br />
ReportViewer1.LocalReport.DataSources.Add(rds);
|
|
|
|
|
|
I think you may have more luck posting in the SQL forum
|
|
|
|
|
Hi,
am adding listitems to Radiobuttonlist dynamically. but when I click on button I didn't get selected item value. How to get selected radion button value during runtime(when click button). am using asp.net 2.0 and C#. pls see the below code.
<asp:Panel ID="panelRecharge" runat="server">
<asp:RadioButtonList ID="rdlRechargeOptions" runat="server" >
</asp:RadioButtonList>
</asp:Panel>
private void LoadRechargeOptions(VerifyPromotionResponse response)
{
ListItem li;
if (response.ChargeAmount1 >0)
{
li = new ListItem();
li.Attributes.Clear();
li.Value = response.ChargeAmount1.ToString();
li.Text = response.CurrencyCode + response.ChargeAmount1.ToString();
rdlRechargeOptions.Items.Add(li);
rdlRechargeOptions.RepeatDirection = RepeatDirection.Horizontal;
}
Thanks
|
|
|
|
|
chakran wrote: but when I click on button I didn't get selected item value.
What did you get? And you did not post the click handler code
led mike
|
|
|
|
|
Hi,
in my page there are two button. One is Validate and second is Next buttons. when I click Validate am calling LoadRechargeOptions() method. in this one am adding conrols dynamically to Radiobuttonlist. it is showing Radion buttons. when I selected radio button and click Next button here the selected radion button value is not coming... is there any solution..?
Thanks.
|
|
|
|
|
hi friends..
i have a site, in which therez a page to search text.
my need is to search a particular text in my website. i dont have any database for this site. i want to search that text is in all the pages.
how can i sort out..
cheers...
|
|
|
|