Click here to Skip to main content
15,918,516 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Javascript Keyboard Pin
illmatik4-May-05 13:08
illmatik4-May-05 13:08 
GeneralRe: Javascript Keyboard Pin
totig4-May-05 20:29
totig4-May-05 20:29 
QuestionHow to deploy .msi ? Pin
Yeast272-May-05 21:32
Yeast272-May-05 21:32 
GeneralCommon functions Pin
killerspam2-May-05 4:08
killerspam2-May-05 4:08 
GeneralViewState problem... Pin
brian552-May-05 2:13
brian552-May-05 2:13 
GeneralRe: ViewState problem... Pin
Mike Ellison2-May-05 2:46
Mike Ellison2-May-05 2:46 
GeneralRe: ViewState problem... Pin
brian552-May-05 10:23
brian552-May-05 10:23 
GeneralRe: ViewState problem... Pin
Mike Ellison2-May-05 10:34
Mike Ellison2-May-05 10:34 
Hi Brian. The code-behind file (and the .aspx file for that matter) is compiled and executed server-side only. You can declare standard <html> controls with the runat="server" attribute to access them server-side. Here's a simple example:
<%@ Page Language="C#" %>

<script runat="server">

  void Page_Load(object o, EventArgs e)
  {
    myHeading.InnerHtml = "This is the Heading";
    myText.Value = "Default Value";
  } 

</script>


<html>
  <head>
    <title></title>
  </head>
  
  <body>
    <form runat="server">
    
      <h3 id="myHeading" runat="server" />
      
      Here is a standard HTML text box:
      <input type="text" id="myText" runat="server" />
    
    </form>
  </body>
  
</html>
If you want to manipulate html controls client-side, you'll need to look at javascript for that.
Questionhow to decript the data in asp Pin
chandan sharma2-May-05 1:59
chandan sharma2-May-05 1:59 
AnswerRe: how to decript the data in asp Pin
Dan_P2-May-05 14:43
Dan_P2-May-05 14:43 
Questionhow to know the drive drive name by using asp Pin
chandan sharma1-May-05 22:44
chandan sharma1-May-05 22:44 
AnswerRe: how to know the drive drive name by using asp Pin
Dan_P2-May-05 0:08
Dan_P2-May-05 0:08 
GeneralRe: how to know the drive drive name by using asp Pin
chandan sharma2-May-05 0:25
chandan sharma2-May-05 0:25 
GeneralXMLHTTP and PROXY problem Pin
karanba1-May-05 8:12
karanba1-May-05 8:12 
GeneralRe: XMLHTTP and PROXY problem Pin
Dan_P2-May-05 0:13
Dan_P2-May-05 0:13 
Generalset focus Pin
cmarmr30-Apr-05 16:27
cmarmr30-Apr-05 16:27 
GeneralRe: set focus Pin
Mike Ellison2-May-05 2:58
Mike Ellison2-May-05 2:58 
QuestionJavaScript variable from ASP form? Pin
tantiboh30-Apr-05 6:53
tantiboh30-Apr-05 6:53 
AnswerRe: JavaScript variable from ASP form? Pin
Dan_P2-May-05 0:18
Dan_P2-May-05 0:18 
GeneralXML Access Pin
rpussewela29-Apr-05 22:16
rpussewela29-Apr-05 22:16 
Generalgetting variables from one webform to another Pin
cmarmr29-Apr-05 14:56
cmarmr29-Apr-05 14:56 
GeneralRe: getting variables from one webform to another Pin
chandan sharma29-Apr-05 20:24
chandan sharma29-Apr-05 20:24 
GeneralRe: getting variables from one webform to another Pin
cmarmr30-Apr-05 6:26
cmarmr30-Apr-05 6:26 
GeneralRe: getting variables from one webform to another Pin
chandan sharma1-May-05 20:51
chandan sharma1-May-05 20:51 
GeneralRe: getting variables from one webform to another Pin
Scott Serl29-Apr-05 20:40
Scott Serl29-Apr-05 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.