|
hi there,
i would appreciate some help. i have written a web application in asp.net (visual basic.net). when i run the application on another pc by changing the sql server name in my connection strings it works fine.
when the web host puts the folder on their server, after changing the sql server name in my connection strings to their sql server's name, their server returns no errors but won't display any data. they are networking guys and wouldn't know how to help and as everything is working on my pc i don't know what is wrong. any suggestions?
thanks
|
|
|
|
|
Hi All
I have a page in which I Send some important Data in hiden fields. Now the problem is that when the page load and u right click it show the source code. How can I Disable the Source Code of the page. Also From the Menu Bar View.
Please Help me it is very urgent.
Thanks in Advance.
With Best Regards.
Bangash
|
|
|
|
|
Why are you using hidden fields instead of viewstate ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Please Tell me Just How Can I disable View Source.(When u right click on a page and Click on View Source). I want to disable View Source on page and also in toolbar "view"
|
|
|
|
|
You can't stop it from the menu, hence my asking why you;re writing insecure code in the first place.
Is there a reason ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
hi,
YOU CANNOT DO THAT.
you can stop the right click on browser....but you cannot disable ViewSource menuitem in View menu in toolbar.......it just cannot be achieved by any means....
i once had the same problem.
you can decrypt the code but make sure to take a back up of html.
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
There is no way that you can safely protect the source of the page. If you don't want the data to be available to anyone, don't put it in the page.
There is some Javascript that can disable some of the options in some specific browser, but anyone interrested in viewing the source code can use a different browser or disable Javscript to be able to see the source.
---
b { font-weight: normal; }
|
|
|
|
|
Actually I m sending Username and Password to a page in hidden fields. If u can please Tell what method should I use. Please give me a coding example. Its very urgent.
Thankx for ur comments
|
|
|
|
|
Hi,
u can use this Javascript code
function NoRightClick()
{
if (event.button==2)
{
alert('No right clicks allowed.')
}
}
document.onmousedown=NoRightClick
Regards,
Ritika
Ritika
|
|
|
|
|
Dear Ritika Hi have disabled right click. I want to disable the view source in menubar. Is that posible. If not then please tell me how should I send information so that not displayed in view source.
|
|
|
|
|
Hi
I Dont think therz anyway u can do that.
Regards,
Ritika
|
|
|
|
|
Please read the first sentence of my previous post again. Repeat until the urge to put sensetive data in the page fades away.
---
b { font-weight: normal; }
|
|
|
|
|
Basically, your approach is completelly wrong. Even if you are able to disable 'View source' code in browser, that still doesn't prevent users to see your source code (anybody can make own 'browser', or just write few lines of code to run WebRequest and retrieve source of your html).
If you need to pass any sensible data, use ViewState, for example (anyway, it is not 100% secure, but it is not in plain text at least)
override LoadViewState and SaveViewState method of your ASP.NET page to implement this functionality.
If you don't know how to do this, ask google: http://www.google.co.uk/search?hl=en&q=override+SaveViewState&btnG=Search&meta=
I still don't understand, why do you want to pass sensible data into a page, why you just don't keep them on server?
Pilo
|
|
|
|
|
how to call msgbox function in asp.net
|
|
|
|
|
MessageBoxes in ASP.NeT (webpages) are powered by JavaScript.
|
|
|
|
|
is it possible to exit an event in asp.net
|
|
|
|
|
Javascript alert[^]
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
why you are sending the message to me
|
|
|
|
|
You don't need help?
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Hi Friends ,
I want to set the Internet Explorer's Page Setup Property for printing automatically , when the page is loaded . Means i want to set the margin defalult , so no need to set the margin manually after loading the page when we r going to print the document.And if possible ,i want to set it through javascript.
Please , guide me, regarding this.
Thankin you,
Param
-- modified at 3:52 Thursday 7th December, 2006
param
|
|
|
|
|
hi,
use the follwing code in <BODY> section and change the text in BOLD to your values
<script language="javascript" event="onload" for="window">
javascript:window.open('http://www.YOUR URL.com','YOUR PAGE TITLE','width=570,height=650,top='+((screen.height/2)-(NaN))+',left='+((screen.width/2)-(NaN))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no');
</script>
<script language="javascript">
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
how to write code to exit
in vb.net we can write the code like exit sub
in asp.net how to write the codee
|
|
|
|
|
|
Hi Pals
I have a requirement to send mail from Web Application. On a contact us page client requirement is to send a mail to a specified mail ID from the USER'e mail ID.
1. In the screen I am having "To" field( its pre-specified mail ID, like admin@clientdomain.com
2. "From" field where the guest user( who are not loggd in the application) gives his/her Email ID.
3. Then subject and Body test field.
Now is it possible to send a mail to the "admin@clientdomain.com" from users email id( ALMOST LIKE SENDING A MAIL FROM SOME-ELSE'E MAIL ID WITHOUT HAVING HIS/HER PASSWORD KNOWN ). I tried but not getting any mails but no errors also.
Please help
Arindam,
|
|
|
|