Click here to Skip to main content
15,921,179 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionregarding pblm in creating virtual directory Pin
GaneshKumarVkm6-Dec-07 1:42
GaneshKumarVkm6-Dec-07 1:42 
GeneralRe: regarding pblm in creating virtual directory Pin
Sathesh Sakthivel6-Dec-07 1:53
Sathesh Sakthivel6-Dec-07 1:53 
GeneralRe: regarding pblm in creating virtual directory Pin
martin_hughes6-Dec-07 4:23
martin_hughes6-Dec-07 4:23 
Questioncalling javascript from c# Pin
ekynox6-Dec-07 1:27
ekynox6-Dec-07 1:27 
GeneralRe: calling javascript from c# Pin
jagan1236-Dec-07 1:42
jagan1236-Dec-07 1:42 
GeneralRe: calling javascript from c# Pin
ekynox6-Dec-07 2:05
ekynox6-Dec-07 2:05 
GeneralRe: calling javascript from c# Pin
jagan1236-Dec-07 2:08
jagan1236-Dec-07 2:08 
GeneralRe: calling javascript from c# [modified] Pin
ekynox6-Dec-07 2:23
ekynox6-Dec-07 2:23 
A hidden field can be something similar to the input element as suggested in the example below ?

<br />
<script runat="server"><br />
  public void Page_Load(Object sender, EventArgs e)<br />
  {<br />
    // Define the name and type of the client scripts on the page.<br />
    String csname2 = "ButtonClickScript";<br />
    Type cstype = this.GetType();<br />
        <br />
    // Get a ClientScriptManager reference from the Page class.<br />
    ClientScriptManager cs = Page.ClientScript;<br />
<br />
    // Check to see if the client script is already registered.<br />
    if (!cs.IsClientScriptBlockRegistered(cstype, csname2))<br />
    {<br />
      StringBuilder cstext2 = new StringBuilder();<br />
      cstext2.Append("<script type=\"text/javascript\"> function DoClick() {");<br />
      cstext2.Append("var oElement = document.all.Panel1; Form1.Message.value= oElement.offsetLeft;} </");<br />
      cstext2.Append("script>");<br />
      cs.RegisterClientScriptBlock(cstype, csname2, cstext2.ToString(), false);<br />
    }<br />
  }<br />
</script><br />
<html  ><br />
  <head><br />
    <title>ClientScriptManager Example</title><br />
  </head><br />
  <body><br />
     <form id="Form1"<br />
         runat="server"><br />
        <input type="text" id="Message" /> <br />
        <input type="button" value="ClickMe" onclick="DoClick()" /><br />
        <asp:Panel ID="Panel1" runat="server" style="position:absolute;top: 375px;left: 628px;height: 422px;width: 513px;  border-color:Red;border-width:thick;border-style:solid"></asp:Panel><br />
     </form><br />
  </body><br />
</html><br />


edit: Example is based from MSDN article http://msdn2.microsoft.com/en-us/library/z9h4dk8y.aspx[^]

edit: sorry I worked out what a hidden field is thanks to google
http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlinputhidden(VS.71).aspx[^]

modified on Thursday, December 06, 2007 8:33:21 AM

Questionhow to convert text, from english to other language using asp.net Pin
Member 41706456-Dec-07 1:10
Member 41706456-Dec-07 1:10 
AnswerRe: how to convert text, from english to other language using asp.net Pin
Sathesh Sakthivel6-Dec-07 1:26
Sathesh Sakthivel6-Dec-07 1:26 
AnswerRe: how to convert text, from english to other language using asp.net Pin
Michael Sync6-Dec-07 1:29
Michael Sync6-Dec-07 1:29 
QuestionHow to put javascript validation on ASP .NET controls? Pin
Rocky#6-Dec-07 0:58
Rocky#6-Dec-07 0:58 
AnswerRe: How to put javascript validation on ASP .NET controls? Pin
N a v a n e e t h6-Dec-07 1:08
N a v a n e e t h6-Dec-07 1:08 
GeneralOpen a new window Pin
.NET- India 6-Dec-07 0:56
.NET- India 6-Dec-07 0:56 
GeneralRe: Open a new window Pin
Michael Sync6-Dec-07 1:24
Michael Sync6-Dec-07 1:24 
GeneralRe: Open a new window Pin
.NET- India 6-Dec-07 1:51
.NET- India 6-Dec-07 1:51 
GeneralRe: Open a new window Pin
Michael Sync6-Dec-07 3:21
Michael Sync6-Dec-07 3:21 
Questionhow to get a multi row result set from a stored procedures Pin
jagan1236-Dec-07 0:54
jagan1236-Dec-07 0:54 
Generalchild Grid Pin
wasimsharp6-Dec-07 0:48
wasimsharp6-Dec-07 0:48 
QuestionHow to Calculate AGE? Pin
Kasi Viswanathan6-Dec-07 0:40
Kasi Viswanathan6-Dec-07 0:40 
AnswerRe: How to Calculate AGE? Pin
Sathesh Sakthivel6-Dec-07 1:29
Sathesh Sakthivel6-Dec-07 1:29 
GeneralRe: How to Calculate AGE? Pin
Paddy Boyd6-Dec-07 1:41
Paddy Boyd6-Dec-07 1:41 
GeneralRe: How to Calculate AGE? Pin
Sathesh Sakthivel6-Dec-07 1:51
Sathesh Sakthivel6-Dec-07 1:51 
GeneralRe: How to Calculate AGE? Pin
J4amieC6-Dec-07 2:54
J4amieC6-Dec-07 2:54 
AnswerRe: How to Calculate AGE? Pin
J4amieC6-Dec-07 2:56
J4amieC6-Dec-07 2:56 

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.