Manipulating Save Button Based On Readonly Attribute

I am trying to use the following code to make the save button invisible in
the asp form when the checkbox is either on or the session variable has a
particular value.

THE CODE IS AS FOLLOWS:

<%If ( cbool(l_IsChecked) = "FALSE" ) or (session("sess_FiscalFirst") <>
"Y") then%>
<input type="submit" value="Save" name="btn_Save">

<%End If%>

In the above, my logic is if the value of the checkbox is not true or the
value of the session variable is not Y then only show the SAVE button.

However this is not happening. I find that when the second part or the first
part is not there, the logic goes fine i.e. the logic holds with only the
first condition or the second condition itself but not with the or syntax.
Not sure why.

View Replies


ADVERTISEMENT

Manipulating A Button Based On Readonly Attribute Of A Check Box

I have a asp page where a checkbox, when clicked will disable all text boxes
associated with the page.

The following is a part of a code for the checkbox with its name and
readonly attributes. name="chk_Complete" <%= isReadOnly %>

I have to disable(or make sure does not disaplay) a save button in the same
page when this checkbox's attribute is readonly. I have no idea how to do
this.

View Replies View Related

Set Readonly Value Based On Access Level

I need to know how to disable a button based on the username that logs onto the web application.

View Replies View Related

Disable Save Button

Using IIS and IE how can I prevent someone from downloading an exe? I want it to be opened and executed without giving the user the option to Save it.

View Replies View Related

Form Redirect On Submit Based On Radio Button Selection.

I need to have my ASP form "post" action=? pass to a different confirmation page based on a radio button selection on the form, after submit.

Depending on which radio button they click on, they will receive the same confirmation but then be redirected to a selection specific page, based on the radio button selection. I'm assuming I need to create several different action pages, each with a different redirect, then have the radio button determine which action page the form is directed to based on the radio button selection.

I've tried several different options, such as creating a variable on the form, sDirectionVar, with redirect conditions, but I don't know how to call that on submit? I'm not sure I'm even going in the right direction.

View Replies View Related

Manipulating XML REQUEST

I have a problem with a customer's XML being submitting to me in a non-well-format XML.
They said that there are 18 other partners who has been able to tweak the XML to make it work. So I guess here is my question, in ASP, when working with XML, how do you handle non-well-formed XML documents on the "listener" response side?

Here's the scenerio:

