Click here to Skip to main content
15,888,100 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to Find Website Visitor No Pin
Christian Graus17-Sep-09 21:55
protectorChristian Graus17-Sep-09 21:55 
AnswerRe: How to Find Website Visitor No Pin
Tamer Oz17-Sep-09 21:21
Tamer Oz17-Sep-09 21:21 
AnswerRe: How to Find Website Visitor No Pin
Arun Jacob17-Sep-09 22:23
Arun Jacob17-Sep-09 22:23 
AnswerRe: How to Find Website Visitor No Pin
Prabhakar Parihar18-Sep-09 21:40
Prabhakar Parihar18-Sep-09 21:40 
QuestionError while hosting crystal report as web site Pin
Ganesh_06197417-Sep-09 17:21
Ganesh_06197417-Sep-09 17:21 
AnswerRe: Error while hosting crystal report as web site Pin
sashidhar17-Sep-09 18:48
sashidhar17-Sep-09 18:48 
AnswerRe: Error while hosting crystal report as web site Pin
Abhijit Jana17-Sep-09 19:09
professionalAbhijit Jana17-Sep-09 19:09 
Questionwhy <input id="button1"> not recognising <asp:textbox xmlns:asp="#unknown"> in java script:</asp:textbox></input> Pin
amittinku17-Sep-09 17:15
amittinku17-Sep-09 17:15 
There is Standard test box on webform i.e. &lt;asp:TextBox&gt;
There is one HTML button on screen i.e. &lt;input id="button1"&gt;

on Button1_onclick(), I want to clear the text entered in text box.
When I run it, It is not recognising text box object.

Note:code is in aspx file only, no code in aspx.cs file.
Check the code below, why &lt;input id="button1"&gt; not recognising &lt;asp:TextBox&gt; in java script:
---------------------------------------------

&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="button_postback.aspx.cs" Inherits="button_postback" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head runat="server"&gt;
      &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;script language="javascript" type="text/javascript"&gt;
// &lt;!CDATA[

function Button1_onclick() {

t1.text="";
}

// ]]&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
            &amp;nbsp;
            &lt;asp:TextBox ID="t1" runat="server"&gt;&lt;/asp:TextBox&gt;
            &lt;input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /&gt;&lt;/div&gt;
      &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
AnswerRe: why not recognising in java script: Pin
Christian Graus17-Sep-09 17:24
protectorChristian Graus17-Sep-09 17:24 
GeneralRe: why not recognising in java script: Pin
amittinku17-Sep-09 20:17
amittinku17-Sep-09 20:17 
GeneralRe: why not recognising in java script: Pin
Christian Graus17-Sep-09 20:33
protectorChristian Graus17-Sep-09 20:33 
GeneralRe: why not recognising in java script: Pin
amittinku17-Sep-09 21:30
amittinku17-Sep-09 21:30 
GeneralRe: why not recognising in java script: Pin
amittinku17-Sep-09 21:37
amittinku17-Sep-09 21:37 
GeneralRe: why not recognising in java script: Pin
Christian Graus17-Sep-09 22:06
protectorChristian Graus17-Sep-09 22:06 
Questionhow to split HUGE pages into smaller components Pin
tagyurit17-Sep-09 15:22
tagyurit17-Sep-09 15:22 
AnswerRe: how to split HUGE pages into smaller components Pin
Christian Graus17-Sep-09 15:38
protectorChristian Graus17-Sep-09 15:38 
GeneralRe: how to split HUGE pages into smaller components Pin
tagyurit17-Sep-09 16:10
tagyurit17-Sep-09 16:10 
GeneralRe: how to split HUGE pages into smaller components Pin
Christian Graus17-Sep-09 16:40
protectorChristian Graus17-Sep-09 16:40 
QuestionDynamic music player.... Pin
greendragons17-Sep-09 8:24
greendragons17-Sep-09 8:24 
AnswerRe: Dynamic music player.... Pin
Christian Graus17-Sep-09 10:24
protectorChristian Graus17-Sep-09 10:24 
GeneralRe: Dynamic music player.... Pin
greendragons17-Sep-09 10:46
greendragons17-Sep-09 10:46 
GeneralRe: Dynamic music player.... Pin
Christian Graus17-Sep-09 10:56
protectorChristian Graus17-Sep-09 10:56 
GeneralRe: Dynamic music player.... Pin
greendragons17-Sep-09 11:00
greendragons17-Sep-09 11:00 
GeneralRe: Dynamic music player.... Pin
Christian Graus17-Sep-09 11:32
protectorChristian Graus17-Sep-09 11:32 
AnswerRe: Dynamic music player.... Pin
Abhishek Sur17-Sep-09 11:31
professionalAbhishek Sur17-Sep-09 11:31 

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.