Showing posts with label browser. Show all posts
Showing posts with label browser. Show all posts

Saturday, March 31, 2012

submitting the form to the browser

I am very new to ASP.NET. We have an asp.NET project that is used to show the state of various sql tables/data. The "proposed enhancement" to that is when the data is updated locally (through another application running on the same network where the database is located), the browser (if someone happen to view the same data over the Internet through a browser) should refresh automatically so that the data is ~accurate~ when viewed. I know that browser uses pull technology, and in order to receive a new data, the browser must "request" it (through a control-generated event or a refresh event generated through timer). When the form is posted back to the server and resubmitted, it will "refresh" the browser view. Since the data must appear on the browser within 10-20 seconds of the actual data update, the refresh must be done quite frequently, and the page will constantly reload, so because of that I am not eager to generate refresh events on timer. Is there any way I can push the newly updated page to the browser from the server without any interaction/request from the browser? Is anybody aware of any other technology that I can use it to accomplish this task? ANy help/hint/suggestions are greatly appreciated.

Thank you
olaHi ola,

Unfortunately, there is no other technology that will help you with this issue. You are correct in that the brower uses "pull" technology and therefore there is nothing you can do on the server side to initiate this refresh. The only solution is to use client-side script to refresh the borwser.

Chad
Hi ola,

unfortunately a browser only supports the pull way. But maybe this article can be of help to you:Using IE's Web Service Behavior To Create Rich ASP.NET Applications. I know the next version of ASP.NET uses something like client call back functionality that's able to only update small portions of a page without refreshing the whole page.

Of course using this technique still requires to call a method on a time interval.

Grz, Kris.
Chad,

thank you very much for your reply.
I have additional question. When you refer to a client-side script that can be used to refresh a browser, are you talking about a separate program running on the same machine where the browser is open, or it is something incorporated into the web form code that does it on a timely bases? If it was a separate program (which could know which instance of the browser I need to refresh, which form on that instance of the browser is open and how to envoke the refresh on the browser), it would probably work for me. I will just need to find out how to do it (if at all it is possible). Do you know anything about it? Any ideas/suggestions?

Thank you

ola
ola,

I was actually talking about using a JavaScript timer or using the Meta tags to refresh the browser. I think it would be nearly impossible to write a Windows app to know which browser to refresh when. This would be way more work than it's worth. I think your only solution here is to just put code in your page to refresh the entire page every so often. Sorry I don't have the perfect solution for your problem.

Chad

Thursday, March 22, 2012

Support for Netscape 7+ ?

<asp:unproductive_post>
Are you SERIOUS? Are there still people ACTIVELY installing Netscape? Has
no one told them the browser war ended a couple of years ago?? Worst.
Product. Ever.
</asp:unproductive_post
"Antonio Maciel" <antmac@dotnet.itags.org.consys.com> wrote in message
news:eqCLHQKbDHA.1492@dotnet.itags.org.TK2MSFTNGP12.phx.gbl...
> Hi.
> I have some validator controls on the pages of a site. In IE the controls
> work ok. When I run the site on Netscape 7 the scripts for the validator
> controls are not generated. Is there any support for Netscape 7 in vs.net
> 2003? If not, how can I validate the data on the page in Netscape 7?
> Thanks,
> Anotnio MacielSeriously, I hate all this anti-MS gubbins, but Phoenix / Firebird is the
BEST BROWSER EVER!

<Ducks
PS Top posting cos the last guy did, bite me.

