Answer Questions
M Kenyon How can I run an User Control using a Web Application...
Framework Version1.1. I have a User Control inside a Windows Control Library named WCL1. I embed that User Control inside the web Application(named WA1) using <Object> tag.. Along that I have Add the reference for the WCL1 Now if I access through. http://localhost/WA1/WebForm1.aspx means it works... But if I access through IP Address for eg.. http://IP/WA1/WebForm1.aspx means it will not works... Please anyone give me an Idea.. The Object Tag is well formed .. Because It will works well with localhost.. It will be disabled only when I am using IP Address instead of localhost... Then I loose my IE Settings for the local intranet zone as you said.. Even I am not able to view that User Control.. I ...Show All
Tamim Sadikali Triggering software/program
Hi, i think i've asked this question before. There's probably a simple solution but i'm still a beginner trying to understand the language. I'm trying to trigger a software that i've installed into the PC under C drive program files but this doesn't work. System.Diagnostics.Process.Start ("C:\\ccdops.exe") The error says that the system cannot find the file specified. Help will be greatly appreciated! Thanks! It's saved under C:\ drive with all the other programs. How do i ensure its in the root directory. Sorry for asking such a silly question! As all other are saying, Simply file is not in the path you are specifiying, Let's try it: Create a textfi ...Show All
Andr&#233;_Silva Seperating DataSets,DataAdapters stuff from Applications
Hi, This is probably for most of you a very basic question. My goal is to define in a seperate instance from application all infos related to DataSets and DataAdapters that are needed when connecting to a specific database. Why First, I would like to be able to have in a single instance everything needed when hooking to a SQL Server Express database and in an other everything needed when hooking to a SQL Server CE database. Then, from application, I would like to be able following a few basic configuration steps to choose from one or the other, or even both in specific cases. Second, I want to be able to seperate Database related stuff from application so that I can re-use everything from any other application when needed. ...Show All
RyuMaster DISPLAYING TABLES OF AN ACCESS DATABASE THROUGH C#
Hi everyone I am trying to display all the tables in a MS access database through a application im developing in c#. However im receiving errors. Here is part of my code. This method executes a SQL query and returns a OdbcDataReader object. private OdbcDataReader GetQueryReader( string query) { OdbcDataReader reader = null ; OdbcCommand command = new OdbcCommand(query, serverConnection); Open(); try { reader = command.ExecuteReader(); } catch (NullReferenceException e) { Utility.CheckTool.ShowMsg("Error in getting the reader, null exception error" ); reader.Close(); } catch (OdbcException e) { Utility.CheckTool.ShowMsg("Error in getting the ...Show All
db-C Visual Studio 2003 with SQL Server 2005
Could we use the visual baisc.net in visual studio 2003 to connect to SQL server 2005, or other tools If it could, may I have the sample code I did but it still failed..the same error message.. Here is my simple test coding: Dim sConnection As String = "Server=" & txtServer.Text.Trim & "; Initial Catalog=" & txtDatabase.Text.Trim & "; Integrated Security=SSPI;" Dim cnn As SqlConnection ' Instantiate the connection object cnn = New SqlConnection Try 'Set up connection string cnn.ConnectionString = sConnection ' Open the connection cnn.Open() lblInfo.Text = cnn.State ...Show All
curt2go Passing login information to remote windows file share
I have looked all over the net for information on how to do this and am still lost. I want to copy files from a remote server that has file sharing enabled, however the login information does not match the local domain. So when I try a File.Copy on the remote file I get a error unless I first launch iexplore to the URL of the site ( \\10.100.1.1 for instance) and then it will allow the user to manually authenticate and after that it works. Is there any way to automate this and pass the login info Anyone Or can someone suggest another forum I could ask at The impersonate stuff won't work in this example as the remote system is on a different domain. It's as simple as logging in via the windows prompt thou ...Show All
Ido Ran Fill DataSet from Txt, memory doesn't like it
Hi all, This is my first question. Perhaps anyone can help me with what I'm doing wrong and what I can do about it. I am reading a textfile row-by-row, modelling and analyzing the data. Each row is then put in a DataSet. Afterwards, we will bind the DataSet to a DataGrid and allow the user to view/edit records before it is finally published to a SQL database. Sometimes the amount of records is substantial, so to display the status and keep the GUI responsive this process has been contained in a backgroundworker. Ofcourse not with every processed row the status is updated, but in batches. Say about every time 100 records are processed. All works perfectly fine, with the horrible exception that reading large sourcefiles (+1million rows/200mb ...Show All
John_Wesley Sockets, 2 bound to same port? How to find free port?
I'm using the following code to bind to a port(server side): bool portOK = false ; TcpListener myList = null ; while (!portOK) { try { IPHostEntry ipEntry = Dns .GetHostByName( Environment .MachineName); IPAddress [] IpAddr = ipEntry.AddressList; if (IpAddr.Length > 0) { myList = new TcpListener (IpAddr[0], port); portOK = true ; this .WriteLine( "OK, bound to port:" + port); } myList.Start(); } catch ( Exception e) { port++; this .WriteLine( "Trying new port" ); } } What I don't understand is, if I run this code in 2 different instances of my application they both bind to the same port What I would of expec ...Show All
TomJ72 CodeDOM: Runtime Type-Builder
Hi all, I'm attempting to realize something that maybe is not realizable: a runtime TypeBuilder which produce the same Type used by a component at compile tyme. Shortly, provided I know that compononent X consume a Type TY of which I have a fully comprehensive knowledge, I would make it possible to produce at runtime a Type TZ that is equivalent to TY. Motivation : I could use serialization to made up a prorotype and than pass it, I would avoid this way because the types are defined through an higher level abstraction that I would manage transparently, and, moreover, because I would face a deploy critical issue: how these prototypes should be packaged provided that new types are created very often, by different people, and nobody ...Show All
Tom Frey Warning: There are updated custom wrappers available for the following referenved components: Office.
Hello everyone, I converted a vb.net 2002 project to vb.net 2005 and I continue to get the warning message: There are updated custom wrappers available for the following referenced components: Office . If I dbl-click on the message I get: One or more custom wrappers for COM components have been installed on your machine after you added references to those COM components. These wrappers may provide additional capabilities not offered by the auto-generated wrappers currently in use. Do you want to replace the auto-generated wrappers with the custom wrappers If I click YES then I get 102 ERRORS++. If I click NO then the project runs just fine but the warning shows in the IDE. Without turning ...Show All
TexasDeveloper Error passing parameters to Fillby Query
Hi, I'll try to keep this succint. I'm using VB into an Access DB with an ODBC connection. I wrote a fillby query that looks exactly like this: SELECT OrderDate, Notes, ShippingCost, DateReceived, Supplier, PO, UserName, Completed, POTotal FROM Purchases WHERE (OrderDate >= [StartDate]) AND (OrderDate <= [EndDate]) (yes, I changed the prefix and suffix because it kept coming up with syntax errors.) If I test this with the "Execute Query" button, it works fine. When I finish this query, I would expect it to create two entries in the parameters collection. It does not. So I created them myself. In my code, I execute this: ...Show All
wolfkrow Create Validation Regular Expression
Hello! I want to ask a simple question about regular expression in asp.net. the question is how to handle "javascript" as a single word by creating a validation expression for regular expression server control. Please, I need the answer as soon as possible. Thank's I need to deny the user of enter the word " in a text box. the word "javascript" followed by ":" i need to match the substring "javascript" followed by ":" in the validationExpression property of regular expression server control. Please clarify exactly what you are looking for. ...Show All
Geo725 Adding to a database
Hi i'm new to using VB.Net and using databases (MSAccess) with it. I want to add text from a combobox and two textboxs to my database. I'm getting the error message "No value given for one or more required parameters". Any help would be gratefully appreciated. This is my code. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Open a database connection. Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0; " & _ "Data Source=../Video.mdb;Persist Security Info=False" Dim conn As New System.Data.OleDb.OleDbConnection(strConnection) conn.Open() ' Create a DataAdapter object and set it ...Show All
foobarX SMTPMAIL error (bare LF)
Hi I got this error went using SMTPMAIL, "System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x800ccc6a. The server response was 451 See http://pobox.com/~djb/docs/smtplf.html." Can someone on how to end the email Thanks in advance. Hi SvenC, I tried both '\r\n" & "\r\n.\r\n" but still got the same error > and maybe this: msg.Subject = "test"; // ;-) This might work... Hmm - ...Show All
canadian_coder receive in different thread Cause troubles
hi, i wrote a class to send and receive data from a server, i intiate the receive method in a separated thread , when packet arrive i raise event, in the other class i consume it, so i have 2 questions 1. some times the server send packets too fast, and that cause trouble in reading data for the consumer class. some one suggested to use a delegate , for that i raise the event through a delegate but still cuase troubles, so what i suppose to do for that 2. i'm using the lock(this) keyword with the consumer method and thread.sleep() in the receiver now but i'm afraid this might cause losing some packets i thought to use delegate like winForm controls to make it thread safe by invoke it, but i don't know how to write this method ...Show All
