199,112 Archived Topics
Remove Filter ![]() | |
When I click the login button I never get any values posted to the server. I accept a AuthViewModel but it is always null. I have tried using @html.EditorFor but have not had any luck with it. **User Controller** [HttpGet] public ActionResult Password() { UserModel user = (UserModel)Session[Constants.SessionVars.Authenticate]; //error - … | |
Hello Everybody, I’m currently working on my end of year project and I got stuck on a very trivial thing. When I’m trying to add a new user to a database (local) I keep getting “Syntax error in INSERT INTO statement" I don’t really see where is the problem so … | |
Hi All I am trying to generated the dynamic labels depending on the checked checkboxes which are dynamically created. My .Net frame is 3.5 Here is code for dynamic checkboxes System.Windows.Forms.CheckBox[] checkBox = new System.Windows.Forms.CheckBox[bran_count]; for (int i = 0; i < bran_count; ++i) { checkBox[i] = new CheckBox(); checkBox[i].Name … | |
Any thoughts will be most welcome. In PhpMyAdmin and Dreamweaver cs6. I would like the user of my site to be able to select a category from a list that is populated by PhpMyAdmin and then, his or her selection to reveal all of the items on the database in … | |
Hi all, I'm make a program to read text file. I can read the text file but don't know how to write it to listview. This my code to read into arrays: Function ReadFileText(ByVal filename As String) As String Dim handle As Integer ' ensure that the file exists If … | |
#include<stdio.h> #include<conio.h> int main() { float fill_h[400],fill_s[400],bh_p[400],ex_up,ex_upt; int i,j,p;float lam = 0.5; float fhf = 1.8288 , fhi = 0.6096 , fsi = 12.0f , fsf = 19.0f ; fill_s[0] = fsf;fill_h[0] = fhi;bh_p[0] = bhpeqns(fhi,fsf); for(i=1 ; lam > 0.002 ;i++) { printf("\n the loop is run"); if(fill_h[i-1] == … | |
I have a method that does not return anything , but it makes a call to another method that returns a value like def apply(): #set some defaults try: script = _getScript() except Exception, ex: raise Exception(ex) node = [xyz for xyz in myLst] # myLst is a global list … | |
Hello guys, I have problem with reading or writing files in C++ and MASM32. The problem is when calling the ReadFile or WriteFile the program give an exception saying "Access violation at address 0000". This is the code in MASM32: LOCAL Kernel32:DWORD LOCAL CreateFileA:DWORD LOCAL GetFileSize:DWORD LOCAL ReadFile:DWORD LOCAL pBytesRead:DWORD … | |
Im making a 2D platformer-ish shooter its really simple and not much effort put in it, it is my first game Im making in python and its for a school project and needs to be finnised really soon. Everything is working just fine but Im having problem with some collision … | |
hey all please help me about my graduation project i use this code to insert data on the table and i have no error,but nothing will save on the table..so please help me know why !! thank on advance.. -------------------------------- Imports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click(ByVal sender As … | |
Hi I am doing this HTML.net tutorial on php.I keep getting this error and I cannot figure out how to fix it.I am running php version 5.4 maybe this is the problem, I appreciate tour help: Parse error: syntax error, unexpected 'TABLE' (T_STRING) in C:\inetpub\wwwroot\phpconnect.php on line 6 This is … | |
hi, can u h help me, i have different forms and from form1 another form2 will show and the form1 will become inactive to use and become blurred, and when the form2 closed or hide the form1 will become active again. also can i add an animated pictures to a … | |
I'm brand-new to C#. Among the samples I've seen is the use of the @ symbol in front of quoted text. What's its purpose? For my first program, I wrote one that opens Excel workbooks for retrieval and update. In the on-line samples I found, that symbol preceded the filename … | |
Recently, I have been working on games in my programming class. In this class I am farther ahead then most other students, and so, must rely on the internet for help instead of my teacher. I have been working on a highscore counter between runs that I should be able … | |
Please kindly help. the login iv already managed to code need help with this part. Upon execution of your program, it should first read the user-ids and passwords from a file and create a binary search tree using the user-id as a key (assume unique user-ids for convenience). Once the … | |
I am using django1.3.7 for developing a web application.How to display a datepicker using jquery.I am having jquery datepicker which is working fine with html.The only requirement is i am using model form,so how to render the datepicker is my question.Kindly help me in this problem. Thanks | |
hello altogether, my name is Wolfram Pagels, Berlin, Germany my status is :retired but enthusiastic c++-fan; I use Dev-C++ since 3 month ago; in the 70th I programmed in Fortran; after a long break I enjoy to learn c++11; e.g.: the day before yesterday I got the following message from … | |
Option Explicit Dim card(1 To 52) As String Dim cardused(1 To 52) As String Dim deck(1 To 52) As String Dim profit As Integer Dim playerscore(1 To 5) As Integer, dealerscore(1 To 5) As Integer Dim playercards As Integer, dealercards As Integer Dim currentcard As Integer Dim playerscard(1 To 6) … | |
I have a grid view control with list of rows items. Each rows has a button which would triggers a client side pop up modal form to ask the user to enter some data before continue to execute the server side method. The problem is I cant find a way … | |
i have following small line of code RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",true); rkApp.SetValue("MyApp1", "C:\\WINDOWS\\myexe"); now when i run code in c# (desktop application ) it make changes in registeries and .exe run when system start ..but the problem is whne i make setup and deploymemt of same code and deploy on … | |
Hello all! i have here a code that will display record from my DB. I would like to ask for help on how will i export the displayed record to excel? here is my code: <html> <head> <title>Export to Excel</title> </head> <body> <form action="saverec.php" method="post"> <?php define ('DB_NAME', 'try1'); define … | |
hi New to shell scripting. While trying hands at it I came across the operators -z -o in the if block. Any relevant info would be appreciated **if [ -z "$xa_" -o "$va_" == "yes" ]** cheers guys | |
I want to populate combo box with particular field value of a table in ms access. datafile = "D:\database.accdb" With cn .Provider = "microsoft.ACE.OLEDB.12.0" .ConnectionString = datafile End With cn.Open Set rs = cn.Execute("select * from mytable") Do Until rs.EOF combo1.AddItem rs!name rs.MoveNext Loop cn.Close I am getting runtime error … | |
Hi! I'm creating a system right now. My boss told me create an installer for the system. But I don't know how? Can someone help me?! Thanks! God bless! :D | |
All, Anyone have any suggestions for completing the last line below: public/private define a variable's scope. int/char/double define a variable's type. static/non-static define a variable's ____________. I know what static variables are, I just can't think of a word or even 2 words to fill in the blank. (I'm building … | |
Hello , I have a List<String> and I want to compare in a loop the elements. For example sth like : for (int i=0;i<theList.size();i++){ while (theList.get(i).equals(theList.get(i+1))) ... } I want to compare the next to the previous entry. Thanks | |
Hello, I tried to create a SOAP request but could not succeed. SOAP WADL url is **http://www.mobipost.com.au/httpapi/Messaging.asmx?WSDL** AND request should be like: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationHeader xmlns="http://messaging.mobipostapi.thirdscreen.com.au/"> <UserName>SAMPLE_USER</UserName> <Password>SAMPLE_PASS</Password> </AuthenticationHeader> </soap:Header> <soap:Body> <SendSMSToContacts xmlns="http://messaging.mobipostapi.thirdscreen.com.au/"> <oSMS> <MessageText>THIS IS MESSAGE</MessageText> </oSMS> <ContactIDs> <int>123456789</int> <int>987654321</int> </ContactIDs> </SendSMSToContacts> </soap:Body> … | |
hi i am really new to this and can't see why i can't get my code to work, it is probily really silly but help would be appreciated. i am trying to get the user to enter the number of competators of a 4 lap race so that it can … | |
hi im working on a project please have a look at the form i need to design the database but i think i will need to instered those info in mutiple tables.  hope some one can help me out with this one.the sss1 radio option corespond to the … | |
Why Java is platform independent? And how to set path in Java? | |
I have dropdown down boxes with multiselect; I'm using jguery to display Dropdown with multiselect; I'm populating Select Locality with Select City dropdown. Now, when I select a city from dropdown It should display its locality in dropdown with multiselect but showing localities in dropdown only. Code is attached in … | |
Hi everyone , i hope someone helps me out. im working my way up step by step learning Java . but no one at the University is helping , they just give us the homework and we have to learn alone.and give the soltution at the end of the week. … | |
hello, my appreciating, if you give example code in my problem i have 1 file csv with dilimited only column A example column a name | address | phone | birthofdate deby | jersey | 123456 | 01-March-1990 my case is I want to convert to txt with delimited | … | |
Hello. Im new here. I have a question: I have this copy constructor here: /** Copy Constructor. * Since landscape is immutable in the scope of our project, you could * do a simple reference copy for it. * However, Fish and Plants are mutable, so those lists must be … | |
Ich habe hier folgendes Teilstück, wo Daten aus einer Sonde empfangen werden: for i in range(12): err,data=dev.GetData() print data f.write(data) Wenn cih das ausführe bekomme ich die Fehlermedung: expected a character buffer object | |
Hi, Been working on this PHP snippet and it was fine until I changed one line. I am doing this inside Wordpress so I can't echo the problems out. "Server error" Hopefull you guys can see where my snippet has gone wrong :)) <?php //Create connection //new mysqli("localhost", "user", "password", … | |
What is variable initialization and why is it important? | |
Hi am writing a program and want to incorperate expiration date of say 30days after which the user can not use the system until he has purchase full version. thank you | |
Hi DW We want to run an experiment in our lab on ATM, we just want to keep it simple and easy, So far I've just created the two forms and since I've discorvered that most of the ATM's are running a Windows OS which I saw it in one … | |
Does anyone know how to makea n annoying pop up message in javascript, that keeps on opening up over and over again, almost like a loop script? :D | |
Hey guys, So I'm looking for a way to create a form which basically calculates the input given. Like you enter the first integer in 1st input field, second in second input field, push a button and it calculates the answer. Any help would be appreciated. | |
Hi I have the file copy statement to copy a sourcefile = App.Path & "\PhoneTel.mdb" destinationfile = App.Path & "\backup\PhoneTel.mdb" FileCopy sourcefile, destinationfile sourcefile1 = App.Path & "\backup\PhoneTel.mdb" destinationfile1 = App.Path & "\backup\backup\PhoneTel.mdb" FileCopy sourcefile1, destinationfile1 how can I get the backup file from backup\backup with the old data, not … | |
Hello, I wish to know the protected property ChildControlsCreated property (to know the childrens of the Panel) when a button is clicked. Please tell me where I am wrong.The Label3.text should show "True" but displaying "false". why is that so? It is the same for other properties like adapter. regards … | |
Hi I am not understanding , why the subquery of given query is converting into dependent subquery. Although the subquery is not dependent(not using primary query table) on main query. I know that this query can be optimized using joins,but here i just want to know the reason of this … | |
hello guys.. my problem is im gonna use my program into another computer but the sql server is on my laptop.. then i copy my program into another computer then I start debugging but there some of error.. this is my coonection string... conn.ConnectionString = "Data Source=192.168.1.34,1433;Initial Catalog=MyDatabase;Integrated Security=True" in … | |
Hi guys. Okay, well I've been at this for a while and I cannot seem to figure it out. Basically, I have a simpleXML PHP file that I'm trying to"parse" (I guess it's called). *All I want to do is get some info from an API XML site and display … ![]() | |
I want to get the total sum of the amount column. How can I display the total sum to the textbox total? Any possible way to do it? Please help. Thanks! | |
I Have created a movie database in visual studio 2008, and its just not saving my records to my access database, Can anyone help me, if it helps if you send me a PM i can send you the file Thanks Michael | |
int xml_validation(char *xsd_file, char *xml_file) { xmlDocPtr doc; xmlSchemaPtr schema = NULL; xmlSchemaParserCtxtPtr ctxt; char *temp_buf = malloc((strlen(xml_file)+1) * sizeof(char)); char *XMLFileName = malloc((strlen(xml_file)+1) * sizeof(char)); char *XSDFileName = malloc((strlen(xsd_file)+1) * sizeof(char)); strcpy(XMLFileName, xml_file); strcpy(XSDFileName, xsd_file); xmlLineNumbersDefault(1); ctxt = xmlSchemaNewParserCtxt(XSDFileName); xmlSchemaSetParserErrors(ctxt, (xmlSchemaValidityErrorFunc) fprintf, (xmlSchemaValidityWarningFunc) fprintf, stderr); schema = xmlSchemaParse(ctxt); xmlSchemaFreeParserCtxt(ctxt); … |
The End.