Stop Two Users From Clicking One Link?

Feb 16, 2010

I have an website that has a datagrid that is pulling information from an SQL database. The user then clicks a link from that grid and is redirected to another page. My question is if a user clicks the first link and is redirected and then a second user clicks the link is there a way to stop that second user from being redirected or sent back to the first page after they click the link? So it would have to somehow detect on the second page that a second user has clicked the same link. Hope this is clear. This is being programmed in VS 2008 vb.net and SQL 2008

View 2 Replies


ADVERTISEMENT

Call An ASP Link From VB Code-behind Instead Of User Clicking Link?

Feb 8, 2012

I have a link here that works perfect for calling the postback close that I need to happen:

<a href="javascript:parent.__doPostBack('Close','')"><asp:Label ID="Label5" runat="server" Text="Close Me"></asp:Label></a>

However, I would like to be able to call the *javascript:parent.__doPostBack('Close','')* method from the code-behind file rather than the user clicking the link. I.e., when I have completed my tasks in the application code, call parent.doPostBack as my last function call, which closes the window in question.

View 1 Replies

Clicking A Link In 1 WebBrowser Causes WebBrowser2 To Navigate To The Link?

Jun 12, 2009

When a button is clicked i am creating HTML that will be displayed in the WebBrowser1 control. With this HTML are several links to other pages. Is it possible that when one of these links is clicked, that WebBrowser2 navigates to the page instead of WebBrowser1?

View 5 Replies

Clicking A Javascrip Link?

Apr 22, 2010

i've been trying and trying to click this link use vb 2008 but cant figure it out!

Heres the HTML/Javascript

<a onclick="add_friend('ImTrollin'); return false;" href="#">Add as Friend</a>

View 1 Replies

Clicking A Text Link

Aug 14, 2010

I want to create a program that when the user clicks button1 it will press a button on a specific webpage.I've done what I want it to do but I have a problem. Before it can get to the page I want a button to be clicked on it has to Agree to some rules, I want to create some code that will click this button when button2 on my form is clicked.I can't seem to find the button ID since there is none so am not sure on what to do.

View 1 Replies

2010 - Clicking The Following Link On A Website?

Feb 28, 2012

i am trying to click the following link but its not working

<a class="defaultTableButton" id="ADRS_MENU" href="javascript:wsMenu_jumpUrl('../../address/adrsList.cgi',000)" style="text-decoration: none;">Address Book</a>

also

<img id="loginBtn" align="absmiddle" width="27" height="20" border="0" title="" alt="" src="/images/headerBtnLogOn.gif" name="loginBtn">
<span class

View 1 Replies

Clicking On A Dynamic Link In Selenium?

Jan 14, 2011

I need to click on link in a table whose id is generated dynamically. I want to click on a link based on a text in some other column in the same row. Tried the following code but unsuccessful

selenium.GetValue("//table[@id=TableID]/tbody/tr[td/a/text()='Testing']")
Also trying with the following code
Selenium.click("xpath=id(TableID)/tbody/tr[td/text()='Testing']//input [@value='Delete']")

[code].....

View 1 Replies

Clicking Text Link - No Name Or ID For Tags

May 1, 2012

First, let me clarify that the links call on javascript/jquery functions. The href="#" for ALL links and can not/will not be changed (it's not even my website that I'm grabbing it from). There is no name or id for the <a> tags, so I'll be needing to InvokeMember("click") on the link based on the text that is between the <a></a> tags.

For example:
<a staticrndstuff="stone" customrndstuff="waffles" href="#">TextForTheLink</a>

I've tried every method I could find on google and even consulted /g/ to no avail. The 'staticrndstuff' is the same for all links, but the 'customrndstuff' is unique to specific text/links. Usually, for something with an id you can simply use WebBrowser1.document.GetElementById("ElementID").InvokeMember("click"),
But how can I have a vb.net forms application click a link on a webpage based on the text between the <a></a> tags or on the static/customrndstuff?

This is the hardest thing I've encountered, which is a bit sad for me.

View 14 Replies

VS 2008 Clicking On A Link In A WebBrowser?

Mar 13, 2010

I want to click on an Email link on This Disposable Email Website Lets say the email's title is "Email 1".How would I get my program to click on it?

View 5 Replies

Finding & Clicking A Always Changing Link ID On Webpage?

Jan 15, 2011

I can now navigate to pages, fill forms, submit forms, click elements etc.My next big step will be collecting html element ID's which are constantly different each time I navigate to a page.On the webpage I am working on, each page contains 10 of these ID's.

ill_btn_20234518
ill_btn_20534538
ill_btn_20174048

