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

Forum

variable of username
Last Post 2008-03-13 05:28 AM by meenu. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
meenuUser is Offline
Nuke Master
Nuke Master
Posts:132

--
2008-03-12 07: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.a...tatus=no')", True)

 can anybody help me?

which is the variable available in dnn for current user?

regards

 

 

Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9001
Avatar

--
2008-03-12 02:47 PM  
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 DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
meenuUser is Offline
Nuke Master
Nuke Master
Posts:132

--
2008-03-13 05:28 AM  
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.a...?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.

Active Forums 4.3

Latest Forum Posts

Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
Dnn local setup problem by imran shaikh
Hi All i have just installed the new site files on my local computer set the connection strin
RE: Firefox has detected that the server is redirecting the request for this address in a way that will never complete. by imran shaikh
Hi i have the same issue Firefox has detected that the server is redirecting the request for thi
DNN nav issue by imran shaikh
Hi All This is imran i am using DNN 6.0 in which issue is that while i am refreshing the site nav
RE: Problem After Attaching/Detaching Database.mdf by Prakasam Srinivasan
thanks joe! But I have connect with database.mdf file in App_Data. I detach the database from
RE: Ventrian News Article by Collin Stefani
Posted By Joseph Craig on 2012-01-18 10:51 AM I'm not sure that you can with the built-in UI.
RE: Friendly URLs Broken by Vistalogix Corporation
Well, we figured out that the problem is related to .Net framework 3.5. Friendly URLs works fine und
RE: Problem After Attaching/Detaching Database.mdf by Joseph Craig
That behavior of running the installation wizard indicates a problem connecting to the database.
RE: Friendly URLs Broken by Vistalogix Corporation
Nope, just a straight-up DNN install and configured in Host -> Friendly URLs as described in my orig
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds