.NET Framework - mirroring control...?

Asked By lazier
19-Jan-08 12:49 PM
Hi,

I have written [paging navigator] as a web user control.
Everything works well, but I must set this navigator to top and buttom
of the repeater.

like this: http://laziers.googlepages.com/repeater.png

ok, but I dont want to set 2 the same controls to page, synchronize
them etc.

Is there any method to hmm... copy? genarated html from first control
and paste it
to the buttom? or any idee to avoid the pasting 2 similar controls?

bye
JavaScript
(1)
Beamer
(1)
Navigator
(1)
A5170277
(1)
Buttom
(1)
AJAX
(1)
Idee
(1)
  Cowboy \(Gregory A. Beamer\) replied...
19-Jan-08 11:55 AM
As they are separate controls, you will always have to sync them. There is
nothing wrong with having two of the same user control on a page and syncing
the controls when the postback occurs. If you are using AJAX, it is a bit
trickier, of course and I would write the sync in JavaScript first, outside
of any control, to make sure you have the logic correct.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
*************************************************
Create New Account
help
work. http: / / www.w3.org / TR / 2000 / REC-DOM-Level-2-Core-20001113 / core.html javascript:alert(document.links[0].rel = = = ""); javascript:alert(document.getElementById(document.links[0].rel)); javascript:alert(document.getElementById('')); It appears that there is some sort of internal string representation for error propagates out to the browser. Calling toString, the same [[value]] gets returned (from ToObject):- javascript:alert(document.getElementById(document.links[0].rel.toString())) - causing an error. The Object constructor also the error does not occur here; the [[value]] of the newly created String is different:- javascript:void( alert(new Object(document.links[0].rel).valueOf() = = = '')); javascript:void(function() {alert(document.getElementById(new Object(document.links[0].rel).toString())) }() ) - the [[value]] is the one the causes errors. No problems for properties that are not the empty string:- javascript:alert(document.getElementById(document.getElementsByTagName("a") [4].id).id) Empty string is OK, too, so long as its set: javascript:alert(document.links[0].rel = = = ""); / / Error: Invalid Argument javascript:void(document.links[0].rel = ""); javascript
Visual Studio only debugs javascript in .js files not .aspx files .NET Framework Hi, This is an issue that happens it up and breaks into it at that point. If I put a break in javascript in a .aspx file, the debugger kicks in, but the breakpoint is somewhere in the html of the aspx page and you can't tell where in the javascript its trying to debug. Is there anything I can do to resolve this and debug javascript in Visual Studio in aspx pages, or is it a known issue we just have you are putting a breakpoint into server-side code. When you put a breakpoint into JavaScript that is in a .js file, you are putting a breakpoint into client-side code. Since JavaScript only runs on the client, you cannot debug it from the server-side. - - HTH, Kevin for example the script debugger in IE have an option to break on the next javascript statement that will run). AFAIK Firebug allows to browse all javascript code and to place breakpoints (you also have developer toolbars for IE that could perhaps
Cannot use href = "javascript:a_function()" .NET Framework I have been writing some JS to use Google Maps I have I get the message Internet Explorer cannot display the webpage In the address bar is javascript:testit() - as expected The full code is at http: / / trevorl.mvps.org / ratec / RATECmap.html way to do something / anything. So some queries / points:- 1. What is the advantage of javascript:void(0) over javascript:; ? 2. The structure of the call seems to imply that testit() is an object with somefunction();return false"> ? 2. <a href = "nojs.html" onclick = "somefunction();return false"> ? 3. <a href = "javascript:;" onclick = "somefunction();return false"> ? 4. <a href = "javascript:null;" onclick = "somefunction();return false"> ? 5. <a href = "javascript:void(0);" onclick = "somefunction();return false"> ? I gather that you don't like 4. or appears in the status bar which can be confusing. 3. also results in the message "javascript:;" in the status bar. So that brings me to 1. At least with href = "#", only
NET Framework As JScript is an ECMAScript implementation, questions should be directed to comp.lang.javascript. This group is redundant and usage appears to be approaching zero. Clearly the chances of browser scripting (or Web development in general.) JScript Discussions Outlook (1) SonOfRFC1036 (1) FAQish (1) JavaScript (1) JScript (1) Stockton (1) Canberra (1) Turnpike (1) It is clearly the best place t this be the best place ? Of course, it would be better to use standard JavaScript, so do you mean that "comp.lang.javascript" is the better place for that and, if so, how do I find it (in AFPHYXDUX. . .@spammotel.com> You are clearly lost. That clinches it. Not really. Both JScript and JavaScript are ECMAScript implementations (and as such are virtually identical), so both are on- topic in comp.lang.javascript. That group has lots of regular contributors who know the language and IE's implementation so it doesn't get as much attention. do In OE it is comp.lang.javascript. In Google Groups it can be found at: http: / / groups.google.com / group / comp.lang.javascript / topics In the same way that Google Groups describes the redundant alt.html as described
Javascript confusion. . . . .NET Framework I am trying to get into depth of JavaScript a little more and find it a bit confusing for person who is used to 1) MyDerived.prototype (1) Console.Write (1) Console (1) its called closure. lisp (which the javascript vm is a close parallel to), was one of the first languages to support it generally used to pass variables to a delegate definations, and has its own scoping rules. javascript is pure object language (though does not implement inheritence, though many javascript frameworks like ms ajax implement it). a function declaration in javascript can be though of as an object constructor function, though javascript allows object constructors to return a value (unlike c#). unlike c#, all function calls in javascript are instance methods calls. in the following: function a() {alert('a called');} a(); you might