How To Add Specific User Link To End Of URL

Aug 23, 2011

I need to be able to add a user's code to the end of the url of each page they go to. I am a user, go to my site and type in my user code - which is NOT a login. There is no password, in theory there will be a box or some type of control that will allow a user to enter their code in. This control will then add that user's code to the end of each URL for every page in the site and will also auto-populate all of the products in our database that are tied to that code. The user is like a business or affiliate marketer. We need that code at the end of each URL that way when he sends his clients emails with links in them for purchasing, the client will click the link, and that marketer will get credit for the sale(s).

I was told to use this code:
<ul id="p7menubar">
<li><a href="<% =GetIB("[URL]") %>">Home</a></li>
<li><a href="#" class="trigger">Lookup</a><ul>
<li><a href="<% =GetIB("Default.aspx") %>">Product</a></li>
<li><a href="<% =GetIB("/FeatureSearch.aspx") %>">Feature</a></li>
[Code] .....

I am now using this code and it seems to be taking it whatever value I type into my textbox:
Protected Sub IBTextBoxButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles IBTextBoxButton.Click
Session("IB") = IBTextBox.Text
Dim IB As Integer = Session("IB")
Response.Redirect("IBDefault.aspx?Baccount=" + Session("IB"))
End Sub

<a target="_blank" href="<%# eval("Data") %>?IB=(Session("IB"))"><%#Eval("Title")%></a>
The "IB" gets underlined and says it must be followed by an equal (=) sign and a value. Or if in quotation marks, they must match.

View 1 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

.NET Link A Listview Selection To A Specific Database And Populate Textboxes?

Aug 19, 2010

Working on a project that contains a listView (populated from a database already) and several textboxes. What I am trying to do, and cannot figure out, is to program this so that when a user makes a selection in the listview, it hits a specific database, and based on certain values within that databse, the textboxes are populated with things such as name and address, etc..

View 2 Replies

How To Link Cell Value At Specific Location In The Datagridview Table To Image Source

Jan 13, 2012

As I have no idea on how to retrieve access data at the specific location in the table, so I wrote VBA code t export the entire access database to a datagridview which is located in the form1. There's a column of datagridview contain complete address information of a image. I'm thinking a way to link image source (of form 2 or xaml file) to the the column so that the image will be displayed. is there any code to get cell value at the specific location in the table? In excel VBA, sheets("Sheetname").Cells(rownumber, columnnumber).value is used to get the cell value, but how about code for this case?

View 2 Replies

Link With Two User Form?

Sep 19, 2011

how to link with two user form

View 4 Replies

See If The User Right Clicks On A Link In Webbrowser?

Oct 28, 2009

Im trying to check and see if the right clicks on a link in a webbrowser, if so enable a button on the contextmenustrip that allows him to open it in a different tab.

