|
Hi
in one of my application i am gathering all user information on one
page and provide a print button below it.If user clicked on the button
the form should get print?How can i do this? i am using asp.net 1.1 with
vb.net.
Thanks.
Rahul
|
|
|
|
|
There you go:
On the onclick of the button call window.print(); in javascript
Cheers!
Alberto Bar-Noy
Project Manager
http://www.consist.co.il
|
|
|
|
|
hi,
if i call window.print(); on clicked event of the button then the form get
printed.I don't have to write any extra code to achieve this.
Thanks.
Rahul.
|
|
|
|
|
I am glad it worked for you!
Alberto Bar-Noy
Project Manager
http://www.consist.co.il
|
|
|
|
|
Ok
Thanks for your help i tried it.
Rahul
|
|
|
|
|
i am using asp dot net and c# dot net.What my problem is that i couldn't clear out the history pages so that though i maintain session and remove session when i click log off, some files are still coming due to it's content saved in history. So is there any way to get out of it????Shall i have to do anything in asp dot ??????????
suchitamanandhar@hotmail.com
|
|
|
|
|
suchitaM wrote: What my problem is that i couldn't clear out the history pages
ASP.NET is a server side scripting. Browser history will be maintained by your browser and saved in your machine. So how an ASP.NET application running on server can clear this. ?
If you don't want your browser to maintain history, you should go for Server.Transfer() for all your redirects. This method is not advice-able since it makes lot of confusion for the user and extra work for you.
suchitaM wrote: i maintain session and remove session when i click log off, some files are still coming due to it's content saved in history.
Each page should check session is active before doing any process, Do the session check in all pages page_load event. This will prevent user to work on pages after logging off. If you are implementing this method, user may be able to see the page if it is cache, but they won't be able to do any transactions.
Better approach would be creating a common class which does user authentication and authorization.
|
|
|
|
|
suchitaM wrote: how to clear browser history
The simple answer is You can not . If you are skeptical about your web pages being logged in web browser history, you may prefer to route URLs through location.replace() of JavaScript.
|
|
|
|
|
Hello All,
I am using visual studio 2005 web developer. i am unable to add the ajax script manager over the aspx page. it is giving me error. Did i miss some proceedure before using the scriptmanager in aspx pages????
Thanks in advance
Bharath.S Ron
|
|
|
|
|
Hard to say, when you don't tell us what your error is, or what your code looks like.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
when i am adding the script manager over the form it is giving the error on the script manager tool saying" Error creating control- scriptmanager " duplicate component name scriptmanager1, components name must be unique
this is the error which i am getting
Thanks
Bharath.S Ron
|
|
|
|
|
And what did you do to investigate this error ? I mean, the message is quite clear, do you have a scriptmanager on the page already ( you obvioulsy do ) ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No, i haven't used the script manager before in this site.
For that reason only i got confused, so , i am seeking help.
Bharath.S Ron
|
|
|
|
|
which type website u select for the script manager.
please select AJAXEnabledWebSite type website
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
i have already developed the website in asp.net 2.0, now i want to implement ajax over that.
i am not sure whether this is pssible or not.
If i create new ajaxenabled website then it will not give any error.
Bharath.S Ron
|
|
|
|
|
what is the error
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
please select AJAXEnabledWebSite type website
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
my dear AJAX script manager only work on ajaxenabled website.when u done this work then rply me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
No it doesn't. You can add a reference to the ajax web extensions DLL, and then add ScriptManagers to any ASP.NET website. I am currently going through my sites doing similar.
As CG said, I imagine the OP is putting more than one ScriptManager on the page.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
but sir ji he have't adding ant type( ajax web extensions DLL) of dll
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
He doesn't say this. He says he gets duplicate controls. How do you know he hasn't? I was simply saying to can add the Microsoft Ajax extensions to a non AjaxType website.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
I have added the refernce to the required DLL, ajax toolkit and web extension dll..
Bharath.S Ron
|
|
|
|
|
hi
i have site which is working fine on net
now i want the same site on the PDA..
i dont want the same way display i want to change the appearance of the stie
like asking for login at first...
so i need to change my site design...
how will i know that there is a hit to the site from a pda device
please help me
thanks
|
|
|
|
|
I guess you can get the details of the browser by Request object...
Deepak Surana
|
|
|
|
|
that's a nice suggestion thanks
but now i need to redesign all the pages now accordingly right..
is that is the only way is or some other way is there to arrange them
|
|
|
|