9 Replies - 9238 Views - Last Post: 22 October 2012 - 01:53 PM

#1 mido911  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 89
  • Joined: 29-October 10

request.form

Posted 22 October 2012 - 12:36 PM

How to assign request.form to a certain value? Request.Form("user")=value
Is This A Good Question/Topic? 0
  • +

Replies To: request.form

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9196
  • View blog
  • Posts: 34,533
  • Joined: 12-June 08

Re: request.form

Posted 22 October 2012 - 12:39 PM

Is this even a question?

Also I thought it was: "request.params".
Was This Post Helpful? 0
  • +
  • -

#3 mido911  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 89
  • Joined: 29-October 10

Re: request.form

Posted 22 October 2012 - 12:46 PM

didn't get you!! I am trying to assign a value but I am always getting that it is readonly. Any way I can assign a value to Request.FOrm??
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9196
  • View blog
  • Posts: 34,533
  • Joined: 12-June 08

Re: request.form

Posted 22 October 2012 - 12:54 PM

Well, yeah - because it only gets data.

Quote

Gets a collection of form variables.

http://msdn.microsof...quest.form.aspx

You should read up on passing values between forms!
http://msdn.microsof...=vs.100%29.aspx

Quote

Any way I can assign a value to Request.FOrm??

You cannot assign values that way.
Was This Post Helpful? 0
  • +
  • -

#5 mido911  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 89
  • Joined: 29-October 10

Re: request.form

Posted 22 October 2012 - 01:02 PM

Not the answer I am looking for! Look at what I am trying to do I have a Label created dynamically and I assign to its text property the following value

Label mylbl=new Label()
mylbl.text="<span id=user name=user runat=server></span><br/> <span id=idno name=idno runat=server></span>"

I want to use Request.Form("user") or any other method that might be suggested and assign value according to a value read from another page. How can I do that?

This post has been edited by mido911: 22 October 2012 - 01:03 PM

Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9196
  • View blog
  • Posts: 34,533
  • Joined: 12-June 08

Re: request.form

Posted 22 October 2012 - 01:09 PM

Listen to me very carefully - You. Can not. Do. That.

The warning message is not lying to you - request.form("") is a read only property.

The only way to alter those would be to pass different variables in the url between forms.
Was This Post Helpful? 1
  • +
  • -

#7 mido911  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 89
  • Joined: 29-October 10

Re: request.form

Posted 22 October 2012 - 01:19 PM

can it be done from javascript??
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9196
  • View blog
  • Posts: 34,533
  • Joined: 12-June 08

Re: request.form

Posted 22 October 2012 - 01:28 PM

It's a .NET Namespace object. What do you think?

  • I will give you a hint - the answer is not "a toaster".
  • I'll give you a second hint - the answer is found in "request.form("") is a read only property.". In what world would it make sense to have a property be read only in once instance but not in another?

Was This Post Helpful? 0
  • +
  • -

#9 mido911  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 89
  • Joined: 29-October 10

Re: request.form

Posted 22 October 2012 - 01:50 PM

I know all the things you have stated but I was trying to override the readonly property! AND PLEASE STOP BEING RUDE IN YOUR ANSWERS!!!

This post has been edited by mido911: 22 October 2012 - 01:51 PM

Was This Post Helpful? -1
  • +
  • -

#10 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9196
  • View blog
  • Posts: 34,533
  • Joined: 12-June 08

Re: request.form

Posted 22 October 2012 - 01:53 PM

Brah, you cannot override 'readonly'. The only way to alter those values would be when passing values in the url. Period.

This isn't up for a discussion or a work around - the nature of the keyword "readonly" is fundamental to the language and library.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1