<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36258.aspx</link><pubDate>Wed, 24 Dec 2008 15:37:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36258</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36258.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36258</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;thankyou all... its working now.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;jaimin &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36256.aspx</link><pubDate>Wed, 24 Dec 2008 15:18:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36256</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36256</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;jaiminsarda:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Now when i gave this url: &amp;quot;http://server:port/MyDocLib/Test1.xlsx&amp;quot;&amp;nbsp; in my code, it opened successfully!!! i don&amp;#39;t understand y??&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;There is no reason a url would ever have two slashes between server:port and the next part of the address.&amp;nbsp; It seems that that&amp;#39;s the reason it wasn&amp;#39;t working before.&lt;/p&gt;</description></item><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36255.aspx</link><pubDate>Wed, 24 Dec 2008 15:05:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36255</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36255</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try the below URL in IE.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://server:port/MyDocLib/TestDocument.doc"&gt;http://server:port/MyDocLib/TestDocument.doc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I just deleted the slash(/)&amp;nbsp; after server:port&lt;/p&gt;</description></item><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36248.aspx</link><pubDate>Wed, 24 Dec 2008 12:57:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36248</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36248</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I checked in IE, but no luck.&lt;/p&gt;&lt;p&gt;thereafter, i created an excel template used it as a content type. i entered the data into that file and saved it into the same document library. Name of this file is &amp;quot;Test1.xlsx&amp;quot;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now when i gave this url: &amp;quot;http://server:port/MyDocLib/Test1.xlsx&amp;quot;&amp;nbsp; in my code, it opened successfully!!! i don&amp;#39;t understand y??&lt;/p&gt;&lt;p&gt;Do u know the reason?&lt;/p&gt;&lt;p&gt;One more question, through my code(C#) how can i open the template(i.e. content type)&amp;nbsp; ?? How can I get the Url of this content type?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Jaimin &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36239.aspx</link><pubDate>Wed, 24 Dec 2008 09:46:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36239</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36239</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you check once you&amp;#39;re given URL is opened from Internet Explorer or not?&lt;/p&gt;
&lt;p&gt;Document should open using this URL: http://server:port//MyDocLib/TestDocument.doc&lt;/p&gt;</description></item><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36236.aspx</link><pubDate>Wed, 24 Dec 2008 08:55:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36236</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36236</wfw:commentRss><description>&lt;p&gt;Hi Shiva,&lt;/p&gt;&lt;p&gt;thanks for the reply.&lt;/p&gt;&lt;p&gt;i have created a textbox where on page load i am passing some url. i have bind this textbox with hyperlink control.&lt;/p&gt;&lt;p&gt;when i pass the url: &amp;quot;http://www.google.com&amp;quot;, it opens google in a new window. WORKS FINE..&lt;/p&gt;&lt;p&gt;But when i pass the url like: &amp;quot;http://server:port//MyDocLib/TestDocument.doc&amp;quot;, a new window opens with &amp;quot;Page Cannot be Found&amp;quot; error.&lt;/p&gt;&lt;p&gt;Can you tell how can I open a document by clicking hyperlink?? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Jaimin &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36196.aspx</link><pubDate>Tue, 23 Dec 2008 12:55:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36196</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36196</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We do not access the Hyperlink in code. If you want to set that hyperlink value in code then in design mode you to follow these steps,&lt;/p&gt;
&lt;p&gt;1. Right click on Hyperlink to get Edit Hyperlink window&lt;/p&gt;
&lt;p&gt;2. Select ‘Data source&amp;#39; option in ‘Link to&amp;#39;.&lt;/p&gt;
&lt;p&gt;3. Click on icon to select which field data you want to bind it.&lt;/p&gt;
&lt;p&gt;4. Click on OK button.&lt;/p&gt;
&lt;p&gt;In your code you have to set step3 field data as what link you want to show in hyperlink.&lt;/p&gt;</description></item><item><title>Programmatically set url to hyperlink field?</title><link>https://www.infopathdev.com:443/forums/thread/36193.aspx</link><pubDate>Tue, 23 Dec 2008 12:21:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36193</guid><dc:creator>jaiminsarda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36193</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi All,&lt;/p&gt;&lt;p&gt;I have an hyperlink field in infopath 2007 form.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In my sharepoint document library, I have a template which should get open when user clicks that hyperlink (present in infopath form).&lt;/p&gt;&lt;p&gt;So how can I programmatically set value(i.e. URL) to hyperlink field using c#??&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;Jaimin &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>