Click here to Skip to main content
15,889,575 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova17-Jan-12 6:12
BobJanova17-Jan-12 6:12 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716717-Jan-12 7:33
Member 779716717-Jan-12 7:33 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova17-Jan-12 12:01
BobJanova17-Jan-12 12:01 
GeneralRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 7:29
protectorAspDotNetDev19-Jan-12 7:29 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova19-Jan-12 22:57
BobJanova19-Jan-12 22:57 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 15:36
Member 779716720-Jan-12 15:36 
AnswerRe: User control - how to access the element using javascript Pin
AspDotNetDev17-Jan-12 7:58
protectorAspDotNetDev17-Jan-12 7:58 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716718-Jan-12 15:45
Member 779716718-Jan-12 15:45 
Hi,

The idea of putting <%= Page.IsPostBack.ToString()%> on my usercontrol helped me realize that it is not the issue with the Text disappearing in the textbox. But the issue is that the page is getting post back twice and that is why the text in the text box is disappearing.

When page is loaded for the first time the value of <%= Page.IsPostBack.ToString()%> is False and in few seconds a page post back is taking place all by itself and the value is true.

I couldn't figure out what is causing the second post back yet. But when I searched online I found that there could be two reasons for posting back twice.

1) It may be because of any client side scripting either java script or jQuery that may be causing the post back. In my case I do not see any client side that is written to cause a post back.

2) The other reason for the second time post back could be that if any Image tags are used and then if no src attribute is provided then this might also cause a post back.

In my case, we are using a default.master and I see quite a few <asp:image> tags are defined in the master page and I do not see either src or imageurl attribute being used in them. I just see that a skinID is being used.

I am not sure if I need to use imageurl in all of my <asp:image> tags to fix the page post back issue

Does any body have any inputs?

Thanks in advance,

L
AnswerRe: User control - how to access the element using javascript Pin
AspDotNetDev18-Jan-12 18:10
protectorAspDotNetDev18-Jan-12 18:10 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 4:02
Member 779716719-Jan-12 4:02 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 4:23
Member 779716719-Jan-12 4:23 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 4:35
Member 779716719-Jan-12 4:35 
GeneralRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 7:39
protectorAspDotNetDev19-Jan-12 7:39 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 12:30
Member 779716720-Jan-12 12:30 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 9:14
Member 779716719-Jan-12 9:14 
QuestionRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 10:53
protectorAspDotNetDev19-Jan-12 10:53 
AnswerRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 12:12
Member 779716720-Jan-12 12:12 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 9:27
Member 779716719-Jan-12 9:27 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova18-Jan-12 22:44
BobJanova18-Jan-12 22:44 
QuestionAjax issue Pin
MacRaider416-Jan-12 6:57
MacRaider416-Jan-12 6:57 
AnswerRe: Ajax issue Pin
Not Active16-Jan-12 7:41
mentorNot Active16-Jan-12 7:41 
GeneralRe: Ajax issue Pin
MacRaider416-Jan-12 8:06
MacRaider416-Jan-12 8:06 
QuestionRe: Ajax issue Pin
AspDotNetDev16-Jan-12 8:20
protectorAspDotNetDev16-Jan-12 8:20 
AnswerRe: Ajax issue Pin
MacRaider416-Jan-12 8:34
MacRaider416-Jan-12 8:34 
AnswerRe: Ajax issue Pin
AspDotNetDev16-Jan-12 8:55
protectorAspDotNetDev16-Jan-12 8:55 

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.