Dim Oelement as HTMLelement
Private Sub ContextMenuStrip1_Opening(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ContextMenuStrip1.Opening
If oElement.TagName = "A" Then

[code]....

View 3 Replies

User Change Link Name And Location?

Oct 15, 2011

I am trying to write a program where a user of my app can change the link location and label name.

At work we have testing scenarios that change at different locations, and instead of me sending updates every week, allow the user to update the link and label name by appending a file or db to pull the information?

View 1 Replies

.net - Send An Email Confirmation Link To The User?

Mar 20, 2011

I am developing a website where I need to send confirmation link to the user's e-mail account when he/she signs-up.

When user clicks this link then a field userEnable in database changes from "false" to "true".

How do I send a confirmation e-mail to a user when user clicks on the signup button.

When user clicks on this confirmation link then how would the field UserEnable change from "false" to "true"

I am using asp.net 4.0 with VB.NET as the language and SQL Server 2008 for my database.

View 4 Replies

Link Button / GridView - Allows The User To Enter The New Data

Jul 9, 2009

I have a gridview and a LinkButton which is not in the gridView. What I need to to is, when the user clicks the LinkButton AddNewRecord, the gridview allows the user to enter the new data. I know this is possible (and easier) using FormView, but I need to to using the GridView. Does anyone know if this is possible, and, if so, how I can do it?

View 1 Replies

Make A Program That Allows The User To Type In The Download Link?

Jul 14, 2010

I'm planning to make a program that Allows the user to type in the Download Link of another program, and then Run it. I do not want the file to be saved on the user computer.

View 1 Replies

MessageBoxButtons - When User Click Yes Button Then A Link Should Open

Dec 30, 2009

i have message box with two buttons yes and no.MessageBoxButtons.YesNo How can i set web Link in Messageboxbuttons yes button?When user click yes button then a link should open.

View 2 Replies

Parameter Link - User Can Edit / Change Value Of Threshold

Dec 26, 2010

I want to create a page name "parameter link" where the user can edit and change the value of the threshold. For now, what I have is, all user can change the threshold permanently. What I want now is the user can only change the threshold value during the session only, and the value will reset back to the previous value when the other user login. Only admin will have the privilege to change the value of the threshold permanently., but I don't know where to start.

View 1 Replies

Pass Link-Button Click From One User Control To Another?

Jan 18, 2012

I have two user controls on the same page. One contains a ListView that displays navigation links, the second user control should be updated when user clicks on the buttonlink in the ListView.

View 1 Replies

Allows A User To Select A Program To Run At A Certain Time For A Specific Amount Of Time All Choosen By The User

Jul 1, 2010

I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.

[Code]...

View 5 Replies

Creating Link To File On Web Server And Offer User To Download

Sep 6, 2011

I ran across some legacy code which creates a link to a file on the web server and offers the user a link to download the file.

Machine name:
MYSERVER
[URL]

Full url path to the directory containing the file to download: [URL]

Target file name:
downloadable.txt

The code does the following to create a link to 'downloadable.txt'
server.machinename.tostring & ".. argetdownloadable.txt"

Which results in:
"MYSERVER.. argetdownloadable.txt"

That link appears on the page as:
<a href="MYSERVER.. arget.downloadable.txt">download this file</a>

In IE 7, mousing over the link shows the full URL "[URL]" in the status bar. And it works fine for downloading the file in IE 7 (left or right-click). Firefox shows "[URL]" in the status bar and downloading the file isn't as straight forward. FF actually tries to change the file name to include the server name and target directory in the file name.

I've tried other methods like WebClient.DownloadFile() and had no success. This works, but I'm unfamiliar with the ".." and curious about how it works. I understand that ".." typically means go up one directory. My question was really more in the line of "how does that get interpreted in the browser to sort out the path?"

View 4 Replies

Asp.net - Auto-redirect On Login Link Click To Admin Page If User Already Logged In

Apr 9, 2011

i have a login page link above the page /// i want if user already loggedin then anybody click on loginlink then the user will automatically redirect to default.aspx ..

View 3 Replies

Create Link To Open User Control In Program Form To Use At Design Time?

Feb 1, 2010

I've got a VB.Net form application that dynamically loads user controls based on which navigation link the user clicks on. I'd like to make it easier to use at Design time by putting a link of some sort to open the User Control at design time. The link would go onto the form in the space where the User Control will be going. This just saves a little time from having to browse through the files to open the correct file.

View 2 Replies

Sharing User Specific Variables?

Jun 9, 2011

I am building an ASPX web site which has several pages and multiple users.I grab specific info about each user such as UserName, ID, etc. when they start a session and I need to retain this info and have access to it from each page (which has it's own class).I know i can create a global file and share variables publicly, but i need the variable values to be specific to the user, not the entire application.

View 2 Replies

Use User Specific Folders Like The Appdata?

Oct 8, 2011

How do you use user specific folders like the appdata I was making a program that wooed back up folders on different computer without editing the code. So how use folders that you can get to by putting present shins around like %appdata%

View 1 Replies

User Form With 5 Specific Inputs

Dec 9, 2010

I'm trying to create a User form that has six inputs.

1.) User input textbox 5.00 to 60.0 inches only accepted.
2.) User input textbox 2.50 to 30.0 inches only accepted.
3.) User input textbox 6, 8, & 10 nominal input only accepted.
4.) User input textbox 60% or 65% only accepted.
5.) User input textbox 2.50 to 30.0 inches only.
6.) User input textbox where 500 shows up in the box as "standard" but can be changed by user input.