"Drebin" <tRhEeMdOrVeEbin@.hotmail.com> wrote in message
news:eY23b.34594$Vx2.15013357@.newssvr28.news.prodi gy.com...
> <asp:unproductive_post>
> Are you SERIOUS? Are there still people ACTIVELY installing Netscape?
Has
> no one told them the browser war ended a couple of years ago?? Worst.
> Product. Ever.
> </asp:unproductive_post>
> "Antonio Maciel" <antmac@.consys.com> wrote in message
> news:eqCLHQKbDHA.1492@.TK2MSFTNGP12.phx.gbl...
> > Hi.
> > I have some validator controls on the pages of a site. In IE the
controls
> > work ok. When I run the site on Netscape 7 the scripts for the validator
> > controls are not generated. Is there any support for Netscape 7 in
vs.net
> > 2003? If not, how can I validate the data on the page in Netscape 7?
> > Thanks,
> > Anotnio Maciel
To be clear - I don't have issues with non-MS browsers.. I just want a
standards-compliant browser, I don't care who makes it...

"Tom Yates" <tomyates@.askme.com> wrote in message
news:biifma$9jm52$1@.ID-191453.news.uni-berlin.de...
> Seriously, I hate all this anti-MS gubbins, but Phoenix / Firebird is the
> BEST BROWSER EVER!
> <Ducks>
> PS Top posting cos the last guy did, bite me.
> "Drebin" <tRhEeMdOrVeEbin@.hotmail.com> wrote in message
> news:eY23b.34594$Vx2.15013357@.newssvr28.news.prodi gy.com...
> > <asp:unproductive_post>
> > Are you SERIOUS? Are there still people ACTIVELY installing Netscape?
> Has
> > no one told them the browser war ended a couple of years ago?? Worst.
> > Product. Ever.
> > </asp:unproductive_post>
> > "Antonio Maciel" <antmac@.consys.com> wrote in message
> > news:eqCLHQKbDHA.1492@.TK2MSFTNGP12.phx.gbl...
> > > Hi.
> > > > I have some validator controls on the pages of a site. In IE the
> controls
> > > work ok. When I run the site on Netscape 7 the scripts for the
validator
> > > controls are not generated. Is there any support for Netscape 7 in
> vs.net
> > > 2003? If not, how can I validate the data on the page in Netscape 7?
> > > > Thanks,
> > > > Anotnio Maciel
> > >
> To be clear - I don't have issues with non-MS browsers.. I just want a
> standards-compliant browser, I don't care who makes it...
I second that.

"Drebin" <tRhEeMdOrVeEbin@.hotmail.com> wrote in message
news:Xt33b.34604$Vx2.15021174@.newssvr28.news.prodi gy.com...
> To be clear - I don't have issues with non-MS browsers.. I just want a
> standards-compliant browser, I don't care who makes it...
> "Tom Yates" <tomyates@.askme.com> wrote in message
> news:biifma$9jm52$1@.ID-191453.news.uni-berlin.de...
> > Seriously, I hate all this anti-MS gubbins, but Phoenix / Firebird is
the
> > BEST BROWSER EVER!
> > <Ducks>
> > PS Top posting cos the last guy did, bite me.
> > "Drebin" <tRhEeMdOrVeEbin@.hotmail.com> wrote in message
> > news:eY23b.34594$Vx2.15013357@.newssvr28.news.prodi gy.com...
> > > <asp:unproductive_post>
> > > Are you SERIOUS? Are there still people ACTIVELY installing
Netscape?
> > Has
> > > no one told them the browser war ended a couple of years ago?? Worst.
> > > Product. Ever.
> > > </asp:unproductive_post>
> > > > "Antonio Maciel" <antmac@.consys.com> wrote in message
> > > news:eqCLHQKbDHA.1492@.TK2MSFTNGP12.phx.gbl...
> > > > Hi.
> > > > > > I have some validator controls on the pages of a site. In IE the
> > controls
> > > > work ok. When I run the site on Netscape 7 the scripts for the
> validator
> > > > controls are not generated. Is there any support for Netscape 7 in
> > vs.net
> > > > 2003? If not, how can I validate the data on the page in Netscape 7?
> > > > > > Thanks,
> > > > > > Anotnio Maciel
> > > > > > > >

Suppress postback added to history WITHOUT smartnavigation

