Link to home
Start Free TrialLog in
Avatar of sunda2010
sunda2010

asked on

i need system.xml.ling.dll file

i need system.xml.ling.dll file send me soon.....
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunda2010
sunda2010

ASKER

thank u....
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....
Glad I could help you
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
in Visual Studio ( "Website" menu | "Add Reference..." | ".NET" tab | ...
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....
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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();
    }
}
Thanks for your help.. I solved the problem....
Your Answers was very useful..