Now I am just looking to click on one of them at random for right now. It doesn't matter which one. Or perhaps the first one to appear on the webpage.Here is the code that I tried first........it works fine for clicking static buttons (without the random id #'s at the end)

Dim ill As HtmlElement = WebBrowser1.Document.GetElementById("ill_btn_")
ill.InvokeMember("click")
End Sub

I guess what I am looking for here is some sort of partial id tag, to let it know to search for the first ID that begins with ill_btn_ ?

View 32 Replies

VS 2010 Clicking Button Link Within A DIV On Browser

Nov 12, 2010

I've been able to click buttons normally by [code]But I'm up against this class:button_link within a DIV which is giving me grief. It won't getelementbyId using send_button and it's not in a form.[code]So I'm looking for a way to click a button within the DIV.

View 3 Replies

VS 2010 Clicking On A Link In A Webpage Via Href?

Nov 29, 2011

I am developing a small software to load an excel file to a website and then create a .kmz file. I have coded up to the file creating point.Now I need some help with the file downloading.The file is something like this "1322559442-10125-61.245.172.28.kmz"And the href value is "/display/1322559442-10125-61.245.172.28.kmz"This is for one file.The next time you upload an excel file to the program you get a different href value.So I want to create a code which can download the first href with the extension

[Code]...

View 1 Replies

Null Error In Browser Link Clicking Code

Sep 16, 2011

I'm trying to click a link in an embedded browser based on the link ID. However, I keep getting a NullReferenceException error. I have not declased anything from the code. Just dropped it in from another website. Any ideas?

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
For Each link As HtmlElement In WebBrowser1.Document.Links
If link.Id = "ctl00_mainContentArea_submissionFileListTable_ctl02_documentHyperLink" Then
WebBrowser1.Navigate(link.GetAttribute("href"))

[Code]...

View 1 Replies

Asp.net - Stop Document Downloads From Unauthorized Users?

Jun 29, 2011

I have an application where the admin user can create users and upload documents to the server for the created user to download.

When uploading a file it creates a folder using the userid as the folder name and saves in that folder within a folder called documents e.g. ~documents/77b29079-43d6-4520-bc34-77ae2af1b131/documentname.xls

The client then has to login and will see a list of available documents for that user only. The only problem is that if someone was to get hold of one of the urls to a document is can be downloaded without having to login.

Is there something I can do to stop access to these files?? I have tried editing the web.config file to only allow access to certain roles but i could still download a document without logging in.

<location path="documents">
<system.web>
<authorization>

[Code]....

View 1 Replies

Stop Users Input Any Words Into Combolist?

Sep 26, 2010

I want to stop users input any words into combolist,they just can select item from combolist,instead of input something,anything,but how?

View 7 Replies

Forms :: ComboBox - Stop The User From Clicking A Blank Area?

May 28, 2010

how to stop a ComboBox from displaying blank data?

The query I'm using does not allow nulls but the ComboBox is showing black areas and the user can click in those areas.

The PureComponents ComboBox did not show the blank areas but when I started to use the ComboBox from VS 2008 the blank areas are showing up.

The attachment shows me clicking in a blank area.

View 8 Replies

Stop Using DLL And Statically Link To A LIB?

Sep 1, 2010

I have a VB 20008 Express project which currently uses a DLL. I would rather distribute a single .EXE

I used DLL2lib and converted it to a library, but as I haven't done this before,

How can remove the DLL from my project? The Project menu has an "Add resource" option, but I can't find any way to remove it (it doesn't show up in Project/Properties). Do I simply remove the Imports statements from my code? How do I statically link to the library?

View 1 Replies

Asp.net - Hide Web Link From Users Without Role Assigned?

Apr 4, 2012

I currently have some security working in my application by using the roles and rules, but i wondered whether it was possible to hide web links depending on if a user belongs to a certain role.I currently have it so users belong to either the 'admin' role or 'user' role. Rules have been setup on folders in my application so if a user belongs to either of the groups they can click on a web link and it takes them to the page. However, if a new user registers they belong to no role, and when they click on the web link it redirects them to the homepage (see code below). This is great, but, i wondered is it possible to hide that web link if the user did not belong to a specific role preventing them click on it. Also if a user belonged to no role could they be redirected to a page to tell them they need a role assigned?

<authentication mode="Forms">
<forms loginUrl="~/Homepage1.aspx" timeout="2880" />
</authentication>

I dont use this in the current application but have in the past, this checks if the user has been authenticated, i wondered whether i could use a similar IF statement for:If user.identity does not belong to 'user' or 'admin' role, then redirect them to page and display error?

If User.Identity.IsAuthenticated = True Then
Dim myUser As MembershipUser
Dim objUser As Object[code].....

View 2 Replies

Hide Web Link From Users Without Role Assigned?

