<?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>DotNetNuke</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Discussions of DotNetNuke for ASP.NET 1.x and above.  &lt;a href="http://www.dotnetnuke.com/" target="_blank"&gt;DNN Home&lt;/a&gt; &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=105&amp;c=25" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/1032475.aspx</link><pubDate>Thu, 25 Aug 2005 18:33:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1032475</guid><dc:creator>sprout</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1032475.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=1032475</wfw:commentRss><description>&lt;P&gt;Thanks Jeff and all so much for figuring this out.&amp;nbsp; I was using the UrlControl on a custom module Settings page to save things to the TabModuleSettings.&amp;nbsp; I spent the entire day trying to figure out why the url was going in as FileId=x and coming out as&amp;nbsp;a image name for the ImageModule (which I was using as a model), and why mine kept going in as FileId and coming out as FileId.&amp;nbsp; I hadn't gotten as far as looking in the stored procedure.&lt;BR&gt;&lt;BR&gt;I still think the way that URLControl works is still an issue because now, in order for the control to work as expected without having to do one of the "fixes" mentioned above, I have to save things in ModuleSettings.&amp;nbsp; I would have expected&amp;nbsp;the control to work the same regardless of whether I stored the value in ModuleSettings or TabModuleSettings.&lt;BR&gt;&lt;BR&gt;Well, now I know what workarounds I have to do in order to store the url in TabModuleSettings.&amp;nbsp; Thanks for figuring this out and writing about it and sparing the rest of us some headaches!&amp;nbsp; &lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/1023757.aspx</link><pubDate>Wed, 17 Aug 2005 17:42:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1023757</guid><dc:creator>Big Worms</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1023757.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=1023757</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;toddhd wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;
&lt;P&gt;Funny you brought this up, I just got done banging my head against the wall with this issue. Anyway, the answer (for me) is to fix it on the front end. Before you store the value in the database. Here is how you read the URL control and get the filename from the FileID. &lt;/P&gt;&lt;PRE&gt;Dim iconId As Integer = Integer.Parse(ctlIcon.Url.Substring(7))&lt;BR&gt;Dim objFileController As New FileController&lt;BR&gt;Dim objIconInfo As DotNetNuke.Services.FileSystem.FileInfo = objFileController.GetFileById(iconId, PortalId)&lt;BR&gt;Dim FileName = objIconInfo.FileName&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Now you store the filename in the database in the first place. Now when you go to update the icon value, &lt;BR&gt;you can just set ctlIcon.Url = Filename&lt;/FONT&gt;&lt;/P&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;This worked like a champ!&amp;nbsp; Thanks.</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/998384.aspx</link><pubDate>Mon, 25 Jul 2005 14:10:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:998384</guid><dc:creator>jjohns09</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/998384.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=998384</wfw:commentRss><description>&lt;P&gt;I have been racking my brain to figure out why when I initially load the ImageModule and don't specify a width and I height when saving the settings that the image width and height are not used as it appears to suggest in the following code:&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000 size=2&gt;' Update settings in the database&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; ctlURL.UrlType = "F" &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; objFiles &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; FileController&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; objFile &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; FileInfo = objFiles.GetFile(ctlURL.Url, PortalId)&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Not&lt;/FONT&gt;&lt;FONT size=2&gt; objFile &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Is&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; txtWidth.Text = "" &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2&gt;txtWidth.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;(objFile.Width, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; txtHeight.Text = "" &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2&gt;txtHeight.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;(objFile.Height, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#000000 size=3&gt;As stated above, the ctlURL.Url is something like FileID=7. This causes the obj.GetFile(ctlURL.Url, PortalId) to always return Nothing. This is why I would classify this as a bug.&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/988519.aspx</link><pubDate>Fri, 15 Jul 2005 03:43:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:988519</guid><dc:creator>RLyda</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/988519.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=988519</wfw:commentRss><description>If the theme is "Providers are GREAT" then this oddity is BADDDD.&amp;nbsp; Ok I'll call it an oddity, as it works as designed it may not truly be a bug...&amp;nbsp; But what if I wanted to migrate from the Core URLControl to one of my own?&amp;nbsp; This non-uniformity of storage and retrieval IS problematic!&amp;nbsp; Although I have developed a different control (that my employer may not allow me to give away to the community), this lack of easy backward compatability for everyone else might keep me from&amp;nbsp;sharing anyway...&lt;BR&gt;&lt;BR&gt;And just because the Core Team knows to watch out for this odd transformation in the GetModuleSettings method....well just how many modules are going to trip over it???&amp;nbsp; The fact that they themselves had an issue with it does not bode well for casual developers...&amp;nbsp; If one is using the URLControl, maybe you get bit once and expect it.&amp;nbsp; But what if&amp;nbsp;you&amp;nbsp;have a completely custom module--with no URLControl anywhere--but settings that just happen to store a string with "fileid=..."?&amp;nbsp; I'd call the implementation here "unfortunate," it not a flat out bug!&lt;BR&gt;&lt;BR&gt;And then talk about performance...&amp;nbsp; How many&amp;nbsp;millions of times an hour is this database join routine called?&amp;nbsp; And what SMALL FRACTION of those settings need this odd transformation???&amp;nbsp; So we suffer the overhead a thousand times to benefit ONE control's laziness restoring data to the UI controls???</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/988482.aspx</link><pubDate>Fri, 15 Jul 2005 02:40:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:988482</guid><dc:creator>DBuckner</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/988482.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=988482</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;table width="85%"&gt;&lt;tr&gt;&lt;td class="txt4"&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt;&amp;nbsp;&lt;strong&gt;jjmartin wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="quoteTable"&gt;&lt;table width="100%"&gt;&lt;tr&gt;&lt;td width="100%" valign="top" class="txt4"&gt;
&lt;P&gt;Jeff,&lt;BR&gt;&lt;BR&gt;You may be right that it is not a bug, but I think it is relatively poor implementation/design for a resusable control. &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;BR&gt;I would agree with John that it's not a bug. To demonstrate why its not, think or try this...&lt;BR&gt;Create a links module and add a hyperlink to a file in the portal folder. Then, go to filemanager and move the file because you decided that your directory structure is crowded and needs cleaned up. Next go back to the link module you added and click the link. Hey guess what, you didn't have to modify the link to the file. This is due solely because of the fileID.&lt;BR&gt;&lt;BR&gt;I do see your difficulties though with the XSLT =)&lt;BR&gt;&lt;BR&gt;Dave&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/986848.aspx</link><pubDate>Wed, 13 Jul 2005 19:06:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:986848</guid><dc:creator>BadMonkey</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/986848.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=986848</wfw:commentRss><description>&lt;P&gt;A crude solution I found that worked was something like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt;[]&amp;nbsp;strArr = UrlControlObject.Url.Split('=');&lt;BR&gt;nFileID&amp;nbsp;= &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;int&lt;/FONT&gt;&lt;FONT size=2&gt;.Parse(strArr[1].ToString());&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;This is in CSharp. He he :)&lt;BR&gt;&lt;BR&gt;Two line solution for folks that are a bit &lt;SPAN&gt;squeamish&lt;/SPAN&gt; about modifying all that goodness inside the DotNetNuke framework, he he.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/886958.aspx</link><pubDate>Fri, 08 Apr 2005 20:46:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:886958</guid><dc:creator>jjmartin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/886958.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=886958</wfw:commentRss><description>&lt;P&gt;if you were loading it for the first time in page_init during a postback it would.&amp;nbsp; The properties that determine which subcontrols show up are not looked at ,at all, if the page is in postback.&lt;/P&gt;
&lt;P&gt;My situation is that I have a auto-postback dropdown list of a series of templates.&amp;nbsp; Each instance of the template stores the data into an XML file. &lt;/P&gt;
&lt;P&gt;When I choose the template I want - it determines which controls to show, anything from the URL control for choosing an image to a rich text box for including text.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;This data is then stored into the XML.&amp;nbsp; The XML is later displayed via XSLT (so it would be hard to handle the FileID=# at that time).&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The post back issue is pretty easily resolved by taking out the if statement.&amp;nbsp; I haven't done extensive testing on the effects but all the code within the If block has to do with the display of the control.&lt;/P&gt;
&lt;P&gt;I had a similar issue with the TextEditor control where I coudln't set the Text of that control until it had been added to the page, because the Text property writes directly to the Text property of the RichTextControl which isn't added until the Page_init event (it should probably be added in a constructor, or alternatively the TextEditor should store the value and assign it to the richtextcontrol at Pre_render).&lt;/P&gt;
&lt;P&gt;You may be right that it is not a bug, but I think it is relatively poor implementation/design for a resusable control. &lt;/P&gt;
&lt;P&gt;Generally a property should return what you put into it.&amp;nbsp;&amp;nbsp; if A=B and B= C then A= C. (or in this case if&amp;nbsp; urlControl.Url = &amp;nbsp;"images/myImage.jpg"&amp;nbsp;&amp;nbsp;and "File=8" = urlControl.Url then "images/myImage.jpg" &amp;lt;&amp;gt; "File=8" and urlControl.Url &amp;lt;&amp;gt; urlControl.Url )&lt;/P&gt;
&lt;P&gt;I also think those controls (all the ones being provided as reusable controls - ie in the /controls folder) &amp;nbsp;should be adjusted so that any display settings are resolved at Pre-render rather that in the Load event.&amp;nbsp; Even if you remove the if statement.&amp;nbsp; If someone wants to adjust the control settings during an event of a separate control (during postback) setting the property will do no good because those properties were already evaluated during Load and the Events fire after that.&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/886945.aspx</link><pubDate>Fri, 08 Apr 2005 20:33:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:886945</guid><dc:creator>J7Mitch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/886945.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=886945</wfw:commentRss><description>&lt;P&gt;Thanks for your feedback Jeff.&amp;nbsp;Although these enhancements might make a better universal control, I don't think they can be classified as bugs.&lt;/P&gt;
&lt;P&gt;I have to admit that I had the same thoughts when I was trying to fix an actual bug in the control saving the currently selected file for the page Url and even made a change simular to the one you are suggesting.&amp;nbsp; After checking it in it turned out that the control would no longer work in other areas that share the files because they are expecting the FileId= to be in the DB and translated in the Stored Proc.&amp;nbsp; So I ended up going back in and making the SP in question do the translation like the rest of them.&lt;/P&gt;
&lt;P&gt;As for the postback issue when loading dynamically.&amp;nbsp; Does this also hapen if you load the control in page_init?&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/886901.aspx</link><pubDate>Fri, 08 Apr 2005 19:53:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:886901</guid><dc:creator>jjmartin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/886901.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=886901</wfw:commentRss><description>&lt;P&gt;Two issues.&lt;/P&gt;
&lt;P&gt;If you are dynamically adding it to a page during a postback (with LoadControl), you can't control what sub-controls are displayed through the properties of the control. These settings are only checked if NOT Page.IsPostback.&lt;/P&gt;
&lt;P&gt;2nd.&amp;nbsp; The Url Property isn't symmtrical in the data you must provide it.&amp;nbsp; If the control is in "F" mode (file), then if you Get the property you get a value like "FileID=8"&amp;nbsp; where if you try to set the control back using that format, it fails to properly set its subcontrol.&amp;nbsp; Conversely, you can Set the property to "images/myimage.jpg" but you will only get "FileID=8" if you try to read out of that control again.&lt;/P&gt;
&lt;P&gt;The control seems too closely coupled with the GetModuleSettings method/stored procedure which automatically decodes the "FileID=8".&amp;nbsp; In order for any other use, you have to set up either another client call to the database through the FileInfo objcet as toddhd did, or re-write the control to make the URL property bi-directional with the same data.&lt;/P&gt;
&lt;P&gt;My suggestion would be to put a FileID property on the control&amp;nbsp; - make the URL property get and set the same information.&amp;nbsp; The FileId would return the ID of the URL for the setting the Images control uses.&amp;nbsp; Changing the value of the FileId would potentially alter the value of URL but that would be ok.&amp;nbsp;&amp;nbsp; FileId would return Null.NullInteger when it wasn't applicable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/886882.aspx</link><pubDate>Fri, 08 Apr 2005 19:39:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:886882</guid><dc:creator>J7Mitch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/886882.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=886882</wfw:commentRss><description>&lt;P&gt;Jeff, please describe the bug as you see it.&amp;nbsp; The control is used through-out the core code without&amp;nbsp;any issues that I know of.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/886854.aspx</link><pubDate>Fri, 08 Apr 2005 19:25:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:886854</guid><dc:creator>jjmartin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/886854.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=886854</wfw:commentRss><description>&lt;P&gt;now.. since i can't report bugs on the DNN bug tracking system - how do i know some core member see's this? &lt;/P&gt;
&lt;P&gt;The bug tracking says to use the forums...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/883481.aspx</link><pubDate>Wed, 06 Apr 2005 15:23:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:883481</guid><dc:creator>jjmartin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/883481.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=883481</wfw:commentRss><description>&lt;P&gt;I am&amp;nbsp;relieved that somone else found this to be an issue,&amp;nbsp; I was begining to think that maybe I was using these controls in such a wierd way that I was way off base.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/882705.aspx</link><pubDate>Wed, 06 Apr 2005 00:16:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:882705</guid><dc:creator>toddhd</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/882705.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=882705</wfw:commentRss><description>&lt;P&gt;Funny you brought this up, I just got done banging my head against the wall with this issue. Anyway, the answer (for me) is to fix it on the front end. Before you store the value in the database. Here is how you read the URL control and get the filename from the FileID. &lt;/P&gt;&lt;PRE&gt;Dim iconId As Integer = Integer.Parse(ctlIcon.Url.Substring(7))&lt;BR&gt;Dim objFileController As New FileController&lt;BR&gt;Dim objIconInfo As DotNetNuke.Services.FileSystem.FileInfo = objFileController.GetFileById(iconId, PortalId)&lt;BR&gt;Dim FileName = objIconInfo.FileName&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;Now you store the filename in the database in the first place. Now when you go to update the icon value, &lt;BR&gt;you can just set ctlIcon.Url = Filename&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/882702.aspx</link><pubDate>Wed, 06 Apr 2005 00:13:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:882702</guid><dc:creator>jjmartin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/882702.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=882702</wfw:commentRss><description>&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;Since I have already made a replacement URLControl (described here: &lt;A href="/882506/ShowPost.aspx"&gt;http://forums.asp.net/882506/ShowPost.aspx&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;I made another change to it:&lt;/P&gt;
&lt;P&gt;in the URL Property I changed &lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;Case&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; "F"&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Not&lt;/FONT&gt;&lt;FONT size=2&gt; cboFiles.SelectedItem &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Is&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Not&lt;/FONT&gt;&lt;FONT size=2&gt; cboFiles.SelectedItem.Value = "" &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;Url = "FileID=" &amp;amp; cboFiles.SelectedItem.Value&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Else&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;Url = ""&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;Case&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; "F"&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Not&lt;/FONT&gt;&lt;FONT size=2&gt; cboFiles.SelectedItem &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Is&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Not&lt;/FONT&gt;&lt;FONT size=2&gt; cboFiles.SelectedItem.Value = "" &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;Url = cboFolders.SelectedItem.Text + "/" + cboFiles.SelectedItem.Text&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Else&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;Url = ""&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;This makes the URL property work both ways. (At least for the "F" urltype - i haven't played with the other types, but I haven't changed them either).&lt;/FONT&gt;</description></item><item><title>Re: Help!?! - ImageModule and URLControl</title><link>http://forums.asp.net/thread/882697.aspx</link><pubDate>Wed, 06 Apr 2005 00:00:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:882697</guid><dc:creator>jjmartin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/882697.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=882697</wfw:commentRss><description>&lt;P&gt;ok - this is totally ridiculous...&lt;/P&gt;
&lt;P&gt;this is the contents of the GetModuleSettings stored procedure&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;select &lt;/FONT&gt;&lt;FONT size=2&gt;SettingName,&lt;/P&gt;
&lt;P&gt;'SettingValue' = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;case when &lt;/FONT&gt;&lt;FONT size=2&gt;Files.FileName &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;is null then &lt;/FONT&gt;&lt;FONT size=2&gt;ModuleSettings.SettingValue &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;else &lt;/FONT&gt;&lt;FONT size=2&gt;Files.Folder + Files.FileName &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;end&lt;/P&gt;
&lt;P&gt;from &lt;/FONT&gt;&lt;FONT size=2&gt;ModuleSettings &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;left outer join &lt;/FONT&gt;&lt;FONT size=2&gt;Files &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;on &lt;/FONT&gt;&lt;FONT size=2&gt;ModuleSettings.SettingValue = 'fileid=' +&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;convert&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;varchar&lt;/FONT&gt;&lt;FONT size=2&gt;,Files.FileID)&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;where &lt;/FONT&gt;&lt;FONT size=2&gt;ModuleId = @ModuleId&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;So DNN is essentially making an exception on saving settings in a particular format to retrieve the file.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;This basically makes the URLControl worthless unless you write your own conversion utility for the URL output it gives.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description></item></channel></rss>