No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
-
- Interests
- -
- PC Specs
- -
42 Posted Topics
Re: Using var_dump instead of echo if your intention is to check on the value of the variable. Change "echo $get;" to "var_dump($get);". Hope it helps! For more information on var_dump check this out http://php.net/manual/en/function.var-dump.php | |
Column A (datetime) ----------------------- 2011-04-01 00:00:00.000 2011-04-01 00:00:00.000 2011-04-09 00:00:00.000 2011-04-01 00:00:00.000 2011-03-31 00:00:00.000 Column B (datetime) ----------------------- 2011-03-25 15:45:56.457 2011-03-25 15:52:37.933 2011-03-25 15:54:37.197 2011-03-25 16:05:30.023 2011-03-27 00:43:23.713 When i try to query the above record [CODE] Select * from table where A between '1900-01-01' and '2012-01-01' [/CODE] this work … | |
Re: In your .aspx file make sure you include AutoPostBack="True". This will allow the control to notify server when user selected an item in the list [CODE] <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" onselectedindexchanged="ListBox1_SelectedIndexChanged"></asp:ListBox> <asp:ListBox ID="ListBox2" runat="server" AutoPostBack="True" onselectedindexchanged="ListBox2_SelectedIndexChanged"></asp:ListBox> <asp:ListBox ID="ListBox3" runat="server"></asp:ListBox> [/CODE] In your code behind, you may code how item is … | |
Re: Can you show us the result you produced and expected result? | |
Re: I guess you the provider has enable question-answer which require you to provide that information during user creation as well. Go to web.config and disable that feature by setting [B]requiresQuestionAndAnswer="false"[/B] [CODE] <membership> <providers> <clear /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web,
 Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Hashed" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="3" … | |