Customer post XML Data to us (non-well-formed XML)
ie: <sites>
<mytag1>http://sonny.com/</mytag1>
<mytag2><![CDATA[http://google.com?search=hellow+world&language=EN]]></mytag2>
<mytag3>http://mysite.com/helloworld/?myvar1=123&myvar2=abc</mytag3>
</sites>

Looking at the XML data above the mytag1 and mytag2 are fully W3C XML conformed XML syntax, however the mytag3 is NOT. there are 2 tags in XML that are considered illegal characters in XML data, the "&" and the "<". In our case it's the "&" that's giving us grief.

Ok continue on, the customer sends this messed up format to me and I open it up with the MSXML DOM object and it craps out. Because it can't load the REQUEST XML.

Anyone know how to PULL the REQUEST value to a STRING variable? here are some sample codes I've tried.

sample 1.

Set X = server.createobject("Microsoft.XMLDOM")
X.async = False
X.Load(REQUEST)
strXML = X.xml
Response.ContentType="text/xml"
Response.Write strXML

Sample 2.

strXML = cstr(REQUEST)
Response.ContentType="text/xml"
Response.Write strXML

Both doesn't work with the non-well-formed XML sent, Sample 2 doesn't work regardless, however Sample 1 does work with a well structured XML document. Anyone know how I can pull the XML from the REQUEST so that I can manipulate the string and format it so that it is parsable by the XMLDOM?

View Replies View Related

Manipulating Attachments

I've read about how to use CDO/CDONTs to manipulate mail sent to a server computer, and how to configure DNS so that the SMTP server will get the mail that you want it to.

Using CDO/CDONTS, can you programmatically access attachments to the mails that are sent to and stored on the server? What is the syntax? Is there an object reference or somesuch that I can look at that will point the way to the answer?

View Replies View Related

ReadOnly!

Error Type:
Microsoft JET Database Engine (0x80040E21)
Cannot update. Database or object is read-only.
/q_maker/aero_admin/delete.asp, line 12

why do i get this message ? the database is not read only but the folder
that i have all my stuff in is read only, is that the problem! i tried to take
off the read only from the folder and applied changes but it gos read only
again! i saw the permissions in my db and still cant find why it says read
only!

View Replies View Related

Strings, Manipulating The Text.

How do I take a string value and trim off the last character?

View Replies View Related

Manipulating Request.form

Select Case request.form("posted")

case 1

case 2

case 3

case else

end select

Here is my case statment each case has a form, which holds a varible named posted. There is a problem however, once the refresh button is pressed it &*#$# up. I need to set request.form("posted") to nothing and it would be good to know how to set all of request.form.

View Replies View Related

Manipulating Data From Table

I am wanting to add three fields that adds the totals from a column. Here is my current code that writes out my data from my table: Code:

View Replies View Related

Readonly Checkbox In ASP

how can we set the checkbox to readonly mode so that its state can't be changed by the user. i used readonly = true but its not working. remember, i am doing this is ASP.

View Replies View Related

Readonly Checkbox

how can i set checkbox in readonly mode so that no one can change its state either to checked or unchecked. i used readonly = true but it isn't work. remember that i am doing it in ASP.

View Replies View Related

Manipulating User Input From A Form

I have a HTML page with a form on it. I have an ASP page that processes what a user has entered into the form (updates a database etc).

I now need a page that fits between these two pages to pre-process�the users input. I need to do it this way because I am not allowed to change either of the two existing pages.

I know how to read what the user has input into the form and I know how to pass control onto the next page.

What I have not been able to work out is how to change the user input and have those changes passed onto the next page as if nothing has happened (that is, the original ASP page just performs its request.form(�item�) calls as it always has but instead of seeing what the user actually typed in, it should see the changed text as created by the new pre process� page)

I have tried using a regular expression replace but can only successfully make this change a variable and not the original form input. Equally I cannot find a way of swapping the original form input string with the output variable from the replace.

Does anyone have any ideas on this one?

View Replies View Related

How To Release The Readonly In Access MDB

i am facing the following error when i am going to access the msaccess97 database through ASP in XP.

The Microsoft Jet database engine cannot open the file 'c:exams.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

but there is no readonly attribute is unset in the database file. what can i do?

View Replies View Related

How To Set Readonly Property Of ASP.net Textbox Using Javascript

I have a standard ASP Textbox control on my form and need to set the readonly property of it using javascript. It's not essential that I do it via client side script but would look a lot better.

View Replies View Related

Readonly Versus Disabled Attributes

what's the differences between readonly and disabled attribute? When I do the post, it couldn't get both values <%= fname %>. any ideas?

<input type="text" name="fname" value="Joe" readOnly>
<input type="text" name="fname" value="Joe" disabled>

View Replies View Related

Id Attribute

I want to know if we need id attribute? Or just name attribute is fine?
For example:
Name: <input type="text" id="text" name="fname">

View Replies View Related

Attribute Value

The code
<input type="button" name="btn" value="ok">

will produce a html button with caption ok and value ok.
The problem is the width of button is dependent on the length of
attribute value.

And I do the following, which is not a good solution.

<input type="button" name="btn" value=" ok ">

The problem is if I want to get the button's value:
Request.Form("btn"), then I need to trim the data.

View Replies View Related

Removing Attribute

Does anyone know of a way where I can remove an attribute from a querystring? For example, say my URL is thispage.asp?view=all&filter=col1 is there a way I can request the querystring but remove the filter=col1 attribute?

View Replies View Related

CDO Attribute For Bulk Mail?

I was wondering if there was a CDOSYS attribute to mark the importance of mail messages. I'd like to set their importance to "80" so the CDO Generated messages are treated as low priority by my mail server.

I was wondering if their was an configuration attribute like the following which I could use.

ObjMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
ObjMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.domain.com"
ObjMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
ObjMessage.Configuration.Fields.Update

View Replies View Related

XMOL Dom Object Attribute Value

I have some code to build a table list of all our clients in xml i am buioding an html table with all the links using asp here is the code:

View Replies View Related

ASP Update XML Child Nodes By Attribute Condition

I am trying to update and append to an existing XML file. However I seem to be stuck. I am using ASP as my scripting language.

The form fields has the same value as the KEY attribute so all i have to do is loop through the submiting form for its fields and use the name to update the XML via the keys... Code:

View Replies View Related

Images On Firefox Browser Ignoring The Width Attribute

I have some ASP.NET code which works fine on IE, but on Mozilla Firefox it completely ignores the width attribute and puts the images out at their full size.

here is the code....

View Replies View Related

What Is The Bext Way To Scroll Through Elemtns In My Page Checknig The Id Attribute

I am trying to scroll through all elements in my page testing each element for a particular id I have set a <td> tage :

<td id="myvalue">blah</td>

does anyone have any JS I can use to scroll through elements checknig the id attribute???

can I wrap the <td> in a <form> and use :

<code>
numelements = document.form1.elements.length;
for (var j=0; (j < numelements); j++)
if (document.form1.elements[j].id == "saletotal") {
alert("INSALETOTAL");
strsumsaletotal = document.form1.elements[j].text;
break;
}
</code>

View Replies View Related

Invalid ProgId Attribute Error Has Grounded My Project WinXP PRO

I am using WinXP Pro and IIS. For some reason, I can not get any ASP pages to work. All I get is this error below. I have even removed all sites on the server, but I still get the error. Html pages work just fine. All permissions are in order. How do I fix this? When I view same pages on Win2000 machine, they work fine

Active Server Pages error 'ASP 0134'
Invalid ProgID attribute
//global.asa, line 1
The object has an invalid ProgID of 'MSWC.MyInfo'.

My OS is XP Pro

View Replies View Related

Carriage Return Does Not Display Properly In Mozilla In A Title Attribute

Am facing a problem when trying to display a carriage return in firefox in a title attribute,i ve tried using VbCr and chr(13) ,in either cases a strange character appears instead of the carriage return. does anyone know about this error. The code looks like this:

titles(iday) = titles(iday) & chr(13) & objRS("event_title")
<a href="javascript:showevent('0<%=links(i)%>')" title=" <%=titles(i)%>"><%=i%></a>

Am not having this strange character when running it on explorer.

View Replies View Related

Regex :: Grab Any Style Attribute Within HTML That Uses Double Quotes

I have the following regular expression:

re.Pattern = "style[^=]*=[^""]*""[^""]*"""

It will grab any style attribute within HTML that uses double quotes, and put it in the re.Matches collection.Now, I want to include single quotes into this regular expression. Here's what I have so far:

re.Pattern = "style[^=]*=[^""']*(""|')[^1]*1"

but it does not work.

View Replies View Related

Submit Button Versus Regular Button

I want to understand the difference between submit button and regular button: <input type="submit"> and <input type="button">. My understanding is that submit button will send the entire HTML form to the web server, but regular button won't.

I have a problem that needs to pass HTML elements data back and forth in several ASP pages. I am using regular button to do that. But what's the approaches?

View Replies View Related

Active Directory :: The Attribute Syntax Specified To The Directory Service Is Invalid

I have written a script to update user information in the Active Directory using ADSI. Here is part of it:

Set User = GetObject("LDAP://<GUID=" & GUID & ">")

User.Department = DepartmentName

User.SetInfo

Set User = Nothing

This works fine unless DepartmentName is an empty string ("").

Then I get error 0x8007200B: "The attribute syntax specified to the directory service is invalid."
This happens with all the attributes I have tried, including TelephoneNumber
.
Do I need to delete the value of the attribute instead of setting it to an empty string? If so, how do I do it?

View Replies View Related

Form Control; Want A Little More Control Of The Name Attribute

I would like to be able to control an asp text box control's name attribute.

I know i can manually type the whole string
<input type="text" name="username" value="" />

but then i can't use the validation control on the inputs. [free javascript ]

PHP Code:

View Replies View Related

Web-based Sql Db Mgr

it appears that my ISP is blocking port 1433 which means i can no longer connect to my sql db on the web. had been using an access project or another program called WinSQL. so i'm forced to go with a web-based solution and i don't really have time to build one from scratch. the host this site is on still hasn't installed the .net framework so i have to go with a classic asp solution.

View Replies View Related

Save As..?

I would like to have an option for my end users to do a SAVE AS. Is there a way to do this? I have a excel spreadsheet which is being created by asp and at the end of the page I would like to have an option to do a save as. so they can name the file and put the file anywhere they want.

View Replies View Related







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