<?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>Search results matching tag 'asp'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=asp&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'asp'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Seting up multiple Where statements on one DetailView based on query String</title><link>http://forums.asp.net/thread/3560108.aspx</link><pubDate>Fri, 11 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3560108</guid><dc:creator>random11</dc:creator><description>&lt;p&gt;ok so im using slq data source to like to a detailview and I want my sqldatasource1 WHERE statement to change depending on what values are in the query string&lt;br /&gt; For example, if productName and productCategory then I want the where clause to be something like this&lt;/p&gt;&lt;p&gt;default.aspx?ProductName=Hu&amp;amp;ProductCategory=Food&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="color:Black;background-color:White;"&gt;
&lt;pre&gt;&lt;span style="color:Blue;"&gt;WHERE&lt;/span&gt; ((ProductName &lt;span style="color:Blue;"&gt;Like&lt;/span&gt; @ProductName + &lt;span&gt;&amp;#39;%&amp;#39;&lt;/span&gt;) &lt;span style="color:Blue;"&gt;AND&lt;/span&gt; (ProductCategory = &lt;span&gt;@ProductCategory&lt;/span&gt;))&lt;br /&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;
However if the query string sends lets say only Price the have the WHERE be&lt;/p&gt;&lt;p&gt;default.aspx?Price=20&lt;/p&gt;
&lt;pre&gt;WHERE Price &amp;lt; 20.00&lt;/pre&gt;&lt;p&gt;
and so on... i plan on having 4 different situations like above.&lt;br /&gt; &lt;br /&gt; I have no clue how to do this if someone could help me thanks&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also if there is any code i use C# so if you could stay away from VB that would be best&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how to send sms from asp.net  application to mobile</title><link>http://forums.asp.net/thread/3548914.aspx</link><pubDate>Fri, 04 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3548914</guid><dc:creator>muthukkumaran</dc:creator><description>&lt;p&gt;HAI ;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em style="font-weight:bold;font-style:normal;"&gt;&lt;a href="http://www.txtimpact.com/api.asp" title="send sms php asp c#"&gt;Try this method&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#990000;padding-top:10px;"&gt;ASP:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#990000;padding-top:10px;"&gt;sstrData = &amp;quot;version=2.0&amp;quot;&amp;nbsp;&lt;br /&gt;sstrData = &amp;quot;To=&amp;quot; &amp;amp; [Mobile Number]&lt;br /&gt;sstrData = sstrData + &amp;quot;&amp;amp;From=27126&amp;quot;&amp;nbsp;&lt;br /&gt;sstrData = sstrData + &amp;quot;&amp;amp;UserId=XXXXX&amp;quot;&amp;nbsp;&lt;br /&gt;SstrData = sstrData + &amp;quot;&amp;amp;Password=XXXXX&amp;quot;&lt;br /&gt;SstrData = sstrData + &amp;quot;&amp;amp;vasid=XXXX&amp;quot;&lt;br /&gt;SstrData = sstrData + &amp;quot;&amp;amp;networkid=44&amp;quot;&lt;br /&gt;SstrData = sstrData + &amp;quot;&amp;amp;profileid=2&amp;quot;&lt;br /&gt;SstrData = sstrData + &amp;quot;&amp;amp;Text=Demo Message&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set myhttp=CreateObject (&amp;quot;Msxml2.XMLHTTP&amp;quot;)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Myhttp.open (&amp;quot;POST&amp;quot;, &amp;quot;http://smsapi.TxtImpact.com/smsadmin/submitsm.aspx&amp;quot;, false)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Myhttp.setRequestHeader &amp;quot;Content-Type&amp;quot;, &amp;quot;application/x-www-form-urlencoded&amp;quot;&lt;br /&gt;&lt;br /&gt;Myhttp.send sstrData&lt;br /&gt;Response.write myhttp.responsetext&lt;br /&gt;Set myhttp = Nothing&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#990000;padding-top:10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#990000;padding-top:10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>C# web application using a dbacess.cs class</title><link>http://forums.asp.net/thread/3537406.aspx</link><pubDate>Sat, 28 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3537406</guid><dc:creator>adamjw3</dc:creator><description>&lt;p&gt;In my C# web &lt;a id="KonaLink0" target="undefined" style="position:static;" href="http://www.velocityreviews.com/forums/t93269-sql-connectionstring-in-web-config.html"&gt;&lt;font style="font-family:arial,verdana,geneva,lucida,&amp;#39;lucida grande&amp;#39;,arial,helvetica,sans-serif;font-weight:400;font-size:13.3333px;position:static;" color="blue"&gt;&lt;span style="border-bottom:1px solid blue;font-family:arial,verdana,geneva,lucida,&amp;#39;lucida grande&amp;#39;,arial,helvetica,sans-serif;font-weight:400;font-size:13.3333px;position:static;background-color:transparent;"&gt;application&lt;/span&gt;&lt;/font&gt;&lt;span style="position:relative;" id="preLoadWrap0"&gt;
&lt;div style="position:absolute;z-index:4000;top:-32px;left:-18px;display:none;" id="preLoadLayer0"&gt;&lt;img style="border:0px none;" src="http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif" alt="" /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/a&gt; i want to use a dbacess.cs class which will contain my  &lt;a id="KonaLink1" target="undefined" style="position:static;" href="http://www.velocityreviews.com/forums/t93269-sql-connectionstring-in-web-config.html"&gt;&lt;font style="font-family:arial,verdana,geneva,lucida,&amp;#39;lucida grande&amp;#39;,arial,helvetica,sans-serif;font-weight:400;font-size:13.3333px;position:static;" color="blue"&gt;&lt;span style="border-bottom:1px solid blue;font-family:arial,verdana,geneva,lucida,&amp;#39;lucida grande&amp;#39;,arial,helvetica,sans-serif;font-weight:400;font-size:13.3333px;position:static;background-color:transparent;"&gt;Sql&lt;/span&gt;&lt;/font&gt;&lt;span style="position:relative;" id="preLoadWrap1"&gt;
&lt;div style="position:absolute;z-index:4000;top:-32px;left:-18px;display:none;" id="preLoadLayer1"&gt;&lt;img style="border:0px none;" src="http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif" alt="" /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
connection (stored in webconfig) and all methods that&amp;#39;s connect with the database e.g select, update, insert, fetchrows, fetchrow.&lt;/p&gt;&lt;p&gt;how can i go about this? are there any tutorials showing how to do this or is there a free classi can download and just include in my projects?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;many thanks for you help&lt;br /&gt;&lt;/p&gt;</description></item><item><title>A com dll used in classic asp write by c#(can't convert request.quertstring object to string)</title><link>http://forums.asp.net/thread/3514370.aspx</link><pubDate>Sun, 15 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514370</guid><dc:creator>winerzf</dc:creator><description>&lt;p&gt;hello&amp;nbsp;&lt;/p&gt;&lt;p&gt;i&amp;#39;m a new here&amp;nbsp;&lt;/p&gt;&lt;p&gt;now ,i&amp;#39;ve a problem with a classic asp dll&lt;/p&gt;&lt;p&gt;i tried use response request object in c# dll&lt;/p&gt;&lt;p&gt;here is my code&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;using System;
using System.Collections.Generic;
using System.Text;
using ASPTypeLibrary;


namespace aspdll
{
    public class Class2
    {
        public Request Myrequest;
        public Response Myresponse;
        


        public void OnStartPage(ScriptingContext sc)
        {
            Myrequest = sc.Request;
            Myresponse = sc.Response;
            Myresponse.Write(Myrequest.QueryString[&amp;quot;test&amp;quot;]);//here can response.write my querystring &amp;quot;abc&amp;quot; in my ie
            if (Myrequest.QueryString[&amp;quot;test&amp;quot;] == &amp;quot;abc&amp;quot;)

            /*here allways returns false ， for Myrequest.QuertString is a IRequestDictionary object, it can not equal with string.
             * and  Myrequest.QueryString[&amp;quot;test&amp;quot;].tostring() it returns  &amp;quot;System_Com&amp;quot;， how can i get  Myrequest.QueryString[&amp;quot;test&amp;quot;] as string??*/
            {
                Myresponse.Write(&amp;quot;ok&amp;quot;);
           
            }

        }


    }

}
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Problem: Cannot Successfully Reference &amp;quot;SessionUtility&amp;quot; from VS 2008 (Trying to Implement &amp;quot;How to Share Session State Between Classic ASP and ASP.NET&amp;quot;)</title><link>http://forums.asp.net/thread/3511098.aspx</link><pubDate>Fri, 13 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3511098</guid><dc:creator>tkates1aspnet</dc:creator><description>&lt;p&gt;It&amp;#39;s working!&amp;nbsp; Thanks!&amp;nbsp; One more quick question (below.)&lt;/p&gt;
&lt;p&gt;There was no &amp;quot;Browse&amp;quot; option when I clicked&amp;nbsp;on the &amp;quot;Projects&amp;quot; tab, but there is a separate &amp;quot;Browse&amp;quot; tab.&amp;nbsp; I browsed to the DLL&amp;nbsp;and selected it from there.&amp;nbsp; Then is started working.&lt;/p&gt;
&lt;p&gt;I do not have a &amp;quot;.NET Framework 2.0 Configuration&amp;quot; option in Control Panel-&amp;gt; Administrative Tools.&amp;nbsp; I do have &amp;quot;.NET Framework Configuration&amp;quot; which points to a v1.0 .msc file and a &amp;quot;.NET Framework&amp;nbsp;1.1 Configuration&amp;quot; option.&lt;/p&gt;
&lt;p&gt;Any idea why I wouldn&amp;#39;t have the &amp;quot;2.0&amp;quot; configuration option?&lt;br /&gt;(from the VS &amp;quot;About&amp;quot; dialog...I&amp;#39;m using VS 2008 &lt;strong&gt;v9.0.30729.1SP&lt;/strong&gt; and MS .NET Framework &lt;strong&gt;v3.5 SP1&lt;/strong&gt;)&lt;/p&gt;</description></item><item><title>Re: getting html from a webpage using asp.net</title><link>http://forums.asp.net/thread/3506656.aspx</link><pubDate>Wed, 11 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3506656</guid><dc:creator>marc_garraway</dc:creator><description>&lt;p&gt;I have tried the XPathTester and the HTML agaility pack, I seem to be having issues,&amp;nbsp;when I try it&amp;nbsp;using //body/content&amp;nbsp;it returns&amp;nbsp;an error 503,&amp;nbsp;server unavaliable, but it is not as I am using it and&amp;nbsp;can login and view the website.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does anyone have&amp;nbsp;any ideas how I can strip the html out??&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&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Problem: Cannot Successfully Reference &amp;quot;SessionUtility&amp;quot; from VS 2008 (Trying to Implement &amp;quot;How to Share Session State Between Classic ASP and ASP.NET&amp;quot;)</title><link>http://forums.asp.net/thread/3506684.aspx</link><pubDate>Wed, 11 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3506684</guid><dc:creator>tkates1aspnet</dc:creator><description>&lt;p&gt;Thanks for your feedback ps2goat.&lt;/p&gt;
&lt;p&gt;OK...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Found the VS command prompt&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Registered the DLL (gacutil /i C:\Downloads\AspDotNetSessionSharing\SessionSample\Demo\SessionUtility.dll)&lt;/li&gt;
&lt;li&gt;Restarted VS&lt;/li&gt;
&lt;li&gt;Opened my project&lt;/li&gt;
&lt;li&gt;Still cannot find the DLL under the &amp;quot;.NET&amp;quot; tab (I&amp;#39;m assuming it should either appear as &amp;quot;MSDN.SessionUtility&amp;quot; or &amp;quot;SessionUtility&amp;quot;)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Then I figured that maybe what I did before (registering it with the v1.x gacutil) was interfering with it in some way.&amp;nbsp; So I went back to the VS command prompt and ran...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;gacutil /u SessionUtility&lt;/li&gt;
&lt;li&gt;Checked the &amp;quot;COM&amp;quot; tab to see if the reference to SessionUtility was still there.&amp;nbsp; It was so I then ran...&lt;/li&gt;
&lt;li&gt;regasm.exe C:\Downloads\AspDotNetSessionSharing\SessionSample\Demo\SessionUtility.dll /unregister /tlb:SessionUtility.tlb&lt;/li&gt;
&lt;li&gt;Restarted VS&lt;/li&gt;
&lt;li&gt;Verified the reference to SessionUtility was NOT there.&amp;nbsp; It wasn&amp;#39;t.&amp;nbsp; Then ran...&lt;/li&gt;
&lt;li&gt;gacutil /i C:\Downloads\AspDotNetSessionSharing\SessionSample\Demo\SessionUtility.dll&lt;/li&gt;
&lt;li&gt;regasm.exe C:\Downloads\AspDotNetSessionSharing\SessionSample\Demo\SessionUtility.dll /tlb:C:\Downloads\AspDotNetSessionSharing\SessionSample\Demo\SessionUtility.tlb&lt;/li&gt;
&lt;li&gt;Restarted VS&lt;/li&gt;
&lt;li&gt;Checked the &amp;quot;.NET&amp;quot; tab.&amp;nbsp; No references to SessionUtility there.&lt;/li&gt;
&lt;li&gt;Checked the &amp;quot;COM&amp;quot; tab.&amp;nbsp; The reference to SessionUtility was there.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;So it&amp;#39;s still not showing up on the &amp;quot;.NET&amp;quot; tab.&lt;/p&gt;
&lt;p&gt;Do you think I would need to also unregister SessionUtility.dll with the v1.x gacutil (since I originally registered it that way)?&lt;/p&gt;
&lt;p&gt;I shouldn&amp;#39;t need to unregister and reregister the Session&lt;strong&gt;&lt;u&gt;Manager&lt;/u&gt;&lt;/strong&gt;.dll should I?&amp;nbsp; That shouldn&amp;#39;t have any bearing on the SessionUtility.dll, should it?&lt;/p&gt;
&lt;p&gt;Do you have any other ideas?&lt;/p&gt;</description></item><item><title>ASP Session Variables vs. ASP.NET Session variables</title><link>http://forums.asp.net/thread/3506982.aspx</link><pubDate>Wed, 11 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3506982</guid><dc:creator>daveh551</dc:creator><description>&lt;p&gt;Okay, it’s an established fact that the Session object in
ASP has no relation to the Session object in ASP.NET.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My question is this: If I have an ASP page, and it calls an
ASPX page, which then does a Response.Redirect to another (or the same) ASP
page, will the Session variables from the original ASP page be preserved in the
final ASP page?&amp;nbsp; Does anybody know the answer, or do I need to experiment
and see?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem: Cannot Successfully Reference &amp;quot;SessionUtility&amp;quot; from VS 2008 (Trying to Implement &amp;quot;How to Share Session State Between Classic ASP and ASP.NET&amp;quot;)</title><link>http://forums.asp.net/thread/3504540.aspx</link><pubDate>Tue, 10 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3504540</guid><dc:creator>tkates1aspnet</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to implement the MSDN &amp;quot;&lt;a class="" title="How to Share Session State Between Classic ASP and ASP.NET" href="http://msdn.microsoft.com/en-us/library/aa479313.aspx" target="_blank"&gt;How to Share Session State Between Classic ASP and ASP.NET&lt;/a&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t&amp;nbsp;been able to correctly setup the reference to the SessionUtility.dll file from within VS 2008.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I successfully installed the SessionUtility.dll into the GAC.&lt;br /&gt; (C:\WINDOWS\Microsoft.NET\Framework\&lt;strong&gt;v1.1.4322&lt;/strong&gt;\gacutil.exe /i SessionUtility.dll.)&lt;br /&gt;&lt;u&gt;Note the v1.1.4322 version there.&amp;nbsp; I could not find a gacutil.exe on my machine for v2.0 or v3.5.&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;I successfully exposed the SessionUtility.dll as a COM object using the regasm.exe.&lt;br /&gt;(C:\WINDOWS\Microsoft.NET\Framework\&lt;strong&gt;v2.0.50727&lt;/strong&gt;\regasm.exe SessionUtility.dll /tlb:SessionUtility.tlb).&lt;/p&gt;
&lt;p&gt;I successfully loaded the Classic ASP page &amp;quot;TestPage.asp&amp;quot; and saw the expected number &amp;quot;1&amp;quot; on the web page.&lt;/p&gt;
&lt;p&gt;I then ran the ASPX page &amp;quot;TestPage.aspx&amp;quot; and received the error: &amp;quot;Could not load type &amp;#39;MSDN.SessionPage&amp;#39;.&amp;quot;&amp;nbsp; I realized that I forgot to make a reference to the SessionUtility.dll in VS 2008 so I went to the &amp;quot;COM&amp;quot; tab in the &amp;quot;Add Reference&amp;quot; dialog, and selected &amp;quot;SessionUtility&amp;quot; (which is pointing to SessionUtility.tlb.)&lt;/p&gt;
&lt;p&gt;When I click the &amp;quot;OK&amp;quot; button to add the reference, I get this error...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A reference to &amp;#39;SessionUtility&amp;#39; could not be added. Converting the type library to a .NET assembly failed.&amp;nbsp; Type library &amp;#39;SessionUtility&amp;#39; was exported from a CLR assembly and cannot be re-imported as a CLR assembly.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I did some searching and found a post or two saying that I should choose &amp;quot;SessionUtility&amp;quot; from the &amp;quot;.NET&amp;quot; tab in the &amp;quot;Add References&amp;quot; dialog box, not from the &amp;quot;COM&amp;quot; tab, but it is not listed on the &amp;quot;.NET&amp;quot; tab.&lt;/p&gt;
&lt;p&gt;What did I do wrong?&amp;nbsp; What am I missing?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: The permissions granted to user 'domain\username' are insufficient for performing this operation. (rsAccessDenied)</title><link>http://forums.asp.net/thread/3501364.aspx</link><pubDate>Mon, 09 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3501364</guid><dc:creator>rashmi_bn</dc:creator><description>&lt;p&gt;thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>