Search engine has disappeared after installing latest SM version

2014-05-19 Thread Mort

Hi,

I suddenly cannot search via the top toolbar. I looked up my 
EDIT/preferences,and there is no search engine listed. The various icons 
there are grayed out or do not work when clicked on. I cannot enter the 
name of  a search engine (Google) or do anything in that regard. In 
order to search, I must now manually get onto the Google site, then do 
the search via their search icon, which is time-consuming.


Any help here will be greatly appreciated.

I am running Windows XP with SP3. I will soon migrate to a newer PC with 
Windows 7 Pro, but in the meantime I am stuck with my XP.


Thanks.

Mort Linder
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: Declaration expected on cmd

2014-05-19 Thread Philip Taylor



stargun8 wrote:


i am trying to upload my word doc file in the database and then download by 
clicking on the download here button but im getting errors on cmd and 
br.close() ,saying br,fs and cmd are not declared.
Imports System.IO
Imports System.Data.SqlClient
Imports System.Data


Forgive my naivety, but are you sure you have the correct list
for this query ?

Philip Taylor
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Declaration expected on cmd

2014-05-19 Thread stargun8
i am trying to upload my word doc file in the database and then download by 
clicking on the download here button but im getting errors on cmd and 
br.close() ,saying br,fs and cmd are not declared.
Imports System.IO
Imports System.Data.SqlClient
Imports System.Data

Partial Class SUPREME_COURT
Inherits System.Web.UI.Page
 Read the file and convert it to Byte Array
Dim filePath As String = Server.MapPath("Documents/Supreme Fees.docx")
Dim filename As String = Path.GetFileName(filePath)
Dim fs As FileStream = New FileStream(filePath, FileMode.Open, 
FileAccess.Read)
Dim br As BinaryReader = New BinaryReader(fs)
Dim bytes As Byte() = br.ReadBytes(Convert.ToInt32(fs.Length))
br.Close()
fs.Close()

'insert the file into database
' Dim cmd As SqlCommand = New SqlCommand(strQuery)






Dim strQuery As String = "insert into Files(Name, ContentType, Data) values 
(@Name, @ContentType, @Data)"
Dim cmd As SqlCommand = New SqlCommand(strQuery)

cmd.Parameters.Add("@Name", SqlDbType.VarChar).Value = filename
cmd.Parameters.Add("@ContentType", SqlDbType.VarChar).Value = 
"application/vnd.ms-excel"
cmd.Parameters.Add("@Data", SqlDbType.Binary).Value = bytes
Function InsertUpdateData() As Boolean
InsertUpdateData(cmd)
End Function




Public Function InsertUpdateData(ByVal cmd As SqlCommand) As Boolean
Dim strConnString As String = System.Configuration.

ConfigurationManager.ConnectionStrings("JSMZConnectionString").ConnectionString()

Dim con As New SqlConnection(strConnString)
cmd.CommandType = CommandType.Text

cmd.Connection = con

Try

con.Open()
cmd.ExecuteNonQuery()
Return True

Catch ex As Exception
Response.Write(ex.Message)
Return False

Finally
con.Close()
con.Dispose()
End Try

End Function



Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles 
Budwnldbtntton1.Click
Dim strQuery As String = "select Name, ContentType, Data from tblFiles 
where id=@id"
Dim cmd As SqlCommand = New SqlCommand(strQuery)
cmd.Parameters.Add("@id", SqlDbType.Int).Value = 1
Dim dt As DataTable = GetData(cmd)
If dt IsNot Nothing Then
download(dt)

End If
End Sub


Public Function GetData(ByVal cmd As SqlCommand) As DataTable
Dim dt As New DataTable
Dim strConnString As String = 
System.Configuration.ConfigurationManager.ConnectionStrings("JSMZConnectionString").ConnectionString()
Dim con As New SqlConnection(strConnString)
Dim sda As New SqlDataAdapter
cmd.CommandType = CommandType.Text
cmd.Connection = con
Try
con.Open()
sda.SelectCommand = cmd
sda.Fill(dt)
Return dt

Catch ex As Exception

Response.Write(ex.Message)
Return Nothing

Finally

con.Close()
sda.Dispose()
con.Dispose()
End Try

End Function

Private Sub download(dt As DataTable)
Throw New NotImplementedException
End Sub

End Class



___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Convert some Firefox and Thunderbird extensions for SeaMonkey

2014-05-19 Thread WaltS48

Some of you might be interested.

[Firefox & Thunderbird Add-on Converter for SeaMonkey • mozillaZine 
Forums](http://forums.mozillazine.org/viewtopic.php?f=40&t=2834855)



If you use this tool then it would be beneficial for all of us if you can post 
your results in this thread so we can expand the list of which extensions can 
be ported and which not. Also, if you know more about extension development 
then any ideas on how to improve the tool are welcome.


This thread meaning the mozillaZine thread, not this thread.


--
Thunderbird 30.0b1
Pittsburgh JazzLive International | June 20-22, 2014

Go Bucs!
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey