Display Control Only If Not Viewing Remotely?
Mar 30, 2011Is there a way to show a control on a page ONLY if the page was requested over the local network?
View 2 RepliesIs there a way to show a control on a page ONLY if the page was requested over the local network?
View 2 RepliesI have a Calendar Extender from the AJAX Control Toolkit attached to a textbox on my form. I have some CSS, that cannot be changed, that is causing the tags that are being used within the Calendar control to become larger then they would be with out the CSS. Is there away to expand the viewing area of the calendar control?
View 3 RepliesI work now in a huge project that we build all interface as Web User Controls .. every time I want to view & test one i should add it in web page and then view .. I think in a way to develop a visual studio extension that show "View in Temp Web Page" when I make right click on a user control to allow me view user control in a generated temp web page without needing to add it in a test page each time i want to test but i don't know is there any way to achieve that ... Is it possible to develop such a thing ?
View 1 RepliesI am getting "ASP.NET Session Expired" error when viewing SQL Server 2008 reports using the Microsoft ReportViewer web control. I found this article http://balanagaraj.wordpress.com/2009/09/25/session-has-expired-in-asp-net/ which suggests to use one worker process in IIS application pool, but that may affect performance, is there any other solution for this? I tried setting "AsyncRendering" to false already and that didn't work.
View 2 RepliesI recently upgraded from VWD 2008 Express to VWD 2010 Express. A problem has developed in that the website's graphics no longer appear in Design mode, there are "Error Creating Control" error messages that did not exist before, and also debugging errors that did not exist before. (Note: these problems did not exist when I first used VWD 2010; they may have originated with recent automatic Windows updates (I use Vista Home Premium SP2 with IIS 7)). The problem exists if I open the website either as a project file or as a website directory.
View 1 RepliesI have a requirement to design an ASPX page to receive a binary image from a remote call. Basically, our client wants to send a POST request from their server to this particular page. This POST request contains some parameters, as well as an JPG image. How should I design this ASPX page to receive all these information? I need to convert the JPG image to byte[] array and save it to DB, together with the rest of the parameter values.
View 1 RepliesI am writing an application on my PC to insert record on a Microsoft Access database on another pc that has static ip address remotely.I can ping the remote address of the PC that I want to access without problems. The access database is in the folder c:inetpubwwwrootdb.mdb.
I have the code below but when I run it I am getting the following error:
error on ther server the object model couldnšt be found
OleDbException 0x800a2011
<%@ LANGUAGE = VB Debug="true" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Import Namespace= "System.Web.UI.WebControls.Menu" %>
<%@ Import Namespace="System.Data" %>
<script Runat="Server" language="VB">
public sub button_click(s as object,e as EventArgs)
dim ssql as string
dim strconn,objconn,rs,dbcomm
Dim ds As New DataSet
Dim da As OleDbDataAdapter = New OleDbDataAdapter
objconn=new oledbconnection("Provider=MS Remote; Remote Server=http://196.45.161.123; Remote Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\db.mdb;Persist Security Info=False")
objconn.open ()
dbcomm=New Oledbcommand("employee",objconn)
dbcomm.commandtext="insert into employee values ('mostafa',7,'tanzania')"
dbcomm.Connection = objconn
dbcomm.ExecuteNonQuery()
objconn.close ()
end sub
</script>
<html>
<Head>
</HEAD>
<BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
<form Runat="Server">
<asp:textbox id="t1" Runat="Server" text="type" />
<asp:button id="b1" Runat="Server" onclick="button_click" text="clickme" />
</form>
</BODY>
</HTML>
I have a site that i have developed in asp.net. On debugging the site now hosted using iis7 i noticed a bug, i cannot reproduce this when i run it locally in vs, meaning i can't see the error. The bug occurs on the check box changed event of a devexpress check box. It connects to the database using devart.postgres sql component and linq. However, this is the same connection as anywhere else in the project. The same code works elsewhere in the project. The error i get is:
the requested name is valid, but no data of the requested type was found.
part of my code is in an if statement that checks if a textbox is blank if so it does not run the code within the if statement, interestingly enough if the text box is blank the code runs, so it must be in the if statement? i commented out all of the code and tried again and it still would not run. B
I have to Pc, A is Server and B is client ,On server machine windows server2003 And iis is installed.i have developed asp.net application on server machine and its is executing perfectly on server like [URL]
but this page is not accessing on client Pc (B)
how can i access this page or Application on pc B(client).
have deployed an mvc 2 app to a local iis server. It works fine when i go to http://localhost/MyApp. However when i insert my ip address in the place of localhost and try to go to it i get an 'oops google chrome can't connect'. I have all firewalls disabled. I can view the default web site at http://82.168.191.228, just not my mvc app at http://82.168.191.228/MyApp.
View 6 RepliesI create a project in ASP.NET and my sql database and query procedure are stored at other system. i remotly access this file and i want to do access this database on my project
can it access from webconfig connectionString?
I've put my site online and I'm looking to add/change user membership. From Visual Studio, I can access the Website Administration Tool WSAT and it's great if you just want to add users manually. Is there a similar way to change users once the site is hosted on a remote server?For the moment, I change the user information through the WSAT and re-FTP the mdf file; it's pretty painful.
View 1 RepliesI have web form, wich has to post its data to different server, if data i post is valid, target server creates xml file. How can i read the created file from my original site?
Only way i can think off so far is to create iframe in wich postback is made, and somehow after postback page wich contains iframe would read the xml..
I am facing a problem in accessing the asp.net webpages remotely.
i am using the server as my windows 7 laptop with vs2008 and sql server 2008. when i try to connect from client XP PC it says time out error.
this is the first time I have tried this so I am probably missing something that is staring me right in the face.
I have an ASP.NET page where the user fills in a request which then emails a PDF rendered from a ReportViewer instance.
It all works fine when I run it locally through the ASP.NET localhost but when I try and run it of the webserver it fails with the following message:
An error has occurred during report processing.Cannot create a connection to data source 'DataSource1'.
I can preview the report via the web based report manager via http://servername/reports which works without any problem and using the report editor in VS2005.
I suspect it is something to do with the credentials but I am at a loss. The data source is set with a username and password but this is saved within the datasource.
I have two PC. In one pc(PC1) i have installed oracle express edition 10g (10.2.0.0 as far as i know). And in another(PC2) i have installed visual studio 2008 sp1. In PC2 the ASP.Net application is running. But i can not connect to the oracle database to PC1. PC1 and PC2 are connected by LAN(TCP/IP {Actually they are connected by wire and given two IP} ) But it was working perfectly while both ASP.net application and database were in the samae PC. ca
the NHibernate configuration file is:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory> [code].....
I have a new MVC3 project with one Controller called PublicController.cs which contains 4 identical methods for testing out how routing works. The only difference between them is their name, and that they each point to a different view ...
public class PublicController : Controller
{
//
// GET: /Public/
public ActionResult Index()[code]....
My web-server is shared hosting with netcetera, using a sub-domain for this deployment (previously had problems with MVC in virtual directories, but have full blown MVC2 apps running in sub-domains no problem). I've deployed by using the "Publish to file system" option, then copying over the files aswell as just copying the entire source project over. Both give identical results.
I am designing a website (ASP.NET in VB) and I'd like it to have the following features: to generate a random string to be used as a password. This bit I should be able to manage, the bit I don't have a clue on is how I can pass this to a Windows machine (on a workgroup not AD) to change a user's account password.
View 2 RepliesSo I've intalled SQL 2005 Express and Sql Server Management Studio Express (SSMSE). I don't have any problems connecting to it using Windows authentication. But I would like to set it up so that I can log in using Sql Server Authentication with a username and password.
But I'm getting an error message of "A connection was successfully established with the server, but then an error occured during the login process. (provider: Shared Memory Provider, error: 0- No process is on the other end of the pipe) (Microsoft SQL Server, Error: 233).
What I've done
I've created a new "Login" in the Security node. Provided all necessary role access level. Granted permission to connect to database and enabled login.
I've used the Sql Server Surface Area Configuration to set the Remote Connection type to "Using TCP/IP only" or "Using Both TCP/IP and named pipes" (tried both, but in either situation I get the same error message when attempting to login to SSMSE with the user name and password). I also made sure to restart the service.
How can i connect my local project with the SQL server 2008 Database that is running on other server (This server is not on my network and i connect to it via remote desktop connection).
View 1 RepliesSo I have the following requirement for a project I'm working on, and I can't figure out the best (or any, for that matter) way to do this.
I have an asp.net web app sitting on IIS at HQ. When a particular event occurs, I need to then show a message on a dynamically selected subset of PC's throughout the company. The message must be shown due to the time restraints of this process (4 hours reaction time) and we legally can't afford to not show the message.
So I need to do the following:
Show a message to the users. I have a winforms app that puts up a dialog that the only way to get rid of it is to click a big "Acknowledge" button. To ensure that the message was shown. Some kind of report back that yes, it was shown and subsequently acknowledged. A way to react if the form is not shown.
I've considered the following:
PsExec - Iterating over every node asynchronously in my web app to fire off a remote executable sitting on each PC. .NET Remoting - I'm not familiar with this at all, and it lead me to look at WCF instead. Would it work for what I'm trying to do? WCF Callbacks - These seem to require a constant connection and I'm not sure what that means for our infrastucture. I imagined a client service that would kick off an app or show the form somehow. Our scheduling software (Tidal Enterprise Scheduler) - remotely executing an executable. This would introduce more points of failure.
In SO's opinion, what would be the best way to attack this problem?
I am writing an application in which a remote url web site ( says url1 that is sender) sends xml data to another web site (says url2 that is receiver) by using .NET WebRequest. On the receiver url2 if I use .NET Page.Response and .NET Page.Request to store posted/received xml data into an external text file, then the data is stored. However, if I store the received data into database, I do not see the data is stored into the database.
trouble shoot the codes so I can store such remotely posted data into database on the receiver side url2.
I host both url1 site and url2 site in my computer using IIS like [URL]
1/ Receiver page's codes that store remotely posted xml data into database do not work:
protected void Page_Load(object sender, EventArgs e)
{
Page.Response.ContentType = "text/xml";
StreamReader reader = new StreamReader(Page.Request.InputStream);
String xmlData= reader.ReadToEnd();
ProductNameSapce.ProductCollection.InsertReceivedProduct(xmlData).ToString(); // data is not stored ; the method is tested and works well with hard-coded data
reader.Close();
Page.Response.End();
}
2/ The version of the receiver page at url2 that stores into an external text file works:
protected void Page_Load(object sender, EventArgs e)
{
Page.Response.ContentType = "text/xml";
StreamReader reader = new StreamReader ( Page.Request.InputStream );
String xmlData= reader.ReadToEnd ();
StreamWriter s;
s= File.CreateText ( Server.MapPath(".")+@""+ Guid.NewGuid () + ".txt" );
s.WriteLine ( xmlData); // data is stored in an external text file
s.Close ();
reader.Close();
Page.Response.End();
}
I am currently doing a project that requires the user to click a button on a webpage (C# ASP.net web application) and activate an regular application file (exe, jpg, doc, etc) on a server.
For instance, if I have an excel file on the server. The user would click a button from a webpage and then the excel file will open. The result should be the same as double click the excel file and open it locally.
I am having issues with the autocomplete extender from the toolkit. I am using it to extend a textbox. I added a web service to the project that returns some values as a string().It works if I run it locally on either my development server or my production server, but when I try to run it from another machine the autocomplete box does not popup. I have other ajax extenders running on the page and they are working properly. Is there a security setting I need to set to get the autocomplete extender to work for the IUSR?
View 4 Replieshow to start or stop the windows services of a remote system.
now what i need to know is, is there any possibility such that the windows services can be start or stop by using webservices.
suppose i have created a webservice in remote system which will keep on monitering the status of windows services present in that machine. now i will create a client service which will sends the service(windows service) name and action to be performed(that is starting or stopping the service).so is it possible to do in such a manner.