Okay, your questions are quite conceptual in nature and stem from a
lack of understanding of how ASP.NET works. That's all right, the only
thing being that any answers would have to keep in mind your level of
skill in order to get the point across. I'm going to attempt this now
without going into theoretical details.
1. As SeanJC mentioned, you could simply add necessary HTML markup to
the master page to include a logo and be done with it. Source code
does not need to be updated, if your scenario is as simple as you have
described. Something as simple as the following markup could suffice
if you do not need dynamic logic:
---
<tr>
<td>
<img src="Images/CompanyLogo.jpg" alt="Company Logo" />
<td>
<td>
<img src="Images/CompanyBanner.jpg" alt="Company Banner" />
<td>
<tr>
---
2. There is nothing old fashioned about writing (X)HTML. The code-
behind/beside model provides a programmer with a way to create dynamic
markup based on complex logic and retrieve data from disparate data
sources. And no, it is neither obvious nor necessary to require source
code if you use a web control. Keep only one thing in mind - You
require source code *only* if you want to add programming logic to
your page.
As a last point to consider, you should find out how the existing site
has been deployed to the server. If it has been precompiled or
published, then you would need to rebuild the application. If source
code files have been uploaded as well, you might be able to get away
with only updating the single .master file and be able to see the
changes on the live site.
On Jan 21, 11:13 pm, OccasionalFlyer <[email protected]> wrote:
> I recently took over the web site of an academic organization I
> belong to. It's a volunteer effort. I've made a few changes just by
> editing the HTML, and those went fine. I have two questions that I
> have not found an answer for in either of the ASP.NET 3.5 books I'm
> reading.
> 1. I need to change the .master page. The top of the page as it
> appears in a browser has a .jpg that serves as a "banner" with the
> name of the organization. I have been asked to add the organization's
> logo to the web site. In looking at the master page, I see a simple
> HTML table with a <tr> and <td> for the current .jpg. It looks to me
> like I can simply modify the HTML to add a new <td> with the tags for
> an image right into the page. I'm using Visual Studio 2008 Standard
> Edition with Web Expressions 2 (though I don't know what that second
> thing does). When I go to the design view, since I don't have the
> "banner" jpg on my local machine, Visual Studio just shows a black
> area where it should be. So I don't know that I can use some "web
> control" to add the logo jpg that way.
>
> So, is it okay to update the HTML the old-fashioned way or do I need
> to do something extra so that the source code file is also updated?
> If so, I don't get how you are supposed to make that happen. Maybe I
> have not read enough hours of _Teach Yourself ASP.NET 3.5 in 24 Hours_
> yet to learn this but I need to do it right away. What do I need to
> do to add this image? Just HTML or something more complex?
>
> 2. For a more generalized version of question #1, how do I know when
> I need to have present the source code file that goes with a web page
> that I am modifying? (I'll probably never be creating a new page,
> though that's possible). Obviously, if I add a web control, I assume
> I have to have the source code page present, though I don't know how
> Visual Studio will know I have it.
>
> Thanks.