Can't Send SMS Directly As Web Server - Doesn't Allow To Browsing Other Sites
Feb 13, 2011
Session("CellNo") = New List(Of String)() From { _
"CellNo1", _
"CellNo2" _
}
Session("SMSMess") = New List(Of String)() From { _
"Messagetext1", _
"Messagetext2" _
}
' Popup window.
' Generate many iframes to send SMS.
Dim CellNo As List(Of String) = DirectCast(Session("CellNo"), List(Of String))
Dim SMSMess As List(Of String) = DirectCast(Session("SMSMess"), List(Of String))
For i As Integer = 0 To CellNo.Count - 1
Dim url As String = [URL]
?usr=USERID&pwd=PASSHERE&sndr=SENDERID&ph=" & CellNo(i).Trim() & "&text=" & SMSMess(i).Trim() & "&rpt=1"
Response.Write("<iframe frameborder=""0"" height=""1px"" width=""1px"" src=""" & url & """ />") Next
I'm using above Code to send SMS. For some reason I can't send SMS Directly as my web server doesn't allow to browsing other sites. But above code sending only 1 SMS.
I have been using a C# asp.net email form for a while on an old server (administered by a friend who has moved away) and now I have my own server. The problem is the form appears to send but the message never turns up in the mail box. Because the form used to work, I suspect its my server settings. The code behind for the form is:
[Code]....
I have set the web site up as ASP.NET and the pages load ok etc. So I go to the form, fill it out and it is processed and I get the confirm message. What do I need to check at the server end? Sorry if its a dumb question I am quite new to the finer points of server management
I want to know how can we send direct request to .DLL with some parameters. I really don't want to use .ASPX and .ASHX. I hope this .DLL request is used for more secure site.
For example: IRCTC (India Railway site):
[URL]
how we can send or execute page from .DLL in ASP.NET.
Before I go the route of using hidden fields or something similar, is there any way to send back to the server changes to the disabled state of an ASP.net Button control? I have a Button that is initially enabled and I disable it via jQuery on the client. Works great. The only problem is when I do a PostBack the server still thinks the Button is enabled and sends back a response that changes it back to enabled. Why doesn't the ViewState send back the current disabled status of the Button? Is there a way to force it to postback the changes? Other ASP.net controls, like the CheckBox, do send back the state changes to the server. Seems odd to me.
I am trying to send an email but it's not working, i get the following error:- Transaction failed. The server response was: 5.7.1 EMAILADDRESS: Relay access denied See where it gives EMAILADDRESS is the actual email address i want it to be sent to. The web url is below:- [URL] If you look at the bottom right "Parents get in touch" section. Try filling in the form and submitting it. You will get an error. Now just so you know the website is currently running on a test domain on DiscountASP and i was thinking maybe when the website is live the email will start working? ....
I've developed a file browser that will browser a different server shared folder. In order to get this working I'm using the unc path (\ServerSharedFolder) to return the files/folders. I've also added the following to my webconfig to get around the security <identity impersonate="true" userName="domainadmin" password="password" />
It's simply a file browser, no create or delete functions will occur. The solution works and what I want to know is that this the safest way to do this? or the best way? I did try to use a virtual directory instead of unc path but asp.net would support this.
I am interested in developing Web Parts that can be used in our ASP.NET sites and our SharePoint sites. An example Web Part I have in mind is a Post Code (Zip Code) look up.- Visual Studio 2010 Premium- SharePoint Designer 2007- Windows 2003 Server (therefore WSS 3.0)- No SharePoint Server
I have an aspx application using Entity Framework 4.0 and SQL Server 2008. Everything works fine. It's an internal application, so we developed a basic backend for routine maintenance. Some minor data updates are done directly into the SQL Server using SQL Management Studio... the problem is those changes are not reflected in the application! Only after reseting the web service or the server, the new data is displayed.
I have two exactly the same web sites hosted in two different machines under IIS 7.5. ASP.NET state service is running on my machine and the web.config is updated in both sites with the following code:
The allow remote connection is set to 1 in registry in order for the second web site to access the state server.Both web sites have the same machine key:
Additionally both sites are configured in IIS to have the same Identifier.What I want to do is that both these sites share the same session data for example being able to do the following:
// At web site 1: Session["key"] = "value"[code]....
The problem is that I can't manage to accomplish this test and really can't understand what I am doing wrong.
Here is the situation. All the machines and users are in the same domain.We are in a domain enviroment. There are some sql server 2005/2008 storing data. There is a ASP.NET site in the domain using the Window Authentication. Now, we need read the data from the sql server and display them using SqlDataSource and GridView. But most of users do not have the direct permission to access the database. Is there any solution to get the data from database and display them on the site without granting users permission?
I would like to build a Shared Documents Library in ASP .Net and SQL Server but I have a problem, the customer wants to open the documents (stored in SQL Server) in Office UI and when save it, the document should be saved directly in database like SharePoint Server.
I've been researched on web since last week and I didn't found any answer or specific technology to do this.
I'm hosting a few .net sites, some collapse with this error on an almost daily basis. I've moved the sites between servers, but sites on all the servers seem to be affected, so it is not just a bad install.This problem is acknowledged by MS and they have a fix here:http://support.microsoft.com/kb/975410But they don't provide the fix they talk about.Does anyone have any way to resolve this that does not need Microsoft (since Microsoft clearly aren't bothered to fix it)?
is there any way to copy/transfer files directly from client to ftp server through my web application? user will select files through fileupload control.
I have a table with a varbinary(MAX) column. I want to use the FileUpload control to save the file directly there by a stored procedure. How do you do it without using SaveAs to create a temporary file first?
I have hosted my project in the remote server. i pasted all the dlls & all the necessary files into inetpub->wwwroot ->httpdocs->(pasted all files). In the server we have .net framework 3.5 and IIS 6.0
Now I just want to check whether my files are running locally on the server. So I did the following. Just opened the IIS, made the httpdocs folder as a virtual directory. And then I clicked the httpdocs.It displayed all the files it has in the right side pane. Then I right clicked the default.aspx and then I clicked browse. Now the browser opened with the URL http://localhost/httpdocs/default.aspx. But I could not able to see the aspx page.It just shows "The page is not found"
But when I tried the same steps for opening a .html page it works fine (http://localhost/httpdocs/test.html) I can able to view the html pages.
Whether I need to configure anything on the IIS.... What should I do to view the .aspx files
A friend of mine gave me this task so I can learn advance programming a little bit easier. I am currently doing convertion of an html page to pdf using itext sharp and email the pdf as an attachement. My idea is to save the pdf first to the server machine in the folder name ToBeEmailedPDF folder before using it as an email attachment. The thing that bothers me is that this dialog as what you can see in the picture shows up using the code that I have below.
I am using VB.NET & SQL Server. My sproc returns something like this which I need to display on my web page as below:
sproc returns:
ClientNumber ClientName Product ------------------------------------------ 100SON Sony TV 100SON Sony DVD Player 100SON Sony Cell Phone 200KEN Kenmoore Microwave 200KEN Kenmoore Dryer
Now based on these data, I need to display some information like below on label in the web page:
100SON - Sony - TV, DVD Player, Cell Phone 200KEN - Kenmoore - Microwave, Dryer
I need you advice on this.What would be the best way to do this?
(1) I can work further on this data in code to generate the required data or
(2) I can work further in the sproc itself to directly return the required data
I get the follwowing exception while running my ASP.NET 1.1 web application. The Web application will call a web service which connects to to the DB server and returns the data to the application. This error occurs when we move the webservices and databases to new servers. I am able to connect to the DB server from web servers through SQL port.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)