Answer Questions
DwightK Does ViewState get validated/authenticated when enableviewstate=false?
I need help. I am a contractor web developer here in CA working at a company where the production environment comprises two web sites located on two separate networks (the first owned by the company, and the second is hosted by a second-party company). The two web sites have the same domain name but different IP addresses on the DNS on the internet, and there is no load balancing mechanism in place, so a request could go to either IP address. An ...Show All
SkiinBlue Convert decimal string to hex string?
Can anyone give a newbie some help converting a decimal string (ie "32768") to a string in hex formatted string (ie "8000" or "0x8000") Is there a conversion method in C# I add here the reverse convresion: Hex string to int string string sHex = "8000"; int iNumber = int .Parse( sHex, System.Globalization.NumberStyles.HexNumber ); string sInt = iNumber.ToString(); Hope that's ...Show All
YJMark Access Connection String
I have developed an access database on my local machine that I wish now to host on network server. Local Address: Friend ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = c:\DB1.mdb;User ID=admin;Password=" The server name is E287868 How now do I configure the Data Source to represent the new full path to the database Do I need to create a share folder on the server and place the Access database ...Show All
SMRSoftware Return as String size limitation?
All, Does anyone know of a size limitation when returning a string from a web service We are returning a string of XML from our data layer and it appears to get cut off at a certain size. Thanks I am executing a SQL query with the 'For XML Auto' statement. I use 'ExecuteXMLReader' into a datareader. The XML is cut off at this point. Seems to be always in the same place. So is it a limitation of the data reader Have you checked the s ...Show All
LeCoop Need help in accessing web control from within Javascript.
wrote in message news:c8a19d3b-91bc-491d-ac47-3120799843cf@discussions.microsoft.com > this is in the header section of the aspx page. > > function faisal() > { > var a1 = document.getElementById(' '); > document.getElementById(' ').Text = "hello"; > return false; > } I don't know any DHTML element that would have Text property. View the source of the HTML page as seen on the client, figure out what HTML element corresponds to y ...Show All
NeilBerry passing a safe Array as an out parameter to a .net component
I have a .Net component that passes a stringArray to a client program via an out parameter. This works fine from a .net client and I have successfully passed a SafeArray from MFC to a .net component as an [in] parameter. What seems to evade me is returning returning an array of BSTR from a .net component via the CCW as an [out] parameter, back to this MFC client Can anyone help regards Rober ...Show All
Zachovich How to access objects from another thread...
I modified this example to output to a textbox on a windows form. So instead of Console.WriteLine I used Textbox1.AppendText. Unfortuantely this won't work being that async sockets work in a seperate thread and I get an exception stating the control "textbox1" cannot be accessed from a thread other than the one it was created on. How do I take the data from the receiv ...Show All
DavidLSNB Implementing Optimistic Concurrency Control using Datasets
I have designed a data access layer in which all the updates happen using the data adapter.update(dataset) method. The problem I'm facing is that by default the 'Last In Wins' concurrency is being done. I mean the last update is potentially overwriting all the other updates done. The requirement is to implement an optimistic concurrency approach meaning that if two users A and B have datasets of table X and if User A updates the table X ...Show All
Choong Timeout Error
How can I set a higher commandtimeout value for the following dataset I have 300,000 records and it gives timeout error in the .fill statement. string str_SQL = "SELECT * FROM mytbl"; SqlDataAdapter adptr_DataAdapter = new SqlDataAdapter(str_SQL, cnn_DataConnection); DataSet DS = new DataSet(); adptr_DataAdapter.Fill(DS, str_table_name); I think as per my knowledge , there is nothing such called commandtimeou ...Show All
tarek_fathi Membership provider doesnt connect to sql server.? RC1
Hello, I configured my asp application with membership provider, the code below connects, I used management studio and it connects, but the membership and role functions doesnt work, the debugger says its unable to connect to sql server, look below the web.config, it has exactly the same connection string. Thanks Dim conn As String = "Data Source=CAMPEON;Initial Catalog=inventario;User Id=inventario; Password=inventario" Dim sqlconn ...Show All
PatMcHargue OnKeyPress
I have a form in which a user enters a number into the textbox and clicks the search button, and then the user gets results. How do i make it to where when the return key is pressed and the user is inside the texbox it does the same as clicking on the button. Thanks In ASP.NET 2.0 you can use the “default button” property of <form> or <asp:panel> control. If you are having issue with the lower version write script to captu ...Show All
zhangshaolin XMLserializer: how to display output file in block?
hi, I use XML serializer to serialize xml files. But I wonder how to make it display in blocks instead of one long line. because later I need to open these xml files with notepad for manually editing. Anyone can help me with this Thank you in advance. ps. I'm using C# Oh i've just found the formatting property writer.Formatting = Formatting .Indented; w ...Show All
Guenter Prossliner My Application works in Debug mode only
Hi all, My .NET application works in debug mode only. If I build my application without the "Generate Debugging Information" equal true, the application start properly, looks like everything is just fine, I can use several commands of the same type, but it stops working, I mean it goes in a loop or something. If I run the same application with debug option equal true and I do the same test everything work just fine. This is a prob ...Show All
DB2Question System.IO.Compression not as good as compressed folder
I'm getting much better compression when I make a compressed folder (Windows XP) than I am using DeflateStream or GZipStream. I thought these were the same algorithms used in PKZIP and for compressing folders. Why such bad compression DeflateStream: 3544Kb -> 1261Kb GZipStream: 3544Kb -> 1261Kb Windows XP: 3544Kb -> 804Kb So how can I get the same compression ratio as Windows XP Thanks, Jeremy ...Show All
Zamial A problem of CLR Profiler
CLR Profiler is a very nice tools. I often use it to detect if there is any memory leak in my program. However, I find sometimes it shows nothing when I click "Show heap now". How can I detect memory leak in such situation Or how can I make it always works normal Thanks! to me the CLR Profiler is not working at all. When i choose profile application and browser to the executable file.It show's up an error like this ...Show All
