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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...What The Web Forms, CanWhat The Web Forms, Can't See Sharply
Previous
 
Next
New Post
3/9/2012 3:14 AM
 

I am building a simple module that ONLY inserts data into a custom profile table. I am having a few issues. (Screen Shot Here)

1. I am not comfortable with C# and there are two problems. a. The Code Behind in C# doesn't seem to see my Formview. (Screen Shot Here) and b. The Code Behind in C# doesn't seem to like the DNN code I am using to try and get User info to be inserted into the Formview textbox controls (Screen Shot Here) . (Screen Shot for the .ascx source code Here)

The first error says: 'the formview doesn't exist in the current context'. The next error says 'cannot convert method group to a non-delegate type. I have included links to screen shots of each issue. Can anyone tell me how to fix these issues?

 

 
New Post
3/9/2012 5:24 AM
 

Hello,You have error in source code.Line should be:

 DotNetNuke.Entities.Users.UserInfo ui = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo();

Or even

 only static UserInfo. I mean just UserInfo.UserID, UserInfo.FirstName and so on

 

Thanks

Tadas

 
New Post
3/9/2012 10:13 AM
 

Thanks for the reply Tadas. You were right about the function. The curved brackets made C# happier. I still don't know how to get it to find the FORMVIEW control from the .ascx page.

 TextBox fivUid = FamilyInfoFormView.FindControl("UserIDTextBox"); 
TextBox fivFn = FamilyInfoFormView.FindControl("FirstNameTextBox"); 
TextBox fivLn = FamilyInfoFormView.FindControl("LastNameTextBox");
(Screen Shot of Code HERE)

I discovered that there is a problem with the UserID (int) being converted to string for insertion to the textbox. (Int to string screen shot).

Is there any guidance for those?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...What The Web Forms, CanWhat The Web Forms, Can't See Sharply


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