I have a Access Database that is available on a server. There is one particular workstation that will not recognize the Date() function when accessing the database. All other workstations function properly. Can anyone help with this?
This is the html
<input type="submit" name="button2" value=" Assign " onclick="javascript:self.close();if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="button2" />
I am using this code to close the browser window when button2 is clicked, but it only works after I click the button twice. I have tried putting it in the Page_Load, and in the If(Not Ispostback) and If(Ispostback). I have also tried putting it in the Sub button2_click, which runs a few other...
Thanks, I tried that and this is the error I get
Exception Details: System.InvalidOperationException: ExecuteReader: Connection property has not been initialized.
I have this select statment where I am selecting a bunch of fields and would like to set them all as variables. Originally I used a separate select statement for each field. This is my idea of how this should work, but id doesn't.
Dim connectionString As String =...
I have a custom validator and would like to set it to allow between 1 and 500 characters. I would also like to allow certain characters like .,'!@$%*&()+=- I really only want to exclude <>. Is there any way I can do this?
<asp:RegularExpressionValidator id="problemvalidator2"...
I have just completed my asp.net application and now every page is displaying bogus javascript errors. They say Expected';' for lines that only contain something like one <td> tag. Some pages don't even have any javascript code om them. Please help!
Here is the dropdown
<asp:DropDownList onselectedindexchanged="barcodevalidate" id="inserthardware" width="175" onchange="onChange(this.selectedIndex);" viewstate="true" autopostback="true" runat="server">
Yes here it is
<SCRIPT LANGUAGE=javascript>
<!--
function OnChange(si) {
var t = document.forms['form1'].elements['insertbarcode'];
if (si == 1)
t.value =( t.value == '') ? 'DTP' : t.value;
}
//-->
</SCRIPT>
I know this is wrong, I am trying to set the text 'DTP' appear in textbox insertbarcde only if index 1 is selectedfrom dropdown inserthardware. How should this code look?
<SCRIPT LANGUAGE=javascript>
<!--
function OnChange(dropdown)
{
var myindex = inserthardware.selectedIndex
If myindex...
When you tab to this textbox 'dci.gov' appears, I would like the cursor to be placed at the beginning not the end though.
<asp:Textbox id="Insertemail" maxlength="30" onfocus="javascript:if (this.value == '') {this.value = '@dci.gov';}" width="175" onkeypress="return noenter()" runat="server"...
I have this in the body tag of my asp.net page
onLoad="javascript:document.form1.insertfirstname.focus()"
When the page loads I get the error
document.form1.insertfirstname is null or not an object
What can I do about this?
I am using a custom validator to check the value of a drop-down. if the value = something, then I want the textbox next to it to require a string of 8 characters.
Here is my function
Sub validatebarcode(source as Object, value as ServerValidateEventArgs)
If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.