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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Help! Help!! Help!!!

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :ASP.Net
I have an image control on a page.I have to set image src property from web.config.I have done as follows, but it shows error "CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement"on source:Line 18: style="background-position:right; background-repeat:no-repeat" Height="85px" Line 19: BackColor="#1F476B"> Line 20: <img id="HeaderImg" alt="" src="<% HeaderImage; %>" Line 21: style="height: 85px; width: 739px" /> Line 22: on code:    public partial class Site1 : System.Web.UI.MasterPage public partial class Site1 : System.Web.UI.MasterPage { public string HeaderImage; protected void Page_Load(object sender, EventArgs e) { HeaderImage = ConfigurationSettings.AppSettings["HeaderImage"]; } } Anybody please help me....Thanks....

View Complete Post

More Related Resource Links

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