Questions tagged [readonly]

Read-only is a generic concept that means "not writeable" - Please DO NOT USE THIS TAG. This tag is ambiguous and needs to be broken up.

This tag is ambiguous.

Please consider using (or creating) alternate tags for the specific use-cases of this term.

  • Read-only is a generic concept that means "not writeable"

  • readonly is a language keyword in C# that makes a member immutable.

  • readonly is an HTML attribute that makes input elements non-editable.

1624 questions
0
votes
1 answer

Open XML file as read-only with LINQ

I need to open and XML file. The requirement is to be able to open it as read-only, and as read-write as well. I tried the code below, but so far I can still write to the file. var myFileStream = new FileStream(@"XMLFile.xml",FileMode.Open,…
klce
  • 220
  • 3
  • 14
0
votes
1 answer

Assignment to readonly property error in a uiwebview

WHEN I WRITE: self.recipeSiteView.request = recipe.page ; XCODE SAY : "assignment to readonly property " I modified a template code : self.recipePhoto.image = [UIImage imageNamed:recipe.imageFile]; how can I use this expression for a…
0
votes
1 answer

How mirror two SQL Servers Express with different versions using the Log Shipping method?

I have a desktop application accessing a SQL Server database. I have a web application, running on a remote computer (Amazon EC2). I tried mirroring between two SQL Servers using Log Shipping method, but due the different SQL Server versions, the…
0
votes
1 answer

Restler3- POST Upload (zip) Files

I really enjoy Restler3, but now there is a problem. I want to POST a ZIP file to the server. Just by a simple HTML-Form. To enable the upload if have to add $restler->setSupportedFormats('UploadFormat'); But if do that all the JSON-GET-Requests…
user1289915
0
votes
0 answers

Opening a .csv file with vbscript that is constantly being updated

I have a .csv file with one line that is constantly being overwritten with the most updated data from some data bus. It looks something like this: Doors Closed, Open, Closed, Closed, And it's being updated (lets say every second) so that as soon as…
thateurokid23
  • 47
  • 1
  • 2
  • 10
0
votes
1 answer

Can variables of type IEventAggregator (or) Dictionary made 'readonly'?

I am currently doing a C# code review using ReSharper. This Code has been written targeting .NET 4.0 framework. My question here is can we use the modifier 'readonly' on a IEventAggregator (or) Dictionary variable type(s) while declaring it? I have…
rock
  • 585
  • 3
  • 10
  • 26
0
votes
3 answers

Enable readonly textbox after saving changes

I have some form which is editable in the same page. First attribute for each textbox is readonly, and when I press the edit button, it will become editable, using this…
randytan
  • 1,029
  • 5
  • 23
  • 52
0
votes
0 answers

Why "rails new" command creates my rails app folders which always read only folders on ubuntu (12.04)

I create a new ruby on rails project via typing "rails new project_name" command on terminal. The project folders permissions values always read-only (and a key icon on folders and files) So I have to type "sudo chmod 777 folder_name -R" command on…
user2482077
0
votes
1 answer

Evernote read-only notes using contentClass

I am trying to make notes in a notebook read only by using the contentClass attribute. My code is below: I can set other attributes, but as soon as I try and set the contentClass, it throws an EDAM exception on create note. (Company and app name…
tknickman
  • 4,285
  • 3
  • 34
  • 47
0
votes
1 answer

Lock ConfigParser in read-only mode

Is there an attribute to lock a ConfigParser object in read-inly mode ? I'm using a project-wide global ConfigParser object and I want to prevent the code from modifying the object. I could easily override ConfigParser.set(section,option,value) to…
lucasg
  • 10,734
  • 4
  • 35
  • 57
0
votes
1 answer

Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? How about ReadOnly itself without the…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
1 answer

java- Object swaping between ReadOnly and Writable

I'm struggling with the following task: Create a class Person which has at least the attribute name. When created the object is in read-only mode (only getters are allowed). By using the method unlock, which requires a password, the object goes in…
Georgi Georgiev
  • 3,854
  • 5
  • 29
  • 39
0
votes
3 answers

How to keep field readonly?

Let's suppose, that we have the following class: class C { private readonly DataType data; private readonly AdditionalType additional; C(DataType newData) { data = newData; // LONG code evaluating additional } …
Spook
  • 25,318
  • 18
  • 90
  • 167
0
votes
2 answers

PHP - Non editable input

I have a form: Well, the user can use a program to edit the input value and then, break the system. How can I prevent this? I can use anything, except scripts. Ow an the value is dynamic, so I can't do…
John Balls
  • 11
  • 1
  • 9
0
votes
1 answer

Create Public Document without login for readonly permissions

I want to create a doc file which is accessible to every one without login to any website(google etc). Only read only permission is there .
1 2 3
99
100