Re: You have to read the picture into IO stream. Probably FileStream then convert the picture data into binary data (Byte array). | |
Re: let's say you are at abc.aspx. Upon detecting user is not authenticated you perform the following code to redirect user to signup.aspx [CODE] Response.Redirect("signup.aspx?from_page=abc.aspx"); [/CODE] User is being redirect to signup.aspx. On the page load event you may want to capture the information where this user belong by [CODE] protected … | |
Re: Create an auto incremented primary key in your sql. Execute this sql statement. "INSERT INTO YourTable(val1, val2, val3 ...) VALUES(@val1, @val2, @val3...); SELECT SCOPE_IDENTITY();" The sql statement will return you the incremental primary key. You may refer this record by the returned primary key. | |
I was trying to backup a database with the name test. I got the error as below: ERROR 1064 (42000): You have an error in your SQL syntax; check...... This error occurred when I am executing (command line) mysql> mysqldump -u root -p password test > test.sql; How could this … | |
Any1 know how 2 update data in a DataEnvironment? I tried to search throught the net but unable to get solution to my problem. Please guide me with some simply code. Thx in advance. | |
I would like to include .swf file in a vb 2005 program. I have no idea how and where to include the .swf file. It is inside the picture box? Please guide me, I am new in vb and have no idea how 2 do it. thx | |
Re: As far as the code are concern, it only get data from database and populates it into the dropdownlist in the page. Probably you have to decide what it should do after you get the selected dropdownlist data from user after he clicked on the "next" button in the form. … | |
Re: You would probably check your sql statement and one more thing you should get the retrieved data with this way: [CODE]while ($row = mysql_fetch_assoc($result)) { echo $row["userid"]; echo $row["fullname"]; echo $row["userstatus"]; }[/CODE] instead of [CODE]while ($row = mysql_fetch_assoc($result)) { echo $row[0]; echo $row[1]; echo $row[2]; }[/CODE] click here for more … | |
i am using scanner class, i faced problem when i tried to get a string with space. How can i modify my code to solve the problem. Here is my code: [CODE] import java.util.Scanner; class abc { public void main(String[] args) { Scanner abc = new Scanner(System.in); System.out.print("Name: "); String … | |
I have created an asp.net web project and deployed it in my pc with the virtual directory set to websetup1. How should i access my website? When i type my ip add in the browser, it will display my router configuration page instead. Should i include virtual directory in my … | |
Hi, I am dealing with AJAX UpdataPanel. I created 2 radio button during run time. By default there is a button in the updatepanel. A user will check either one radiobutton in updatepanel and then hit the button. How do i got to know which radiobutton is checked? [CODE] RadioButton … | |
When a host request a page from server, the server will 1st bind a encryption key to the host's mac address. Data provided by host will be encrypted at the client side using the same encryption key. The encrypted data submitted by the host will be decrypt by the server. … | |
Let say i hv two textbox, i.e. TextBox1 and TextBox2 and a button. Is it possible for me to write text into either Textbox1 or TextBox2 when the focus is at the textbox and button is clicked subsequently? For example my focus is now at TextBox1 then i clicked on … | |
Let say i hv two textbox, i.e. TextBox1 and TextBox2 and a button. Is it possible for me to write text into either Textbox1 or TextBox2 when the focus is at the textbox and button is clicked subsequently? For example my focus is now at TextBox1 then i clicked on … | |
I have problem dealing with EditItemTemplate. What I am trying to do is to update 'lowerIncomeBoundary' with the sum of amount of current value in tb1 and tb2 which is the sum of "lowerIncomeBoundary" and "upperIncomeBoundary". Appreciate if someone can provide me a way to access item in EditItemTemplate... [CODE] … | |
I created a TableCell with the TableCell.Text = "text from database" then i add TableCell control into an empty table during page load. I am trying to retrieve the text in the TableCell after a postback by user how should i do that? my code: [CODE] TableRow tr = new … | |
i was trying to build a glossary section for a web. The idea for the glossary part is that, when users mouse over the term in the glossary section the meaning/definition of the term will appear. How this could be done? Do I need a database for easier maintenance rather … | |
Is it possible to send mail through my web application without having SMTP server? For example, the mail will be send through my existing hotmail account or yahoo account to ppl who registered in my web application. If it is viable, please provide me some resources on the method...Thanks in … | |
How can i display the selected item's text in the dropdownlist? Assumed i have a dropdownlist with 3 items which are: "one" "two" "three" When i selected "three" then the word "three" will appear in the textbox. | |
I am using the login control in ASP.NET. When I run the program an error msg "Incorrect syntax near the keyword 'User' " appeared in the debugging mode. I have no idea what is the problem. Anyone know what is wrong with my code? [CODE] Protected Sub Login1_Authenticate(ByVal sender As … | |
I whould like to check on a particular file in a share network whether it is open by other user. If it is open by other user, i would like it to be close. Here is my code for opening the excel file and checking code. I have no idea … | |
Hi, i am having a vb6 program on a local lan server in my company. Recently i did an enhancement to the vb6 program. The program is able write into a blank excel sheet located in the application path. It work fine previously without any problem. After the enhancement, the … | |
i am trying to coonect ms access with vb6. The code is working but after i execute "SELECT * from table" it is showing the content for the last row in the ms access. I am wondering how i can change my code so it display all the content instead … | |
Hi, there. I am looking links and sources for studying and understand way to navigate around windows directories. This can be easily seen especially during software installation where user is able to change the installation path. Is it related to the CommonDialogAttach.* ? Please give me a helping hand for … | |
Hi, I am given assignment to develop simple games on applet. I have problem understanding the function of some abstract class... any1 would like to explain to me? Thx in advance. [CODE] class snakeGame extends Applet implements Runnable { Thread runner; public void init(){} public void start(){} public void stop(){} … | |
hi, i have a question regarding playing audio file using vb 2005. Here is my working code: [CODE]Dim dlgFileDialog As New OpenFileDialog dlgFileDialog.FileName = "C:\Documents and Settings\wek060049\Desktop\MusicAppreciation\Resources\1.mp3" Me.AxWindowsMediaPlayer1.URL = dlgFileDialog.FileName [/CODE] it is working perfectly, i am wondering if i build an installation file from my project will it still … | |
Hi, i am trying to build a frame where it will display images when i click on the "next" button. I am doing it in such a way that i insert these images into separate frames and showing these frames separely which i found it very tedious. Is there any … | |
[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the … | |
I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will … | |
I would like to know it is possible to embed flash with .fla extension file into the VB6? I had tried to place it in the picture box but the VB6 dont let me to do so. If it is possible, can anyone guide me to play a flash within … | |
Anyone would like to tell me what is the function for setting focus point as the program start executing? For example i have 3 command buttons that is arrange vertically... by default the program will focus on the middle button by having dotted line surround the button. What i should … | |
i am new in java ... i would like to know how 2 maintain an integer without having it to show the decimal after i manipulate it. Example: int y = 5; System.out.print(Math.pow(y,2)); it display 25.0 instead of 25 which i wan it to be. Help would be very appreciate … | |
HI, i am new in VB. I would like to know whether VB have API like Java? Where i can search through API/documents to know the function of any built-in function or is there any website that provide information for all the build in VB functions? It is possible to … | |
#include<iostream> #include<fstream> using namespace std; void main(){ ifstream inf("data.txt"); char name[30]; while(!inf.getline(name, 30, '|').eof()) { char jersey_number[10]; char best_time[10]; char sport[40]; char high_school[40]; inf.getline(jersey_number, 10, '|');// #read thru pipe inf.getline(best_time, 10); // #read thru newline inf.getline(sport, 40, '|'); // #read thru pipe inf.getline(high_school, 40); // #read thru newline cout<<"jersey number: … ![]() | |
const char * strstr ( const char * str1, const char * str2 ); char * strstr ( char * str1, const char * str2 ); Locate substring Returns a pointer to the first occurrence of str2 in str1, or a null pointer if there str2 is not part of … | |
Re: <li class="li1">int estimatedPopulation (int growthRate, int cPopulation, int n) <li class="li2">{ <li class="li1"> int population ; <li class="li1"> <li class="li1">in your funstion declaration, you are asking for an int parameter: <li class="li1">int estimatedPopulation ( [B]int[/B], int, int ) ; <li class="li1">but you are give a funtion parameter which is growthRate … | |
i am a newbie in C++ file processing... Any1 can guide me to search for an item(lastname) in the example below? what is [B]seekg[/B] or [B]seekp... [/B]how to use it? [code=cplusplus] #include<iostream> #include<fstream> using namespace std; void main(){ char firstname[10], lastname[10]; int age; ofstream write("text.txt", ios::app);/*actually i am not sure … |
The End.