Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2008, 01:20 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

can you post the whole error and what line it occurs on and then show me whats on that line?

Jason Hall
 
Old October 9th, 2008, 04:50 AM
Authorized User
 
Join Date: Sep 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many Thanks, I just found out that I made a typing mistake for the javascript function, Its work fine now.

Thank you

 
Old October 9th, 2008, 07:29 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

was it this:

getElementsById


should have been:

getElementById

I just noticed this when you posted your last post about a typing mistake... sorry I didn't see it earlier

Jason Hall
 
Old October 15th, 2008, 08:27 AM
Authorized User
 
Join Date: Sep 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Just one little question, How do i get the IDs of the images which are single click (by java script as you describe me earlier).

When I execute your code (writen below) its gives all the IDs
Dim Dim As String = ""
Dim img As System.Web.UI.WebControls.Image

For Each con As Control In placeHolder1.Controls

   If TypeOf con Is System.Web.UI.WebControls.Image Then
      img = New System.Web.UI.WebControls.Image
      img.ID = CType(con, Image).ID
       If Not String.IsNullOrEmpty(img.ID) Then
        Session("imageValues") = Session("ImageValues") + Dem + img.ID
         Dem = "~"
         MsgBox(img.ID)
       End If
   End If
 Next

Thank You


 
Old October 15th, 2008, 08:31 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

i'm not sure what you mean? you only want the ID's of the images that are clicked?

Jason Hall
 
Old October 15th, 2008, 09:50 AM
Authorized User
 
Join Date: Sep 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, i need only those IDs of images that were click, (basically i have two javascript function first is "onclick" and the second is "ondbclick" i need the IDs of "onclick" images)

 
Old October 15th, 2008, 10:08 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

unfortunately i'm not that great at javascript so i think you may need to ask someone else maybe in the javascript forum?

Jason Hall





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM
HELP HELP ODBC<->ASP <-> XML moon Wrox Book Feedback 1 November 9th, 2003 12:42 PM
<<ASP.NET Security>>,download files in chapter 8 alaix All Other Wrox Books 1 July 24th, 2003 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.