Answer Questions
Gunnar Adler WebUSerControl
Hi, I need some help to create a web user control, following is the Scenario: WebUserUontrol.ascx file: 1 text box, 1 button control I want to create a control which will accept color value from textbox and onclick event of the button control it will change the back color of the page on which that control is being consumed. Value of the color property should come from textbox example: red, green etc. Suppose control is WebUserUontrol.ascx and web form is webPage.aspx, when the control will be used on the web page it should function as describe above. For this purpose I also want to use properties in the webusercontrol. Looking forward for the valuable responce. Regards, Kapil ...Show All
RobbieJ SMTP Mail without SMTP Service
I have a requirement for an email program to send SMTP mail without having IIS (and therefore no SMTP service) installed on work stations. I found a nice solution to this at http://www.eggheadcafe.com/articles/20030316.asp . I modified the code to fit my needs and it works. However I have a couple of issues. One: How do I cause the SMTP server to send out delivery notifications on failure and success This is pretty easy using the DeliveryNotificationOptions of the System.Net.Mail.MailMessage class. But of course I am not using this. Two: How do I send authentication or system credentials to the SMTP server Again, this is pretty simple using the System.Net.Mail.Message class. Example code: IPHostEntry IPhst = Dns .GetHost ...Show All
Crofty TCP Slow-Start
Hi folks, This might not be the best place for this question but I am struggling to find a better forum. How do you disable the TCP Slow-Start function on a Windows Server Regards To the best of my knowledge TCP slow start is required to be in place in order for the TCP congestion mechanisms to work and a stack to be considered RFC compliant. See the "TCP/IP Implementation" whitepaper available via search on Microsoft.com for further details. You can however disable Nagle's algorithm via a socket option. Is that what you were after If not, why do you want to disable slow start ...Show All
Ģ&#174&#59;€ğ&#167&#59;QĻ There is already an open DataReader associated with this Command which must be closed first.
I have a rather large ASP-NET-2.0 project that I've been developing for some time. I'm using System.Data.Common classes for all of my data access, and SQL-2005 as my provider. Up to and including Beta-2, everything was working just fine and dandy. Then, with the release of RC1, I suddenly started to get the following error:: There is already an open DataReader associated with this Command which must be closed first. This totally threw me, but I dutifuly started to trace all of my connections & readers to make sure I was closing & disposing of them properly, and all appears to be correct. After a bunch of tedious and very time-consuming debugging, I've come to the conclusion that from RC1 onwards, the framework is not correctly ...Show All
AlexBB Error trying when remoting to a external server
Hi everyone; I’m creating a remote object using remoting, when I test the application into my LAN it executes correctly, but when I try to connect it to an external server, I get next error: System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn on customErrors in the server's .config file. I’m creating the channel connection programatically without a config file and always get the same error. I was searching a solution without sucess. I hope somebody can assistance me. Thanks; Did you try enabling custom errors on the server and see what exception the server is returning. Then post the stack trace here as without info on the exceptio ...Show All
Buck Hodges date in the sql query
I have an access db with two short date fields and in my vb.net application I need to display in a dgw the data between two chosed values. Every time I try the "Data type mismatch in criteria expression" appears. I use two Datatimepicker formated as Short. In the database the field are also formated as Short Date. What could be the reason for that Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection("Provider = Microsoft.Jet.OleDb.4.0;Data Source=C:\Maint.mdb") Dim cmd As New OleDb.OleDbCommand Dim cmda As OleDb.OleDbDataAdapter Dim dset As New DataSet 'Dim cb As OleDbCom ...Show All
peansen String.Compare with Unicode characters
I am trying to sort a list of Greek Unicode strings, but I can't get the .NET framework to correctly sort or compare the accented vowels. For example String.Compare(" "," ") // or String.Compare("\u1f00","\u1f30"); always returns 0 and String.Compare(" ","α") always returns -1 regardless of the Culture information (current, invariant, Greek) I use in the other arguments of the Compare function. Is there a way to make the first comparison return a negative number Do you think it is related to the implemenation of the CLI I haven't tried it but what does a native API call return Or you can also use the suggestion i made if you are running o ...Show All
dmbrubac Parsing double value from a string
Hi all, I need to parse a string which is in the following format (example): -0.0004 USD/Tonnes Basically, it will be a double value, might be preceded by the negative (-) sign and followed by <Currency>/<Unit of Measure> . The result should be just the double value (with the sign if its there), as in the above example, it should translate to -0.0004 I wanted to know if there is an easy way of doing it in C#, like using the Double.Parse() or the string.Format() methods (I tried them both but couldn't get them to work) Or do I have to parse the string character-by-character to get the required result Thanks in advance, MadMonk P.S.: Apologies if its a silly question, I'm still a newbie in .NET ...Show All
Narayanan Dayalan displaying a windows form from inside an asynchronous method(thread) ??
Hi, I am listening to HTTP using sockets on some port where the browser sends data. I want to display the HTTPRequests to the user I send it to the server. The problem is that I am calling a Windows Form inside the asynchronous operation and it is not displaying the form. here is the code. I have tried to use put the "frm.show" method in a separate method and call it asynchronously but still not working. Can anyone please modify this code. All I want is that if TrapRequest is true then it should display another Form to the user where he can see the HTTPRequest and untill the user clicks on some button at that form, this method should not go further. I mean the current thread should block, show the form to user, takes input fro ...Show All
Shaantu .NET HttpRequest timeouts
Hi, I am new to the .NET world and am having problems. I have create a simple HTTPWebRequest and am using the GetResponse method to see the result. However, this ALWAYS timesout. I have even downloaded the MS example and that app doesn't seem to have access to the web either. My browsers and stuff works .. do I have to explicitly give .NET accesss to the NET I am using Windows XP SP2. Many thanks, BinCoder. Maybe your fire-wall is blocking the outboud request. I recall havng to make some tweaks to my firewall when working w/ remoting (not the same but conceptually similar.) The firewall may see "myprog.exe" and think its suspicious and not allow it. Check your firewall log, you might need to ...Show All
sedefcho Running Windows app on Thin client doesn't work
Hi, I have created my first Windows forms app in .Net 2.0; installed it on a thin client (not sure which version of the Windows OS it is running); when I double-click on the exe file to run it, the hourglass comes on briefly, then goes off and nothing else happens. If I run the app on the C: drive of a thick client (running Windows XP) it works OK. The app is a Windows forms/ Crystal Reports app; using a Microsoft Access database. Any idea on why nothing happens when I run it on a thin client and how to resolve it Thanks in advance. I'm not sure what a "thin client" really is either...But, I did install the .Net 2.0 framework and the Crystal Reports runtime; hadn't thought of the MDAC dat ...Show All
Aftab Khaliq Return codes for interop functions
I have found this website with the return values of the functions I need... http://msdn2.microsoft.com/en-us/library/aa374738.aspx but how can I find the integer values I want to encapsulate as follows: public enum ReturnCodes { Succes = 0x00000000, NoReadersAvailable = 0x00000001 } Many common Win32 enums and constants can be found on pinvoke.net just as those you linked to can be. Thanks.. I found this sitre allready but I was looking in the wrong place ...Show All
unahb WCF callback endpoint in JScript
I am wondering if it makes sense at all to consider the possibility of implementing a callback interface for a WCF service in JScript. The service would expose an endpoint with wsDualHttpBinding. That makes complete sense to me. After posting, I even got svcutil.exe to generate a client proxy in JScript (/language:javascript). I suppose I should have mentioned that we'd like to deploy the client-side JScript inside a gadget. Is it still possible given that constraint I am wondering what access Visat Gadgets have to the CLR... The real question is this: Can a WCF duplex channel be used in a Vista Gadget without resorting to an XBAP-based hack ...Show All
briggins5 How to increase SerialPort thread priority, please?
Thank you for your kind help. Jan Byvaly wrote: Thank you for your kind help. How are you creating this serial port thread By default, SerialPort uses asynchronous IO, meaning the system provides the threads used for the IO from an internal thread pool, you have no control over the priority of these threads. ...Show All
elainel311 How to force a single line per data in a gridview ?
Hi all, I build a gridview from a Sql table. My gridview looks like : col1 data date 1 the text is displayed correctly 01/01/05 All is correct until I transform the data column into a template field : I'm not able to display the text data into a single line. So I've got this poor result : col1 data date 1 the text isn't displayed 01/01/05 correctly Doesnt' work event I setup a large value in the templatefield property / Width. Any idea thx What does the template field's definition look like You aren't entering any <br> characters right You might want to try to set the ItemStyle - Wrap property for tha ...Show All
