Click here to Skip to main content
14,866,828 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionset focus in dynamic multiple textbox in repeater Pin
Member 292522517-Sep-09 22:39
MemberMember 292522517-Sep-09 22:39 
AnswerRe: set focus in dynamic multiple textbox in repeater Pin
Christian Graus17-Sep-09 22:45
protectorChristian Graus17-Sep-09 22:45 
GeneralRe: set focus in dynamic multiple textbox in repeater Pin
Member 292522517-Sep-09 22:54
MemberMember 292522517-Sep-09 22:54 
AnswerRe: set focus in dynamic multiple textbox in repeater Pin
sashidhar17-Sep-09 23:37
Membersashidhar17-Sep-09 23:37 
GeneralRe: set focus in dynamic multiple textbox in repeater Pin
Member 292522517-Sep-09 23:45
MemberMember 292522517-Sep-09 23:45 
GeneralRe: set focus in dynamic multiple textbox in repeater Pin
Christian Graus17-Sep-09 23:54
protectorChristian Graus17-Sep-09 23:54 
GeneralRe: set focus in dynamic multiple textbox in repeater Pin
Member 292522518-Sep-09 1:31
MemberMember 292522518-Sep-09 1:31 
QuestionBehaviour of HTML/ASP controls in Master page Pin
amittinku17-Sep-09 22:33
Memberamittinku17-Sep-09 22:33 
Sorry Chris, I might be asking similar type question earlier also but this is final summary.

Suppose we have designed a master page. Say we keep nothing in it.
We inherit it in a webform.

Now I have observed the following. Please confirm,reply also:

1. <form> /<form> is not present.
HTML Reset button works fine.
Document.getelementbyid-> does not work because form is not present.

2. In web form where i have inherited master page, I keep one html reset button and standard asp text box.

If autopostback of textbox=true then
whatever we enter in textbox and click on reset, page load occurs.It will retain the values. Now value from text box will not be cleared after clicking on Reset. Because reset sets it back to inital value (that we got after page load).

If autopostback of textbox=false then
whatever we enter in textbox and click on reset, value will be cleared.

3. In my requirement i have inherited master page in web form as mentioned above.
It's requirement to keep autopost back of textbox=True.
Now reset will never clear the values of text box.

In that case, if i use simple HTM button (not reset) and try to write the following code, it does not work because <form> is not present. So document will not be identified.

function ResetForm(){
   var elems = document.forms[0].elements;
   for(var i=0;i<elems.length;i++){
      elems[i].value = "";
   }
}


So in webform (using master page), how to clear the values of text box on clicking of button.
Note: document will not work because <form> is not present.
autopost back will be true for text box because we have to trigger event TextBox1_TextChanged1 also.
TextBox1_TextChanged1 will not work without autopostback.

So plz tell me solution.
AnswerRe: Behaviour of HTML/ASP controls in Master page Pin
Christian Graus17-Sep-09 22:47
protectorChristian Graus17-Sep-09 22:47 
GeneralRe: Behaviour of HTML/ASP controls in Master page Pin
amittinku17-Sep-09 22:50
Memberamittinku17-Sep-09 22:50 
GeneralRe: Behaviour of HTML/ASP controls in Master page Pin
Christian Graus17-Sep-09 23:56
protectorChristian Graus17-Sep-09 23:56 
AnswerRe: Behaviour of HTML/ASP controls in Master page Pin
Prabhakar Parihar18-Sep-09 21:35
MemberPrabhakar Parihar18-Sep-09 21:35 
QuestionHow to Find Website Visitor No Pin
Samarjeet Singh@india17-Sep-09 21:13
MemberSamarjeet Singh@india17-Sep-09 21:13 
AnswerRe: How to Find Website Visitor No Pin
Christian Graus17-Sep-09 21:14
protectorChristian Graus17-Sep-09 21:14 
GeneralRe: How to Find Website Visitor No Pin
Samarjeet Singh@india17-Sep-09 21:22
MemberSamarjeet Singh@india17-Sep-09 21:22 
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
MemberTamer Oz17-Sep-09 21:21 
AnswerRe: How to Find Website Visitor No Pin
Arun Jacob17-Sep-09 22:23
MemberArun Jacob17-Sep-09 22:23 
AnswerRe: How to Find Website Visitor No Pin
Prabhakar Parihar18-Sep-09 21:40
MemberPrabhakar Parihar18-Sep-09 21:40 
QuestionError while hosting crystal report as web site Pin
Ganesh_06197417-Sep-09 17:21
MemberGanesh_06197417-Sep-09 17:21 
AnswerRe: Error while hosting crystal report as web site Pin
sashidhar17-Sep-09 18:48
Membersashidhar17-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
Memberamittinku17-Sep-09 17:15 
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
Memberamittinku17-Sep-09 20:17 

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.