本文介绍了如何在发布时设置屏幕高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
—SA
This question shows that you have no idea on how ASP.NET works and what HTTP server does. What happens in a browsers is a client side of the application. It only sends an HTTP request the server, and server produce HTTP response. This response can be produced using C# (ASP.NET) or not — it does not matter anything for the client side which only receives the response and process it (renders on screen, runs client-side scripts, responds to user input events, generates other HTTP requests, etc.). There is no room for questions like "C# without JavaScript" or something like that — the whole idea is wrong. As to the window height: even though you can change it by JavaScript, this would be a really bad UI style. The size of a browser window should remain under the exclusive control of a user. However, instead you can use the size of some area inside a page, something like a jQuery dialog:
jqueryui/demos/dialog/[^].
—SA
在控件发生事件时,我必须显示页面的底部, 我想为其固定在c#中发布时窗口的高度 要将窗口滚动到发布时的设置位置,我尝试使用window.sroll()并通过设置高度来使用javascript. 在没有javascript的C#中,类似的情况也是可能的吗?
I have to display the bottom section of the page on event of a control , For which i want to fix the height of the window on posting in c# To scroll the window to the set position on posting, I have tried with javascript using window.sroll() and by setting the height. Similarly is in possible with C# without javascript?
推荐答案此问题表明,您对ASP.NET的工作方式以及HTTP服务器的工作方式一无所知.浏览器中发生的事情是应用程序的客户端.它仅向服务器发送HTTP请求,并且服务器产生HTTP响应.可以使用C#(ASP.NET)生成此响应,也可以不使用C#(ASP.NET)生成-对于仅接收响应并对其进行处理的客户端(在屏幕上渲染,运行客户端脚本,响应用户输入事件,生成其他HTTP请求等).像没有JavaScript的C#"之类的问题没有空间了–整个想法是错误的.关于窗口高度:即使您可以通过JavaScript进行更改,这也是一种非常糟糕的UI样式.浏览器窗口的大小应保持在用户的独占控制之下.但是,您可以使用页面内部某个区域的大小,例如jQuery对话框: jqueryui/demos/dialog/ [ ^ ].
更多推荐
如何在发布时设置屏幕高度
发布评论