Posted By

heathbo on 06/07/13


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

danfinrud55


Getting access to an html tag from the aspx.cs file


 / Published in: C#
 

by adding the runat="server" text to the p tag, we allow the .cs file to have access to it.

  1. aspx code:
  2.  
  3. <p id="jobDescription" runat="server">job details</p>
  4.  
  5.  
  6. .cs code:
  7.  
  8. jobName = jobDescription;

Report this snippet  

You need to login to post a comment.