|
Code which is used to Disable the right click Button on web-page.
---------------------------------------
<script type="text/javascript">
<!--//
function press()
{
if (event.button==2)
{
alert('Sorry, Right click is not allowed')
return false;
}
}
document.onmousedown=press
//-->
</script>
---------------------------------------
Just add this in HTML code after Head Tag.
Give me comment and suggestions other than this.
Regards
Dinesh Verma
|
|
|
|
|
|
Just out of interest... why would you want to disable the right click?
Any web programmer knows that code rendered in a browser can not be hidden!
All the functionality in right click is available in the menu bar.
|
|
|
|
|
I hope your reply pointed towards Denish's post.
Either you love IT or leave IT...
|
|
|
|
|
|
Hello All
I’m developing a website on tourism. It is public website where no authentication is required. I have around 200 topics which we need to cover. Instead of having 200 different html pages we were planning to have one single page which will display html content after fetching from database. We are planning to store all html for 200 topic in database table. We tested this approach with couple of topics and it is working fine.
Here I have a concern where I need your opinion:
Will above approach affect the google search engine to rate our different pages? Does this effect SEO activities…
Please suggest…Because for each topic meta tags will also be in database tables.
If your reply is yes please suggest some other alternative as we don’t want to maintain 200 different pages……..
Thanks,
Amit
|
|
|
|
|
For a better result, generate a single url for each content.
eg. www.yoururl.com/topic1, www.yoururl.com/topic2 ...
In this case, you will have one unique page that receives parameters and "generate" the page.
How? Using URL Rewrite. With one page, you can "make" many others.
And... In addition to meta tags, set a unique title too.
|
|
|
|
|
Hi
i have to copy a file from my machine to another machine in same network using an ip address in asp.net 1.1 using C#. how it will be done.
|
|
|
|
|
It would probably be best to set up a shared folder with access between the 2 machines and go from there using standard file operations
|
|
|
|
|
Bibhash Mishra wrote: i have to copy a file from my machine to another machine in same network using an ip address in asp.net 1.1 using C#
I suppose you can run asp.net application on both machines.
1. Write a web service for the machine that will receive file.
2. On the sending machine, pick the file, convert it into byte stream. Open a TCP connection(Socket) with the receiving machine, transfer the file and close the socket.
3. The web service will receive the byte stream and will write file to disk.
|
|
|
|
|
If the machines are in the same network, all you have to do is grant write permission to ASPNET user on the destination folder.
|
|
|
|
|
I am trying to migrate an WinForms application to WebForms application using WebGUI. When i try to compile the WinForms code in the WebGUI project by deriving(or replacing System.Windows.Forms) with Gizmox.WebGUI.Forms, my code is not compiling beacuse of various appributes on the WinForms
Below are some of the error? How do I resolve these errors?
DataReader.frmDataReader' does not contain a definition for 'HelpButton' and no extension method 'HelpButton' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
D:\source\Programs\Data Reader_ASP\Data ReaderASP\frmDataReader.Designer.cs(327,17): error CS0029: Cannot implicitly convert type 'System.Drawing.Icon' to 'Gizmox.WebGUI.Common.Resources.ResourceHandle'
D:\source\Programs\Data Reader_ASP\POS Data ReaderASP\frmDataReader.Designer.cs(328,9): error CS1061: 'DataReader.frmDataReader' does not contain a definition for 'KeyPreview' and no extension method 'KeyPreview' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
D:\source\Programs\Data Reader_ASP\Data ReaderASP\frmDataReader.Designer.cs(340,9): error CS1061: 'DataReader.frmDataReader' does not contain a definition for 'MouseMove' and no extension method 'MouseMove' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
|
|
|
|
|
Well you have to solve the errors by replacing the System.Windows.Forms-elements with the matching Web-control. For example the HelpButton does not exists for Gizmox.WebGUI.Forms. So you should add a control 'HelpButton' to your form...
|
|
|
|
|
In the WebGui project, the form controls is derving Gizmox.WebGUI.Forms.Form . So can i add conrols in "systems.windows.forms" namespace to the Webgui project
|
|
|
|
|
Well this dependes on the Gizmox framework. I would suggest to take a look into the documentation of gizmox.
|
|
|
|
|
Had a quick look into the Migrate-video from gizmox. Seems like you have to rename all your System.Windows.Forms-references to Gizmox.WebGUI.Forms-references. This means they have implemented all Windows-Forms-controls to Gizmox-controls. So you cannot add System.Windows.Forms controls to the project.
Are you missing a special control, or why do you want to add controls from Windows.Forms?
|
|
|
|
|
I am trying to migrate an WinForms application to WebForms application using WebGUI. When i try to compile the WinForms code in the WebGUI project by deriving(or replacing System.Windows.Forms) with Gizmox.WebGUI.Forms, my code is not compiling beacuse of various appributes on the WinForms
Below are some of the error? How do I resolve these errors?
DataReader.frmDataReader' does not contain a definition for 'HelpButton' and no extension method 'HelpButton' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
D:\source\Programs\Data Reader_ASP\Data ReaderASP\frmDataReader.Designer.cs(327,17): error CS0029: Cannot implicitly convert type 'System.Drawing.Icon' to 'Gizmox.WebGUI.Common.Resources.ResourceHandle'
D:\source\Programs\Data Reader_ASP\POS Data ReaderASP\frmDataReader.Designer.cs(328,9): error CS1061: 'DataReader.frmDataReader' does not contain a definition for 'KeyPreview' and no extension method 'KeyPreview' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
D:\source\Programs\Data Reader_ASP\Data ReaderASP\frmDataReader.Designer.cs(340,9): error CS1061: 'DataReader.frmDataReader' does not contain a definition for 'MouseMove' and no extension method 'MouseMove' accepting a first argument of type 'DataReader.frmDataReader' could be found (are you missing a using directive or an assembly reference?)
|
|
|
|
|
|
Hi,
HelpButton is currently missing in Gizmox.WebGUI.Forms library, however it's recoverable using a plain button easily.
As for the ResourceHandle, being web based technology, this is the way VWG handles resources such as images, you will need to include the images using a browser supported format (png, jpg, gif) within: Resources\Images or Resources\Icons which should be located under your project root directory. Then you can select the icons/images using the [...] button within the control's Image/Icon property (within the designer's property grid).
This action will create the resource handle required to grab the picture "web-style" at runtime.
I hope this helps...
You can further ask VWG related questions within the VWG forums to get the VWG community's rapid answer...
Cheers,
Itzik
|
|
|
|
|
I am looking for an application or environment that will let me maintain the same javascript or other coding over multiple pages and may be referenced in other pages.
|
|
|
|
|
Does an external javascript file not work? What exactly do you want to do?
|
|
|
|
|
Use external javascript file (.js) and use it in the required pages with in the script tags.
Either you love IT or leave IT...
|
|
|
|
|
Hi,
I have a .Net 2.0 web application that works fine on 2003 windows server on 32 bit mode, now we are migrating to win2003 64 bit server.
Every part of the application works fine but the Crystal reports. I tried many solutions by installing different runtime dll's for CR, with no luck. I always get the error:
"An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64 or Itanium) required..."
Also we are forced to operate IIS on this machine in 64 bit mode, so I can't change it to 32 mode.
Last thing I'm thinking of is to recompile this application with VS 2008 64bit that has CR shipped with it, but I'm afraid of having backward compatibilty issue as crystal in VS is version 10.5and I'm using 11.5 (which doesn't support 64 bit !)
my head will blow up
Please give me any suggestion or direction for bad situation.
Thanks in advance.
Note:I dont know if I'm posting to the correct forum.
ThaScorpion
|
|
|
|
|
How to generate SOAP request from WSDL / Is there any way we can generate SOAP request at client end using .Net code (not by any tool).
I would like to invoke a web method by passing the soap request. We are trying to create soap request for any web method dynamically.
Ved
|
|
|
|
|
Hi,
i have an authorised SSL certificate in the web server and when client invokes the html which is present inthe server...IE should display certificate like..
Security Alert box with yes ,no and view certificate buttons.....
and what are tags i need to add in html so that client client views it when trying to access the html.....
|
|
|
|