I remember hearing that you could use javascript document.location.href to p
revent a link from being added to the browser history.
Has anyone found a way to implement this behaviour for page postbacks withou
t using smartnavigation?
SmartNavigation causes me too many javascript headaches. Anyone know of a ba
se page class (or something) that would accomplish that feature of smartnavi
gation?
Or perhaps you happen to be using CoolMenus and know how to fix the page so
it works with SmartNavigation :) ?
Thanks for any help.
From: Mark Petersen
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>emWuhAFdl0mktgkkLUxWpQ==</Id>Hello,
> Has anyone found a way to implement this behaviour for page postbacks without usin
g smartnavigation?
This article deals with that issue:
Maintaining Scroll Position on Postback (without SmartNavigation)
http://aspnet.4guysfromrolla.com/articles/111704-1.aspx
"Mark Petersen via .NET 247" wrote:

> I remember hearing that you could use javascript document.location.href to
prevent a link from being added to the browser history.
> Has anyone found a way to implement this behaviour for page postbacks with
out using smartnavigation?
> SmartNavigation causes me too many javascript headaches. Anyone know of a
base page class (or something) that would accomplish that feature of smartna
vigation?
> Or perhaps you happen to be using CoolMenus and know how to fix the page s
o it works with SmartNavigation :) ?
> Thanks for any help.
> --
> From: Mark Petersen
> --
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
> <Id>emWuhAFdl0mktgkkLUxWpQ==</Id>
>

Supressing Menu and Toolbars on Webpage

Hello All,

I'd like for my ASP.NET application to look like an application and not have
to display the menu and toolbars in the browser window.

In order to do this now I use a response.write and imbed javascript to do
window.open and include parameters to suppress these items. This causes
problems for users that have a popup stopper installed as the resulting
window is a popup and is usually suppressed.

Please let me know if you have any tips on a workaround for this issue.

I'd also like to find a way to automatically maximize the browser window
since the app looks better in full screen mode.

Any help you all can provide is greatly appreciated.

Thanks, Herbfor the maximize try
fullscreen=yes

as for a workaround for the pop-up blocker... God I hope not. That would
defeat the purpose. Tell you clients to "not block" your site.

Personally...any site that tries to even resize my window is immediately
put on my "do not visit" list. I think you may want to revisit your
approach... Web apps should never adjust or take over any settings on a
client's machine really, especially not if it's a public site.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com

"Herb Stull" <stullhe@.nauticom.net> wrote in message
news:403cd2e1$1_2@.news.nauticom.net...
> Hello All,
> I'd like for my ASP.NET application to look like an application and not
have
> to display the menu and toolbars in the browser window.
> In order to do this now I use a response.write and imbed javascript to do
> window.open and include parameters to suppress these items. This causes
> problems for users that have a popup stopper installed as the resulting
> window is a popup and is usually suppressed.
> Please let me know if you have any tips on a workaround for this issue.
> I'd also like to find a way to automatically maximize the browser window
> since the app looks better in full screen mode.
> Any help you all can provide is greatly appreciated.
> Thanks, Herb
Curt:

I have an application for an intranet that I'm writing and I would like to
start the users in full screen mode when they begin the application.
Presently I tell them to press F11 to go to full screen - is there a way to
call the 'fullscreen=yes' from within VB.NET - or is there a way that I can
do it with a javascript on the default.aspx page?

Thanks,

Fred

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:OC1IC17%23DHA.1956@.TK2MSFTNGP10.phx.gbl...
> for the maximize try
> fullscreen=yes
> as for a workaround for the pop-up blocker... God I hope not. That would
> defeat the purpose. Tell you clients to "not block" your site.
> Personally...any site that tries to even resize my window is immediately
> put on my "do not visit" list. I think you may want to revisit your
> approach... Web apps should never adjust or take over any settings on a
> client's machine really, especially not if it's a public site.
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
> "Herb Stull" <stullhe@.nauticom.net> wrote in message
> news:403cd2e1$1_2@.news.nauticom.net...
> > Hello All,
> > I'd like for my ASP.NET application to look like an application and not
> have
> > to display the menu and toolbars in the browser window.
> > In order to do this now I use a response.write and imbed javascript to
do
> > window.open and include parameters to suppress these items. This causes
> > problems for users that have a popup stopper installed as the resulting
> > window is a popup and is usually suppressed.
> > Please let me know if you have any tips on a workaround for this issue.
> > I'd also like to find a way to automatically maximize the browser window
> > since the app looks better in full screen mode.
> > Any help you all can provide is greatly appreciated.
> > Thanks, Herb
Just so you're aware-- going fullscreen without the user's permission is
going to get harder in Windows XP SP2.

