You need to Register for free and Login to post a message in the forum.

Forum

Subject: variable of username
Prev Next
You are not authorized to post a reply.

Author Messages
meenu
Nuke Pro
Nuke Pro
Posts:76

12 Mar 2008 1:29 AM  

dear friends

i am using DNN 04 08 and visual studio 2005

i created a new module in my DNN0408.i installed this module it is working properly.

in my module i have a button.

in that button click  i done this follwing code.my web is coming properly.from here i want to pass my dnn current username also with this link. how?

  Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "popup", "window.open('http://192.168.151.15:88/webform1.aspx','','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no')", True)

 can anybody help me?

which is the variable available in dnn for current user?

regards

 

 

Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5348


12 Mar 2008 8:47 AM  
The current user's information is available through the DotNetNuke.Entities.Users.UserController class. You will want to get UserInfo.

Joe Craig
DNN Creative Support
Subscribe to the website
meenu
Nuke Pro
Nuke Pro
Posts:76

12 Mar 2008 11:28 PM  
thank u very much for ur support.
i done it.

Dim objUser As UserInfo = UserController.GetCurrentUserInfo
Dim user4mapping As String
user4mapping = objUser.Username
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "popup", "window.open('http://192.168.151.15:88/webform1.aspx?username=" & user4mapping & "','','scrollbars=no,menubar=no,height=650,width=screen.width,resizable=no,toolbar=no,location=no,status=no')", True)
You are not authorized to post a reply.
Forums > DotNetNuke® > Modules > variable of username



ActiveForums 3.7

Latest Forum Posts

RE: Auto create pages and content by jncraig
Are you using the DotNetNuke menu or another one?
RE: Missing Edit & Add Function on Modules to Entire Site by jncraig
Glad it's working!
RE: Firefox SWF file by jncraig
I recommend that you use the free DigFlash module from dignuke.com. I've found it to be a very reli...
Firefox SWF file by ce221
on my dnn site it have a text/html that has the following attached code this displays fine in IE but...
RE: Missing Edit & Add Function on Modules to Entire Site by jacksonsc56
arrrrggghhhh for goodness sake, I was in View mode!. After a year working on numerous B2B DNN sit...
RE: Missing Edit & Add Function on Modules to Entire Site by jacksonsc56
Strangely enough the Admin account is displaying the modules settings menu. To confirm its the menu ...
.MainMenu_MenuItemActive (Active Solpart menu item not working) by SixfootStudio
Hi Guys, Could someone please take a look at this SolPart menu for me and tell me why it is that ...
Missing Edit & Add Function on Modules to Entire Site by jacksonsc56
Just logged into my DNN site as host and noticed I can no longer edit modules or access the settings...
RE: How to upgrade core module? by LeeWebDev
That did it. Thanks, Lee! And keep up the great work with this site. It's a tremendous resource.
DNN in cluster evniroment by kris@aausports.org
Does anyone have any experience running DNN in a cluster environment? Looking at setting up 3 R600 ...
RE: Auto create pages and content by dhassall
CAUTION - I am also adding pages to the site manually (Page Functions Add) but I am finding after ad...
PayFlow Link by murphydolores
Hello Can any one help me to find out a shopping cart systems that work with PayFlow Link?
RE: Send email with Dynamic Forms Results by jesp17
Hi Lee,I've asked DataSprings if there is a way to solve my problem (wish). Here is a reaction:I don...
Background Music by kparker
Do you know of any module that I can use to play background music on a single page?  Or do you have ...
RE: Run exe/dll from DNN? by jncraig
I did this several years ago, so I think that what I found must have been in the "Professional DotNe...
RE: Run exe/dll from DNN? by ollivogt
excellent!!! scheduled task looks good - do you have any hint where to start the search? Many tha...
RE: Employee Absent Indicator by dkemp@karrtuttle.com
I suppose I could do an Events module with everyone's vacation schedule in there. Then the receptio...
RE: Run exe/dll from DNN? by jncraig
Do you want to do this on a schedule, or in response to an event such as a mouse click? If the fo...
Run exe/dll from DNN? by ollivogt
Hello, is it possible to run an external application from within DNN - for instance doSomething.d...
Employee Absent Indicator by dkemp@karrtuttle.com
Hello everyone. Our new DNN intranet is going well. It's a good indication of success, I think, wh...
DNN Creative Subscribe
RSS Feeds