In whatever way you opened the file, open the file in write mode (with no append), don't write anything using the file stream or writer object, when you close the file object, the underlying file should be truncated with no data in it.
iam using c# in asp.net iam using windows 2000 profess
in web.config file
when i am insertin values iam not able to connect
iam getting exception
System.Data.SqlClient.SqlException: Login failed for user 'sa'. at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open() at Analysis.WebForm6.fillrecords()
HTML (Hyper Text Markup Language) defines the layout of a web page. The web page can display text, graphics, hyper links, render audio and other data in the form of tags and attributes.
Web Servers all around the globe host HTML pages to be accessed by Clients running Browsers like IE or Firefox through HTTP protocol HyperText Transfer Protocol.
The protocol that makes web servers and browser connect to each other is HTTP protocol (Hyper Text Transfer Protocol)
SOAP (Simple Object Access Protocol) is a protocol that facilitates one program running in one system to interact with another program running in another system. The beauty of SOAP is that each system can have its own operating system/hardware. It need not be from the same vendor.
As long as the disparate systems can understand HTTP/XML protocol, the systems can communicate with one and another. XML is very much like HTML; however XML defines the structure of the data & embeds data in it.
The main purpose of communication between two systems is to share processed data & the shared data is primarily represented in the form an XML.
Web Server sends HTML -> Renders as web page in Browsers
Web Server sends HTML (HTML contains embedded XML representing data) -> Browsers Clients or Other client programs that understands HTTP protocol opens the HTML,reads the embedded XML. The XML contain the data and its structure.
i hav made an control which is submiting a form and data into database,
dis control is used in an myform.aspx page and dat page is working fine in mozila
Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submit.Click
If Page.IsValid Then
Dim strConn As String = Application("dbStrConn")
Dim MyConn_member As New SqlConnection(strConn)
Dim MyTrans As SqlTransaction = MyConn_member.BeginTransaction
'Specify the first statement to run...
Dim MySql_member As String = "insert into test ([name],[email])values(@name,@email)"
'Create the SqlCommand object, specifying the transaction through
Dim cmd_member As New SqlCommand(MySql_member, MyConn_member, MyTrans)
cmd_member.Parameters.Add(New SqlParameter("@name", TextBox1.Text))
cmd_member.Parameters.Add(New SqlParameter("@email", TextBox2.Text))
Catch ex As Exception
'Something went wrong, so rollback the transaction
Throw 'Bubble up the exception
'Finally, close the connection
this click event is working in mozila but not working in Internet Explorer.
I publish one of windows application using VS 2005. But I can not install this application in another PC. I tried several times but it cames following error message. "This file is not trusted....." like this.
how to handle this problem.Please help me to sort out this prob....