Forums
This topic is locked
Yes and No boxes with Upload file?
Posted 15 Feb 2005 16:30:37
1
has voted
15 Feb 2005 16:30:37 Henrik Sandeberg posted:
I want to have a yes/no box on my page, if i put a mark in the yes box i want the file upload to be visible, else it shouldnt be there. how do i do this, i have tried a little with something like conditional region, but no success yet, anyone?I saw that i can do this in Pure Asp Upload like Optional File Upload, but not with the Yes and No boxes.......
Edited by - smalbenet on 15 Feb 2005 16:39:00
Replies
Replied 15 Feb 2005 22:20:33
15 Feb 2005 22:20:33 Chris Charlton replied:
<b>Please post extension requests/bugs/questions in the appropriate extensions' own forum.</b> Thank you for understanding.
Also, <b>most extensions have Tutorials</b> (www.dmxzone.com/categories.asp?TypeId=2) <b>& FAQ's</b> (www.dmxzone.com/categories.asp?TypeId=7) here on DMXzone.
<b>Commercial Extension Support Links</b> - www.dmxzone.com/forum/topic.asp?TOPIC_ID=28581&FORUM_ID=544&CAT_ID=2
<b>Read this before asking for help</b> - www.dmxzone.com/forum/topic.asp?TOPIC_ID=30610&FORUM_ID=544&CAT_ID=2
~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Also, <b>most extensions have Tutorials</b> (www.dmxzone.com/categories.asp?TypeId=2) <b>& FAQ's</b> (www.dmxzone.com/categories.asp?TypeId=7) here on DMXzone.
<b>Commercial Extension Support Links</b> - www.dmxzone.com/forum/topic.asp?TOPIC_ID=28581&FORUM_ID=544&CAT_ID=2
<b>Read this before asking for help</b> - www.dmxzone.com/forum/topic.asp?TOPIC_ID=30610&FORUM_ID=544&CAT_ID=2
~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 16 Feb 2005 09:25:47
16 Feb 2005 09:25:47 Henrik Sandeberg replied:
But i didnt want to use Pure ASP upload first, just to have a yes/no box and if you click the yes field, the file upload should be visible.
So, i just wonder if i should use the Pure Asp Upload ext OR should i do something else?
So, i just wonder if i should use the Pure Asp Upload ext OR should i do something else?
Replied 17 Feb 2005 23:21:34
17 Feb 2005 23:21:34 Jeremy Conn replied:
Regardless of your upload method, you could simply have a 'Yes/No' field that actually populated a column for that item as 'true/false'... then, when displaying that record you could have the link be conditional based upon the content in the 'true/false' column.
<b>DEMONSTRATION UPLOAD FORM</b> (Obviously, you need to replace items with your particulars)
<form>
<select>
<option value="True">Yes</option>
<option value="False">No</option>
</select>
</form>
<b>DEMONSTRATION DISPLAY</b> (Obviously, you need to replace items with your particulars)
<% If rsRecordset.Fields.Item("LinkShow"
.Value = (true) Then %>
<a href="<%=(Recordset1.Fields.Item("LinkLocation"
.Value)%>"><%=(Recordset1.Fields.Item("LinkTitle"
.Value)%></a>
<% End If %>
<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB
<b>DEMONSTRATION UPLOAD FORM</b> (Obviously, you need to replace items with your particulars)
<form>
<select>
<option value="True">Yes</option>
<option value="False">No</option>
</select>
</form>
<b>DEMONSTRATION DISPLAY</b> (Obviously, you need to replace items with your particulars)
<% If rsRecordset.Fields.Item("LinkShow"

<a href="<%=(Recordset1.Fields.Item("LinkLocation"


<% End If %>
<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB