Click here to Skip to main content
15,880,608 members
Everything / Protected

Protected

protected

Great Reads

by ASP.NET Community
Different forums are filled with the questions regarding how to manually implement cookies for login or in other words how to implement "Remeber me"
by ASP.NET Community
This is how to to list the files in a specific directory and allow the user to download the files.ASPX:
by ASP.NET Community
How to check if a specific control caused postback?Let's say you have a button ( btnAdd ) among other controls...To check if it has just caused
by ASP.NET Community
This article will show you how to create a color selector control that will looks like the image in the right side.   The first thing to mention

Latest Articles

by Akhil Mittal
Access modifiers (or access specifiers) are keywords in object-oriented languages that set the accessibility of classes, methods, and other members. Access modifiers are a specific part of programming language syntax used to facilitate the encapsulation of components.
by ASP.NET Community
Many of you might have come across the situation where you need to making server side discussion based on client side JavaScript confirm message
by ASP.NET Community
This article will show you how to create a color selector control that will looks like the image in the right side.   The first thing to mention
by ASP.NET Community
protected void ReportViewer1_PreRender(object sender, EventArgs e) {DisableFormat(ReportViewer1, "Pdf"); }protected void

All Articles

Sort by Score

Protected 

12 Jul 2013 by David O'Neil
VS 2012 gives an 'error C2248: ... cannot access protected member declared in class...' in the following minimal code stripped from a complete project. VS 2008 has no problems with it, and executes as expected.The line right before the issue calls the protected member in question, and no...
13 Jul 2013 by pasztorpisti
Unfortunately I have no VS2012 at hand but I have a g++ that has always been my friend when I wanted to check whether a piece of code follows the standard or not. Using my VS2010 and g++4.5 (cygwin) I have put together the following example program that may serve you with some useful...
24 Mar 2011 by Eduard Keilholz
Hey!There are a couple of solutions available to accomplish that. If you want a real secure solution, you'll need to have USB-Dongles with a public & private key pair. You may for example use this[^] hasp.If you don't want a real secure solution you can develop something yourself (for...
24 Mar 2011 by #realJSOP
Personally, I would never use a piece of software that required a dongle be plugged in so that it would run. You'd be better off having it verify itself over the internet, which could be easily configured to allow the software to run a certain number of times without an internet connection...
13 Jul 2013 by Matthew Faithfull
The rules did change but I don't think that's the problem. I think it's just that Microsoft started applying the existing ones.It's a tricky case but I think the problem can be summarized as trying to use a protected member function pointer as a template parameter to a function that does not...
6 Mar 2014 by ZurdoDev
This is because webforms do not work like windows forms. When you set a variable it is only valid for that connection. When your page posts back all of your C# runs and then a bunch of html is sent to the client and you are disconnected. So, any variables you had set in your class are lost. ...
9 Jul 2017 by Dave Kreskowiak
A little Google goes a long way: encrypt connection string in app.config - Google Search[^] There's tons of information out there on it.
7 Feb 2012 by Jonathan [Darka]
A virus can infect any file which can be executed, the file extension is not important.Each executable file can be identified no matter what extension you give it, if your proposing a whole new executable format then that would be a whole lot of work....Additionally, changing the...
7 Feb 2012 by Manfred Rudolf Bihy
I'm afraid that is not going to happen. A file can be opened and analzed by a virus to discover it's true purpose. Most files contain some headers that betray to the virus what they really are. For example by renaming a dll or an exe file to a file with a txt extension it could still be found...
10 Jul 2013 by KarstenK
this should be an example for your task:http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx#dse_stlip[^]Your find the registry for this settings and change it before launching the IE...
17 May 2014 by gggustafson
See "nVLC" (http://www.codeproject.com/Articles/109639/nVLC)
7 Feb 2012 by MR. AngelMendez
hello, I have an idea for a project and I would like to know a few things before I start. My operating system is windows 7 and my project's language is going to be in C#.One, are viruses able to manipulate, damage or interact with files if they have a custom extension? for example lets say...
3 Apr 2012 by bbirajdar
The only way is to not to make it online....Because you cannot stop the user from hitting the 'Print Screen' key on the keyboard or from hitting the 'Print' menu in the browser , neither you can stop him from saving the PDF to his computer using the 'Save As' menu option and copying...
9 Jun 2012 by patrik polakovic
Hi, I am developing driver for automated Win 7 environment. I need to execute some commands within given interval. I would like to achive this using queuing APC routine from my driver to user mode process. But APC fails due to executing code from RW only memory allocated using IoAllocateMdl,...
9 Jul 2013 by Mohammed Essa
Hi Guys, I have an application written in C++ and in the code there is an instance of IE that is created, however I need that instance to be ran in protected mode or else the network doesn't see it as trusted. Is there a way in C++ or a script that I can run to create an instance of IE...
2 Oct 2013 by sid2x
I was just programming some stuff in ASM, until I got to know that VGA is limited to 640x480 resolution, (I hate VGA), then I was thinking about VESA/VBE, since in OS Development people use VESA more that VBE (To what I have seen), I wanted to switch to VESA, but I couldn't find anything...
11 Oct 2013 by ASP.NET Community
Different forums are filled with the questions regarding how to manually implement cookies for login or in other words how to implement "Remeber me"
11 Oct 2013 by ASP.NET Community
This is how to to list the files in a specific directory and allow the user to download the files.ASPX:
11 Oct 2013 by ASP.NET Community
How to check if a specific control caused postback?Let's say you have a button ( btnAdd ) among other controls...To check if it has just caused
12 Oct 2013 by ASP.NET Community
This article will show you how to create a color selector control that will looks like the image in the right side.   The first thing to mention
11 Oct 2013 by ASP.NET Community
What is Access Modifier?Objects in .NET are created from a class, struct, etc.  Thesedefinitions, as well as the properties, methods, or events
11 Oct 2013 by ASP.NET Community
Assuming you already have your domain model and repositories implemented and unity wired (if you are missing this part, let me know and i'll add the
11 Oct 2013 by ASP.NET Community
Sometimes you need custom paging and sorting of a Gridview. So I wanted to share the ASP.NET code for all.Write this code on Client Side (Aspx
11 Oct 2013 by ASP.NET Community
using System.Net.Mail;public partial class SUPER_mail : System.Web.UI.Page{    protected void Page_Load(object sender, EventArgs e)    {    }   
11 Oct 2013 by ASP.NET Community
A typical request from a customer or user of your website is to enable the upload and download of documents. The could be spreadsheets, presentations
11 Oct 2013 by ASP.NET Community
HiThis a common task for Auction bid, events, promotions, project deadline etc.For this sample we need to create a sql table and one stored
11 Oct 2013 by ASP.NET Community
Encrypt & Decrypt ConnectionString SectionSometimes we need to secure ConnectionString to prevent anyone can knows it. whatever your purpose from
11 Oct 2013 by ASP.NET Community
The flyweight pattern is used whenever you have large amount of small objects that share common information. The use of the pattern reduces the
11 Oct 2013 by ASP.NET Community
This is new Concept Introduce in Asp.net 2.0, This is used to Passing the values from one page to Certain page using PostbakUrl property for Button,
11 Oct 2013 by ASP.NET Community
Protected Sub PrintAllPages(ByVal sender As Object, ByVal e As EventArgs)GridView1.AllowPaging = FalseGridView1.DataBind()Dim sw As New
11 Oct 2013 by ASP.NET Community
 C#protected void Page_Load(object sender, EventArgs e){    // Change the title    Page.Header.Title = "My Content Page Title";        // Change
11 Oct 2013 by ASP.NET Community
Global.asax, is the global file in the web application, which offers application level events to be registered. There are many of the events in this
11 Oct 2013 by ASP.NET Community
Howto: Add JavaScript inside Head element from code behind  Here is the sample how you can do that.1)  Add some JavaScript inside page header
11 Oct 2013 by ASP.NET Community
protected void ReportViewer1_PreRender(object sender, EventArgs e) {DisableFormat(ReportViewer1, "Pdf"); }protected void
18 Feb 2014 by kk2014
Hello,is it possible to create password protected pdf file using visual basic6.0?Thanks
19 Feb 2014 by Richard MacCutchan
Yes it is possible, but not simple. You would need to get a copy of the PDF specification from ADOBE (which is free), and learn how to write all the PDF control data. You would be better upgrading to VB.NET and using a library such as iTextSharp[^].
21 Feb 2014 by CHill60
The reason I didn't respond to your comment is because you didn't use the Reply button against my comment so I didn't get any notification.However, I note that you reposted this question and someone has answered it is it possible to create password protected pdf file using visual...
6 Mar 2014 by Grant Weatherston
I have a code behind file that on page load sets up a form. this form has a dropdownlist to select which form you'd like to view.When selecting a different view a onSelectedIndexChanged method is called, i can see this is being called. When the index changes it sets a global boolean...
1 Jan 2019 by Am Gayathri
What is the difference between private and protected functions in c#?Private : This can access only within the class. This function can access only within that class. We can not call this function using objects of the class.Correct ?Protected: I dont have any idea.Public: This can...
2 Feb 2015 by Amresh Bahadur Singh
see here your Answerhttp://www.c-sharpcorner.com/uploadfile/puranindia/what-are-access-modifiers-in-C-Sharp/[^]
2 Feb 2015 by Pranay Rana
Protected - Its means that type is assisible with in your class and class which is deriving it.example public class A{ protected int prop1 {get;set;}//accessible in class }public class B :A{ //this class can access prop1}public class c{ //as this class is not...
2 Feb 2015 by Mathew Soji
Please read below.Diving into OOP (Day 5): All About C# Access Modifiers (Public/Private/Protected/Internal/Sealed/Constants/Static and Readonly...
16 May 2015 by Dave Kreskowiak
If the files are available to download to logged in clients, you simply authenticate the request to download the file before you send the file. This only works if you are using some form of authentication.If the clients are not allowed to download the files at all, remove them from the site....
10 Apr 2016 by Krishna Chaitanya Bezawada
Hi, I have written a program which writes respective data from xml files to excel sheet, after writing the data, the program will protect the entire excel sheet with a password. So now i should protect entire excel sheet, but except one column. I need help of how to do that.As per the...
1 Apr 2016 by Patrice T
Did you try:oSheet.Cells[CurrentRow, CurrentColumn].Locked = False;
4 Apr 2016 by Biinny
Dear Experts,I am working on license protection technology, in which i need to take/pass unique identifier of PC/Laptop/MAC. I choose Motherboard serial number. Is it wise option to take as unique id?If not then please suggest. If yes then i need to know that how much long it can...
25 Apr 2016 by Member 12485168
Hi!I'm a software developer, and i've been stuck on this problem for days, i've done so much googling but i found nothing about this....I'll try to describe this problem as easy as i can.I have 2 files, "f1" and "f2" into my directory "c:\foo\dir1\"I want to avoid any possible...
5 Dec 2016 by Member 8620759
The requirement of my project is to install and run my service as protected and uninstall this protected service.I have tried implementing the protected anti malware service referring the following msdn...
11 Jul 2017 by Rajan Pandit
Hai, I am developing a software for school using VB.Net.... my task is that I want to create a protected Database Connection Sting. means nobody can check what is my database string. Is there any tool or any methods which can help to accomplish this task.. I saw many software ever older version...
9 Jul 2017 by RickZeeland
If you want to protect your connection string it would be better not to store it in the .config file. If you keep the connection string in code and use an obfuscator like Dotfuscator, it will be protected better. Even better is to use encryption, see: Encrypting and Decrypting Strings in Visual...
11 Jul 2017 by Atlapure Ambrish
You can use an algorithm to encrypt the connectionstring and use an encryption key to encrypt it. You can store it in your config file after it is encrypted and when needed for any database operation, you can decrypt it using same encryption key and use it. The key used to encrypt can be defined...
11 Jul 2017 by mgoad99
I have done this a few times. Its a pain to figure out the first time. Basically, there is a .net command line tool that you can use to encrypt sections of a web.config file. Now, you have to encrypt the file on the pc/server it will reside on. This is because the encryption is done using...
20 Oct 2018 by _PitrakSarkar_
I have got myself into a strange issue now. Ill write a really simplified version of the same. class Base { public: virtual int func1()=0; virtual int func2()=0; protected: int n; }; class der1: public Base { //implements the virtual functions of the base and uses the protected data members of...
20 Oct 2018 by OriginalGriff
Derive a third class from Base which handles the "common" implementation: class Intermediate: public Base { ... } Then derive your classes from that: class der1: public Intermediate { ... }; class der2: public Intermediate { ... }
15 Jul 2015 by Akhil Mittal
Access modifiers (or access specifiers) are keywords in object-oriented languages that set the accessibility of classes, methods, and other members. Access modifiers are a specific part of programming language syntax used to facilitate the encapsulation of components.
29 Jun 2013 by Ghosuwa Wogomon
An example of a clean way to implement classes in C
25 Mar 2011 by Pascal Ganaye
Deleting protected folders in Windows 7
14 Jan 2014 by ASP.NET Community
Many of you might have come across the situation where you need to making server side discussion based on client side JavaScript confirm message
4 Apr 2016 by Sascha Lefèvre
Please take a look at this article, it will cover all your questions: Searching for a reliable hardware ID[^]Short version: The only reliable source for a hardware-ID is the serial number of a harddisk.
4 Apr 2016 by Dave Kreskowiak
There is no standard for serial number lengths for any device. There is also no guarantee that the device you're talking about even has a serial number accessible to your code.
24 Mar 2011 by Xonfused
Hi, for my future programs i would like to learn how can i protect my applications. My idea is that when i install my program on the client computer, the program should only work when a specific USB is inserted on the same computer (that contains some.. hmm files? (later more)). Lets say i have...
4 Apr 2016 by OriginalGriff
See here: Win32_BaseBoard class (Windows)[^] buit all it says is "string" so it's really up to the manufacturer (as you'd expect) rather than a defined length.You probably need to see this as well: windows - Motherboard ID - WMI C++ - Reliable? - Stack Overflow[^]
10 Jul 2017 by Rajesh Pandya
Encrypt your connection string and then use it in your app.confing. For encryption check this link:[^]
20 Nov 2011 by Sayed Irfanul Hasan
How to protect a page from text copying using JavaScript in ASP.NET.
19 Jul 2013 by Member 4562000
Want to create a windows service which is fully protected from all users even administrators. Service like ekrn.exe from eset security which is fully protected from all users. User cant even modify recovery options from service properties. Please help.
3 Apr 2012 by ASakr
Hi,Am working in knowledge management solution using asp.net 4 c#I want to preview pdf files just for reading, no print no copy no print screen no download and no browser cache downloadis there any way to do this ?
3 Apr 2012 by ASakr
thanks Birajdar for your helpthe pdf file content is very important so I can't depend on slide show technique .
15 Apr 2012 by Atul Dhimaan
Is there any solution to make PDF file password protected . So if user download my PDF file, it ask for password first....Is that possible.
17 Feb 2014 by kk2014
Hello,I need to create password protected PDF file in VB6.0.How can i do this? any reference link, suggestion or source code?Thanks.
14 May 2014 by Water1988
I found a function "libvlc_media_player_set_hwnd", I got a handle using the member of Control, which is Control.Handle. and I gave it to that function, when it runs, it shows "Attempted to read or write protected memory". what should I do? what mistake did I take?
16 May 2015 by Kapalı Kapalı
hello I am sory..my english is not goodI don't want the download of filesHow do I prevent files being downloaded?I want to protect my files ( image pdf ) How do I prevent the download?or download files are corrupted thank you