|
d@nish wrote: Have you thought about having that button in a update panel and and using update panel animator? It would give a better look.
I don't know what that is...
d@nish wrote: (Here I am assuming that WaitPanel must be something like those loading/working kind gifs)
Yeah, it is.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
This[^] should help. And this[^] link for UpdateProgress control (sorry for incorrect control name in earlier post).
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
This is what impossible.
In case of client server env, everytime you request the server, you are actually posting the form with all its data to the server, and until the server processes it and returns it back, you will see a blank screen(If not using AJAX).
So, it will not show you the panels.
What you need to do, is you call the server using AJAX call, and use some javascript to show the panel in the client side.
Panels are rendered as div.
So, design the panel in server side, if you wish... (I would have dynamically created the div using Javascript), use Js to handle like this :
var panel = document.getElementById('<%=this.WaitPanel.ClientId %>');
panel.style.display = 'block'; //To hide the panel..
and to hide it again
panel.style.display = 'none';
Dont use serverside visible property, as otherwise the html will not be sent to the client.
|
|
|
|
|
k
===========================
http://www.nitinsawant.com
===========================
|
|
|
|
|
Fix your user ID. It's displaying HTML and borking up the forum presentation.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Forgive me if I'm wrong, but, as per your sequence, the code in the finally block is getting executed in all cases, which as far as I know, is the way it is supposed to work. I don't see any reason why the code that you have highlighted should not get executed!?
|
|
|
|
|
Dinesh Mani wrote: the code in the finally block is getting executed in all cases, which as far as I know, is the way it is supposed to work.
You are correct. The code in the finally block will get executed no matter what happens above it.
Dinesh Mani wrote: I don't see any reason why the code that you have highlighted should not get executed!?
I don't either, hence my question - why doesn't it work?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I'm not an expect in Ajax programming, but wouldn't the flush happen only after the event execution is completed? So, in effect, the working of the first section would not be visible but would have happened.
I'm not sure on this, as said above I'm not an ajax expert either.
|
|
|
|
|
This isn't Ajax...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Then I don't think you can achieve this using server code. You need to hide/disable the controls using client script do the processing using server code show/enable the controls again using client script.
|
|
|
|
|
I ended up using ajax, and it's working as desired.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
|
Hi All,
I have created a windows based Hotel Management Application software in VS 2005 .NET (VB .NET) with SQL server 2005 Express as database. Now I have to upgrade this to a centralize server based application. There are 4 hotels located in different places. The application should run on all the 4 PCs and the SQL database will be centralized. i.e. Updates from the database will be available to all the 4 PCs so that user on these respective PCs can see what is the present state of any room, e.g., vaccant or occupied.
For this I need some information from You all for following:
1) Do I need to build an ASP.NET based application for this? I mean, will it be like a website, which is accessible to all the 4 PCs having internet connection?
2) Any other way to create this application, as I already created this as windows based in VB .NET ?
3) How to create the centralize SQL database?
Overall I want to know like, what are the steps involved to create such kind of applications and their requirement?
Any links/suggestions/references/tutorials is appriciated.
Thanks
Raja S.
|
|
|
|
|
You don't have to rebuild your application into a web based application. If you have already defined placed business logic and presentations classes separately, then just put a web service wrapper around your business logic and use your existing Windows Forms UI to consume the service.
If not, then you will have to separate your business logic [BL] and data access[DA] code from the presentation [PL] code. Ensure that all data access from PL is done only through your BL, via DA. Now expose the BL as webservice.
Creating a central database repository is something your DBA should be taking care of. If your existing DB is capable of handling data from all locations, then just hand them your existing DB scripts. Else, make necessary changes to your DB and pass on the script.
|
|
|
|
|
Hi,
I didnot get Your idea. I am just looking for a tutorial to build such kind of application.
|
|
|
|
|
What he is trying to say, that it is not necessary that you create a ASP.NET application. Your current win application needs to have one kind of communication with the centralized database. For this you could use a webservice installed on that centralized server that performs the communication between the outside world and the database. And your application needs to be modified so that it can consume this webservice. In other words consult, insert, update and delete.
It's nice and clean but you should think of alternatives before starting of. Communication with a webserver can expose data, you can't loose the security behind this idea.
|
|
|
|
|
Hi friends,
We are developing a web application that uses sessions and Forms authentication. I want to call Session.Abandon() to kill the session when the user closes the browser window(from any page of the application after logging in). How to achieve this?
Please shed some light on this to help me.
Thank you,
Shah_tech
|
|
|
|
|
|
Hi
You can call a javascript function on closing the browser. In that javascript function navigate to a logout page where you can then kill the session.
function AlertForBrowserClose()
{
var clicked=false;
var winClosed=false;
if (window.screenTop&&(window.screenTop>screen.height))
{
winClosed=true;
}
if ((!clicked) && (!winClosed))
{
}
else if(window.event.clientY < 0 && window.event.clientX < 0)
{
var MCPageName = document.location.href.substring
(
document.location.href.length , document.location.href.lastIndexOf('/') + 1
);
if(MCPageName!="MCAlerts.aspx")
{
window.location.href = '../logout.aspx';
alert('Please use proper "LogOut" for next sessions!');
}
}
}
I have used alert statement
alert('Please use proper "LogOut" for next sessions!');
Make sure that this alert is used. Else the logout page will not get hit and session soes not end.
Naina
|
|
|
|
|
Thank you for quick reply.
One thing is should I write the code in all the aspx pages of my application?
How can we kill the session when the browser is closed without writing the code in every page?
Thank you,
Shah_tech
|
|
|
|
|
Are you using master page in your application which is referred in all the aspx pages. If so you can write the code in master page and redirect to logout page. If not i guess you should write in every aspx page.
Regards
Naina
Naina
|
|
|
|
|
or just put it in a .js file and include it in all the pages.
|
|
|
|
|
dear all
recently i am working on gridview.
The problem that i have been facing is that i need to insert textbox in gridview and row of gridview need to be automatically incremented as per user input.Therfore,can anyone help me out from this problem?
thanx in advanced
|
|
|
|
|
|
Hi all,
I have to create plugins toolbar(like google toolbar) for IE,FireFox and Flock
But I have no idea where to start for it.
I had search on google but not getting any help.
Thanks in advance.
|
|
|
|