|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RadioButtonList, MultiView, and JavaScriptHi;
If I use a radio button list to set which view to display in a MultiView, is there a way to set it to change the view using javascript where it does a <div> around each view? And also have it postback only if javascript is disabled? Hi David,
The MultiView server control only renders the selected View to the browser. In other words, you cannot use JavaScript on the browser to display other views because their markup is not rendered. To confirm that, right mouse click on the browser and “View Sourceâ€; you will not find the markup of the unselected views. The web page has to go back to the server to display it. Show quoteHide quote "David Thielen" wrote: > Hi; > > If I use a radio button list to set which view to display in a MultiView, is > there a way to set it to change the view using javascript where it does a > <div> around each view? > > And also have it postback only if javascript is disabled? > > -- > thanks - dave > david_at_windward_dot_net > http://www.windwardreports.com > I saw that - I was hoping there was a way to switch a mode or something.
Ok, what if I have 2 panels, then can I do this? And if so, how? Show quoteHide quote "Phillip Williams" wrote: > Hi David, > > The MultiView server control only renders the selected View to the browser. > In other words, you cannot use JavaScript on the browser to display other > views because their markup is not rendered. To confirm that, right mouse > click on the browser and “View Sourceâ€; you will not find the markup of the > unselected views. The web page has to go back to the server to display it. > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "David Thielen" wrote: > > > Hi; > > > > If I use a radio button list to set which view to display in a MultiView, is > > there a way to set it to change the view using javascript where it does a > > <div> around each view? > > > > And also have it postback only if javascript is disabled? > > > > -- > > thanks - dave > > david_at_windward_dot_net > > http://www.windwardreports.com > > Panels are the same story; they are server controls that would only render
their content if they were turned visible. You would be looking for DHTML programming; where you would add <DIV> tags (which are rendered as they are on the browser) to a page and handle them using JavaScript. Show quoteHide quote "David Thielen" wrote: > I saw that - I was hoping there was a way to switch a mode or something. > > Ok, what if I have 2 panels, then can I do this? And if so, how? > > -- > thanks - dave > david_at_windward_dot_net > http://www.windwardreports.com > > > > "Phillip Williams" wrote: > > > Hi David, > > > > The MultiView server control only renders the selected View to the browser. > > In other words, you cannot use JavaScript on the browser to display other > > views because their markup is not rendered. To confirm that, right mouse > > click on the browser and “View Sourceâ€; you will not find the markup of the > > unselected views. The web page has to go back to the server to display it. > > -- > > HTH, > > Phillip Williams > > http://www.societopia.net > > http://www.webswapp.com > > > > > > "David Thielen" wrote: > > > > > Hi; > > > > > > If I use a radio button list to set which view to display in a MultiView, is > > > there a way to set it to change the view using javascript where it does a > > > <div> around each view? > > > > > > And also have it postback only if javascript is disabled? > > > > > > -- > > > thanks - dave > > > david_at_windward_dot_net > > > http://www.windwardreports.com > > > ok - thanks
If any of the ASP .NET team is here, I think this would be a cool feature if you would add it. Show quoteHide quote "Phillip Williams" wrote: > Panels are the same story; they are server controls that would only render > their content if they were turned visible. You would be looking for DHTML > programming; where you would add <DIV> tags (which are rendered as they are > on the browser) to a page and handle them using JavaScript. > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "David Thielen" wrote: > > > I saw that - I was hoping there was a way to switch a mode or something. > > > > Ok, what if I have 2 panels, then can I do this? And if so, how? > > > > -- > > thanks - dave > > david_at_windward_dot_net > > http://www.windwardreports.com > > > > > > > > "Phillip Williams" wrote: > > > > > Hi David, > > > > > > The MultiView server control only renders the selected View to the browser. > > > In other words, you cannot use JavaScript on the browser to display other > > > views because their markup is not rendered. To confirm that, right mouse > > > click on the browser and “View Sourceâ€; you will not find the markup of the > > > unselected views. The web page has to go back to the server to display it. > > > -- > > > HTH, > > > Phillip Williams > > > http://www.societopia.net > > > http://www.webswapp.com > > > > > > > > > "David Thielen" wrote: > > > > > > > Hi; > > > > > > > > If I use a radio button list to set which view to display in a MultiView, is > > > > there a way to set it to change the view using javascript where it does a > > > > <div> around each view? > > > > > > > > And also have it postback only if javascript is disabled? > > > > > > > > -- > > > > thanks - dave > > > > david_at_windward_dot_net > > > > http://www.windwardreports.com > > > > Hi Dave,
Thanks for posting! As Philip mentioned, the DHTML programming is a good idea for the current issue. You also can create your own control which has encapsulated this functionality. Actually, your idea is appreciated for the user experience. Please don't hesitate to submit your idea to Microsoft feedback: http://lab.msdn.microsoft.com/ProductFeedback/ Regards, Yuan Ren [MSFT] Microsoft Online Support David,
I have the same issue with the new Multiview control - I want to use client side javascript and avoid postbacks when changing views. The IE Web controls (http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/overview.asp) which was 1.1 and currently not supported by MS had this functionality in its Multipage control and I am disappointed that these options were not carried forward in the 2.0 control. The client side changing of views was an option in the IE Web controls. Advantage - no postback seamless view changing, disadvantage - all html for all views is sent to page. I would really like to know when this will be supported in 2.0, or, a workaround for the 2.0 control. Thx. ""Yuan Ren[MSFT]"" wrote: Show quoteHide quote > Hi Dave, > > Thanks for posting! > > As Philip mentioned, the DHTML programming is a good idea for the current > issue. You also can create your own control which has encapsulated this > functionality. > > Actually, your idea is appreciated for the user experience. Please don't > hesitate to submit your idea to Microsoft feedback: > http://lab.msdn.microsoft.com/ProductFeedback/ > > Regards, > > Yuan Ren [MSFT] > Microsoft Online Support > > Hi;
Question - can I assume javascript must be enabled in ASP.NET? In other words, will the parts that ASP creates not work if there is no javascript? Or can someone turn javascript off? And if they can, how should I handle that in this case. Because I would want some kind of <noscript> to make a postback on the radio button change - but only if there is no javascript allowed. Show quoteHide quote "Phillip Williams" wrote: > Panels are the same story; they are server controls that would only render > their content if they were turned visible. You would be looking for DHTML > programming; where you would add <DIV> tags (which are rendered as they are > on the browser) to a page and handle them using JavaScript. > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "David Thielen" wrote: > > > I saw that - I was hoping there was a way to switch a mode or something. > > > > Ok, what if I have 2 panels, then can I do this? And if so, how? > > > > -- > > thanks - dave > > david_at_windward_dot_net > > http://www.windwardreports.com > > > > > > > > "Phillip Williams" wrote: > > > > > Hi David, > > > > > > The MultiView server control only renders the selected View to the browser. > > > In other words, you cannot use JavaScript on the browser to display other > > > views because their markup is not rendered. To confirm that, right mouse > > > click on the browser and “View Sourceâ€; you will not find the markup of the > > > unselected views. The web page has to go back to the server to display it. > > > -- > > > HTH, > > > Phillip Williams > > > http://www.societopia.net > > > http://www.webswapp.com > > > > > > > > > "David Thielen" wrote: > > > > > > > Hi; > > > > > > > > If I use a radio button list to set which view to display in a MultiView, is > > > > there a way to set it to change the view using javascript where it does a > > > > <div> around each view? > > > > > > > > And also have it postback only if javascript is disabled? > > > > > > > > -- > > > > thanks - dave > > > > david_at_windward_dot_net > > > > http://www.windwardreports.com > > > > It really depends on your page's design. For example, if you change your
security settings for the Internet zone in your browser to disable Active scripting and visit this discussion forum again (http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.aspnet.webcontrols&lang=en&cr=US) it will not work. But if you visit the City of North Vancouver's website (which I developed using ASP.NET 1.1) http://www.cnv.org/ it will work. But if you visit my website http://www.webswapp.com/ you will find that it works up until you meet some hyperlink buttons. To learn more about the effect of disabling client-side scripting on the ASP.NET controls you might review this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconclientscriptinwebforms.asp In other words, if you expect that a significant number of your users would disable the client script then avoid the controls mentioned in the above link, or else inform the visitors that client side scripting is necessary to utilize the full functions of your site. Show quoteHide quote "David Thielen" wrote: > Hi; > > Question - can I assume javascript must be enabled in ASP.NET? In other > words, will the parts that ASP creates not work if there is no javascript? Or > can someone turn javascript off? > > And if they can, how should I handle that in this case. Because I would want > some kind of <noscript> to make a postback on the radio button change - but > only if there is no javascript allowed. > > -- > thanks - dave > david_at_windward_dot_net > http://www.windwardreports.com > > > > "Phillip Williams" wrote: > > > Panels are the same story; they are server controls that would only render > > their content if they were turned visible. You would be looking for DHTML > > programming; where you would add <DIV> tags (which are rendered as they are > > on the browser) to a page and handle them using JavaScript. > > -- > > HTH, > > Phillip Williams > > http://www.societopia.net > > http://www.webswapp.com > > > > > > "David Thielen" wrote: > > > > > I saw that - I was hoping there was a way to switch a mode or something. > > > > > > Ok, what if I have 2 panels, then can I do this? And if so, how? > > > > > > -- > > > thanks - dave > > > david_at_windward_dot_net > > > http://www.windwardreports.com > > > > > > > > > > > > "Phillip Williams" wrote: > > > > > > > Hi David, > > > > > > > > The MultiView server control only renders the selected View to the browser. > > > > In other words, you cannot use JavaScript on the browser to display other > > > > views because their markup is not rendered. To confirm that, right mouse > > > > click on the browser and “View Sourceâ€; you will not find the markup of the > > > > unselected views. The web page has to go back to the server to display it. > > > > -- > > > > HTH, > > > > Phillip Williams > > > > http://www.societopia.net > > > > http://www.webswapp.com > > > > > > > > > > > > "David Thielen" wrote: > > > > > > > > > Hi; > > > > > > > > > > If I use a radio button list to set which view to display in a MultiView, is > > > > > there a way to set it to change the view using javascript where it does a > > > > > <div> around each view? > > > > > > > > > > And also have it postback only if javascript is disabled? > > > > > > > > > > -- > > > > > thanks - dave > > > > > david_at_windward_dot_net > > > > > http://www.windwardreports.com > > > > > THANK YOU
Show quoteHide quote "Phillip Williams" wrote: > It really depends on your page's design. For example, if you change your > security settings for the Internet zone in your browser to disable Active > scripting and visit this discussion forum again > (http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.aspnet.webcontrols&lang=en&cr=US) > it will not work. But if you visit the City of North Vancouver's website > (which I developed using ASP.NET 1.1) http://www.cnv.org/ it will work. But > if you visit my website http://www.webswapp.com/ you will find that it works > up until you meet some hyperlink buttons. > > To learn more about the effect of disabling client-side scripting on the > ASP.NET controls you might review this article: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconclientscriptinwebforms.asp > > In other words, if you expect that a significant number of your users would > disable the client script then avoid the controls mentioned in the above > link, or else inform the visitors that client side scripting is necessary to > utilize the full functions of your site. > > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "David Thielen" wrote: > > > Hi; > > > > Question - can I assume javascript must be enabled in ASP.NET? In other > > words, will the parts that ASP creates not work if there is no javascript? Or > > can someone turn javascript off? > > > > And if they can, how should I handle that in this case. Because I would want > > some kind of <noscript> to make a postback on the radio button change - but > > only if there is no javascript allowed. > > > > -- > > thanks - dave > > david_at_windward_dot_net > > http://www.windwardreports.com > > > > > > > > "Phillip Williams" wrote: > > > > > Panels are the same story; they are server controls that would only render > > > their content if they were turned visible. You would be looking for DHTML > > > programming; where you would add <DIV> tags (which are rendered as they are > > > on the browser) to a page and handle them using JavaScript. > > > -- > > > HTH, > > > Phillip Williams > > > http://www.societopia.net > > > http://www.webswapp.com > > > > > > > > > "David Thielen" wrote: > > > > > > > I saw that - I was hoping there was a way to switch a mode or something. > > > > > > > > Ok, what if I have 2 panels, then can I do this? And if so, how? > > > > > > > > -- > > > > thanks - dave > > > > david_at_windward_dot_net > > > > http://www.windwardreports.com > > > > > > > > > > > > > > > > "Phillip Williams" wrote: > > > > > > > > > Hi David, > > > > > > > > > > The MultiView server control only renders the selected View to the browser. > > > > > In other words, you cannot use JavaScript on the browser to display other > > > > > views because their markup is not rendered. To confirm that, right mouse > > > > > click on the browser and “View Sourceâ€; you will not find the markup of the > > > > > unselected views. The web page has to go back to the server to display it. > > > > > -- > > > > > HTH, > > > > > Phillip Williams > > > > > http://www.societopia.net > > > > > http://www.webswapp.com > > > > > > > > > > > > > > > "David Thielen" wrote: > > > > > > > > > > > Hi; > > > > > > > > > > > > If I use a radio button list to set which view to display in a MultiView, is > > > > > > there a way to set it to change the view using javascript where it does a > > > > > > <div> around each view? > > > > > > > > > > > > And also have it postback only if javascript is disabled? > > > > > > > > > > > > -- > > > > > > thanks - dave > > > > > > david_at_windward_dot_net > > > > > > http://www.windwardreports.com > > > > > >
formview with objectDataSource won't display data
Web UserControl DropDownlist control event not working... bug with gridview.selectedvalue? How to refresh a dropdownlist inside a DetailsView? Create a word like doc from C#.NET Passing values between user controls in separate forms Menu control MenuItemClick does not fire. Hidden input field named "__EVENTVALIDATION" multiView vs panel GridView W/Drop Down List Question |
|||||||||||||||||||||||