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:75

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

 

 

jncraig
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3747


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:75

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

Background colour by petecarrick
Hi,Sorry if this is a real dumb question, I've been experimenting with the Vortex skin and I have ch...
RE: Horizontal menu vertical borders by petecarrick
That worked perfectly, thanks very much Lee.Pete
Change Login Page by edeakin
Hey guys it’s me again. Great work on session 46 keep up the great work! I want to be able to add m...
RE: Module Wrapper & Tab Aggregator?? by gbrown
Found the Ajax Module Wrapper from Gumbosoft. Bought it and tried it - it works inside of Tab Aggreg...
Module Wrapper & Tab Aggregator?? by gbrown
Has anybody tried to place a Module Wrapper module from ZLDNN inside a Tab Aggregator module from DN...
RE: SWF Tutorial Conversion by raymueller
Thanks and I will continue to research. Each of the applications pick up the introduction (~ 20-25 s...
RE: Please do review by leesykes
There are a couple of things that you could look at:Initial page load time of the sites was slow, t...
RE: Module Development - Settings Page by leesykes
thanks for letting us know the solution and if there's anything else we can help out with please let...
RE: SWF Tutorial Conversion by leesykes
not sure, its not something I have tried, the swf should convert, perhaps its worth googling around ...
RE: not been able to download videos by leesykes
Normal 0 unctuationKerning/> false false false oNotPromoteQF/> ...
RE: Styling the main menu by leesykes
When you add code to your skin.css file, make sure you press CTRL+F5 to reload the page and reload t...
RE: Horizontal menu vertical borders by leesykes
To find the id of the menu item, use the web developers toolbar for Firefox, go to information menu...
RE: Module Development - Settings Page by HMDevelopment
Hello Lee. No thanks -- I have still earned value from this site. I did quite a few 'video' tutor...
RE: Can I modify the Default Events module only for a Portal? by jncraig
If you create a skin for your site, it will apply only to your site.  Also, portal.css applies only ...
RE: How to prevent auser from multiple login. by jncraig
I'm not aware of a way to do that.
RE: Display main menu and sub menus in different locations by jncraig
I would recommend that you study our tutorials regarding skin development as a good start.The exact ...
SWF Tutorial Conversion by raymueller
I have been trying to convert some of the older SWF tutorials to a format that I can load on my Zune...
SWF Tutorial Conversion by raymueller
I have been trying to convert some of the older SWF tutorials to a format that I can load on my Zune...
Can I modify the Default Events module only for a Portal? by pmanyara
Dear Colleagues,I manage a site, which is a portal in a larger dotnetnuke environment with several p...
RE: Styling the main menu by knuterik
Lee, Your test code for the partners menu item works fine now. I don't know why it didn't work th...
DNN Creative Subscribe
RSS Feeds