If you want the user to see your application in fullscreen mode, why not
give them a custom .HTA file to run which pulls in your webpage in an
IFRAME?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Fred Nelson" <fred@.smartybird.com> wrote in message
news:Ocwm1J8#DHA.2480@.TK2MSFTNGP12.phx.gbl...
> Curt:
> I have an application for an intranet that I'm writing and I would like to
> start the users in full screen mode when they begin the application.
> Presently I tell them to press F11 to go to full screen - is there a way
to
> call the 'fullscreen=yes' from within VB.NET - or is there a way that I
can
> do it with a javascript on the default.aspx page?
> Thanks,
> Fred
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:OC1IC17%23DHA.1956@.TK2MSFTNGP10.phx.gbl...
> > for the maximize try
> > fullscreen=yes
> > as for a workaround for the pop-up blocker... God I hope not. That
would
> > defeat the purpose. Tell you clients to "not block" your site.
> > Personally...any site that tries to even resize my window is
immediately
> > put on my "do not visit" list. I think you may want to revisit your
> > approach... Web apps should never adjust or take over any settings on a
> > client's machine really, especially not if it's a public site.
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > www.Darkfalz.com
> > "Herb Stull" <stullhe@.nauticom.net> wrote in message
> > news:403cd2e1$1_2@.news.nauticom.net...
> > > Hello All,
> > > > I'd like for my ASP.NET application to look like an application and
not
> > have
> > > to display the menu and toolbars in the browser window.
> > > > In order to do this now I use a response.write and imbed javascript to
> do
> > > window.open and include parameters to suppress these items. This
causes
> > > problems for users that have a popup stopper installed as the
resulting
> > > window is a popup and is usually suppressed.
> > > > Please let me know if you have any tips on a workaround for this
issue.
> > > > I'd also like to find a way to automatically maximize the browser
window
> > > since the app looks better in full screen mode.
> > > > Any help you all can provide is greatly appreciated.
> > > > Thanks, Herb
> >

Tuesday, March 13, 2012

Switch Off IE (Internet Explorer) Toolbars?

Hi All,

Can anoyone tell me how to:

Switch Off IE (Internet Explorer) Toolbars when my browser windo opens in my application.

crte a button that will close my page

cheers

any help most appreciated

rgs

TonyHi Tony,
You can not do it in current window. You can instead open new window without toolbars and close current. Seethis.
Hi

Thanks for that, just one question...where do I insert in in the asp.net page as I already have script tags with asp.net in them!!!

many thanks

Tony
Hi,

I have use default.aspx that redirects to app mainpage:

private void Page_Load(object sender, System.EventArgs e)
{
string apu = "/Application/AppMainPage.aspx";

string Script = "";

Script += "\n<script language=JavaScript id='StartMainWindow'>\n";
Script += "poppedwin = window.open('"+apu+"','Appmain','resizable=yes, width=1024,height=768,statusbar=no'); \n";
Script += "mainwindow = window.self; \n";
Script += "mainwindow.opener = window.self; \n";
Script += "mainwindow.close(); \n";
Script += "poppedwin.focus(); \n";
Script += "</script>";

Response.Write(Script);
Response.End();
}

I hope this helps.

- Antti -
Hi Tony,
You can insert client script tag anywhere you want (and more then one). Client script tags have no runat="server" attributes and processed differently from server side asp.net script tag.