I'm using Visual Web Developer Express 2005 to get me started - probably a bad idea I'm told. Anyhow, I've connected a drop-down list ('Components') to a column in a SQL DB, and, upon selection, the resulting gridview is being generated as I hoped (with the corresponding 'Applications').
However, I would like each of these resulting rows in my gridview to be "clickable" as a hyperlink so that I can display each of the applications details on another page. If someone could enlighten me as to whether/not this is even possible, and if so, how?
I have an ASP Session where I add values on Page1 and then use them on Page2 e.g Session("newsid").
What I want to do is when I click on a specific link, clicking on the link adds a value to the Session and then redirects the user to a new page, but nothing I do seems to allow me to do this. The code where I want it to be done is as follows: Code:
I posted awhile back about displaying line breaks in ASP pages from MS Access Database records which was solved very well with the use of a replace function. is there a replace function to display hyperlinks mixed in with regular text in a memo field? If so, could someone tell me what the code is? I use this for line breaks: Code:
MemoField = Recordset1.Fields.Item("ArtText").Value ' Field from database MemoField = Replace(MemoField,chr(13) & chr(10), "<br>") ' build in html line returns
Say for instance that I have 2 frames and I have code in one. That code is returning information from a database. In that database there are hyperlinks to images. Upon clicking that hyperlink how do I force the image into the other frame?
At present It opens appears to go to a new page, but everything is coded in one ASP page. So I have to click back to select another image? I want to be able see both the database and image so I dont have to go back and forth
I need to format each row being returned in a recordset as a hyperlink. One of the fields being returned is the subject of a message that my hyperlink will show. When the hyperlink is clicked then the ASP page loads further message details of that link. Does anyone know how to do this?
I added a column to my Access database and defined it as hyperlink. I added some URL in the fields and i was able to see the underline under each address. In my code i added the following line : Response.Write("<td align=right>" & oRS("info").Value & "</td></tr>") (The hyperlinks defined in my database as info). I'm able to see the hyperlink when i retrieve all other data but it appears as #http://www...asp# and with no underline what is the reason and how can i change this ?
<% ' Loop through the array holding the result set and display the data For iCounter= varC1Begin to varC1End Response.Write("<a href=prices.asp?manuf=" & arrResultSet(0,iCounter) & ">" & arrResultSet(0,iCounter) & "</a><br>") Next %>
In the above Response.Write statement arrResultSet(0,iCounter) displays the manufacturer just like it should.
However, within the hyperlink, if a manufacturer has 2,3, or more words, it will only show the first word. Anything after the first space is ignored. Why?
I'm writing a company intranet site,and on the home page,I'd like there to be links to some of the software that the employees frequently use on their own computer.This will be the inducement to get them to use the intranet home page as their default home page, and visit it frequently.
anyone know some good ASP code to go through a page and test the hyperlinks to make sure that they are valid. Couldn't find anything good yet, but if someone knows of anthing.
I'm trying to excecute all the hyperlinks on a webpage one by one with a specific order automatically, any suggestions/helps on that?
when a link is executed (clicked), a popup comes up asking you to open or save the document, is there a way to by pass that? And save the file automatically into a specified location?
I have a page which takes data in an HTML table, and exports it to an Excel file. It works fine, but I want several things about the spreadsheet to look different from the HTML version. Things like fonts and colors. I think I can use a style sheet for the latter, but I haven't figured out how to remove hyperlinks from some of the items. On the HTML page, the hyperlinks are useful, but I don't want the spreadsheet to have them.
So on my ASP page which builds the Excel file, I have this: ...
<input type="submit" value="Click to Continue" name="ClicktoContinue"></a></p>
The hyperlink uses parameters that pass the value of the "Remote_computer_name" and the value of "committed" to a SQL statement that uses the values returned to update the underlying database.
The hyperlink code runs perfectly when I click on the submit button on the web page and updates the database however at that point I want the user to be redirected to a new page i.e. a second URL address.
<input type="submit" value="Click to Continue" name="ClicktoContinue"></a></p>
The hyperlink uses parameters that pass the value of the "Remote_computer_name" and the value of "committed" to a SQL statement that uses the values returned to update the underlying database.
The hyperlink code runs perfectly when I click on the submit button on the web page and updates the database however at that point I want the user to be redirected to a new page i.e. a second URL address.
I need a menu in one of my asp pages. A click on one hyperlink should display its pull down menu of the other related hyperlinks ... as that appears in search option this forums. As an example... main link will be Alphabets. A click on it or on focus.. it should display a drop down list of other related hyperlinks.
Is it possible to allow a person whom navigates to a particular page to type in a URL to a website they visit often, and have it be treated like code on the page itself for them to use it as a hyperlink?
Lets say I have a list of all of Jimi Hendrix's live shows. I can view the entire list at shows.asp. Now, what do I do if I just want to see shows for, lets say 1971?
I want hyperlinks on my page for each year and when I click the year, it generates the list of shows from that year. I dont want to make an ASP file for every year. How do I do this? Do I use a METHOD=GET and then do something like "shows.asp?year=1971"?
Basically, I'm trying to make a web-enabled database for band. So this is gonna get complicated. Like once I get a certain year, I may also want to view by states and so on.
its enclosed in a loop with the counter element increasing to the given total and its meant to set the value of the text box (the session variable) to display the value.
in plain ASP and html all thats needed for the normal input box to display a session value is :
i have one array of string and it contains 51 elemnts. it will get bigger and bigger but i want to read these array ellments from a text file.this is possible?
I am aware of how to create elements, attributes on the fly with the Microsoft.XMLDOM however I was wondering if anyone had any examples of how you could extend this to insert the content created in to an existing node.
Eg
<root> <section> <- INSERT ELEMENT HERE -> </section </root>
In my ASP page I have a set of menus on the left side and list boxes just on its right side. Whenever I click on a menu and the submenu appears it gets hidden under the listboxes and cannot be read properly.
The page design cannot be changed at this point of time and the listboxes cannot be moved to any other position of the page. So is there any property or function so that I can make my menu elements appear above the listboxes.
I have an access database that holds among other info, web addresses and email addresses. They are in a hyperlink format in Access. When I run the ASP code, they disappear. I want to pull the data out, with the web addresses as hyperlinks.
I currently us JavaScript to populate a hidden field with my scroll location in order to retain the page location when I post the page back to itself. However, I don't know how to pass that hidden field value in a hyperlink as the value is always changing. Anyone have any suggestions?
A page that works fine when called by name from the includes folder loses its images etc when called as an include in a page closer to the web root.
Thus:includes/page1.asp contains the following
img scr="../images/pic.gif"
This displays the picture when the page is viewed on its own. The picture url is http://localhost/school/images/pic.gif
But when includes/page1.asp is used as an include in page2.asp (in the web root) the image is not found because the url is http://localhost/images/pic.gif
Is it something to do with virtual versus absolute file paths?
I have this form that collects text values and I use VBCrLf as delimiters to tell one element from another. Sometimes, I get several empty elements. Is there a way to remove those elements?
I have an html file where I put a date (im_lixis) in a form and I also have an asp file that checks this date and if this date exists in my table timologisi in ms access I want to display all the recordsets with this date.
I dont know what I'm doing wrong... but when I run it.. it takes some time and then tells me that I got out of time ... without telling me if I have something wrong in some line Code:
Does anyone know how to get the number of input tags contained in a div tag? I am trying to build a dynamic list of checkboxes from a database and I don't know how many checkboxes i have until the form is built to do some validation.
Probably using client-side javascript - something like
var obj = document.all.tags("div").item(0) var mydiv = obj.id.indexOf("chk0100")
But I am not sure how to specify the name of the input tag. I dont know what the above statement does.