Then an "OK & Cancel" button. I don't know whether to use a dialog box or a form, what class, masked text box vs. not masked, etc.

View 14 Replies

Associate Colors With A A Specific User In A Datatable

May 20, 2012

On my datatable (I hope that's the correct word) I have two columns that I want to store color values. I changed the data type to "System.Drawing.Color".

However it would appear I cannot simply type in the string (e.g: "Color.Black") to add it to the database. And when using an update SQL query and make it look for color values on the form, it wants to convert them to string.

Is it possible to store color values like this in this way or do I have use another method?

View 1 Replies

Detect Whether A User Has A Specific Redistributable Installed In .NET?

Jun 16, 2009

I have created a class which builds a Crystal report and displays it in a report viewer. However, without the Crystal Redistributable, the code crashes. How can I programatically detect whether the end-user has the Crystal DLL installed? The code I am required to include is:

[Code]...

View 5 Replies

Display The Tab When The User Click The Specific Button?

Oct 24, 2011

I am using tab control in my application, i need some info for using it as i want to display the tab when the user click the specific button

View 13 Replies

Update A Specific Row In The Table Depending On The User?

Feb 25, 2010

basically i am doing a golf scoring project in vb.net express 2008 and im trying to update a specific row in the table depending on the user i am updating. however it doesnt work and the error message that appears says that there is a syntax error in the update statement but i have no idea where the error is. msgbox(sql) shows that all of the variables are what they should be so i dont think its that.

Imports System.Data.OleDb
Imports System.Console
Imports System.Data

[code]....

View 11 Replies

Way To Fire Events When A User Clicks A Specific Tab

Aug 3, 2010

I looked everywhere for this but not sure if it can be done. Is there a way to fire events when a user clicks a specific tab. Here is the image to show it better:I am trying to have the program execute a special function when the user clicks on customer info.

View 4 Replies

Prevent The User From Proceeding If A Specific Text Box Is Empty?

Apr 19, 2012

I am trying to prevent the User from proceeding if a specific text box is empty. All of the following lines of code SEEM TO work:

If txtTitle.text = "" Then.....
If txtTitle.Text = Nothing Then.....
If txtTitle.text = Nothing Then.....
(followed by a message box advising of the need for input)

The problem is, if the User enters a space (either accidentally or intentionally) all three of the above recognize the space as a valid entry.

View 4 Replies

Scheduling - Run A Specific Functions At User Defined Times

Sep 2, 2011

I'm building an application that will need to run a specific functions at user defined times I need help with setting up the schedule part of the app. What I would ideally like to do is be able to set up an "event" which will occur at a specific time and date or at a specific time on specific days such as 9:00 Monday's Tuesday's Wednesday's and Saturday's.

View 2 Replies

VS 2008 Delete File In User Specific Directory?

Dec 16, 2009

what is probably a very stupid and basic question, I'm new to Visual Basic I currently coding a program which deletes specific files that are part of a game. It finds and deletes all the files in the "program files" directorys but there are also certain files in My Documents that must be deleted.

The problem is the filepath to My Documents includes a username which is unique to different users, meaning on any other pc the program will not work.

The path on my computer is: C:UsersShaneDocumentsElectronic Arts

How can I get the program to find this folder on other computers? I'm totally lost.

View 5 Replies

VS 2010 Store Specific Information About User In A File?

Apr 27, 2012

I need to store specific information about a user in a file of some sort. Something like an old ini file?

I will need to save a file for each customer.

CustomerName
OrderDate
DeliveryDate

[Code]....

All things point to a database but for several reasons I can't use a database.

View 2 Replies

ComboBox - Populating All Date For Specific Month Selected By User

Apr 21, 2010

I need to populate all date for an specific month selected by the user from a combobox where I added all months name. How I can create array of any months of the year, very new coder in vb.Net.

View 1 Replies







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