asp:ControlParameter vs. asp:FormParameter in Master Page

By M&S Consulting (Ashok) on Jan 4th, 2006
Filed Under Technical Tips // Tags:

I hit what I considered to be an annoying “issue” in ASP.NET 2.0 the other day that I thought I would share so others can avoid the problem.

I created a form with some text controls and an sqldatasource that called a stored proc while accepting parameters via asp:FormParameter. This worked great and tested out fine. Once I added the same code into a Master Page, everything began getting passed as “NULL” (it was no longer finding the FormParameters on the page. After troubleshooting for more time than I preferred, I found out that I can achieve success by using the asp:ControlParameter.

Everything is now working fine, and if you have come up to the same thing, I hope this helps you too.

Bookmark and Share

Related Information:

  1. Oracle Portal HTML Templates - Page Skins, Content Layouts and More
    I have seen a large number of Oracle Portal implementations, and even a fair number using Portal version 10.1.4. It...
  2. Oracle ADF Faces 10g: Submitting a part of the page
    Did you know ADF Faces allows you to submit only part of a page? This can be useful when you...
  3. Oracle Portal HTML Templates (Page Skins and Content Layouts) - Cache
    If you use HTML Templates (Page Skins and/or Content Layouts) on your Oracle Portal implementations, you might notice that they...
  4. Oracle Forms - Remove List Element from List Item
    This one is a little wily, so John suggested we post it. Removing a label/value from a dropdown should be...
  5. Oracle Portal Broken with iPhone
    SSL with Oracle Application Server WebCache and iPhone The latest iPhone update appears to have broken some SSL-enabled OracleAS sites....
  6. IIS Error - W3SVC Not Starting - Event ID 115
    Did your personal IIS stop working recently — the one you run on XP perhaps? Did you get the following...
  7. SOA with M&S: Demystify, Discipline, and Deliver

    SOA Labels

    Among their many characteristics, all too often SOA projects have been labeled in their worst moments as:
      ...
  8. Microsoft CRM 3.0 - Hide Links in Left Navigation - Example Code
    Here is an example of code to get stripped down contact and account forms. This code is placed in the...

One Response to “asp:ControlParameter vs. asp:FormParameter in Master Page”

  1. Shane
    Nov 17, 2009
    Reply

    I was having the exact same error and this fixed it! Thank you so much!

    Also note that with ControlParameter, you cannot use FormField. I’m using ControlID instead.



Leave a Reply


Archives

Recent Comments

  • ADRIAN said: OHH MY BAD IT HAVE PUT IT IN THE LANGUAGE THAT I AM WORKING ON . “IT IS AN ERRO ON THE CONVERSION...
  • ADRIAN said: I MA GETTING THIS ERROR WHEN I AM CREATING THE FIRST ITEM “ORA-06502: PL/SQL: erro: erro de...
  • BCD said: I am learning a lot from your tutorials. Can you do a tutorial “allowing end users to change their...
  • Garden Canopies said: I really like your style, the particular fact that your site is a tad bit different tends to...
  • Dane said: Another question: You will have to use the runtime environment ONLY to accomplish this?

Calendar

September 2010
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
27282930  

Featured Testimonial

"M&S has taken 'partnership' to a new level. They are not only a deeply skilled service provider, the M&S team is actually a mission critical component to our operations, taking on new initiatives as well as maintaining custom, open source, and COTS solutions."

CEO, MedPivot

Free SQL Service