May 9, 2012

I currently have it so users belong to either the 'admin' role or 'user' role. Rules have been setup on folders in my application so if a user belongs to either of the groups they can click on a web link and it takes them to the page. However, if a new user registers they belong to no role, and when they click on the web link it redirects them to the homepage (see code below). This is great, but, i wondered is it possible to hide that web link if the user did not belong to a specific role preventing them click on it. Also if a user belonged to no role could they be redirected to a page to tell them they need a role assigned?

<authentication mode="Forms">
<forms loginUrl="~/Homepage1.aspx" timeout="2880" />
</authentication>

[code].....

View 1 Replies

Stop Users From Changing Date To Extend Trial?

Aug 8, 2011

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If My.Settings.registered = True Then
Form3.Show()

[code]....

This is my code for a trial application. The code is pretty basic but what i couldn't figure out was how i would be able to prevent users from changing the date to extend the trial ("error" i would be getting).

View 4 Replies

Stop Users From Typing Anything Into The Textbox If The Datatype Isn't Correct?

May 3, 2009

I have a form that allows users to enter information into a few textboxes. When users click save, the information will be transferred into the datagridview.

My problem now is, for instance, there is a textbox called "Price" with the datatype "money" which users are only allowed to enter numbers. If users enter alphabets, errors will occur. I don't wanna use try catch, I would like to try different methods such stopping users from entering anything into the textbox when the datatype isn't correct - nothing will appear in the textbox when users hit all the keys in the keyboard except for numbers.

View 3 Replies

Open Page In New Tab In Asp.net On Clicking A Dynamically Generated Link Button In Gridview Using Vb?

Mar 6, 2012

I want to open the url in new tab when clicking on the link button that is generated dynamically in grid view.

I am using VB.response.redirect(url as string) opens the url in same window. what should i write in on click event?

View 2 Replies

Visual Basic 2008 Click Html Buttons, Clicking URL Link, VB Automating Web Browser Control

Aug 29, 2009

I'm new to visual basic & have learned many new things in such a short period of time from being on the MSDN forums. I have learned particularly in the subject of automating web browsing control using the getattributes etc., but I have tried everything that I have seen in the forums to auto click the "Settings" link in a created gmail account and then have the browser automate the "Forwarding" to another gmail address. I haven't found a solution anywhere to accomplish this.

So here is an account to try out in which this should only take a few mins to a veteran coder:

[Code]...

View 1 Replies

Asp.net - Clicking Link To Replace Current Frameset Contained In Current Window

Dec 28, 2011

I have following link in a.aspx file:

<a href="a.htm" target="iframe">A</a>

I want to set link from a.aspx.vb page according to what person is viewing the page. How can i change this so that if user clicks on link it will replace current frameset contained in current window with a url provided according to user?

Or in another way:

How will i replace href code in aspx page by giving it value from aspx.vb page?

View 1 Replies

Clicking A Link On A "navbar"?

May 15, 2010

The tool Im creating logs in to several different sites automatically but I cant get one of them to work becuase in order to get to the username and password prompt, a link must be clicked first. I'm having trouble clicking on this link as its in some sort of Navbar which has a different url (seen if you right click and choose properties). [URL] but the link on the left of the page is in [URL].

View 1 Replies

Clicking The [X] Closes But Clicking Exit Button Does Not?

Jul 11, 2011

When the user clicks the Exit button it closes the forms and if there was an open file it asks the user is they would like to save. But after the application closes there is still memory being held in Processes by the application. However, when pressing the [X] in the top of the form the application closes again but in this instance it is not held in Processes. How do I write the close for Exit to take into account how the [X] works and close the application cleanly?

Friend Sub CloseAllForms()
CloseHelpForm(True)
CloseDiagForm()[code].....

View 6 Replies

Single Clicking, Double Clicking And Contextmenu?

Mar 27, 2010

Someone asked me to add a function when the notifyicon is doublcliked. I figured that'd be easy with the mousedoubleclick event being available. I find out that then both the single and double will then be called. Well that sucks, I want it to only do the one the user requests. So I tried to get it to work:

Private Sub DblClick_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles DblClick.Tick

[Code]...

View 3 Replies

Administer Website (create New Users, Assign Users To Roles) From A Windows App?

Feb 9, 2010

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:

<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"

[code].....

View 3 Replies

VS 2008 Database Search - Using SQLClient That Loops Though All Users In A Users Table

Dec 29, 2010

I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.

I get this error

HTML

There is already an open DataReader associated with this Command which must be closed first.

Here is my code

vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",

[CODE]...

View 3 Replies

.net Desktop App : Log Users Application's Usage By Users After Remote Deployment?

Apr 3, 2012

1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.

2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved