Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Value of a DropDownList is always NULL inside a moduleValue of a DropDownList is always NULL inside a module
Previous
 
Next
New Post
2/24/2009 10:17 AM
 

Hello all,

I created a module from a working asp.net page. 

Inside the module when the insert button is pressed, the value of one of the fields (a DDL with its own SQLDataSource) always is null.

The DropDownList works fine, but when it tried to write to the DB, it passes a null value.  All the other text fields pass correctly.

Has anyone seen this before?  Any ideas?  (Remember, the code works fine when it is NOT inside the module).  Below is the insertParameters

 

 

<InsertParameters>

<asp:QueryStringParameter Name="Retailer_Number" QueryStringField="R" />

<asp:formParameter Name="Client_Item_Number" formField="FV1$CID" Type="String" />

<asp:formParameter Name="Retailer_Product_ID" formField="FV1$Retailer_Product_IDTextBox" Type="String" />

<asp:formParameter Name="Retailer_Cost" formField="FV1$Retailer_CostTextBox" Type="Decimal" />

<asp:formParameter Name="Distributor_Cost" formField="FV1$Distributor_CostTextBox" Type="Decimal" />

<asp:formParameter Name="Acct_MDF" formField="FV1$Acct_MDFTextBox" Type="Decimal" />

<asp:formParameter Name="Acct_VIR" formField="FV1$Acct_VIRTextBox" Type="Decimal" />

<asp:formParameter Name="Acct_VAS" formField="FV1$Acct_VASTextBox" Type="Decimal" />

<asp:formParameter Name="Distributor_Item_Number" formField="FV1$Distributor_Item_NumberTextBox" Type="String" />

</InsertParameters>

 
New Post
2/24/2009 2:10 PM
 

OK, I have been playing with this for 2 days, and I found a work around.

For anyone else who has this issue, use an <asp:ControlParameter> and not a formParameter.

Here is the new code I used to replace this:

<asp:formParameter Name="Client_Item_Number" formField="FV1$CID" Type="String" />

NEW:

<

asp:ControlParameter Name="Client_Item_Number" ControlID="FV1$CID" />

 

 

DOES ANYONE KNOW IF THIS IS A BUG??? Do you think I should report this as a bug???

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Value of a DropDownList is always NULL inside a moduleValue of a DropDownList is always NULL inside a module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out