|
Hi, how can I detect if a browser is SSL enabled and SSL active?
Is it possible to do this using .NET ?
Thanks.
Ador
|
|
|
|
|
Do you wanna check if an application is SSL enabled?
|
|
|
|
|
Hmm...Actually I want to do something like CyScape BrowserHawk did, but I just need some simple function..
|
|
|
|
|
Did you have a look at the various keys in Request.ServerVariables collection?
|
|
|
|
|
yes I did, but that is not I want..
hmm, for e.g, variable of SERVER_PORT_SECURE will only return true when it is on HTTPS page, if I run a HTTP page, it will always return me false.
What I wish to know is, if I am run a HTTP page, I want to know If my browser is also SSL enabled..
|
|
|
|
|
I want to Transfer a file from FTP to File Server directly bypassing the Web Server(Server where the Application is Running). Is it Possible. If Possible could you please send me any code, documentation, links etc. The Size of the file may vary from 10GB to 15GB.
Thanks
|
|
|
|
|
missioncode wrote: FTP to File Server
What do you mean? Perhaps on the system running FTP server you can have a Windows service to copy files onto the system running Web server using its FTP.
missioncode wrote: The Size of the file may vary from 10GB to 15GB.
Taking such huge sizes, I would suggest you can have the web server itself to FTP service too to avoid double transfers.
|
|
|
|
|
I used the code below it work, but i did not see the message in phone.
Sub SendSMS(ByVal sender As Object, e As System.EventArgs)
Dim mMailServer As String
Dim mTo As String
Dim mFrom As String
Dim mMsg As String
Dim mSubject As String
Dim mPort As Integer
Dim strMsg As String
strMsg = txtMessage.Text
If strMsg.Length >= 140 Then
strMsg = strMsg.Substring(1, 140)
End If
mTo = Trim(txtToNumber.Text) & Trim(cboCarrier.SelectedItem.ToString())
mFrom = Trim(txtFrom.Text)
mSubject = Trim(txtSubject.Text)
mMsg = Trim(txtMessage.Text)
mMailServer = ConfigurationManager.AppSettings.Get("MyMailServer")
mPort = ConfigurationManager.AppSettings.Get("MyMailServerPort")
if txtToNumber.Text="" then
lblerror.Text="Please enter phone number"
exit sub
elseif not IsNumeric(txtToNumber.Text)
lblerror.Text="Please enter phone number format"
exit sub
elseif txtToNumber.Text.Length <10
lblerror.Text="Phone number is incorrect format"
exit sub
end if
Try
Dim message As New MailMessage(mFrom, mTo, mSubject, mmsg)
Dim mySmtpClient As New SmtpClient("mail.khmerfriend.com", 25)
mySmtpClient.UseDefaultCredentials = True
mySmtpClient.Send(message)
lblerror.TExt="The mail message has been sent to " & message.To.ToString()
Catch ex As FormatException
lblerror.Text = "Format Exception: " & ex.Message
Catch ex As SmtpException
lblerror.Text ="SMTP Exception: " & ex.Message
Catch ex As Exception
lblerror.Text="General Exception: " & ex.Message
End Try
End Sub
Please help me
Socheat
|
|
|
|
|
Socheat.Net wrote: Re: Sent not Found
You can actually be more clear on the subject though.
Coming to your discussion, most of the mobile operators might be having spam checks on email to sms gateway. How about you considering messaging direct to the SMS gateway through API? I have a brief review on a couple of operators here: http://lavanyadeepak.blogspot.com/2007/03/sms-enabling-applications.html[^]
|
|
|
|
|
Hi,
I'm writing a C# windows application program that needs to connect to the SQL server 2000 or SQL 2005. What i want to do is when the user selects to connect to the server, a pop-up window appears that opens the data connection wizard where the can go through the wizard and connect to the sql servers are any other servers. Is this possible? If so, can someone please tell me how to do this?
|
|
|
|
|
Hi, I would like to redirect all http requests made to mysite.com ... to www.mysite.com instead ... what is the easiest way to do this?
Can I configure DNS to do this somehow? Do I configure something in IIS? Do I use some sort of URL rewriting in ASP.NET? Do I create two web sites (mysite.com and www.mysite.com) and redirect from one to the other?
I just don't want http://mysite.com to ever appear in the address bar, I just want http://www.mysite.com instead (so visitor bookmarks and the server log file isn't mixed up with both versions -- which are the same site).
Any ideas as to what is the easiest, most compatible method of accomplishing this?
My platform is Windows Server 2003, IIS6, ASP.NET, NET 2.0, C#, etc...
Thanks for any assistance!
|
|
|
|
|
|
Thanks for the ISAPI_Rewrite suggestion. Works great. Voted you a 5.
|
|
|
|
|
Hello,
I have upgraded all of my VS 2003 built xsd files to VS 2005. For some reason I just can’t compile the upgraded version of the project (in VS 2005) because of the exceptions (blue lines) I get in few of the “.xsd” files in the VS 2005 IDE. Error: I see blue lines under the below lines in my few of my DataSets System.ComponentModel.DesignerCategoryAttributeSystem.ComponentModel.ToolboxItemSystem.ComponentModel.CollectionChangeEventHandler<system.componentmodel.browsable(false), _="" system.componentmodel.designerserializationvisibilityattribute(system.componentmodel.designerserializationvisibility.content)=""> _
When I mouse hover under the first one line of code it says “ ‘DesignerCategoryAttribute’ is ambiguous in the name space ‘System.ComponentModel’”
On the second line I get “ ‘ToolBoxItemAttribute’ is ambiguous in the name space ‘System.ComponentModel’” On the third line On the second line I get “ ‘CollectionChangeEventHandler’ is ambiguous in the name space ‘System.ComponentModel’” And on the fourth line I get “ ‘Browsable’ is ambiguous in the name space ‘System.ComponentModel’”
And so on… But just to give you note I don't see the same thing happerning for all of the .xsd file but for just few of them.
I tried to compare both of these files to see if there is any difference in them but couldn't notice any thing different.
Am I missing some thing in here? Do I have to reference any dlls in the VS 2005? If it was the case why few of the .xsd files are smiply fine?
Any help is greatly appreciated.
Thanks,
-L
|
|
|
|
|
I've been playing with Silverlight, and so far - and given it's only a beta product - I'm quite impressed with what it seems to offer. Important to me are: single language support on both client and server and a far improved design and layout system.
However, i'm tempering this with the fact that there are an awful lot of MS *evangelists* promoting Silverlight, so I thought I'd ask you guys what you think, specifically:
Do you think that Silverlight can (and will) replace the current html/css/javascript triumvirate that dominates the web? I can see why designers and developers would want this, but given that Flash never managed it, is it likely that Silverlight will?
|
|
|
|
|
Good question. I've got the same first impressions.
I think that it will be a success because today the layout possibilities and user interaction is very limited. Users will demand this.
And it will be a greater success than Flash because it builds upon .Net that ives a lot of programmers better access than Flash (my opinion).
Finally, I hope that we can build applications that run in every browser in the same way with the exactly same layout and that it will not be built on limited HTML, css or JavaScript
Wait and see
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Hi
I am tryin to build a web front end which will speak to a mysql database in the background
I have decided to help with performance and maintainibility i am going to try and use stored procedures to extract data from database so i don't need to put all the sql through the script.
I am not sure if i am going in the right direction with this as i am a newbie at this game. I have produced the following function which i believe is correct.
Private Function spTest() As DataSet
Dim connectionString As String
'create connection to databases passes strings into mySql login
connectionString = _
"server=localhost; uid=*****; pwd=*******; " + _
"database=test"
'Sql command string, can enter stored procedure call here
Dim connection As New MySql.Data.MySqlClient.MySqlConnection(connectionString)
connection.Open()
Dim command As New MySql.Data.MySqlClient.MySqlCommand
command.Connection = connection
command.CommandText = "test"
command.CommandType = CommandType.StoredProcedure
Dim daAdaptor As New MySqlDataAdapter
daAdaptor.SelectCommand = command
daAdaptor.TableMappings.Add("id", "firstname")
Dim dataset As New DataSet
Dim table As DataTable = New DataTable
daAdaptor.Fill(dataset)
Return dataset
End Function
my stored procedure is just a simple select statement which extracts the id and name fields in my database
i want to be able to display my results in a datatable in the web browser.
has anyone get any hints in where i should go from here?
I am guessin i now need to build the page_load method and get it to call this function and pass the dataset variable into a table display method?
any help appreciated
boyindie
|
|
|
|
|
You're on the right track, keep going.
only two letters away from being an asset
|
|
|
|
|
|
ass [et]
only two letters away from being an asset
|
|
|
|
|
if thats an attempt at a joke its reallty quite pathetic
|
|
|
|
|
I'm trying to assign a data value in a gridview template during the databind operation. I've replaced the Bind("column_name") with a custom function. In that function, I want to take one of the values from the datatable's rowset (a vendor number) and lookup the name for that vendor returning that as a string. The following code is what I am trying to accomplish.
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# GetVendName() %</asp:Label>
</ItemTemplate>
I want GetVendName() to obtain the vendor number from the datatable and do a lookup returning the name of the associated vendor.
How can I reference the current VendorNumber column from the datatable object of the GridView during the "DataBind()" process in GetVendName()??
Thanks
|
|
|
|
|
First of all.... you're going to want to close your tag there... it should say <ASP:Label ID="Label4" runat="server" Text='<%# GetVendName() %>'></asp:Label>
And.... why not just select the vendor name to begin with? Why go through the extra step of converting a vendor number?
|
|
|
|
|
The closing tag is probably just an error when copying and editing the code in my post. The vendor name is coming from a different database so I can't include the name in the select statement.
Excellent question though!
|
|
|
|
|
Hampden Tech wrote: The vendor name is coming from a different database so I can't include the name in the select statement.
If you have a data access layer that provides the resultsets appropriate for the presentation layer you won't have this problem.
only two letters away from being an asset
|
|
|
|