Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 December 27th, 2006, 07:13 AM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default de hidden waarde in img weergeven

kan ik dit doen door zoiets dergelijks te gebruiken?

sql/asp code:

IF prioriteit = "2" THEN
      prioriteit = "../img/meter2.gif"
END IF

~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around
__________________
~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around
 
Old December 27th, 2006, 07:21 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Oh!! man

We need a language converter to understand this (don't mind friend, just kidding)...

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old December 27th, 2006, 07:50 AM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am very sorry :D

I want to show the value of a hidden textfield , in the next page, like an image. Is this possible?

I have tried to use the following code:

IF prioriteit = "2" THEN
     prioriteit = "../img/meter2.gif"
END IF

but it doesn't work. Is it possible to do it in kinda like this way or do I have to use another way?

~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around
 
Old December 27th, 2006, 09:31 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Still not sure about your query, if you wish to send the value of hidden to next page, you can pass it in a querystring as below:

Response.Redirect("YourPageName.aspx?imgName=" + hdnImage.Value);

Then you can fetch the value of this querystring and use where ever you want.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old December 27th, 2006, 10:36 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It may also be possible to use Request.Form on your next page.

Response.Write(Request.Form["--hiddenfield--"]);

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old December 29th, 2006, 04:11 AM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you all , I did it in my way with the

IF prioriteit = "2" THEN
     prioriteit = "../img/meter2.gif"
END IF

For now it doesn't give any problems :)

and used an 'input type' for the next page:
<input type="image" disabled="disabled" name="prioriteit" id="prioriteit" src="<%=RS( "prioriteit" )%>">

and some other javascript coding:

function setPrio(s){
    for(i=1;i<6;i++){
        document.getElementById('P'+i).src='../img/uitroepteken.gif'
    }
    for(i=1;i<(s+1);i++){
        document.getElementById('P'+i).src='../img/uitroepteken_UP.gif'
    }
    document.getElementById('prioriteit').value=s
}

function holdPrio(){
    if(document.getElementById('prioriteit').value=='1 '){
        document.getElementById('prio1').value= setPrio(1)
    }
    if(document.getElementById('prioriteit').value=='2 '){
        document.getElementById('prio2').value=setPrio(2)
    }
    if(document.getElementById('prioriteit').value=='3 '){
        document.getElementById('prio3').value=setPrio(3)
    }
    if(document.getElementById('prioriteit').value=='4 '){
        document.getElementById('prio4').value=setPrio(4)
    }
    if(document.getElementById('prioriteit').value=='5 '){
        document.getElementById('prio5').value=setPrio(5)
    }
}

~~~~~~~~~~~~~~~~~~~~~~
What goes around comes around





Similar Threads
Thread Thread Starter Forum Replies Last Post
Img doesn't display peter2004 HTML Code Clinic 9 September 16th, 2009 08:20 PM
img not refreshing austinf XSLT 1 June 13th, 2006 03:55 AM
Conectar textbox a campo de base de datos Access aya_hbkenshin04 ASP.NET Espanol 0 May 4th, 2006 01:26 PM
why de sql compiler do not parse de following? deniscuba SQL Language 2 February 4th, 2005 04:04 PM





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