<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom Modules</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Developing custom modules for DotNetNuke.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1040886.aspx</link><pubDate>Fri, 02 Sep 2005 22:04:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1040886</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1040886.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1040886</wfw:commentRss><description>&lt;FONT color=#0000ff&gt;It now works, thanks. Now a new issue when the window opens I have Gridview&amp;nbsp;on the form&amp;nbsp;which&amp;nbsp;contains a hyperlink&lt;/FONT&gt;:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;asp&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;:&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;HyperLinkField&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;DataNavigateUrlFields&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="coursenum"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;HeaderText&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="Description"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;NavigateUrl&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="~/Descript.aspx"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;DataNavigateUrlFormatString&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="descript.aspx?coursenum={0}"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Text&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="Description"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Target&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;="_blank"&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT size=3&gt;which opens a course description file in a new window. Is there any way to have the new window have no tool bar and menus like the window you created. Where would I put the javascript&amp;nbsp;&lt;/FONT&gt;?&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1040369.aspx</link><pubDate>Fri, 02 Sep 2005 14:01:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1040369</guid><dc:creator>DougV</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1040369.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1040369</wfw:commentRss><description>Posting to this forum broke it into two lines instead of one.&lt;BR&gt;You need it all on one line (or else break it apart more)&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;myjs.Append(" window.open('") &lt;BR&gt;myjs.Append(s.ToString())&lt;BR&gt;myjs.Append("',&lt;FONT color=#ff1493&gt;&lt;STRONG&gt;''&lt;/STRONG&gt;&lt;/FONT&gt;,'width=400,height=200,status,")&lt;BR&gt;myjs.Append("toolbar=no,menubar=no,location=no')&amp;lt;/script&amp;gt;")&lt;BR&gt;&lt;BR&gt;It will work if you get the syntax typed in correctly.&amp;nbsp; And make sure&lt;BR&gt;these &lt;STRONG&gt;&lt;FONT color=#ff1493&gt;''&lt;/FONT&gt;&lt;/STRONG&gt; are Apostrophes not a single double-quote.&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1039749.aspx</link><pubDate>Thu, 01 Sep 2005 21:46:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1039749</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1039749.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1039749</wfw:commentRss><description>&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;Thanks for the code but when I tried it, the screen just flashed and never opened a window. Any idea where the mistake is in the code ( I copied exactly what you had)?&lt;BR&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;s.Append("http://localhost/clublean/CourseSelection/DotNetNuke.aspx?name=")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;s.Append(objUser.LastName)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;s.Append("&amp;amp;studentnum=")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;s.Append(objUser.Profile.IM)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;'Now build javascript&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;'myjs.Append("&amp;lt;script type = 'text/javascript'&amp;gt;")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;'myjs.Append(" window.open('" &amp;amp; s.ToString() &amp;amp; "')&amp;lt;/script&amp;gt;")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;myjs.Append(" window.open('" &amp;amp; s.ToString() &amp;amp; "','','width=400,height=600,status,toolbar=no,menubar=no,location=no')&amp;lt;/script&amp;gt;")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;Response.Write(myjs.ToString())&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1039148.aspx</link><pubDate>Thu, 01 Sep 2005 13:48:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1039148</guid><dc:creator>DougV</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1039148.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1039148</wfw:commentRss><description>&lt;P&gt;Well that's the fun part now since you got everything working.&amp;nbsp; Just continue to add in javascript &lt;BR&gt;attributes to your "myjs" string:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;myjs.Append(" window.open('" &amp;amp; s.ToString() &amp;amp; "','','width=400,height=200,status,toolbar=no,menubar=no,location=no')&amp;lt;/script&amp;gt;")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1038577.aspx</link><pubDate>Wed, 31 Aug 2005 21:34:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1038577</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1038577.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1038577</wfw:commentRss><description>&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=#0000ff size=4&gt;Any&amp;nbsp; ideas on how to add the following features to the new window:&lt;BR&gt;&lt;BR&gt;"height = 200, width = 400, status = yes, toolbar = no, menubar = no, location = no" &lt;BR&gt;&lt;BR&gt;What would the basic syntax be?&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1038534.aspx</link><pubDate>Wed, 31 Aug 2005 20:49:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1038534</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1038534.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1038534</wfw:commentRss><description>&lt;FONT color=#000080&gt;&lt;STRONG&gt;&lt;img src="/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;Thank you. The your code is what I was looking for.&lt;/STRONG&gt;&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1038065.aspx</link><pubDate>Wed, 31 Aug 2005 14:43:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1038065</guid><dc:creator>DougV</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1038065.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1038065</wfw:commentRss><description>place it in your Button3_Click subroutine</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1038063.aspx</link><pubDate>Wed, 31 Aug 2005 14:42:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1038063</guid><dc:creator>DougV</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1038063.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1038063</wfw:commentRss><description>&lt;P&gt;To open in new window don't use response.redirect, build some JScript &amp;amp; use response.write (client must open a new window): &lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr&gt;&lt;FONT face=Tahoma color=#a52a2a size=2&gt;&lt;STRONG&gt;&lt;FONT face="Courier New"&gt;Dim s as new System.text.StringBuilder&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#ff1493&gt;Dim myjs As New System.text.StringBuilder&lt;BR&gt;&lt;/FONT&gt;Dim objUsers As New UserController&lt;BR&gt;Dim objUser As UserInfo = objUsers.GetUser(UserInfo.PortalID, UserInfo.UserID)&lt;BR&gt;'***************&lt;BR&gt;'Build your URL string here&lt;BR&gt;s.append("http://localhost/clublean/CourseSelection/DotNetNuke.aspx?name=")&lt;BR&gt;s.append(objUser.LastName)&lt;BR&gt;s.append("&amp;amp;studentnum=")&lt;BR&gt;s.append(objUser.Profile.IM)&lt;BR&gt;&lt;BR&gt;'Now build javascript&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color=#ff1493&gt;myjs.Append("&amp;lt;script type = 'text/javascript'&amp;gt;")&lt;BR&gt;myjs.Append(" window.open('" &amp;amp; s.ToString() &amp;amp; '")&amp;lt;/script&amp;gt;")&lt;BR&gt;Response.Write(myjs.ToString())&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1037388.aspx</link><pubDate>Tue, 30 Aug 2005 22:29:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1037388</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1037388.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1037388</wfw:commentRss><description>&lt;FONT color=#000080&gt;Thanks for the code. Is there a way for the redirect to &lt;FONT color=#ff0000&gt;open in a new window&lt;/FONT&gt;? I do not see how the links new window (response earlier) could be integrated here in the vb code&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1037374.aspx</link><pubDate>Tue, 30 Aug 2005 22:15:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1037374</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1037374.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1037374</wfw:commentRss><description>&lt;FONT color=#0000ff&gt;Thanks for the code.&amp;nbsp;Is there a way for the redirect to &lt;FONT color=#ff0000&gt;open in a new window&lt;/FONT&gt;? I do not see how the links new window (response above) could be integrated here in the vb code.&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1037296.aspx</link><pubDate>Tue, 30 Aug 2005 20:59:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1037296</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1037296.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1037296</wfw:commentRss><description>&lt;FONT color=#0000ff&gt;Thanks, but how can I redirect to a new window so I do not lose my focus with DNN? I do not see how I could use the link new window code you shared earlier. Thanks again for all you insight.&lt;/FONT&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1037177.aspx</link><pubDate>Tue, 30 Aug 2005 19:56:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1037177</guid><dc:creator>DougV</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1037177.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1037177</wfw:commentRss><description>&lt;P&gt;This will work: &lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr&gt;&lt;FONT face=Tahoma color=#a52a2a size=2&gt;&lt;STRONG&gt;Dim s as new System.text.StringBuilder&lt;BR&gt;Dim objUsers As New UserController&lt;BR&gt;Dim objUser As UserInfo = objUsers.GetUser(UserInfo.PortalID, UserInfo.UserID)&lt;BR&gt;'***************&lt;BR&gt;'Build your redirect string here&lt;BR&gt;s.append("http://localhost/clublean/CourseSelection/DotNetNuke.aspx?name=")&lt;BR&gt;s.append(objUser.LastName)&lt;BR&gt;s.append("&amp;amp;studentnum=")&lt;BR&gt;s.append(objUser.Profile.IM)&lt;BR&gt;&lt;BR&gt;'Now redirect&lt;BR&gt;Response.Redirect(s.ToString())&lt;/STRONG&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1036107.aspx</link><pubDate>Tue, 30 Aug 2005 00:50:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1036107</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1036107.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1036107</wfw:commentRss><description>&lt;P&gt;Thanks for the link info. What I was trying to do in the button below was to extract the user info and pass it in the url. Is there a way to open a new window like in links above except using the format I have below.Also my url is not working in passing both variables. Do you know what I might be doing wrong?&lt;BR&gt;&lt;BR&gt;Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim s As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objUsers As New UserController&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objUser As UserInfo = objUsers.GetUser(UserInfo.PortalID, UserInfo.UserID)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '****************&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim StudentId As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim StudentName As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim url As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StudentId = objUser.Profile.IM()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StudentName = objUser.Profile.LastName()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url = "&lt;A href="http://localhost/clublean/CourseSelection/DotNetNuke.aspx?name"&gt;http://localhost/clublean/CourseSelection/DotNetNuke.aspx?name&lt;/A&gt;=" &amp;amp; StudentName &amp;amp; "studentnum=" &amp;amp; StudentId&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Redirect(url)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1035960.aspx</link><pubDate>Mon, 29 Aug 2005 21:09:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1035960</guid><dc:creator>DougV</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1035960.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1035960</wfw:commentRss><description>&lt;P&gt;There's more than one way to do that.&amp;nbsp; Depends on how you want to go.&amp;nbsp; Here's one I use all the time.&lt;BR&gt;First, I went to my "js" directory and included the following file called &lt;FONT color=#808080&gt;&lt;STRONG&gt;newwin.js&lt;/STRONG&gt;&lt;/FONT&gt; having code :&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;&amp;lt;!-- hide this script from old browsers&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;// &lt;/FONT&gt;&lt;A href="http://powerhousedata.com"&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;http://powerhousedata.com&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;// This script opens a new browser window and writes&lt;BR&gt;// HTML to display an image with a title and caption&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;function show_view(pFileName,pTitle,pCaption,pScrolling) {&lt;BR&gt;// create iframe html with pFileName inside of it&lt;BR&gt;var s1 = '&amp;lt;IFRAME NAME=\"I1\" SRC=\"';&lt;BR&gt;var s2 = '\" HEIGHT=\"450px\" WIDTH=\"750px\" TITLE=\"Cascading Style Sheet Results\" ALIGN=\"middle\" STYLE=\"border: 2px solid #666666\" SCROLLING=\"';&lt;BR&gt;var s3 = " Your browser does not support inline frames or is currently configured not to display inline frames. ";&lt;BR&gt;var s4 = "&amp;lt;/IFRAME&amp;gt;";&lt;BR&gt;var i=0 ;&lt;BR&gt;s2 += pScrolling;&lt;BR&gt;s2 += '\"&amp;gt;';&lt;BR&gt;a= "";&lt;BR&gt;s1 += pFileName + s2 + s3 +s4;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;//alert(s1);&lt;BR&gt;// specify window parameters&lt;BR&gt;TutorialWin = window.open("","photo","onLoad=window.focus(),width=850,height=650,menubar=no,status=no,scrollbars,resizable,screenX=20,screenY=40,left=80,top=20");&lt;BR&gt;TutorialWin.focus();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;// write content to window&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;' + pTitle + '&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;');&amp;nbsp;&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;BODY BGCOLOR=White LINK=Gray VLINK=Gray&amp;gt; ');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;P STYLE="text-align: center"&amp;gt;&amp;lt;font size=+2 face="arial,helvetica"&amp;gt;&amp;lt;b&amp;gt;' + pTitle + '&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;hr&amp;gt;&amp;lt;/p&amp;gt;');&lt;BR&gt;&amp;nbsp; // display iframe with pFileName inside of it&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;P STYLE="text-align: center"&amp;gt;');&amp;nbsp; &lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln(s1);&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;font face="arial,helvetica"&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln(pCaption);&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;amp;nbsp');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;font face="Arial, Helvetica" size="2" color=teal&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('Copyright &amp;amp;#169; 2005&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/font&amp;gt;&amp;lt;font face="Arial, Helvetica" size="2" color="#993366"&amp;gt;Powerhouse Data&amp;lt;/font&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;lt;br&amp;gt;&amp;lt;a href =" " onClick="self.close()"&amp;gt;Close this window&amp;lt;/a&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.writeln('&amp;amp;nbsp;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;');&lt;BR&gt;&amp;nbsp; TutorialWin.document.bgColor="lightyellow";&lt;BR&gt;//for (propertyName in TutorialWin.document)&lt;BR&gt;//for (propertyName in navigator)&lt;BR&gt;//TutorialWin.document.writeln(propertyName + "&amp;lt;br&amp;gt;");&lt;BR&gt;//TutorialWin.document.writeln("&amp;lt;br&amp;gt;navigator.appName="+navigator.appName);&lt;BR&gt;//TutorialWin.document.writeln("&amp;lt;br&amp;gt;TutorialWin.document.width="+TutorialWin.document.width);&lt;BR&gt;&amp;nbsp; TutorialWin.document.close();&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;}&lt;BR&gt;// done hiding from old browsers --&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Then in my Text/HTML I can create a link and pass info to the new window.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Times New Roman" color=#000000 size=2&gt;&amp;lt;A onmouseover="window.status='Click Here';return true" title="CSS Tutorial - Second View" onclick="show_view('/tutorials/CSS_Views/MyCSS_Skin_view%282%29.htm','Powerhouse Data Tutorials',&amp;amp;#13;&amp;amp;#10;'Your view should now match the above with the light green Header.','no');return false" href="/tutorials/CSS_Views/MyCSS_Skin_view%282%29.htm"&amp;gt;You should see the light green Header &amp;lt;/A&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;The information passed is a filename, Title, caption, and whether I want scrollbars or not.&amp;nbsp; You can view a sample of this code in action here at&amp;nbsp; &lt;a href="http://www.powerhousedata.com/Tutorials/DNNTablelessSkinTutorialLessonOne/Page3/tabid/99/Default.aspx" target="_blank" title="http://www.powerhousedata.com/Tutorials/DNNTablelessSkinTutorialLessonOne/Page3/tabid/99/Default.aspx"&gt;http://www.powerhousedata.com/Tutorials/DNNTablelessSkinTutorialLessonOne/Page3/tabid/99/Default.aspx&lt;/a&gt;.&amp;nbsp; On that page there are three links each using this script - try it by clicking on "&lt;FONT color=#0000ff&gt;You should see the light green header&lt;/FONT&gt;"&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Re: Passing username in a Url Of Links Module</title><link>http://forums.asp.net/thread/1035828.aspx</link><pubDate>Mon, 29 Aug 2005 19:17:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1035828</guid><dc:creator>autolibse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1035828.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1035828</wfw:commentRss><description>&lt;STRONG&gt;But how can I open a new window and pass variables?&lt;/STRONG&gt;&amp;nbsp;</description></item></channel></rss>