<?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 'form'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=form&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'form'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>c# search function? add friend function?</title><link>http://forums.asp.net/thread/3592833.aspx</link><pubDate>Fri, 01 Jan 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3592833</guid><dc:creator>ahxian</dc:creator><description>&lt;p&gt;

I need to create something which is like an Add friend function in my website which works like this:
&lt;/p&gt;&lt;p&gt;&lt;b&gt;1) User types in name of the person he wants to search in the search field and clicks enter
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;2) on the same page, the search result will come out with an &amp;quot;add friend&amp;quot; button beside every name
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;3) when the user clicks the &amp;quot;add friend&amp;quot; button, he will be brought to another page (or pop up with a message box?) with a text message field to send to the friend, and a submit button to submit the friend request. 
&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;4) over at the Friend&amp;#39;s page, he will be able to view the add friend request and decide whether to accept or deny the friend request. &lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;

How do i go about doing this? any one help or provide me some guide or advice please? 

Any help will be appreaciated. Thanks!

&lt;/p&gt;</description></item><item><title>Passing parameters from View to Controller</title><link>http://forums.asp.net/thread/3581152.aspx</link><pubDate>Wed, 23 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3581152</guid><dc:creator>BrianFan</dc:creator><description>&lt;p&gt;How do you pass values from a&amp;nbsp;View to a Controller?&amp;nbsp; I have an Html.DropDownList&amp;nbsp;in a view, and need to get the selected value/text back to the controller.&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt; &amp;lt;% using (Html.BeginForm(&amp;quot;FileUpload&amp;quot;, &amp;quot;Admin&amp;quot;, 
                    FormMethod.Post, new { enctype = &amp;quot;multipart/form-data&amp;quot; }))
        {%&amp;gt;
        &amp;lt;div class=&amp;quot;padded&amp;quot;&amp;gt;&amp;lt;%= Html.DropDownList(&amp;quot;UploadOptions&amp;quot;) %&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;fieldset&amp;gt;
        &amp;lt;legend&amp;gt;Browse for a file&amp;lt;/legend&amp;gt;
        &amp;lt;input name=&amp;quot;uploadFile&amp;quot; type=&amp;quot;file&amp;quot; size=&amp;quot;40&amp;quot; /&amp;gt;
        &amp;lt;/fieldset&amp;gt;
        &amp;lt;hr /&amp;gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;
&amp;lt;%} %&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt; public class AdminController : Controller
    {
        bool _wasSuccess;
        //
        // GET: /Admin/

        public ActionResult Admin()
        {
            return View();
        }

        public ActionResult Success()
        {
            return View();
        }

        public ActionResult Error()
        {
            return View();
        }

        public ActionResult UploadData()
        {
            ViewData[&amp;quot;UploadOptions&amp;quot;] = new SelectList(new [] {&amp;quot;--Select A Document Type--&amp;quot;, &amp;quot;DDRT&amp;quot;, &amp;quot;AKZ&amp;quot;});
            return View();
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult FileUpload(HttpPostedFileBase uploadFile)
        {
            _wasSuccess = true;
            try
            {
                if (uploadFile.ContentLength &amp;gt; 0)
                {
                    string filePath = Path.Combine(HttpContext.Server.MapPath(&amp;quot;../Uploads&amp;quot;),
                        Path.GetFileName(uploadFile.FileName));
                    uploadFile.SaveAs(filePath);
                }
            }
            catch (Exception ex) { _wasSuccess = false; }

            if (_wasSuccess == true)
                return View(&amp;quot;Success&amp;quot;);
            else
                return View(&amp;quot;Error&amp;quot;);
        }
    }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Purchase Order Form</title><link>http://forums.asp.net/thread/3493577.aspx</link><pubDate>Wed, 04 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3493577</guid><dc:creator>Yanayaya</dc:creator><description>&lt;p&gt;Sorted the problem now, so the&amp;nbsp;DDL is now working perfectly.&lt;/p&gt;
&lt;p&gt;The only remaining item is this &amp;quot;shopping cart&amp;quot;&amp;nbsp;which is effectivly a grid view that allows users to add stockm to it, change the amount they want and the grid gives the total value.&lt;/p&gt;
&lt;p&gt;I looked at the examples that where linked previously and most of them were good the only problem is that they use cost values built into the DDL.&amp;nbsp; What I need is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Items stored in a SQL table with cost values.&lt;/li&gt;
&lt;li&gt;Items&amp;nbsp;can be added to the PO&amp;#39;s gridview from a pop up window.&lt;/li&gt;
&lt;li&gt;Change the quantity of those items once they are in the gridview.&lt;/li&gt;
&lt;li&gt;Gridview&amp;nbsp;will work out the total of all items added.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The guides that were linked show you how to make a basic shopping cart, but this is for a purchase order so it all gets a little more complicated, especially seeing as the stock items are stored in a table.&lt;/p&gt;</description></item><item><title>Persisting form fields to dB</title><link>http://forums.asp.net/thread/3468371.aspx</link><pubDate>Tue, 20 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3468371</guid><dc:creator>aneasytorememberid</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have forms and I am crrently using Session to save the data. But I want to save every field that user enters into a db.&lt;/p&gt;&lt;p&gt;Is there any existing feature in asp.net that I can use. The user should be able to come to any form ( using next/ previous buttons)&lt;/p&gt;&lt;p&gt;and change any value ( this change should be propagated in db)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What is the most efficient way of doing this?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Authentication Forms: No exact match found</title><link>http://forums.asp.net/thread/3464837.aspx</link><pubDate>Mon, 19 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3464837</guid><dc:creator>miha198206</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have the issue “No exact match found” when using People Picker in&amp;nbsp;Windows Sharepoint Services&amp;nbsp;with Forms Authentication.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve try to add ASP.NET membership user to sharepoint in internal website as well as in SP Central Administration. But has the error “No exact match found”.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are the changes I did in internal website web.config:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;connectionStrings&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;AcSqlConnString&amp;quot; connectionString=&amp;quot;server=692COFTBALLWSSV\SQLEXPRESS;database=AcAspNetDB;Integrated Security=SSPI;&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;lt;!-- membership provider --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;membership defaultProvider=&amp;quot;AcAspNetSqlMembershipProvider&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add connectionStringName=&amp;quot;AcSqlConnString&amp;quot; enablePasswordRetrieval=&amp;quot;false&amp;quot; enablePasswordReset=&amp;quot;true&amp;quot; requiresQuestionAndAnswer=&amp;quot;false&amp;quot; applicationName=&amp;quot;/&amp;quot; requiresUniqueEmail=&amp;quot;false&amp;quot; passwordFormat=&amp;quot;Hashed&amp;quot; maxInvalidPasswordAttempts=&amp;quot;5&amp;quot; minRequiredPasswordLength=&amp;quot;1&amp;quot; minRequiredNonalphanumericCharacters=&amp;quot;0&amp;quot; passwordAttemptWindow=&amp;quot;10&amp;quot; passwordStrengthRegularExpression=&amp;quot;&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/membership&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- role provider --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;roleManager enabled=&amp;quot;true&amp;quot; defaultProvider=&amp;quot;AspNetWindowsTokenRoleProvider&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add connectionStringName=&amp;quot;AcSqlConnString&amp;quot; applicationName=&amp;quot;/&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/roleManager&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;There are the changes I did in Central Administration web.config:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;connectionStrings&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;AcSqlConnString&amp;quot; connectionString=&amp;quot;server=692COFTBALLWSSV\SQLEXPRESS;database=AcAspNetDB;Integrated Security=SSPI;&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;lt;!-- membership provider --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;membership defaultProvider=&amp;quot;AcAspNetSqlMembershipProvider&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add connectionStringName=&amp;quot;AcSqlConnString&amp;quot; enablePasswordRetrieval=&amp;quot;false&amp;quot; enablePasswordReset=&amp;quot;true&amp;quot; requiresQuestionAndAnswer=&amp;quot;false&amp;quot; applicationName=&amp;quot;/&amp;quot; requiresUniqueEmail=&amp;quot;false&amp;quot; passwordFormat=&amp;quot;Hashed&amp;quot; maxInvalidPasswordAttempts=&amp;quot;5&amp;quot; minRequiredPasswordLength=&amp;quot;1&amp;quot; minRequiredNonalphanumericCharacters=&amp;quot;0&amp;quot; passwordAttemptWindow=&amp;quot;10&amp;quot; passwordStrengthRegularExpression=&amp;quot;&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/membership&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- role provider --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;roleManager enabled=&amp;quot;true&amp;quot; defaultProvider=&amp;quot;AspNetWindowsTokenRoleProvider&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add connectionStringName=&amp;quot;AcSqlConnString&amp;quot; applicationName=&amp;quot;/&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/roleManager&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The internal website and Central Administration are working in the application pools which has identity of administrator of the server. Administrator of the server has access rights to database with ASP.NET membership. Also administrator of the server is in &amp;quot;site collection administrators&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What should I do more to fix this issue?&lt;/p&gt;</description></item><item><title>Adjust mobile screensize automaticly to form</title><link>http://forums.asp.net/thread/3457207.aspx</link><pubDate>Wed, 14 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3457207</guid><dc:creator>arnoldzw</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;First of al, Sorry for my bad englisch!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I`m creating a simple mobile website in ASP.NET and i want to adjust the screensize automaticly to the form.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;with the mobile.browser file i get the screen pixels size from the different mobile devices with are defined in the mobile.browser file.&lt;/p&gt;&lt;p&gt;&amp;quot;ScreenWidth = Request.Browser.ScreenPixelsWidth&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;quot;ScreenHeight = Request.Browser.ScreenPixelsHeight&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This works, and i get the screen sizes back. (tried it with an HTC and an iPhone)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;How can i adjust this ScreenWidth en ScreenHeight to the form, so it automaticly fits to any mobile device? (also at an iPhone)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have tried it with:&amp;nbsp;&amp;nbsp;&amp;nbsp; form1.Style.Value = &amp;quot;width: &amp;quot; &amp;amp; ScreenWidth &amp;amp; &amp;quot;px; height: &amp;quot; &amp;amp; ScreenHeight &amp;amp; &amp;quot;px&amp;quot;&lt;/p&gt;&lt;p&gt;But this isn`t working, who can advice me?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks!!&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;</description></item><item><title>POST XML Data from ASP form?</title><link>http://forums.asp.net/thread/3434872.aspx</link><pubDate>Thu, 01 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3434872</guid><dc:creator>FthrJACK</dc:creator><description>&lt;p&gt;Hi, im trying to make a form for a page im building. But as someone who doesent normally make webpages with .net (i live in windows forms land) im in a bit of a muddle. &lt;/p&gt;
&lt;p&gt;what i need to do is have a user fil the form in, the form then posts their info to SQL server (already got this working) Then on the &amp;quot;thankyou&amp;quot; page i need to have the page pull that same data back with the Unique ID from SQL (so im guessing post back) Then using the data from SQL send the data as XML to a 3rd party site and wait for the response. &lt;/p&gt;
&lt;p&gt;if &amp;quot;ok&amp;quot; then - end, otherwise tell the user to try again etc. &lt;/p&gt;
&lt;p&gt;Im struggling with the SQL bit (i figured stored procedure was the way to go), and im not sure if im going about all this in the right way. Ive used a query to pull data out as XML on my SQL server, but it pulls loads of records back not one - if i try use an @UniqueID it errors. Also the SQL generated is all on one line and needs line breaks and stuff, so im guessing i need to use FOR XML EXPLICIT ? &lt;/p&gt;
&lt;p&gt;The SQL needs to follow these rules, as taken from the sheet i was sent:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;You must introduce the line breaks between the logical XML lines, otherwise the POST will fail returning the &amp;#39;XML FORMAT ERROR&amp;#39; error message. In PHP this can be done by creating your XML data string ($xmlString in this example) like this: 
$xmlString = &amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;iso-8859-1\&amp;quot; standalone=\&amp;quot;yes\&amp;quot;?&amp;gt;\n&amp;lt;info&amp;gt;\n&amp;lt;field&amp;gt;\n&amp;lt;ID&amp;gt;YourIDHere&amp;lt;/ID&amp;gt;\n&amp;lt;Title&amp;gt;&amp;lt;![CDATA[Mr]]&amp;gt;&amp;lt;/Title&amp;gt;\n&amp;lt;FirstNames&amp;gt;&amp;lt;![CDATA[Fred]]&amp;gt;&amp;lt;/FirstNames&amp;gt;\n&amp;lt;Surname&amp;gt;&amp;lt;![CDATA[Bloggs]]&amp;gt;&amp;lt;/Surname&amp;gt;\n etc. for rest of fields..... \n&amp;lt;/field&amp;gt;\n&amp;lt;/info&amp;gt;&amp;quot;;

Notice that in PHP the &amp;#39;\n&amp;#39; codes introduced between the logical lines of XML produce the line breaks required for our system to be able to read your POSTed data. &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Can anyone shed any light on this at all? im sure theres a better way of going about it.&lt;/p&gt;</description></item><item><title>ShowDialog in WebPage</title><link>http://forums.asp.net/thread/3432709.aspx</link><pubDate>Wed, 30 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3432709</guid><dc:creator>punnanthomas</dc:creator><description>&lt;p&gt;&amp;nbsp;How can I create a Windows ShowDialog() feature in asp.net web page&lt;/p&gt;</description></item><item><title>Pass label values to a string by selecting add item</title><link>http://forums.asp.net/thread/3434147.aspx</link><pubDate>Wed, 30 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3434147</guid><dc:creator>tous0024</dc:creator><description>&lt;p&gt;&amp;nbsp;Group,&lt;/p&gt;
&lt;p&gt;I am trying to build a form that will let me enter a quantity (txtQty), Stock Code (txtStockCode), a formview label that displays unit price, dropdown list (ddDiscount)&amp;nbsp;to select a discount, and then a total column (lblTotal) which is calculated by txtQty * UnitPrice * ddDiscount.&lt;/p&gt;
&lt;p&gt;I have all of that working, but now what I want to do is be able to click a buttion (+ Add) which will take all the values currently in the fields and pass them to a string and display the string below.&amp;nbsp; Ultimately looking something up adding it to the form, then looking up another item adding that to the form etc.&lt;/p&gt;
&lt;p&gt;Basically looking up items and then adding them one by one to build a quote.&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated!&lt;/p&gt;</description></item><item><title>Run throught all form fields and enable or disable it ???</title><link>http://forums.asp.net/thread/3368301.aspx</link><pubDate>Tue, 25 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3368301</guid><dc:creator>zopostyle</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi, I tried to do that but it&amp;#39;s not working, it&amp;#39;s only check, scriptmanager, updatepanel, contentpane and exit...&lt;/p&gt;
&lt;p&gt;I tried with this code&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt; private void bloquear_campos(bool bloquear)
        {
            foreach (Control ctl in this.form1.Controls)
            {
                if (ctl.ID != null)
                {
                    if (&amp;quot;btnAlterar;btnVoltar;btnSalvar;btnCancelar;btnInserir;btnApagar&amp;quot;.IndexOf(ctl.ID) &amp;lt; 0)
                    {
                        switch (ctl.GetType().ToString())
                        {
                            case &amp;quot;DropDownList&amp;quot;:
                                ((DropDownList)ctl).Enabled = !bloquear;
                                break;
                            case &amp;quot;TextBox&amp;quot;:
                                ((TextBox)ctl).Enabled = !bloquear;
                                break;
                            case &amp;quot;CheckBox&amp;quot;:
                                ((CheckBox)ctl).Enabled = !bloquear;
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
        }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>