i need system.xml.ling.dll file

i need system.xml.ling.dll file send me soon.....
sunda2010Asked:
Who is Participating?
 
DhaestCommented:
I assume you need system.xml.linq.dll

Did you install framework 3.5 on your system ?

http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en
0
 
sunda2010Author Commented:
thank u....
0
 
sunda2010Author Commented:
Thanks for replying. I have downloaded .net framework3.5 software and installed. Now How to add system.xml.linq.dll references in my asp.net with c# program. Reply me immediately....
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
DhaestCommented:
Glad I could help you
0
 
DhaestCommented:
add this line into web config where other assembly's are

<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
0
 
DhaestCommented:
in Visual Studio ( "Website" menu | "Add Reference..." | ".NET" tab | ...
0
 
sunda2010Author Commented:
Error      1      The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)      D:\WebSite4\RandomImage.aspx.cs      5      14      D:\WebSite4\
Error      2      The type or namespace name 'Linq' does not exist in the namespace 'System.Xml' (are you missing an assembly reference?)      D:\WebSite4\RandomImage.aspx.cs      12      18      D:\WebSite4\



I need The proper solution for the above errors... Reply soon....
0
 
DhaestCommented:
1. Did you add the reference to your project ?
(added the reference to the project by going to the Solution Explorer right click on the project name and select "Add Reference". When the Add Reference window comes up select the .Net tab on top and find and select the dll System.Xml.Linq. Once that is selected click on the OK button and then recompile your code.)

2. Did you add the using-statement into your page ?
using System.XML.Linq;
0
 
sunda2010Author Commented:
ya i done both...but the images are not displaying?


My code is
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

 

public partial class RandomImage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Random objRnd = new Random();
        int intRnd = objRnd.Next(4) + 1; //set it to your images count, i use 6 images.
        ImageRandom.ImageUrl = "~/images/" + intRnd.ToString() + ".jpg";
        ImageRandom.AlternateText = "Picture" + intRnd.ToString();
    }
}
0
 
sunda2010Author Commented:
Thanks for your help.. I solved the problem....
0
 
sunda2010Author Commented:
Your Answers was very useful..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.