View External Websites In A Panel?
Oct 9, 2010how can I view external websites on my website in a panel or something similar to the browser control on WinForm?
View 5 Replieshow can I view external websites on my website in a panel or something similar to the browser control on WinForm?
View 5 RepliesI have experimented with coding such as follows:
Imports System.Net
Imports System.IO
Imports System.Data
Partial Class Test01
Inherits System.Web.UI.Page
Dim T01String As String
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim WRequest As WebRequest = WebRequest.Create([URL])
Dim WResponse As WebResponse = WRequest.GetResponse()
Dim WStream As Stream = WResponse.GetResponseStream()
Dim WStreamReader As New StreamReader(WStream, Encoding.UTF8)
T01Location = WStreamReader.ReadToEnd()
WResponse.Close()
WStreamReader.Close()
End Sub
End Class
In this example, a stream of data is captured from the Wikipedia website. I am looking for resources/options to assist in (a) returning specific information from a website based on criterion to be stated in the code (rather than the entire unformatted HTML data, for example), and (b) providing a variable value for an entry required for a particular website, then returning the stream based on the result (example: allowing the entry of an address as a variable value and then returning the zip code from the USPS website). Basically, the idea is to find the correct code configuration for allowing "wildcards" when returning a stream of data from a specific website.
Creating 4 websites with one common admin panel
View 6 RepliesI want to add some information, like an adress, in the header of an collapsible panel. I want to add a link to google maps to it in the header. But if i click on the Link, the panel collapses/expands but the click on the link will be ignored. I guess the click on the panel overrides the link :/
View 1 RepliesAs far as I can work out I should be able to copy a web project/application to my IIS Web server and be able to see it as I do when designing it on my development computer.
The problem is once I copy the folder over to my web server and then try to view it the browser it says Error 404 not found. There must be a real simple fix for this. I would like to be able to develop ASP.NET sites using the Visual Web Developer instead of Dreamweaver but this little issue is stopping me.
I am quite new to MVC and am gradually overcoming all my 'but WebForms can do that' issues but I still have one. I wish to have components which I can deploy into an Area in order to keep things nice and tidy. This area will have a bunch of re-usable partial views like this. MyArea/Views/Shared/MyAreaControl.ascx I can render this MyAreaControl partial view fine in other Views inside that area but it fails when I try to render it from a not inside the area (e.g. view in the root of the site). I am essentially using this syntax
<% Html.RenderPartial("MyAreaControl", new { area = "MyArea" }); %>
which seems to only look for this partial view inside the root Views folder, not the area one despite me specifying the area. Is this a restriction of the system, a bug - or am I just doing it wrong. ADDENDUM: Turns out it appears to be an assembly issue. My controller is found in a separate assembly from my MVC Application. Doing a bit of fiddling with moving my control inside and outside of the area and the separate dll I came to the following confusion:
- If partial view is in its own area and the controller is part of the MVC application dll - I can render it from my home view
- If partial view is not in its own area and the controller is part of an external dll I can render it from my home view
- If partial view is not in its own area and the controller is part of the MVC application dll - I can render it from my home view
- If partial view is in its own area and the controller is part of an external dll I CANNOT render it from my home view
The controller for path '/' was not found or does not implement IController.
I am developing one asp.net application and I have a requirement that I need to fetch html of page: [URL] I can easily do it with asp.net code using httpwebrequest but I have to do it from client side either using javascript or JQuery or any other thing. This is required becaues REQUEST TO GET PAGE [URL] MUST COME FROM CLIENT AND NOT FROM SERVER DUE TO IP ISSUE.
View 4 Repliesthe account we use to copy/publish websites to our web server is not allowing us access to push websites. I've added this account to the permissions in the links listed in the below link, but i don't have success when trying to push remotely. When the account is in the local admins account, everything works flawlessly, but we are not allowed to have it in there. http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/31be047e-4716-4974-b8a1-be0111b50199 I've googled and searched a lot for this particular error, but am not finding an answer that helps. We get this error, 'Unable to create the Web 'http://edea01/test/planning'. You are not authorized to perform the current operation', and the above link is the scenario that matches mine the most. I don't do develompment work, but am asked to figure out this connection problem.
View 3 Replieshow to asp.net update panel use in Tree view and grid view
View 2 RepliesI am using the AjaxToolKit in my project.
In the designer I am able to view the 'TabContainer' but not able to view the 'TabPanel' that I have added inside it.
I have set the ActiveTabIndex as 1 and TabIndex of the TabPanel to 1. I have created Header and ContentTemplates and put a textbox inside a table in the tab panel with default text. Here is the code.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="FirstForm.aspx.vb" Inherits="FirstForm" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >.........
I have 10 gridview within panel... so i have 10 panel+gridview, i want show one at a time(if click my button or click one control) like drag panel with close button ... how i do that.
View 4 RepliesI use AJAX tab panel for my web site (ver.1.0.2) with VS2005. Previously I use large page and now i it change to tab panel. The problem is when I change the source view to design view it automatically update the content of tab panel and show the 'error creating control' and sometimes it not. So I'm having difficulty on designing that page because always I have to keep the backup of the page.
View 1 RepliesI debugged my code and it sets the visible to true and it doesn't show up in view/source either. PnlError is the one not displaying...
[Code]....
I have a panel bar..each time I press panel bar item I display ascx control with in update panel..but it lakes update panel loading time lot..how I can decrease that loading time?
View 2 RepliesI have an AJAX Modal Popup panel that contains a RadioButtonList, 2 labels and 2 DropDowns. I want to update the Labels and DropDowns when a radio button is selected. My attempt at this posts back which causes the ajax popup to disappear.
aspx called on image click:
<asp:Panel ID="pnlModalContainer" runat="server">
<asp:RadioButtonList ID="rblTest" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="rblTest_SelectedIndexChanged">
[code]...
I have a page with several panels. panel1 has a drop down list to select client. panel2 has two drop down lists to select facility1 and facility2. I want panel 2 to be disabled (both facility1 and facility2 drop downs disabled) until a selection has been made in panel1 drop down list. when a client is selected from dropdownlist1, I want to enable both dropdown list2 and 3 in panel2.
View 7 RepliesI will consolidate several web sites into one. I have a brief design in mind. Top row: banner sencon row (main menu): home, Applications (drop down-accounting, employeement, sports etc), Your Account In 3rd big row, at left side, there will be links (or just menu listed down) In the middle, there will be contents displayed related to top and left menu. for example, If a user selects application->Sports from 2nd row, then there will be links of Tennis, Golf, Volley ball appeared in the left. if the user click 'Golf' then the center page will display contents related to golf. I am not sure it will work with multiple sitemaps or database driven menu structure etc. How can I do that? Is it a good design?
View 3 RepliesI get different outputs in different browsers.
[code]....
I'm wondering if I should learn everything in C# like what WPF and Win Forms should learn to be excellent web developer or is there specifc C# for the web?
View 3 Repliesim developing some backends in ASP.NET 2.0 and i have put all the images in Cache, GZIPED my CSS, JS files and everything to speedup the load of each options.
the performance its good and i have no problems with the clients but i want "MORE" fast loads and im looking for some recomendations.
Is important to mention that those websites are using only in intranets so im thinking to implement my next projects using IFRAME for content that way (i think) the options will be loading faster because they not have to load the entire site.
EDIT:
im not using viewstates i wrote HTML (code behing) generated controls and use as less as possible ASP.NET Rich controls, all my static contents are in Static vars (Header, Menu, Footer) but im just looking for speed up a litter more.
After compile my website i compress all the HTML, CSS, JS and use less of those files as possible.
but i was seeying others Backend that loads faster than my and the difference is the IFrame control that they use (i think), we check code, design, etc and we use the same (they use #INCLUDES for static HTML instead STATIC VARS with the HTML)
I am having trouble wiht my AJAX collapsible Panel Extender. I have the CPE opening a panel that contains the Table of Contents of a document being displayed on the page. A user clicks on the link for a certain part of the document, the event triggers a C# function that gets the file that particular section is contained in an displays the section. Right now you have to, of course, click on the TitlePanel to open and to close the CPE. What I want to do is have it close automatically whenever a link inside the content panel has been clicked. I have tried placing this.cpeTOC.Collapsed=true; in the functiion that gets the files but it does not work. I have also tried the autocollapse property of the CPE and it just collapses whenever someone moves thier mouse from the titlepanel.
View 1 RepliesI have a panel and a background image. to stretch this image in the panel if the height is adjusting. I have tried to google this but have trouble find a solution for this.The image has the size: (647 X 158).
The only thing that will change is the height of the panel. Now it does repeat by default. no - repeat will probably only make the image its orignal size wich is not stretching it out over the whole panel.Otherwise I am thinking of change the size of the image itself in C#. [Code]....
I am using Ajax Control ToolKit's Accordian Control with 5 Accordian Panel. Contents of Accordian Panel are UserControl. Currently I have added all in the design mode, But it making my page slow because it loads all the content at a time. So, I want this to be dynamic. When User Click on Header of Accordian Panel, It loads the user control dynamically and also asynchronously.
I tried to put the user control under UpdatePanel which I placed under Accordian Content Panel but this is not working. Also I want to display loading images if getting slow response from server. how can I achieve it. It will be better if you provide an example.
I am still pretty unkskilled with web design and since I am still learning xml/html/asp.net I wanted to pose the following question: I would like to design a site that will need to be graphically well designed and user friendly. Would it be easier to continue learning asp/xml or find a software package that can do most of the hard scripting for me and just have me select and alter; like frontpage or something better?
View 6 RepliesHow do you compare the security of websites built in ASP.NET with other websites bulit in other technologies such as Ruby on Rails, PHP..?
View 3 Replies