[2008] How To Use Tab Page Control
Feb 12, 2009I have tab control how to make when i click at some of tabpage to show Msg.show("you clicked on tabpage2").
View 1 RepliesI have tab control how to make when i click at some of tabpage to show Msg.show("you clicked on tabpage2").
View 1 RepliesIs it possible to lock the tab page of a Tab control ? There are cases where a specific page should be shown and the user should not acctdentally change the tab page . I know I could set as False the property Enabled of the Tab control , but that would ... well actually would disable the page , which I don't want to ...
View 3 RepliesI'm trying to figure how to click a URL in a page using a web browser control.I've already looped through all the links and pulled the one I need. Looking through the documentation on MSDN and Google, I haven't been able to find a way that clearly explains how to click a URL.
View 2 RepliesI'm using a TabCotrol in my project , and I want to load as many tabs pages as I need with a PDF control within each tab page so I used this code :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim NewAdobePage As New AxAcroPDFLib.AxAcroPDF
Dim tb As New TabPage
[CODE]...
And now I want to use OpenFileDialog control to load PDF files into any of the already opened AxAcroPDF controls , How ?
What I'd like to do is in my application move a control like a groupbox or frame with content on it from e.g the main form to a tabpage on that same main form using code.
I can change the position of the control using it's location, but I haven't got a clue on how to move it from the main form to a tabpage, or from 1 tabpage to another.
-Is this at all possible and if so, how can it be achieved?
How can I make the webbrowser control wait until a page finishes loading before continuing on to the next lines of codes?
View 2 RepliesI have a form with a Tab Control that has 18 pages. When I click on a tab it opens the page and select a textbox on that page (txtTextbox1. Select() ). This works for the first 8 pages but not for the remaining 10 pages. Although on these pages I can mouse click on the textbox, enter info, save then click my Add button that clears the textboxes and has the code (txtTextbox1. Select() ). The textbox is selected just fine. The code for all my pages is the same except for the tab name and the control names. The tab key will move the selection to the next textbox in order on all pages and the Enter key is coded to do the same. The first 8 pages have a total of 256 labels, buttons, list boxes, textboxes and checkboxes on them.
View 10 RepliesI have a user control that checks if a certain query string and session value are present then returns a boolean based on that, if it's true I want to set the master page. The page is throwing an Object reference exception when it tries to call the method EditUser1.UserAuthorization(). Why is this happening? I imagine that the method doesn't exist at that point in the stack. Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
[Code]...
Using vb.net on an aspx code behind event, is there away to tell from a parent page if the child page popup is open, and then close the child page if it is truly open based on some event on the parent page, like clicking a gridview edit link, again?
View 1 RepliesWhy does CPU usage jump so high when a WebBrowser control is navigating to a page?Is there a way to drop CPU usage?
View 17 RepliesI want to access a page variable from a user control placed on that page. All the solutions work in C# via casting to the page class. The problem is that this doesn't work in VB. The page class is not selectable from the Intellisense dialog. Manual typing results in the error type not defined. It is strange that C# can do this without a problem. What is the proper solution for this in VB? I had other cases where I needed to access a control on the main page. C# again uses a cast to the page class to access the control. This doesn't work in VB again. So how can I access the page class from a user control in generell?
View 5 RepliesI am using <%@ MasterType virtualpath="~/__.Master" %> to embed my master page content into child page to access control belong to Master Page. I have one DropDownList in Master page. And I want to access its SelectedValue in my Child Page.
Problem is when page first time loads and as I am trying to access DropDownList's Selected Value by writing in child Page - "Master.DropDownList.SelectedValue". I am not able to get DropDownList's Value. Its display's Blank.
But When Page.IsPostBack I am able to get SelectedValue of that DropDownList.
I have an ASP.NET 3.5 page with some AJAX, some Validators and some business-rule validation done in the code-behind page (VB.NET).
The Validators set focus to the 'offending' control when an error is detected.
When a business rule is violated, I used the following code to generate some javascript "on the fly" and execute it to simulate the Winforms "MessageBox.Show" functionality:
Sub DisplayMessages()
Dim lblError As New Label
lblError.Text = "<script language='javascript'>" & Environment.NewLine & "window.alert('"
[Code]....
At the end of the "btnSave.Click" code, if everything went ok, calling that subroutine.
What I get is the page scrolling to the top and then back to where it was when the Save button was clicked.
For various reasons, 'MaintainScrollPositionOnPostback="True"' is in the Page directives at the top of the .aspx code. What I'd really like is to make that FALSE for just a moment so that the page resets at the top - again, only if everything is ok and only for this button (there are other buttons on the page that require the page to keep it's scroll position).
I have an asp.net usercontrol which represents a "popup" dialog. Basically, it's a wrapper for the jQuery UI dialog which can be subclassed to easily make dialogs. As part of this control, I need to inject a div into the page the control is used on, either at the very top or very bottom of the form so that when the popup is instantiated, it's parent is changed to this div. This allows "nested" popups without the child popup being trapped inside the parent popup.
The trouble is, I can't find a safe way to inject this div into the page. A usercontrol doesn't have a preinit event, so I can't do it there, and calling Page.Form.Controls.Add(...) in Init, Load or PreRender causes the standard exception "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."
I thought I had found a solution by using. ScriptManager.RegisterClientScriptBlock(Page, Me.GetType, UniqueID + "_Dialog_Div", containerDiv, False) which seemed to work well normally, but recently a coworker tried putting an UpdatePanel inside the dialog and now she's getting the error "The script tag registered for type 'ASP.controls_order_viewzips_ascx' and key 'ctl00$ContentBody$OViewZips_Dialog_Div' has invalid characters outside of the script tags: . Only properly formatted script tags can be registered."
How are you supposed to add controls to the pages control collection from inside a user control?
I am having problem with my windows based application in VS 2008. I have a page from where I copy the component and use the same on another page for saving my designing time.It works fine and run without error.But when I restart the solution then the 2nd page where I had pasted the component is not displayed in the form designer. I get the following on the screen
View 1 RepliesI have a webbrowser control, where I show images (bmp files, that the program creates), and I want to add some UserControls to setup the images (as showing layers, or choosing colors to display). Is easy to do appropiate UserControls on VB.NET, and I know almost nothing about HTML, so, I would like to add standard VB.NET UserControls near the images.
View 12 RepliesI have an aspx page that has two different user controls. I want to find user control A and be able to set properties, etc., from user control B.
I was thinking I could do something like this:
Dim CMFilters As Control = Me.Parent.FindControl("CMFilters")
...but that doesnt work to be able to set properties and call methods. I somehow need to get the user control and and declare it as that user control type.
I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2.
View 3 RepliesHow to add existing Tab page to tab control like i am removing Me.tbIncoming.TabPages.Remove(tbPgViewer) 'I removed in button close and after i want to show in form load eventadil
View 4 RepliesThere are test.aspx page and test.ascx web user control.
I have a button in test.aspx = btn_test and above code in my button is :
Dim ct As Control = Page.LoadControl("test.ascx")
Panel1.Controls.Add(ct)
There is a dropdownlist with value 1 to 10 in test.aspx and there is label_test in test.ascx
I need some code when test.ascx loading, get dropdownlist.selectedvalue and show it in label_test.
I'm trying to use the page control's collection with LINQ. Whereas this works:
dim l = Me.Controls.OfType(Of TextBox).AsQueryable()
the following return an ArgumentExceptionError:
dim l = Me.Controls.AsQueryable()
I have tried everything to no avail. I need to cast the value from a user selected dropdownlist to another dropdownlist on another page. The data in the textboxes are a series of numbers. Also is there a way to display the value in the second dropdown list as well as other values? For example, my dropdown has the values 1-6, user selects 4, which displays first in the dropdown on page 2 but the other values also display in case they want to change there selection??
If Not Page.PreviousPage Is Nothing Then
Dim table As Control = PreviousPage.Controls(0).FindControl("table1")
Dim ddl As DropDownList = CType(table.FindControl("ddlB_Codes"),c DropDownList)
[code].....
[code]...
I have a treeview and a tab control on my design page. Tree view has four parent roots: Animals,Flowers,Fruit Vegetables. It has also a number of child roots.When I double click on a child root at run time I want to creat a new tab page on tab control1 with the name of that double clicked child root and it must have have different number starting from one after the name. For example: jaguar1,jaguar2, apple1,apple2,apple3,... When clicked parent roots mustnt creat a tab page.Each tab page must have the name of the childroot clicked and a number starting from 1... How can write this code in visual basic
I'm trying to find a control in a page. The Id is available as a server control (CheckBox) This throws exception "not able to convert string to double"
Dim taskId As HtmlInputCheckBox
i =10
taskId = Me.FindControl("chkTaskOption_" + i)
taskId.Checked = True
I have a tab Control with multiple pages. In my Load Sub routine I have tried the following 2 statements[code]...
View 7 RepliesI'm developing in VS2005 on WS 2008 and I've created a windows application containing the webbrowser control.I am trying to run a page containing an activex control, the download prompt for the cab file appears even though the control is installed and running in IE on this machine.Also if I navigate to a site containing Flash, the content is not shown as if Flash is not installed, but it is and again runs fine in IE
View 1 RepliesIs the "DataRepeater" control derived from the "Visual Basic Power Packs" applicable on ASP.NET web forms? If not, is there a similar control for use on the ASP.NET web pages?
View 1 RepliesI wrote a page Page method in my aspx page. in web service method I need to call FindControl method return textbox and get text box value. But my findControl will take MasterPage object to iterate.
see my code
<script type = "text/javascript">
function ShowCurrentDateTime() {
$.ajax({
[Code]....
How to pass Master Page object or Page to Page method?. So I can use in Sared method.
Is there any way I can access Textbox value directly in Page method? I need access couple of controls in Page Method.
HOW TO RUN THE JAVASCRIPT FUNCTION ON PAGE ONLOAD EVENT IN CONTENT PAGE OF MASTER PAGE.? means i have masterpage and the content page of master page namely default.aspx in vb.net.i wanna run javascript function in Default.aspx and i have called the function body onload in master page.when i run my website it shows the error "" Microsoft JScript Runtime Error : Object Expected ""
View 4 RepliesI need sample vb.net code to save single windows form as many page and reload the page whenever i call that page...
View 1 Replies