Open A New Web Page (Url assigned In Code) And Get Return URL
Apr 11, 2010
I have a main page. How can I open a new web page (Url assigned in code) and get the return URL back in VB event when the page is closed.I have used a regular Button control to open the page with desired url: Button1.Attributes.Add "onclick", "window. showModal Dialog('" & url & "')")but I don't know how to get the REtURN URL from this page.
View 1 Replies
ADVERTISEMENT
Dec 28, 2010
I'm making a Visual Basic GUI application to display whether a number of my ports are open for people to know whether things like my website and my Minecraft server are open.My problem is I have absolutely no idea how to do this in Visual Basic.Basically, I'm asking for something which sends a signal to an IP with a specific port, if it is open then return true, if it's closed, return false. Similar to: http:[url]....
View 1 Replies
Jul 3, 2009
I'm doing my project and I design including many tab control in vb.net.
Example: I have 3 tab pages like tab1,tab2,tab3. And I have menu bar to open tab1,tab2,tab3.
My Question is: How can you use code to open each tab page?
View 1 Replies
Nov 27, 2011
I want to open up an existing instance if my program is already running only if its running the same version.I noticed that this question was asked for only if the name exists, but what if the version is older, I just want to notify the user that an older version is still running, "please remove older version before starting this version."The other link is this one:Return to an already open application when a user tries to open a new instance but they don't talk about closing an instance if an older or newer version is detected.
View 3 Replies
Nov 28, 2011
I want to open up an existing instance if my program is already running only if its running the same version. I noticed that this question was asked for only the the name exists, but what if the version is older, I just want to notify the user that an older version is still running, please remove older version before starting this version. The other link is this one: Return to an already open application when a user tries to open a new instance but they don't talk about closing an instance if an older or newer version is detected.
View 1 Replies
Aug 16, 2011
I need to post some xml data to a different aspx page and redirect to the same page.I tried the following code it does post to the page sucessfully but i need to redirect to the same page with posted data
[Code]...
View 2 Replies
Mar 13, 2009
I am creating a notes software. This is just a simple application that will show the data from the database which are Notes_Title, Due_Date, Priority. I display the data with datagridview. I also added a checkbox for each row to the datagridview to mark as check if the Notes_title is already done. In displaying the data, I need to display only a 5 data in a row.So, I create a another CLASS that will only show 5 rows per page. But the PROBLEM is, if I mark the checkbox as check in the first page then if I turn it to the next page the checkbox in the first page that mark as check will be uncheck if I turn it back to the first page. The mark check in the checkbox will mark as uncheck if I turn the page. How can I make it mark as check even if I turn the pages? And How can I save the data row as done if I check
[code]....
View 2 Replies
Jan 27, 2011
I am trying to get the html response of a Kayak.com query using a WebRequest object, however more often that not the site returns no results, i just get an empty Kayak page, i have to try the request around 5 times before i get a result back. What can be the cause of this? [Code]
View 1 Replies
Jan 14, 2010
i have an Ajax ActionLink which normally just returns a PartialView (which is just a UserControl ascx file) however, my needs have changed and i want to return another PartialView (so a total of two PartialViews) that occupy different areas of my page... of course i can't call " return PartialView("UserControl.ascx") " twice in a row consecutivelly... so my question is what would be an elegant work around for this?
how can i return two PartialViews WITHOUT wrapping these two PartialViews up in a larger parent view? i hesitate to do this because both items are in a different part of the html table which would require me to include practically the entire page in the parent view due to the structure of the table, and in this case lots of html data unnecessarily would be sent to the browser at each request - defeating the purpose of an ajax call/partial update (correct me if i'm wrong).
View 2 Replies
Apr 17, 2011
I am developing an ASPX web page to return results from two SQL stored procs via VB. When I execute these two stored procs, they both return valid data. But for some reason, when I run this report it doesn't return any errors, however, it doesn't return any records/data either!
Also, I can't debug it for some reason, although I can set breakpoints! This is using VS 2008, but I think reason I can't debug is I believe this is a limited version that just works for SSRS and SSIS.
[Code]...
Could the problem be due to the fact that this web page uses the same SQL connection for both stored procs? The first proc should be returned initially, and the second proc after this screen. So I don't need both stored procs information simultaneously, so I would think I could reuse the same SQL connection.
OK, I found where the problem is located. If I just comment out the Level statement in the Where clause, it does return data. So only thing I changed was that one line in my SQL code and it works. This means missing data must be due to datatype incompatibility, no? What is the problem?
View 2 Replies
Jul 27, 2010
This code was intended to split a long text file into pages based on the calculations of lines_per_page.The code only prints one page of a three page document.But a very strange thing happens if I click print a second time the message box which shows "Document 1 Page X of XX goes crazy up to 100 pages until I click cancel.The code compiles fine, just doesn't function as intended. [code]
View 1 Replies
Jun 3, 2009
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).
View 1 Replies
Aug 1, 2009
i wanted to ask how to make picturebox1 ,to which functions are already assigned, perform the same function as picturebox2 ,to which no functions are assigned.For example:I have already made picturebox1 and have assigned it alot of function like when play button is pressed then picturebox1.visible = true and when we press pause button picturebox1.visible = false. So now i decided to make a theme and have to remove the picturebox1 and want to allow the picturebox2 to havefunction of picturebox1.But when i disable the theme the function of picturebox1 should go back to picturebox1.
View 6 Replies
Jul 13, 2010
If cmOptions.Visible Then
Return
End If
I have a refreshing process that updates a listview every ten seconds. If the context menu is open for a selected item it should return and not refresh?
View 1 Replies
Jan 8, 2009
I would like from a certain url, to launch an excel file, have the user fill some cells and then return the value to a database by aspx perhaps.
View 3 Replies
Mar 18, 2012
Why can't I get error msg and return focus to btnOpenFile when no file has been selected. If file is selected all is good. I think I need some error cheching here..right?Class Open (open File dialog)
Public Class Open
'set up class open file to be reusable
Public Sub OpenFile(ByVal OpenDB As System.Windows.Forms.OpenFileDialog)
OpenDB.Title = "Please Select a File."
[code].....
View 1 Replies
Oct 22, 2009
I'm try on Ultimate version and Express version. Reinstall many time from web install and offline install. What should I do ?
View 10 Replies
Jan 7, 2009
how would i open an asp page?is there a way to pass values to this page from my program?
View 4 Replies
Feb 24, 2009
i'd like to print bar codes with page break after each bar code, below is my current codes.
[Code]....
View 2 Replies
Feb 18, 2010
I have a nested master page that has its own master page. The parent master page has a property defined in its code behind.
Public ReadOnly Property SelectedPage() As String
Get
Return _selectedPage
End Get
End Property
How can I reference the parent master page's property from within either the child master page's code behind Page_Load or aspx template page?
View 3 Replies
Apr 19, 2012
I write this code that myMacro open pdf file:
Sub myMacro()
Dim myShell As Object
Set myShell = CreateObject("WScript.Shell")
myShell.Run "C:myfile.pdf"
End Sub
I want open the file in page 3. How am I do it?
View 1 Replies
Jul 10, 2009
I have made a button that I use to open a picture and add it to a new tab page that will have a picturebox on:
Dim p As New PictureBox()
Dim Str As String = 0
Dim open As New OpenFileDialog
open.ShowDialog()
Str = Str + 1
[Code]...
View 2 Replies
Feb 15, 2009
I have a program that runs some code when i click a button on a form when done running the application ends. I want to automaticaly run the code when the users clicks on the exe. I have put the code that i want to run in the startup forms load event but that doesn't start
View 2 Replies
Sep 21, 2009
I have a simple ASP.NET GridView.. Using ASP.NET 2.0. For some reason you cant right click on a item in a grieview and say Open in NEW tab or page.
View 1 Replies
Mar 11, 2011
So, when someone makes a website, they decide if they want their link opened in a new tab,window, or in the same window. How do I make it by default that it opens in the same window, no matter what its set to on the website? I just don't like internet explorer taking over on those links.
View 1 Replies
Jul 13, 2009
I have a project i am working on, I want to be able to make a choice in say a Treeview control, and in the code behind Click event i would like it to open a dynamic page in a new browser tab, My difficulty is that the Response.Redirect("http:xxx") opens it in the same browser tab that has focus i have tried to add Target=_blank but not certain if this is usable attribute of the response object, and i also believe if it did work it would be more like a pop-up than a new tab. i have searched for more than a week now and have found nothing that works.
Response.Redirect("~\PM\HTMLSched.htm")
(opens the page in the same tab)
'Dim url = "~\PM\HTMLSched.htm"
[Code].....
View 3 Replies
Feb 28, 2012
I'm trying to open a PDF document from a hyperlink to a certain page. So I set the link to this:I can type the #Page=14 to the end and press enter and it will work but for some reason it will not work the first way.
View 2 Replies
Dec 15, 2011
how I could open to PDF document from a link field in a table. Also, is it possible to perfrorm this using VBA?
View 2 Replies
Jul 26, 2010
How do I open a pdf file to a specific page within the pdf.
Below is a link to some of the open parameters when using command line:
PDF Open Parameters
View 2 Replies
Dec 26, 2011
when I click on a link in the webbrowser control, it opens up internet explorer and goes to that page. How can I prevent this, and go to the page via the webbrowser control?
View 8 Replies