ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Will Asynchronous email will be sent even after Web Page is closed in ASP.Net?<p>Hi,</p> <p>I'd like a suggestion, I read this good Article:</p> <p><a href="http://www.aspsnippets.com/Articles/How-to-send-email-Asynchronously-in-ASPNet-using-Background-Thread.aspx">http://www.aspsnippets.com/Articles/How-to-send-email-Asynchronously-in-ASPNet-using-Background-Thread.aspx</a></p> <p>My Req. is after some event (ie click button) start send email process, but I'd like that user can close also the webpage without waiting the response of sending email.</p> <p>How can I do this, working with webservice or ?</p> <p>Tks&nbsp;</p> <p>Br\Vincenzo</p>http://www.aspforums.net/Threads/750155/Will-Asynchronous-email-will-be-sent-even-after-Web-Page-is-closed-in-ASPNet/http://www.aspforums.net/Threads/750155/Will-Asynchronous-email-will-be-sent-even-after-Web-Page-is-closed-in-ASPNet/Tue, 20 Oct 2015 05:13:21 GMTWhich cache engine is suitable for Asp.net web application<p>i have gone through some articles which state to use cache engine like Redis,memcached</p> <p>but i tried to see the links for this open source cache engines but was not able to install it successfully on windows machine.</p> <p>&nbsp;</p> <p>is there a way to install this on windows properly in the links i was not success full</p> <p>&nbsp;</p> <p><a href="https://www.codeproject.com/Articles/96698/Implementing-Distributed-Caching-using-Memcached">https://www.codeproject.com/Articles/96698/Implementing-Distributed-Caching-using-Memcached</a></p> <p>&nbsp;</p> <p>http://deanhume.com/home/blogpost/memcached-for-c----a-walkthrough/62</p>http://www.aspforums.net/Threads/158532/Which-cache-engine-is-suitable-for-Aspnet-web-application/http://www.aspforums.net/Threads/158532/Which-cache-engine-is-suitable-for-Aspnet-web-application/Fri, 30 Dec 2016 03:32:25 GMTWhat FaultContract in WCF?<p>Hi</p> <p>I am having small clarification in Message and Fault Contract.</p> <p>fault contract is mainly used to handle the exception that happened in service to the consumer of the service. In other words it is used to customize the message in the service and send it to the consumer.</p> <p>My doubt is that why should i go for FaultContract. I can use MessageContract or Even i can put some datamember in the datacontract to store the exception and send it to the application.</p> <p>Hope this is clear. Please let me know if this is not.</p>http://www.aspforums.net/Threads/194788/What-FaultContract-in-WCF/http://www.aspforums.net/Threads/194788/What-FaultContract-in-WCF/Wed, 06 Aug 2014 00:52:09 GMTWhat Asynchronous call in WCF<p>Hi</p> <p>can any one explain me async call in wcf. What is the advantage and how it is used in WCF</p>http://www.aspforums.net/Threads/999938/What-Asynchronous-call-in-WCF/http://www.aspforums.net/Threads/999938/What-Asynchronous-call-in-WCF/Tue, 12 Aug 2014 04:23:50 GMTWeb Service vs ASP.NET Web API and implementing Web API<p>Hi,&nbsp;</p> <p>I am new to web service and Web API.</p> <p>Need to know practicle things which we can do with WEB API and not with web service, which can demonstrate, why we should prefer WEB API over WEB Serveice.</p> <p>&nbsp;</p> <p>Need example except web service using SOAP,XML etc, if any.</p>http://www.aspforums.net/Threads/168546/Web-Service-vs-ASPNET-Web-API-and-implementing-Web-API/http://www.aspforums.net/Threads/168546/Web-Service-vs-ASPNET-Web-API-and-implementing-Web-API/Fri, 30 Sep 2016 02:11:08 GMTweb project Asp.net C# run correctly on my system but it runs another system that time design change<p>web project in asp.net c# working properly on my system(Computer), but this project run on another syatem that time web page design will be change.</p> <p>web page design in the asp.net with &nbsp;css.</p> <p>what can i do for solve this issue ?</p>http://www.aspforums.net/Threads/150616/web-project-Aspnet-C-run-correctly-on-my-system-but-it-runs-another-system-that-time-design-change/http://www.aspforums.net/Threads/150616/web-project-Aspnet-C-run-correctly-on-my-system-but-it-runs-another-system-that-time-design-change/Fri, 20 May 2016 01:43:08 GMTWCF Error Failed to update Service Reference 'WCFService.Reference' There was an error downloading<p>Error1Failed to update Service Reference 'SecurityWCFService.Reference'.Error:There was an error downloading 'http://localhost/SecServiceSite/Service.svc'.The request failed with HTTP status 404: Not Found.Metadata contains a reference that cannot be resolved: 'http://localhost/SecServiceSite/Service.svc'.There was no endpoint listening at http://localhost/SecServiceSite/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.The remote server returned an error: (404) Not Found.(0x80131509)file:///D:/Ram/rajesh/New Folder (2)/Intranet/myAsmara/App_WebReferences/SecurityWCFService/Reference.svcmapD:\...\myAsmara\</p>http://www.aspforums.net/Threads/212904/WCF-Error-Failed-to-update-Service-Reference-WCFServiceReference-There-was-an-error-downloading/http://www.aspforums.net/Threads/212904/WCF-Error-Failed-to-update-Service-Reference-WCFServiceReference-There-was-an-error-downloading/Mon, 13 Oct 2014 01:10:18 GMTWarning: This web reference does not conform to WS-I Basic Profile v1.1. SOAP 1.1 binding was not found:<p>Hi,</p> <p>&nbsp;</p> <p>I want to create a Proxy class file from WSDL which is having Soap12 bindings style. I tried to create that using Wsdl.exe from command prompt. But i received the following error</p> <p>&nbsp;</p> <p><strong>Warning: This web reference does not conform to WS-I Basic Profile v1.1.</strong><br /><strong>SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementat</strong><br /><strong>ion guidelines that recommend how a set of core Web services specifications shou</strong><br /><strong>ld be used together to develop interoperable Web services. For the 1.1 Profile,</strong><br /><strong>those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.</strong></p> <p><strong>For more details on the WS-I Basic Profile v1.1, see the specification</strong><br /><strong>at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.</strong></p> <p><strong>Warning: one or more bindings were skipped.</strong><br /><strong>Warnings were encountered. Review generated source comments for more details.</strong></p> <p><strong><br /></strong></p> <p><strong>so i couldn't create the class file. Please help</strong></p> <p>&nbsp;</p>http://www.aspforums.net/Threads/201910/Warning-This-web-reference-does-not-conform-to-WS-I-Basic-Profile-v11-SOAP-11-binding-was-not-found/http://www.aspforums.net/Threads/201910/Warning-This-web-reference-does-not-conform-to-WS-I-Basic-Profile-v11-SOAP-11-binding-was-not-found/Wed, 26 Feb 2014 09:24:36 GMTUse HttpContext.Current in WCF Service<p>I have created an WCF service for client in ASp.net. However the Response is not getting from POst method. Below is the code snippet:</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">public void Post() { System.Web.HttpContext.Current.Response.Clear(); System.Web.HttpContext.Current.Response.Write(&#34;&lt;html&gt;&lt;head&gt;&#34;); System.Web.HttpContext.Current.Response.Write(string.Format(&#34;&lt;/head&gt;&lt;body onload=\&#34;document.{0}.submit()\&#34;&gt;&#34;, FormName)); System.Web.HttpContext.Current.Response.Write(string.Format(&#34;&lt;form name=\&#34;{0}\&#34; method=\&#34;{1}\&#34; action=\&#34;{2}\&#34; &gt;&#34;, FormName, Method, Url)); for (int i = 0; i &lt; Inputs.Keys.Count; i++) { System.Web.HttpContext.Current.Response.Write(string.Format(&#34;&lt;input name=\&#34;{0}\&#34; type=\&#34;hidden\&#34; value=\&#34;{1}\&#34;&gt;&#34;, Inputs.Keys[i], Inputs[Inputs.Keys[i]])); } System.Web.HttpContext.Current.Response.Write(&#34;&lt;/form&gt;&#34;); System.Web.HttpContext.Current.Response.Write(&#34;&lt;/body&gt;&lt;/html&gt;&#34;); System.Web.HttpContext.Current.Response.End(); } </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/197128/Use-HttpContextCurrent-in-WCF-Service/http://www.aspforums.net/Threads/197128/Use-HttpContextCurrent-in-WCF-Service/Mon, 22 Jun 2015 07:23:35 GMTUpload image using WCF Rest WebService in ASP.Net<p>How to upload and save images as (BLOB) in databse in asp.net using WCF</p> <p>&nbsp;</p> <p>am getting images as bytes in my datatable..but returns error 400 if multiple images selected</p> <pre class="brush: csharp"> DocumentID = int.Parse(Request.QueryString[&#34;DocID&#34;]); byte[] fileData = new byte[file.InputStream.Length]; //Stream streamdata = new MemoryStream(fileData); file.InputStream.Read(fileData, 0, Convert.ToInt32(file.InputStream.Length)); file = getfile.UploadedFiles[filecnt]; if (dtImage == null || dtImage.Rows.Count == 0) { dtImage = new DataTable(); dtImage.Columns.Add(&#34;REQID&#34;); dtImage.Columns.Add(&#34;DocType&#34;); dtImage.Columns.Add(&#34;FileType&#34;); dtImage.Columns.Add(&#34;uploadId&#34;); //dtImage.Columns.Add(&#34;DATA&#34;, typeof(Byte[])); //dtImage.Columns.Add(&#34;DATAstream&#34;, typeof(Stream)); for (int i = 0; i &lt;= 0; i++) { DataRow dtrowtar = dtImage.NewRow(); dtrowtar[0] = DocumentID; dtrowtar[1] = ddlType.SelectedValue.ToString(); dtrowtar[2] = file.GetExtension().ToString(); dtrowtar[3] = 1; dtrowtar[4] = fileData; //dtrowtar[5] = streamdata; dtImage.Rows.Add(dtrowtar); } } else { int DocIndex = dtImage.Rows.Count; dtImage.Rows.Add(); dtImage.Rows[DocIndex][&#34;REQID&#34;] = dtImage.Rows[0][&#34;REQID&#34;]; dtImage.Rows[DocIndex][&#34;DocType&#34;] = ddlType.SelectedValue.ToString(); dtImage.Rows[DocIndex][&#34;FileType&#34;] = file.GetExtension().ToString(); dtImage.Rows[DocIndex][&#34;uploadId&#34;] = int.Parse(dtImage.Rows[DocIndex - 1][&#34;uploadId&#34;].ToString()) + 1; dtImage.Rows[DocIndex][&#34;Data&#34;] = fileData; //dtImage.Rows[DocIndex][&#34;DATAstream&#34;] = streamdata; } } </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/976242/Upload-image-using-WCF-Rest-WebService-in-ASPNet/http://www.aspforums.net/Threads/976242/Upload-image-using-WCF-Rest-WebService-in-ASPNet/Tue, 03 Dec 2013 00:36:17 GMTUpload Image file using Web Service in ASP.Net<p>Hello,</p> <p>I want web service which will upload images (.jpeg, .jpg, .png) on server and this web service will call by android app, I am using web service <strong>not</strong> WCF.</p>http://www.aspforums.net/Threads/211932/Upload-Image-file-using-Web-Service-in-ASPNet/http://www.aspforums.net/Threads/211932/Upload-Image-file-using-Web-Service-in-ASPNet/Tue, 01 Sep 2015 04:36:17 GMTUpload file using Web Service in ASP.Net<p>Hello,</p> <p>I have one web method and I want to upload file on server using this method please guide me how to implement it.</p>http://www.aspforums.net/Threads/150920/Upload-file-using-Web-Service-in-ASPNet/http://www.aspforums.net/Threads/150920/Upload-file-using-Web-Service-in-ASPNet/Mon, 24 Aug 2015 04:46:21 GMTService Oriented Architecture with WCF<p>I want to secure my WCF services from unauthorized access. I am using ASP MVC as a front end to access my WCF services. Can I encrypt my services URL in JS file? And how I maintain the state management. I am calling my services directly through AJAX call and I am avoiding Model and Controller (using only for redirections from menu). What is the best approach to create SOA?<img src="file:///C:/Users/khabib/Desktop/arch.png" alt="Arch" /></p>http://www.aspforums.net/Threads/785316/Service-Oriented-Architecture-with-WCF/http://www.aspforums.net/Threads/785316/Service-Oriented-Architecture-with-WCF/Mon, 28 Mar 2016 02:11:31 GMTSend email using web application like Contact Us page in ASP.Net<p>how can the user send their requirement via email using my web application in asp.net...user must send mail to the mail account which associated with a Gmail account in my site......</p> <p>Dear i have a site ...on my site, there is three textbox&nbsp;</p> <p>1."From" in this box user need to write his mail id.</p> <p>2."Subject" what he/she is going to send me&nbsp;</p> <p>3. "Message Box"</p> <p>4.And a button called "Send"</p> <p>user type their mail id , subject and message and then user click on the button and the mail will come to my email is which is attached&nbsp;to my site</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/167019/Send-email-using-web-application-like-Contact-Us-page-in-ASPNet/http://www.aspforums.net/Threads/167019/Send-email-using-web-application-like-Contact-Us-page-in-ASPNet/Wed, 20 Jul 2016 03:52:15 GMTHow to use Session in Web Service web method in ASP.Net<p>sir i am following one of your links:</p> <p><a href="http://www.aspforums.net/Threads/184700/Assign-JavaScript-variable-value-to-ASPNet-Session-variable-using-JQuery-AJAX/">http://www.aspforums.net/Threads/184700/Assign-JavaScript-variable-value-to-ASPNet-Session-variable-using-JQuery-AJAX/</a></p> <p>&nbsp;</p> <p>But this concept is not working in master page, i have kept the script in the master page and calling the function in the content page link button OnClientClick. Function gets called, but its not calling the webservice method, i have just replaced one line:</p> <p>Kindly suggest, bit urgent.</p> <p>url: "CS.aspx/SetSession",<br /><br />with<br /><br />url: 'WebService.asmx/SetSession',</p>http://www.aspforums.net/Threads/188104/How-to-use-Session-in-Web-Service-web-method-in-ASPNet/http://www.aspforums.net/Threads/188104/How-to-use-Session-in-Web-Service-web-method-in-ASPNet/Sun, 07 Sep 2014 23:21:58 GMTHow to set page as default page in web application c# and open that page while using URL Routing<p>I am creating new web application asp.net c# project. Now in there i am using url routing. The basic url would be while developement is <strong>localhost/VAEBS</strong> . Now i want that whenever <strong>www.VAEBS.com</strong> or <strong>localhost/VAEBS</strong> is opened in browser it must open my login page, like this <strong>localhost/VAEBS/LoginScreen</strong> . Yet it is openeing login screen on typing <strong>localhost/VAEBS</strong> , but it is not showing LoginScreen text in url , which needs to be like this <strong>localhost/VAEBS/LoginScreen</strong></p>http://www.aspforums.net/Threads/102761/How-to-set-page-as-default-page-in-web-application-c-and-open-that-page-while-using-URL-Routing/http://www.aspforums.net/Threads/102761/How-to-set-page-as-default-page-in-web-application-c-and-open-that-page-while-using-URL-Routing/Tue, 24 May 2016 09:16:15 GMTHow to secure and hide WCF (Rest) service Parameters when passing through URL in ASP.Net<p>how to provide security in wcf rest because we will send the values in url here user can able to see and modify. we need to provide security for this how to do in wcf rest give me any article related to this?</p>http://www.aspforums.net/Threads/701979/How-to-secure-and-hide-WCF-Rest-service-Parameters-when-passing-through-URL-in-ASPNet/http://www.aspforums.net/Threads/701979/How-to-secure-and-hide-WCF-Rest-service-Parameters-when-passing-through-URL-in-ASPNet/Thu, 03 Jul 2014 06:34:56 GMTHow To refresh web page automatically like (Cricinfo Website)<p>Hello EveryOne</p> <p>I have a question i want to refresh my web page automatically like cricinfo website. I know he timer logic but the requirement of the client restrict me to avoid the timer logic. Anyone know any solution or any third party tool.&nbsp;</p> <p>Thanks in advance</p>http://www.aspforums.net/Threads/749696/How-To-refresh-web-page-automatically-like-Cricinfo-Website/http://www.aspforums.net/Threads/749696/How-To-refresh-web-page-automatically-like-Cricinfo-Website/Mon, 11 Apr 2016 07:29:01 GMTRefresh an open web page when a button on another open web page is clicked.<p>I'm attempting to have an open web page (DISPLAY page) automatically refresh the whenever a button on another open page (CREATE page) is clicked.</p> <p>To achieve this, I tried to&nbsp;create a global flag of type public static int that will change value to 1 whenever the CREATE page's button is clicked.</p> <pre class="brush: csharp">//CREATE page page load event handler protected void Page_Load(object sender, EventArgs e) { globals.CREATEClickFlag = 0;//reset the CREATE click flag upon page reload }</pre> <p>The flag's value will revert back to it's original value of 0 when the DISPLAY page refreshes.</p> <pre class="brush: csharp">//DISPLAY page page load event handler protected void Page_Load(object sender, EventArgs e) { globals.CREATEClickFlag = 0;//reset the CREATE click flag upon page reload globals.CREATEClickFlag = 0;//reset the EDIT Click flag when the page loads }</pre> <p>I then have a timer element on the DISPLAY page that ticks every second to update the value of the flag. The updated value is stored in the value tag of a hidden input html element.</p> <pre class="brush: html">&lt;!--HTML elements in DISPLAY page--&gt; &lt;asp:Timer ID=&#34;Timer1&#34; runat=&#34;server&#34; EnableViewState=&#34;False&#34; Interval=&#34;1000&#34; OnTick=&#34;Timer1_Tick&#34;&gt;&lt;/asp:Timer&gt; &lt;input type=&#34;hidden&#34; runat=&#39;server&#39; id=&#34;CREATEClickFlagHE&#34; value=&#34;&#34; /&gt; &lt;input type=&#34;hidden&#34; runat=&#39;server&#39; id=&#34;EDITClickFlagHE&#34; value=&#34;&#34; /&gt;</pre> <pre class="brush: csharp">protected void Timer1_Tick(object sender, EventArgs e) { CREATEClickFlagHE.Value = globals.CREATEClickFlag.ToString(); EDITClickFlagHE.Value = globals.EDITClickFlag.ToString(); }</pre> <p>This hidden element is used in an event listener js function</p> <pre class="brush: js">&lt;script type=&#34;text/javascript&#34;&gt; document.getElementById(&#34;CREATEClickFlagHE&#34;).addEventListener(&#34;change&#34;, function () { if (this.value == &#34;1&#34;) { location.reload();} }) document.getElementById(&#34;EDITClickFlagHE&#34;).addEventListener(&#34;change&#34;, function () { if (this.value == &#34;1&#34;) { location.reload(); } }) &lt;/script&gt;</pre> <p>However I get a compile error that a ScriptManager is required before the Timer element in html when I try to build the solution. How do I configure the ScriptManager for this purpose to ensure the refresh on click works?</p> <p>Alternatively, is there a more efficient &amp; less convoluted way of refreshing the DISPLAY page when a button on the CREATE page is clicked?</p>http://www.aspforums.net/Threads/118081/Refresh-an-open-web-page-when-a-button-on-another-open-web-page-is-clicked/http://www.aspforums.net/Threads/118081/Refresh-an-open-web-page-when-a-button-on-another-open-web-page-is-clicked/Tue, 10 Jan 2017 00:45:01 GMTPass parameters to Web API in ASP.Net<p>How to sending Parameter or Request to Web API When It is Hosted onLine?</p>http://www.aspforums.net/Threads/158237/Pass-parameters-to-Web-API-in-ASPNet/http://www.aspforums.net/Threads/158237/Pass-parameters-to-Web-API-in-ASPNet/Tue, 09 Sep 2014 03:21:55 GMT