Hello I do it with "for" and not with event(s) and this way is not a good solution for(int i....){ }
aref87
Posts
-
DataGrid and poibt to new added recodr -
DataGrid and poibt to new added recodrHello I add a record to a table with a web service I use a winform for calling this web service now, my question: when new record added, i want the datagrid points to new record if there is a link about my question, plese put it herer thanks
-
How do i use from a proxy class?I saw an article about "Consuming SOAP web services - Amazon, Google et al" in "http://www.codeproject.com/KB/cpp/bwcswebservicearticle.aspx" a part of code is: using System; using System.IO; class WSConsumer { public static void Main() { Fortune f = new Fortune(); Console.WriteLine( f.getFortune() ); } }; But i did not that how do i use from a proxy class? -this code should be in server side or client side? please help me
-
heavy weight Grid services and light weight Grid servicesi did not underestat!:confused:
-
heavy weight Grid services and light weight Grid servicesHello 1-what is the meaning of "heavy weight Grid services"? 2- what differences are between "heavy weight Grid services" and "light weight Grid services"? 3-what are the uses of them? THANKS
-
difference between a Web service and a Web site?hello What is the difference between a Web service and a Web site?
-
ReDim Preserve data(totalBytesRead + dataBlock) to C#hello i used from Array.Resize,but i could not arrange its arguments please help me that how can i arrange its arguments? thanks public byte[] ExtractBytesFromStream(Stream stream, int dataBlock) { int totalBytesRead = 0; byte[] data; try { while (true) { Array.Reverse(data, totalBytesRead, dataBlock);? Array.Resize(data, totalBytesRead + dataBlock);? int bytesRead = stream.Read(data, totalBytesRead, dataBlock); if (bytesRead == 0) { break; // TODO: might not be correct. Was : Exit While } totalBytesRead += bytesRead; } Array.Reverse(data, -1, totalBytesRead); return data; } catch(Exception ex) { MessageBox.Show(ex.Message); return null; } }
-
ReDim Preserve data(totalBytesRead + dataBlock) to C#hello i can not convert ReDim Preserve data(totalBytesRead + dataBlock) to C#
-
compressHello when i use from using ICSharpCode.SharpZipLib or using ICSharpCode.SharpZipLib.zip and then when i want to produce dll file ,i go to following path: D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and i produce dll file from this code: csc /t:library /r:System.dll,System.Web.dll D:\inetpub\wwwroot\myApp\App_Code\HttpCompression.cs but i get this error: there is not ICSharpCode.SharpZipLib.zip But i add ICSharpCode.SharpZipLib.dll to my project and put it to bin folder.
-
compressHello Is there one who help me? with thanks
-
compressHello I want to use compressing of message for my weservice. I want a dataset that it is full of orders table of Northwind,then i want send it to client compressin. I tried with 2 ways the first way is in this address:[it is vb.net and i converted to C#] http://www.dotnetjunkies.com/PrintContent.aspx?type=tutorial&id=46630AE2-1C79-4D5F-827E-6C2857FF1D23 the second way is in this address: http://www.barnamenevis.org/forum/showthread.php?t=55129&page=1 that the second address is codes that you saw in my post in codeproject. i tried very much for getting a true answer about compressing,but non of the above could guid me to a true result. it seems that i have lost true way for getting a good result , and i want anyone help me.
-
compresshello i do not underestant your question what is your SCOPE?
-
compressHello I use from a compress C# code in HttpCompression.cs and i use from two methods in sercice.cs one for before compress other for after compress DO I do it true? also i added HttpCompression.dll to web.config type="Behrouz.Compression.HttpCompression, HttpCompression"/> C# code for compress: its file is HttpCompression.cs using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.Services.Protocols; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Microsoft.VisualBasic; using System.IO; using System.IO.Compression; using Microsoft.CSharp; /// <summary> /// Summary description for HttpCompression /// </summary> namespace Behrouz.Compression { public class HttpCompression : IHttpModule { //public HttpCompression() // { // // TODO: Add constructor logic here // // } void IHttpModule.Dispose() { } void IHttpModule.Init(System.Web.HttpApplication context) { context.BeginRequest += this.onZip; } public void onZip(object sender, EventArgs e) { HttpApplication app = (HttpApplication)sender; string encodings = app.Request.Headers.Get("Accept-Encoding"); if (encodings == null) return; Stream baseStream = app.Response.Filter; encodings = encodings.ToLower(); if ((encodings.Contains("gzip"))) { app.Response.Filter = new GZipStream(baseStream, CompressionMode.Compress); app.Response.AddHeader("Content-Encoding", "gzip"); } else if (encodings.Contains("deflate")) { app.Response.Filter = new DeflateStream(baseStream, CompressionMode.Compress); app.Response.AddHeader("Content-Encoding", "deflate"); } } } } C# code in server side: its file is service.cs sing System; using System.Web; using System.Web.Services; using System.Data; using System.IO.Compression; using System.Data.SqlClient; using System.Web.Services.Protocols; using Behrouz.Compression; [We
-
Improve XML Web Services' Performance by Compressing SOAP into C# langugeHello I converted vb.net to C#,I thank you about your help. also,i tried about programming. this result is: I produced two classes 1-class1 2-myextension in main web service project according to the following link: http://www.dotnetjunkies.com/PrintContent.aspx?type=tutorial&id=46630AE2-1C79-4D5F-827E-6C2857FF1D23 and put following code in webservice.cs,but after debuging ,i did not see anything,but in Form1 in "Improve XML Web Services' Performance by Compressing SOAP's Figure 2 " there is a pictuer with a datagrid that shows orders table from Nortwind. also i used from #ZipLib . what is [webmethod] in this project? using System; using System.Web; using System.Web.Services; using System.Data; using System.Data.SqlClient; using System.Web.Services.Protocols; using System.Configuration; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.ComponentModel; using System.Diagnostics; using System.Xml.Serialization; using ClientSoapExtension; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Diagnostics.DebuggerStepThroughAttribute(), System.ComponentModel.DesignerCategoryAttribute("code"), System.Web.Services.WebServiceBindingAttribute(Name = "Service1Soap", Namespace = "http://tempuri.org/")] public class Service : System.Web.Services.Protocols.SoapHttpClientProtocol { public Service ():base() { //Uncomment the following line if using designed components //InitializeComponent(); } [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/getproducts", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped), ClientSoapExtension.myextensionattribute()] public System.Data.DataSet getproducts() { object[] results = this.Invoke("getproducts", new object[-1 + 1]); return (System.Data.DataSet)results[0]; } public System.IAsyncResult Begingetproducts(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("getproducts", new object[-1 + 1], callback, asyncState); } public System.Data.DataSet Endgetproducts(System.IAsyncResult asyncResult) { object[] results
-
Improve XML Web Services' Performance by Compressing SOAP into C# langugehello thank you i want anyone,if it possible,to write this c# code
-
Improve XML Web Services' Performance by Compressing SOAP into C# langugehello i finded this link about this subject http://www.dotnetjunkies.com/PrintContent.aspx?type=tutorial&id=46630AE2-1C79-4D5F-827E-6C2857FF1D23 but its language is not C#. i searched this subject into C#, but i did not find C# code about it. pleses help me. thanks
-
server farm and role of web service in tiHello Ok. i tried,but i coulde not find what i want. what i want is: a web service that it is a module in a server farm. this solution is complete software and the best solution for load balancing on servers. but i can not find this subject exacthy.
-
server farm and role of web service in tiHello i thank you about your help. i saw these links , but they are not my statement. when we are talking about problems of load distribution on web servers,there are some solutions for solving load distribution such as: 1-DNS 2-hardware ways 3-software ways 4-hard and software ways and the newest and the best solution is a complete software way. in this architecture there are 4 modules: 1-directing to load 2-distributor load servers 3-web services 4-.... now, i want an article or site(s) about this. with thanks
-
server farm and role of web service in tihello what is server farm and what is the role of web service in it? i want link(s) about it for research. thanks
-
How can I use From 2 2 weather webservicesHow ?hello I know them,but i do not know how using them. I want help about them. thank you