15,914,066 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11504333 (Top 40 by date)
Member 11504333
28-Nov-16 10:50am
View
i try this code but still the problem is same now i updated the whole code so please check and tell me whats wrong there
thanks
Member 11504333
28-Nov-16 10:50am
View
i try this code but still the problem is same now i updated the whole code so please check and tell me whats wrong there
thanks
Member 11504333
28-Nov-16 10:50am
View
i try this code but still the problem is same now i updated the whole code so please check and tell me whats wrong there
thanks
Member 11504333
27-Nov-16 12:56pm
View
im using info@worktop.com email ID with password and using smtp to send email... and code already mention in post please help me about this problem
thanks in advance...
Member 11504333
27-Nov-16 12:52pm
View
yes. thats the problem. how i can solve ?
Member 11504333
24-Nov-16 10:08am
View
yes. i get a email message when try to send massage "someone just use your password to try to sign in" can you share code for email
thanks
Member 11504333
9-Dec-15 4:18am
View
please tell me how can make sure HTTP method is PUT because when i run API it give the error
The requested resource does not support http method 'GET'
Member 11504333
8-Dec-15 14:20pm
View
routes.MapRoute(
name: "Default1",
url: "{controller}/{action}/{name}/{id}/{id1}", // URL with parameters
defaults: new { action = "Index", name = UrlParameter.Optional, id = UrlParameter.Optional, id1 = UrlParameter.Optional } // Parameter defaults
);
public HttpResponseMessage Put(String name, String id, String id1)
{
var employees = locationdata.UpdateEmployee(name,id,id1);
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, employees);
return response;
}
problem is same @Manas_kumar
Member 11504333
4-Dec-15 0:59am
View
Yes every thing is OK but I don't understand why its not showing exact location
Member 11504333
28-Nov-15 13:23pm
View
if u talking about GPS its on.
Member 11504333
28-Nov-15 12:23pm
View
how can check tracker feature on or not ?
Member 11504333
19-Nov-15 11:51am
View
thnks..
Member 11504333
5-Nov-15 0:23am
View
when execute this query its return all data of all tables
var query = (from registration in dbregistrations
select new registration { user_id, user_pass });
return query.ToList();
}
Member 11504333
5-Nov-15 0:22am
View
when execute this query its return all data of all tables
var query = (from registration in dbregistrations
select new registration { user_id, user_pass });
return query.ToList();
}
Member 11504333
5-Nov-15 0:21am
View
i write this query
List<registration> listofusers = new List<registration>();
string strcon = System.Configuration.ConfigurationManager.ConnectionStrings["HMISEntities"].ConnectionString.ToString();
SqlConnection con = new SqlConnection(strcon);
//string cmd = ;
SqlCommand sqlcmd = new SqlCommand("select user_id,user_pass from registration;", con);
con.Open();
SqlDataReader dr = sqlcmd.ExecuteReader();
while(dr.Read()){
registration reg = new registration();
reg.user_id = Convert.ToString(dr["user_id"]);
reg.user_pass = Convert.ToString(dr["user_pass"]);
listofusers.Add(reg);
}
dr.Close();
con.Close();
call here in this class controller
public class regisController : ApiController
{
public List<registration> Get(List<registration> list)
{
return registered.GetAllregis(list);
}
}
when run this code show the error below
{"$id":"1","message":"An error has occurred.","exceptionMessage":"Keyword not supported: 'metadata'.","exceptionType":"System.ArgumentException","stackTrace":" at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)\r\n at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)\r\n at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)\r\n at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)\r\n at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)\r\n at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)\r\n at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)\r\n at System.Data.SqlClient.SqlConnection..ctor(String connectionString, SqlCredential credential)\r\n at System.Data.SqlClient.SqlConnection..ctor(String connectionString)\r\n at newAPI.Models.registered.GetAllregis(List`1 list) in c:\\Users\\H Ahmad Raza\\Documents\\Visual Studio 2013\\Projects\\newAPI\\newAPI\\Models\\registered.cs:line 18\r\n at newAPI.Controllers.regisController.Get(List`1 list) in c:\\Users\\H Ahmad Raza\\Documents\\Visual Studio 2013\\Projects\\newAPI\\newAPI\\Controllers\\regisController.cs:line 30\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<getexecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.We
Member 11504333
5-Nov-15 0:20am
View
i write this query
List<registration> listofusers = new List<registration>();
string strcon = System.Configuration.ConfigurationManager.ConnectionStrings["HMISEntities"].ConnectionString.ToString();
SqlConnection con = new SqlConnection(strcon);
//string cmd = ;
SqlCommand sqlcmd = new SqlCommand("select user_id,user_pass from registration;", con);
con.Open();
SqlDataReader dr = sqlcmd.ExecuteReader();
while(dr.Read()){
registration reg = new registration();
reg.user_id = Convert.ToString(dr["user_id"]);
reg.user_pass = Convert.ToString(dr["user_pass"]);
listofusers.Add(reg);
}
dr.Close();
con.Close();
call here in this class controller
public class regisController : ApiController
{
public List<registration> Get(List<registration> list)
{
return registered.GetAllregis(list);
}
}
when run this code show the error below
{"$id":"1","message":"An error has occurred.","exceptionMessage":"Keyword not supported: 'metadata'.","exceptionType":"System.ArgumentException","stackTrace":" at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)\r\n at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)\r\n at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)\r\n at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)\r\n at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)\r\n at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)\r\n at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)\r\n at System.Data.SqlClient.SqlConnection..ctor(String connectionString, SqlCredential credential)\r\n at System.Data.SqlClient.SqlConnection..ctor(String connectionString)\r\n at newAPI.Models.registered.GetAllregis(List`1 list) in c:\\Users\\H Ahmad Raza\\Documents\\Visual Studio 2013\\Projects\\newAPI\\newAPI\\Models\\registered.cs:line 18\r\n at newAPI.Controllers.regisController.Get(List`1 list) in c:\\Users\\H Ahmad Raza\\Documents\\Visual Studio 2013\\Projects\\newAPI\\newAPI\\Controllers\\regisController.cs:line 30\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<getexecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.We
Member 11504333
5-Nov-15 0:20am
View
i write this query
List<registration> listofusers = new List<registration>();
string strcon = System.Configuration.ConfigurationManager.ConnectionStrings["HMISEntities"].ConnectionString.ToString();
SqlConnection con = new SqlConnection(strcon);
//string cmd = ;
SqlCommand sqlcmd = new SqlCommand("select user_id,user_pass from registration;", con);
con.Open();
SqlDataReader dr = sqlcmd.ExecuteReader();
while(dr.Read()){
registration reg = new registration();
reg.user_id = Convert.ToString(dr["user_id"]);
reg.user_pass = Convert.ToString(dr["user_pass"]);
listofusers.Add(reg);
}
dr.Close();
con.Close();
call here in this class controller
public class regisController : ApiController
{
public List<registration> Get(List<registration> list)
{
return registered.GetAllregis(list);
}
}
when run this code show the error below
{"$id":"1","message":"An error has occurred.","exceptionMessage":"Keyword not supported: 'metadata'.","exceptionType":"System.ArgumentException","stackTrace":" at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)\r\n at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)\r\n at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)\r\n at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)\r\n at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)\r\n at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)\r\n at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)\r\n at System.Data.SqlClient.SqlConnection..ctor(String connectionString, SqlCredential credential)\r\n at System.Data.SqlClient.SqlConnection..ctor(String connectionString)\r\n at newAPI.Models.registered.GetAllregis(List`1 list) in c:\\Users\\H Ahmad Raza\\Documents\\Visual Studio 2013\\Projects\\newAPI\\newAPI\\Models\\registered.cs:line 18\r\n at newAPI.Controllers.regisController.Get(List`1 list) in c:\\Users\\H Ahmad Raza\\Documents\\Visual Studio 2013\\Projects\\newAPI\\newAPI\\Controllers\\regisController.cs:line 30\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<getexecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.We
Member 11504333
4-Nov-15 5:24am
View
private static HMISEntities dbcontxt = new HMISEntities();
public static List<registration> GetAllregis()
{
var query =( from registration in dbcontxt.registrations
select new registration {user_id,user_pass}).ToList();
return query.ToList();
showing error that user_id and pass does not exist in current context how can solve this @KrunalRohit
Member 11504333
16-Sep-15 4:46am
View
thanks alot.....
Member 11504333
16-Sep-15 3:59am
View
Thanks Richard MacCutchan.....
i Have a question help me if U can.... plz
every time when i put any widgets in my activity and run on emulator their is a problem which show "hardcoded string" with a yellow mark...in my .XML file
i don't understand how i can solve this... plz give some idea thanks :)
Member 11504333
15-Sep-15 14:28pm
View
thats the code plz help its showing me msg when i click on add button but when i click on sub it doesnt show new activity....:( i just check as example to show msg on add button.....
Member 11504333
15-Sep-15 14:27pm
View
Deleted
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"
="" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context="ahmadraza.com.firstapp.newcelci">
<textview
android:layout_width="wrap_content"
="" android:layout_height="wrap_content" android:text="@string/Number1" android:id="@+id/textView" android:layout_alignparenttop="true" android:layout_centerhorizontal="true">
<edittext
android:layout_width="wrap_content"
="" android:layout_height="wrap_content" android:id="@+id/etnum1" android:inputtype="number" android:layout_below="@+id/textView" android:layout_alignleft="@+id/etnum2" android:layout_alignstart="@+id/etnum2">
<textview
android:layout_width="wrap_content"
="" android:layout_height="wrap_content" android:text="@string/Number2" android:id="@+id/textView2" android:layout_below="@+id/etnum1" android:layout_alignleft="@+id/textView" android:layout_alignstart="@+id/textView">
<edittext
android:layout_width="wrap_content"
="" android:layout_height="wrap_content" android:id="@+id/etnum2" android:inputtype="number" android:layout_below="@+id/textView2" android:layout_centerhorizontal="true">
<textview
android:layout_width="wrap_content"
="" android:layout_height="wrap_content" android:text="@string/Result" android:id="@+id/textView3" android:layout_below="@+id/etnum2" android:layout_centerhorizontal="true">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ADD"
android:id="@+id/btnadd"
android:/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/SUB"
android:id="@+id/btnsub"
android:/>
<textview
android:layout_width="wrap_content"
="" android:layout_height="wrap_content" android:id="@+id/tvresult" android:layout_below="@+id/btnsub" android:layout_centerhorizontal="true" android:layout_margintop="33dp">
Member 11504333
15-Sep-15 14:26pm
View
Deleted
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
="" package="ahmadraza.com.firstapp">
<application
android:allowbackup="true"
="" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme">
<activity
android:name=".newcelci"
="" android:label="@string/title_activity_newcelci">
<intent-filter>
<action android:name="android.intent.action.MAIN">
<category android:name="android.intent.category.LAUNCHER">
<activity
android:name=".Result"
="" android:label="@string/title_activity_result">
Member 11504333
15-Sep-15 14:24pm
View
Deleted
package ahmadraza.com.firstapp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class newcelci extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_newcelci);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_newcelci, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
public void doadd(View v)
{
if(v.getId() == R.id.btnadd)
{
MessageBox("Hello World");
}
}
public void MessageBox(String message)
{
Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
}
// public void doadd(View view){
// EditText num1=(EditText)findViewById(R.id.etnum1);
// EditText num2=(EditText)findViewById(R.id.etnum2);
//int a=Integer.parseInt( num1.getText().toString());
//int b=Integer.parseInt(num2.getText().toString());
//Intent intent=new Intent(this,Result.class);
//startActivity(intent);
//TextView result=(TextView) findViewById(R.id.tvresult);
//result.setText(String.valueOf(a+b));
//}
public void dosub(View view){
EditText num1=(EditText)findViewById(R.id.etnum1);
EditText num2=(EditText)findViewById(R.id.etnum2);
int a=Integer.parseInt( num1.getText().toString());
int b=Integer.parseInt( num2.getText().toString());
Intent intent1=new Intent(this,Result.class);
startActivity(intent1);
//TextView result=(TextView) findViewById(R.id.tvresult);
//result.setText(String.valueOf(a-b));
}
}
Member 11504333
1-Jun-15 17:48pm
View
i am also using this but the same problem :(
if(lblslctdop7.equals(lblcorrectans7)){
lblrightwrong7.setText("TRUE");
score++;
}
else{
lblrightwrong7.setText("FALSE");
}
Member 11504333
1-Jun-15 17:48pm
View
i am also using this but the same problem :(
if(lblslctdop7.equals(lblcorrectans7)){
lblrightwrong7.setText("TRUE");
score++;
}
else{
lblrightwrong7.setText("FALSE");
}
Member 11504333
9-May-15 6:50am
View
Dear OriginalGriff!
i am using the below code to open new jframe hows name is Questions all code is runing currectly when it reach on this line
new Questions(loadedQues).setVisible(true);
it show that error
try{
String sqlquery=" select top 10 q.ID,q.Question,q.Option1,q.Option2,q.Option3,q.Option4,a.Ans from Questions q, Answers a where q.ID=a.ID and q.Ques_ID='Computer' order by NEWID(); ";
Connection conn=DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=TestJava;user=testjava;password=ahmad");
Statement st=conn.createStatement();
ResultSet rs= st.executeQuery(sqlquery);
while(rs.next()){
classloaddata cld= new classloaddata();
cld.Question=rs.getString("Question");
cld.Op1=rs.getString("Option1");
cld.Op2=rs.getString("Option2");
cld.Op3=rs.getString("Option3");
cld.Op4=rs.getString("Option4");
cld.Answer=rs.getString("Ans");
loadedQues.add(cld);
}
new Questions(loadedQues).setVisible(true);
this.dispose();
}
catch(Exception e){
JOptionPane.showMessageDialog(null, "Query for Load data not execute", "Error", JOptionPane.ERROR);
}
Member 11504333
9-May-15 6:48am
View
i am using the below code to open new jframe hows name is Questions all code is runing currectly when it reach on this line
new Questions(loadedQues).setVisible(true);
it show that error
try{
String sqlquery=" select top 10 q.ID,q.Question,q.Option1,q.Option2,q.Option3,q.Option4,a.Ans from Questions q, Answers a where q.ID=a.ID and q.Ques_ID='Computer' order by NEWID(); ";
Connection conn=DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=TestJava;user=testjava;password=ahmad");
Statement st=conn.createStatement();
ResultSet rs= st.executeQuery(sqlquery);
while(rs.next()){
classloaddata cld= new classloaddata();
cld.Question=rs.getString("Question");
cld.Op1=rs.getString("Option1");
cld.Op2=rs.getString("Option2");
cld.Op3=rs.getString("Option3");
cld.Op4=rs.getString("Option4");
cld.Answer=rs.getString("Ans");
loadedQues.add(cld);
}
new Questions(loadedQues).setVisible(true);
this.dispose();
}
catch(Exception e){
JOptionPane.showMessageDialog(null, "Query for Load data not execute", "Error", JOptionPane.ERROR);
}
Member 11504333
22-Apr-15 7:59am
View
peter leow
showing the same problem... Frown | :(
lblshowans.setText(clld.Answer);
StoredAns[count] = lblshowans.getText();
Member 11504333
1-Apr-15 15:25pm
View
not working. same problem :(
Member 11504333
1-Apr-15 15:15pm
View
its working in db :(
Member 11504333
26-Mar-15 4:40am
View
i am using instance name as sqlexpress or my database name but its showing the same error cannot establish a connection to jdbc:sqlserver://localhost\sqlexpress:1433;databaseName=TestSys using com.microsoft.sqlserver.jdbc.SQLServerDriver (The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".)
Member 11504333
9-Mar-15 13:17pm
View
SQL server
Member 11504333
9-Mar-15 13:07pm
View
?
Member 11504333
9-Mar-15 12:59pm
View
i have a panel in my GUI and in this panel i have 4 radiobuttons and one label for question a one for the answer i want to load data on these buttons and labels from database i have two tables 1st table name is Questions and 2nd table name is Answers the above code for that values but i dnt know how to assign value to that radiobuttons and labels from two different tables ?
Member 11504333
9-Mar-15 12:54pm
View
im using this query
"select q.Question,q.Option1,q.Option2,q.Option3,q.Option4,a.Answer from Questions q,Answers a where q.Q_ID= 'MATH' and q.ID=a.ID;"
Member 11504333
9-Mar-15 12:52pm
View
in database i have two tables one name is Questions and second table name is answers all answers are in of related question save in Answers table how can assign that value to the radiobutton
Member 11504333
7-Mar-15 5:20am
View
thanks a lot...........
Member 11504333
7-Mar-15 5:14am
View
thanks
but for combo-box what should i use ?
Member 11504333
7-Mar-15 4:21am
View
im trying to create an application in which im using a combo-box and in database. i have two tables i want to repeat same id in both tables by that single combo-box which im using in from1. how can access the same value select by form1 can us in form2.......
Show More