Good Day I am using an ASP.NET page with a master page. I want to do live form validation on the input fields (). Now all the tuts and demos/plugins I have seen are using normal html labels. I tried to implement some of them on my form, but they are not working. (I am using a mater page and a normal aspx web form...) UPDATE: Issue replacing input tags with asp controls for the password fields... The original input elements <fieldset> <legend>Validating a complete form</legend> <p> <label for="firstname">Firstname</label> <input id="firstname" name="firstname" type="text" /> </p> <p> <label for
I'm trying to pass some data process in the server side to the client through my WS. But I'm getting this error: SEVERE: caught throwable javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:112) at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:278) at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:380) at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:92) at com.sun.xml.ws.transport.http.HttpAdapt
In zsh I can easily dump the contents of an associative array with a single command: zsh% typeset -A foo zsh% foo=(a 1 b 2) zsh% typeset foo foo=(a 1 b 2 ) However despite searching high and low, the best I could find was declare -p, whose output contains declare -A: bash$ typeset -A foo bash$ foo=([a]=1 [b]=2) bash$ declare -p foo declare -A foo='([a]="1" [b]="2" )' Is there a clean way to obtain something like the zsh output (ideally foo=(a 1 b 2 ) or foo='([a]="1" [b]="2" )'), preferably without resorting to string manipulation?
I want to open another .asp page from one .asp page on button click following is the code i have done but error is coming Error is coming as "operation is not allowed when the object is closed" Here is the code Dim dbconn, objCmd, objParam, rs, EmailID, Password, connString, RecordCount connString = "Connectionstring" dbconn = Server.CreateObject("ADODB.Connection") dbconn.Open(connString) rs = Server.CreateObject("ADODB.RecordSet") objCmd = Server.CreateObject("ADODB.Command") objCmd.ActiveConnection = dbconn objCmd.CommandText = "sp_Name" objCmd.CommandType = &H0004 objParam = objCmd.CreateP
I created a blank Web App in ASP.NET on Visual Studio 2012. When I click on Debugging using Google Chrome, Google chrome opens with text localhost on the navigation bar, but it does not open the website and keeps loading.
I am writing a small application using VISUAL BASIC 2010 (It came packaged in Visual Studio 2010). I have a list box set up to be populated by an Access database. The database has two columns: 1) Variable Name 2) Description. As an example to be used in my question, here is a sample of my data: Variable Name Description DOG1 Dog Species that came from Family 1 Now, I have a list box that is populated by the Description column. This is what I need. I want to click a button and then depending on which item is clicked, display its corresponding "Description" in a textbox. This pertains to I belie
I need to create a dashboard with multiple pivot tables in the same Excel sheet, one below the other. The problem is that when the pivot table refreshes it may be longer (more rows) so it gives a warning that the rows below what it needs will be overwritten. I'd like to know how to configure Excel pivot table for adding rows in pivot table without overwriting the following. I have already seen an example when Microsoft Techdays 2013 but I cannot remember the method. (There is a check box to enable in Excel 2013)
The input int value only consist out of 1 or 0. I can solve the problem by writing a if else statement. Isn't there a way to cast the int into a boolean?
I'd like to delete old entries of the event-log (where old means "older that X days") using PowerShell. I found the Clear-EventLog cmdlet but that Deletes all entries from specified event logs on the local or remote computers. I have found a lot of scripts that use this cmdlet to delete ALL entries - but is there a way to select only some [old] entries of the event-log and delete only those?
I have a deep nested dict (decoded from JSON, from the Instagram API). My initial code was like this: caption = post['caption']['text'] But that would throw a NoneType or KeyError error if the 'caption' key or the 'text' key doesn't exist. So I came up with this: caption = post.get('caption', {}).get("text") Which works, but I'm not sure about the style of it. For instance, if I apply this technique to one of the deeper nested attributes I'm trying to retrieve, it looks pretty ugly: image_url = post.get('images',{}).get('standard_resolution',{}).get('url') Is there a better, more pythonic, way
I have a series of tabs, but I want to then add further tabs within the panel it displays, as if to replicate a ribbon menu. I roughly know what needs to be done (changing the return type of the makeTextPanel function) but don't know how to so any help would be appreciated. package components; import javax.swing.JTabbedPane; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.JComponent; import javax.swing.SwingUtilities; import javax.swing.UIManager; import java.awt.BorderLayout; import java.awt.Dimension; import ja
I am trying to add rating feature in my app https://github.com/codechimp-org/AppRater but, the every time I click on the rate now it says The item you requested could not be found. How do I get out of this trouble. I am using public void onClick(DialogInterface dialog, int id) { context.startActivity(new Intent(Intent.ACTION_VIEW, Uri .parse("market://details?id=com.xxx.xxx")));
I am having the following issue with my code: int n = 10; double tenorData[n] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; Returns the following error: error: variable-sized object 'tenorData' may not be initialized Whereas using double tenorData[10] works. Anyone know why?
I am trying to add a domain user account to a local group and everything works fine if I am logged into the computer but if I run the same script under the SYSTEM account it fails with the error: 424 Object Required". Here is the code: Dim domain : domain = "DOMAIN01" Dim domainController: domainController = "99.139.151.102" Dim localComputer : localComputer = "SERVER001" Dim localGroup : localGroup = "LocalGroup1" Dim domainAccount : domainAccount = "User1" Dim objLocalGroup Dim objDomainUser Set objLocalGroup = GetObject("WinNT://" & localComputer & "/" & localGroup & ",group") Set objDomain
Hi guys I'm starting the design of a new little game engine and I was assuming the game engine as a DLL and then build a project for the game that would use this DLL and output an EXE file. But then I read about the latest ID Tech Game Engines and how they do it the other way around. (http://fabiensanglard.net/doom3/index.php) It's not really explained why though. I have the feeling it has something to do with modding as only the Game (DLL in this case) was open to the public for quite some time while the Engine (EXE) was closed source. But I would like to know if there are other reasons for t
I have a big swing application that I have developed. There are several classes that each creates its own JFrame while closing the previous one which called this class. I wish to deploy this into a web browser and understand that I need to convert it to an applet. Do I have to add in code for creating applet in each of these classes? or is there some other way. In my current situation each of the class creates a JFrame which has some buttons which on being clicked will close the current JFrame and instantiate a new class which creates another JFrame. Could you please help me and advice me on h
I am posting XML file to Web services using C# , but I am getting error when I am requesting the response 'Server Error - 500 - You are not allowed to access the system . Any help will be appreciated. protected void Page_Load(object sender, EventArgs e) { WebRequest req = null; WebResponse rsp = null; try { string fileName = Server.MapPath("~\\test.xml"); string uri = "http://212.170.239.71/appservices/http/FrontendService"; req = WebRequest.Create(uri); //req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy req.Credentials = new NetworkCredential("myusername", "mypassword"); req.M
I'm building a form using Google Forms, and then taking the form out into my web page so I can directly edit the form (so I do have complete control over the form code). Right now I'm able to submit the results send to Google Docs (published on 2012), and then have the results emailed me to me (published on 2012). I want to add a file attachment to these submissions, using: <input type="file" name="datafile" id="filedata" size="40"> I know I can use mailApp.sendEmail's advanced arguments, specifically the attachments argument, or the inlineImages argument. But how do I access the file values i
I am using Visual Studio 2012 on windows 7. I need to know why the following style for Grid's selected row does not work for background and foreground colors but works perfectly fine for other properties like BorderBrush and BorderThickness etc? Though I can see them changing while mouse over grid rows. <Style x:Key="gridRowStyle" TargetType="{x:Type DataGridRow}"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="PeachPuff"/> <Setter Property="Foreground" Value="BlueViolet"/> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter Prop
I need to know if it is possible to compile any high level programming language for use with an eeprom. I know it is possible to strip a header from a compiled binary, but I am unsure how addresses will be effected. Can I compile any high level language for use with eeprom? I have a Winbond 27C512 EEPROM in my sights.
I have a set of data like this 7859 10000:00 7859 10000:00 (xfer#1, to-check=1033/1035) 32768 000:17 22174479 10000:00 (xfer#2, to-check=1032/1035) They are read from a file and passed line by line to a method inside my batch script What I want to do in that method is to extract only 7859 22174479 from this lines, basically whatever is after "\d+:\d\d\s+", then what follows are the numbers that I need and then another "\d\d.*" Is this possible using only batch script regular expression and search and replace? I tried and read a bunch of articles but could not find a solution In the and I want
I have a 64bit Progress OpenEdge 10.2A driver installed. The connection works fine when I set it up in the Data Sources (ODBC) administrator and test it. When I try to connect to it using VB.NET (System.Data.Odbc), I get an error: ERROR [IM014][Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application. I have tried manually configuring the registry keys to allow access using SysWOW6432. But all this does is cause another error when I try to set up a DSN. I get error #193 from Progress. What else could be causing this issue? From what
Library class getLang { public function getText($en, $ar) { $CI =& get_instance(); $lang = $CI->session->userdata('language'); if ($lang == 'en') { $string = $en; } elseif ($lang == 'ar') { if (!empty($ar)) { $string = $ar; } elseif (empty ($ar)) { $string = $en; } } return $string; } } Controller class Home extends MY_Controller { public function test() { $this->load->library('getLang'); return $this->getLang->getText('text', ''); } } When I run home/test I get this error: A PHP Error was encountered Severity: Notice Message: Undefined property: Home::$getLang Filename: controllers/home.php L
I am trying to read from a sensor with PIC 18f4550 at baud rate=38400. With a FIFO Circular buffer, I am able to store data from the sensor to an array. The sensor will respond to a request command and return a measurement of 15 bytes (the same as the circular buffer I created). I have to grab all 15 bytes and put \r\n at the end to separate each measurement since there is no deliminator. So I used two pointers, inputpointer and outputpointer to store bytes and transmit byte out. Because 18f4550 only has one hard UART, I use it to read data and send commands to sensor and at the same time use
I am trying to initialise my hsqldb with some default data but seem to be having a problem with identity and timestamp columns. To clarify what I meant when I said "script". I am meaning the command line argument that you pass to hsqldb to generate your database at startup. I can successfully run the query inside DbVisualiser or some other database management tool. I have a table with the following definition: create table TableBob ( ID int NOT NULL identity , FieldA varchar(10) NULL, FieldB varchar(50) NOT NULL, INITIAL_DT timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL); I can successfully crea
I would like to know how much space does my MySQL database use, in order to select a web host. I found the command SHOW TABLE STATUS LIKE 'table_name' so when I do the query, I get something like this: Name | Rows | Avg. Row Length | Data_Length | Index Length ---------- ---- --------------- ----------- ------------ table_name 400 55 362000 66560 numbers are rounded. So do I have 362000 or 400*362000 = 144800000 bytes of data for this table? And what does Index Length mean? Thanks !
Is there a way to prevent a monitor from sleeping while on a web page? I have a page with an animation in html that doesn't require user interaction. The monitor can sleep during this and I want to prevent this. When watching a video on Hulu, I notice that the monitor doesn't sleep so there must be some way to prevent this.
I want to import data related to categories first and then products. But when i am going to upload only category csv file it is showing error "sku not found" and when i am trying to import merged data of category and products csv it is importing products but not showing any category and in products showing 0 record found and in import showing upload success message. Can anyone please help me.