Posts

sql server 2008 - Comparing TimeStamp value in C# -

I created a new column in an existing database, allowing me to allow Rovers to operate concurrency: Changing the table MyTable columnName Add lineworld In my class I added the following property by public [] columnname {get ; Set; } In this method I use an error when using this property Effectively on System.Data.Linq .binary 'can not change type' byte [] ' I am removing this property by adding toArray (myObj.ColumnName.ToArray ()) I am My ASP. In the net page, I add a hidden control to a repeater and Rohhindfide Value = Convert. Assign values ​​to ToBase64String (myObj.ColumnName); Now I am trying to compare this column with that object pubic bool myObject objFound = GetAllObjects.First ( O = & gt; O.ID = myObj.ID); If (objFound.ColumnName == myObj.ColumnName) but the values ​​are not the same? After reading some links in changing the timestamp, I have tried appreciate any help on this. I do not know anything about the SQL...

javascript - Setting html form values using js function with multiple attributes -

PHP में मुझे इसके साथ एक बटन मिल गया है: onclick = "myFunction (& amp; ; Value1, $ value2, $ value3) " जावास्क्रिप्ट: फ़ंक्शन myFunction (atr1, atr2, atr3) {document.getElementById ('form_input1' ) .value = atr1; Document.getElementById ('form_input2')। Value = atr2; Document.getElementById ('form_input3')। Value = atr3; Document.getElementById ('popup_form')। Style.display = "block"; } लेकिन मान सेट नहीं हैं। जब मैं विशेषताओं और सेट मान के बिना फ़ंक्शन का उपयोग करता हूं, तो यह ठीक काम करता है: फ़ंक्शन myFunction () {document.getElementById ('form_input1')। Value = "8"; Document.getElementById ('form_input2')। Value = "abc"; Document.getElementById ('form_input3')। Value = "56"; Document.getElementById ('popup_form')। Style.display = "block"; } मैं php में दिए गए विशेषताओं से फ़ॉर्म मान सेट करने के लिए अपने फ़ंक्शन को कैसे परिवर्तित करूँ?...

JSF with Prettyfaces navigation -

I am using JSF 2.2 with PrettyFaces 3.3.3 in my Entreprise application. I am thinking that the way I handle navigation is correct (AdminCompaniesController.java): @ManagedBean (name = "companiesBean") @ViewScoped @URLMappings (mappings = {@URLMapping (id = "admin-companies-view", pattern = "/ admin / company / view / # {id}", viewId = "/ admin / companyView.jsf"), @URLMapping ( Id = "admin-companies-view", pattern = "/ admin / company / edit / # {id}", viewId = "/ admin / companyEdit.jsf"), @URLMapping (ID = "admin-companies-add ", Pattern =" / admin / company / add ", viewId =" /admin/companyAdd.jsf "), @URLMapping (id =" admin-companies " A. List "pattern =" / admin / companies ", viewId =" /admin/companies.jsf ")}) public class administrator Consulting controller executes Siriyliz qualified {@EJB private Kanpanisewa Kanpanisewa; Private coll...

c - How do I modify a linked list node using a void? -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मेरे पास एक प्रोग्राम है, जो सिर पर एक नोड है मैं सिर को शुद्ध करना चाहता हूं, हालांकि मैं इसे शून्य के अंदर करना चाहता हूं। इसलिए मैं सिर नोड को विधि में पास करता हूं: शून्य निकालेनोड (नोड * सिर) {सिर = शून्य; } हालांकि यह मुख्य कार्य में सिर को नहीं बदलता है, केवल शून्य में। क्या किसी को पता है कि एक नोड के मान को बदलने के लिए जो एक पैरामीटर के रूप में एक शून्य के रूप में पारित किया गया है? पीएस: एक आवश्यकता के मुताबिक, मैं नि: शुल्क समारोह, या किसी भी स्मृति अनलोडिंग विधि का उपयोग नहीं कर सकता। आप इसे इसके बजाय करना चाहेंगे: शून्य निकालेनोड (नोड ** सिर) {(* सिर) = नल; } यह वास्तविक पॉइंटर को NULL में बदल देता है, ताकि यह अब कुछ भी इंगित नहीं कर सके।

android - Stop mp3 playing on another button click and exiting page -

I have tried all those examples that I can find on this site but I do not seem to do this work can. I need that if any MP3 file starts by pressing a button, then the second button is pressed, the last MP3 stop and a new start. I also need to stop this page. Can anyone see what I am doing wrong? import android.app.activity; Import android Media. Audio manager; Import android Media. media Player; Importroid.os.Bundle; Import android.view.View; Import android.view.View.OnClickListener; Import android.widget.Button; Remove public class buttontofirstaidaed activity OnClickListener {Private MediaPlayer mp1; Private Media Player MP3; Private Mediaplay MP3; Private Media Player MP4; Private Media Player MP5; Private Media Player MP6; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.firstaidaed); SetVolumeControlStream (AudioManager.STREAM_MUSIC); Button ButtonAd1 = (Button) Find VVBIID (R.BattanAid1); Button ButtonAd2 =...

substring - How to read from lineX to lineY C# -

I am trying to parse a .log file and found it in one section that looks like this GetCompressedLogResponse Received: GetCompressedLogResponse: Id = GetCompressedLog, LoggerType = LoadProfileLogger, NumberOfRegisters = 5, NewLogId = 3281, info = HeadOfLoggerIncluded LogID RealTimeClock Logger_Status Logger_Data_Quality EnergyA14 EnergyA23 [KamDatTimeStatus] [No Unit] [No Unit] [KWH] [KWH] ------ -------------------- - ------- ------ ------------------- --------- ------- - 3264 02 2014-03-31 T 0 08: 00 00 00 000000000000 0.17 0.00 3265 02 2014-03-31 TT8: 15: 00 0000 00000000 0.17 0.00 3266 02 2014-03-31 TT 08: 30: 00 0000 00000000 0.17 0.00 3267 02 2014-03-31 TT 08: 45: 00 0000 00000000 0.1 7 0.00 2014-03-31 13: 20: 42,049 DEBUG 4B414D00000001184917.GetConventionalDataTask - Updated timestamp for logger load profile logger over time 31-03-2014 12:20:42 How do I obtain 2 lines between getConventionalDataTask lines, then the line from the program line (in which GetCompressedLogRespo...

c# - Intentionally cause a fatal exception -

I need to make a fatal exception on demand using C #. Although I have taken enough time in this unknowingly, now I need it, I can not find any easy way. It is easy to divide by zero reference error or zero etc. But I need something without the option to continue the CTD. Thank you for your help. Do not use one exception to accomplish this, there are many more side-effects to the program at all A non-exclusion exception that eliminates the program is a CLR policy that can be changed by both a custom CLR host and even today by the legacy disciplinary policy definition definition. Without any clarification without taking any incident,