15,616,898 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 Python questions
View Javascript questions
View C++ questions
View Java 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 10263519 (Top 142 by date)
Member 10263519
5-May-14 5:44am
View
thanq
Member 10263519
5-May-14 5:35am
View
how to exit the application , i used application.Exit(). but it's not exit the application.
my application is having two threads
Member 10263519
3-May-14 3:08am
View
thanq
Member 10263519
2-May-14 7:10am
View
when i swipe the card i need to write into excel, so it's working only for one card , for second card it's giving error at query create table [table] as "table already exists"
so how to know whether the table exists or not, if exists i need to write into another row
how to do
Member 10263519
18-Apr-14 3:00am
View
i did that also, but when i swipe my card id is displaying as @1234567891#
here i don't want to display @,#
Member 10263519
18-Apr-14 2:14am
View
no, i know it. but am openng forms as,mainform (contains Menustrip(connect,student_IN, student_out)),click on connect(select the port, connect), click on student_in ,then swipe the card (my serialport object is in connect form,if i use serialport_dataReceived event,how can i display received card id in textbox of student_in)
Member 10263519
18-Apr-14 1:39am
View
thanks for reply, i was solved it in the same way
Member 10263519
16-Apr-14 5:31am
View
ok, solved it by keeping it in button click,
Member 10263519
11-Apr-14 7:39am
View
ok, i was solved it another way, without using identity column.
Mysolution is here:
1)String query = "select * from visitor where card_id=@id and out_time is null";
2)String query = "update visitor set out_time=@out where card_id=@id and out_time is null";
3)String query = "insert into visitor(card_id,name,age,address,id_proof,contact_person,purpose,in_time) values(@id,@name,@age,@address,@idproof,@contact,@purpose,@in)";
Member 10263519
11-Apr-14 5:58am
View
i didn't get
Member 10263519
24-Mar-14 6:16am
View
i solved
Member 10263519
24-Mar-14 5:06am
View
when i observe by keeping breakpoint at area in above code.
am getting area value "System.Data.DataRowView"
am not getting what's the problem.
Member 10263519
13-Mar-14 3:26am
View
am didn't get plz give some points how to do plz.........
Member 10263519
1-Mar-14 2:21am
View
ok ,solved
Member 10263519
1-Mar-14 2:20am
View
solved myself
Member 10263519
1-Mar-14 2:19am
View
solved myself
Member 10263519
28-Feb-14 1:08am
View
Combo Box is not allowing without selecting anything
Member 10263519
27-Feb-14 8:30am
View
instead of Insert(), i tried dt.Rows.InsertAt(dr,0);
now it's working
thanq so much
Member 10263519
27-Feb-14 8:27am
View
insert() method is not supporting , am getting error.It's winform application,
Member 10263519
26-Feb-14 6:15am
View
thanks alot
Member 10263519
26-Feb-14 5:25am
View
IndexOutOfRange exception at datetime t=convert.todatetime(rdr["date"])
Member 10263519
26-Feb-14 5:19am
View
ok,
but if i use following;
using (MySqlConnection con = new MySqlConnection(ConnectionString))
{
String query = "select DATE_FORMAT(date, '%Y-%m-%d %H:%m:%s') from acc";
MySqlCommand command = new MySqlCommand(query, con);
con.Open();
using (MySqlDataReader rdr = command.ExecuteReader())
{
if (rdr.Read())
{
DateTime t = Convert.ToDateTime(rdr["date"]);
String s = rdr["date"].ToString();
MessageBox.Show("value:" + t);
}
}
}
acc table is having only 1 column
date datetime
giving error as IndexOutofbounds exception
Could not find specified column in results: date
Member 10263519
26-Feb-14 1:35am
View
ok thaq for you reply
Member 10263519
26-Feb-14 0:56am
View
releaseObject():
private void releaseObject(object obj)
{
try
{
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
obj = null;
}
catch (Exception ex)
{
obj = null;
MessageBox.Show("Unable to release the Object " + ex.ToString());
}
finally
{
GC.Collect();
}
}
Member 10263519
26-Feb-14 0:43am
View
object misValue = System.Reflection.Missing.Value;
is the minValue i used.
Member 10263519
26-Feb-14 0:42am
View
i have used following code:
workbook.Close(true, misValue, misValue);
excelApp.Quit();
releaseObject(worksheet);
releaseObject(workbook);
releaseObject(excelApp);
}
catch (Exception p)
{
MessageBox.Show(p.StackTrace);
}
finally
{
if (excelApp != null)
releaseObject(excelApp);
if (workbook != null)
releaseObject(workbook);
if (worksheet != null)
releaseObject(worksheet);
}
now , its asking as,Do you want to save in messagebox , if i press no, immediatly EXcel sheet also closing.
but my requirement is just open the excel file ,no need to save it. if i want i will take it print that's it. how to solve this...
Member 10263519
25-Feb-14 4:50am
View
i don't want to save , just i want to watch it out,
Member 10263519
24-Feb-14 4:42am
View
ok, it's working by tabing hour as 24 -hour format.(HH)
Member 10263519
20-Feb-14 4:11am
View
it's winforms application.that link is giving error it's not opening
Member 10263519
18-Feb-14 23:44pm
View
it's windows application
Member 10263519
18-Feb-14 23:43pm
View
if i uncomment it, it's giving error as
Error 1 'System.Windows.Forms.DataGridView' does not contain a definition for 'DataBind' and no extension method 'DataBind' accepting a first argument of type 'System.Windows.Forms.DataGridView' could be found (are you missing a using directive or an assembly reference?)
Member 10263519
17-Feb-14 7:47am
View
then how to solve it.
Member 10263519
17-Feb-14 6:55am
View
am collecting browsed file into txtbrowse (textbox).
yes, that excel file is corrupted after executing this code am not getting what's happening.
Member 10263519
17-Feb-14 2:13am
View
by using above code am unable to open xlsx file.
am getting error as:
Excel cannot open the file 'Copy of New Microsoft Office Excel Worksheet_using.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
Member 10263519
10-Feb-14 7:48am
View
yes, when i use http: it is showing "No web site is configured at this address."
but in iis console , under default websites my project folder is showing. what to do
Member 10263519
10-Feb-14 7:15am
View
ok , when i enter "inetmgr" iis window is opening .but in browser(chrome),when i enter https://localhost/
it's giving error as:SSL connection error
Member 10263519
10-Feb-14 6:42am
View
i have installed iis7, it's showing in control panel add/remove programs, but when i type inetmgr in run it's showing error as "windows canot find inetmgr"
Member 10263519
4-Feb-14 7:43am
View
am having windows XP
Member 10263519
4-Feb-14 5:13am
View
how to install IIS7.
Member 10263519
4-Feb-14 5:12am
View
how to solve it.
Member 10263519
4-Feb-14 4:55am
View
<configuration>
<system.web>
<compilation debug="true" targetframework="4.0">
<connectionstrings>
<add name="myConnectionString" connectionstring="Server=localhost;Database=rewards;User ID=root;Password=root;Integrated Security=True;Allow User Variables=true" providername="System.Data.MySqlClient=">
Member 10263519
4-Feb-14 4:54am
View
there is no authentication configuration.
only connection string is there
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetframework="4.0">
<connectionstrings>
<add name="myConnectionString" connectionstring="Server=localhost;Database=rewards;User ID=root;Password=root;Integrated Security=True;Allow User Variables=true" providername="System.Data.MySqlClient=">
Member 10263519
4-Feb-14 4:43am
View
how can i check authentication mode
Member 10263519
4-Feb-14 1:42am
View
not that "No data found "
how to deploy web application in iis v5.1,
am following
http://www.codeproject.com/Articles/280137/How-To-Deploy-a-Web-App-in-IIS but am getting as shown in that
Member 10263519
4-Feb-14 1:22am
View
as you said: http://localhost/login.aspx
if i run using above link web application is not running.
what can i do to run my application on iis.
Member 10263519
4-Feb-14 1:04am
View
ok now also it's executing , when i debugg
URL is:http://localhost:3038/login.aspx
before installing iis also same url on browser address bar.
Member 10263519
3-Feb-14 5:05am
View
not that , i solved it by keeping "Allow user Variables=true" in connection String.
But here the problem is its giving only last 2 records not 3, if i keep 4 instead of 3 , it's giving last records not the latest last record.
Member 10263519
3-Feb-14 4:13am
View
ok, but in query only am passing valus, there is no column in table ,but just for clarity am using this column, i need to get last 3 inserted rows for same id.
Member 10263519
3-Feb-14 4:11am
View
if i add like you
am getting erropr:
Server Error in '/' Application.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':= 0 + 1 AS row_number FROM transaction JOIN (SELECT 0 := 0) r where card_id='c' at line 1
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':= 0 + 1 AS row_number FROM transaction JOIN (SELECT 0 := 0) r where card_id='c' at line 1
Source Error:
Line 220: command3.Parameters.AddWithValue("@card", cardid);
Line 221: command3.Parameters.AddWithValue("@curRow", curRow);
Line 222: using (MySqlDataReader rdr3 = command3.ExecuteReader())
Line 223: {
Line 224: if (rdr3.Read())
Source File: E:\Online Billing System\Online Billing System\DataTransaction.aspx.cs Line: 222
Stack Trace:
[MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':= 0 + 1 AS row_number FROM transaction JOIN (SELECT 0 := 0) r where card_id='c' at line 1]
MySql.Data.MySqlClient.MySqlStream.ReadPacket() +376
MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) +116
MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId) +49
MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +135
MySql.Data.MySqlClient.MySqlDataReader.NextResult() +1258
MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +2536
MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() +32
Online_Billing_System.DataTransaction.Page_Load(Object sender, EventArgs e) in E:\Online Billing System\Online Billing System\DataTransaction.aspx.cs:222
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Member 10263519
3-Feb-14 0:39am
View
i know , just by clicking debug , for a form.but i want to type url with parameters , when i hit enter then web form needs to be traced how is it possible......
Member 10263519
1-Feb-14 3:09am
View
thanks a lot it's working
Member 10263519
1-Feb-14 2:48am
View
am getting error as no overloaded method with 1 parameter
Member 10263519
1-Feb-14 2:45am
View
from my device i got the datetime as 08102013223300
but i need to place in mysql table as 2013-10-08 22:33:00
how to do that.
Member 10263519
1-Feb-14 0:19am
View
by hosting on web will get www.silicontechlabs.com
and my web page is Transaction.aspx , but how can i get Finance .in the above url.
Member 10263519
30-Jan-14 3:20am
View
ok, but my doubt is:
just type that url, then browser should respond TT=1.
webserver internally connects to my application and should update the record then give responce.
Member 10263519
28-Jan-14 23:36pm
View
it's not website ,it's web application.am very new to .net, don't mine suggest me , can i use master page to the web application. how to use it .almost i was completed my task,shall i add now master page in web application.
Member 10263519
28-Jan-14 5:05am
View
thaks for reply
Member 10263519
28-Jan-14 0:25am
View
thaks so much i got it..........
Member 10263519
28-Jan-14 0:15am
View
everything is executing ,rdr(datareader is showing HasRows=true)but it's not displaying anything even gridview also.
Member 10263519
28-Jan-14 0:13am
View
yes, i was tried with adding columns,
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Transaction.aspx.cs" Inherits="Online_Billing_System.Transaction" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="transactionGridView" runat="server" AutoGenerateColumns="False"
>
<columns>
<asp:BoundField DataField="member_id" HeaderText="Member ID" ReadOnly="true" />
<asp:BoundField DataField="card_id" HeaderText="Card ID" />
<asp:BoundField DataField="name" HeaderText="Name" />
<asp:BoundField DataField="paid_amount" HeaderText="Paid Amount" />
<asp:BoundField DataField="due_amount" HeaderText="Due Amount" />
<asp:BoundField DataField="paid_date" HeaderText="Paid Date" />
<asp:BoundField DataField="location" HeaderText="Location" />
<asp:BoundField DataField="phone_number" HeaderText="Phone Number" />
</div>
</form>
</body>
</html>
but its not getting.
Member 10263519
27-Jan-14 23:42pm
View
i get placed your code ,but i got the error as:
Server Error in '/' Application.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
System.Web.UI.ControlCollection.Add(Control child) +8721975
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control) +844
AjaxControlToolkit.ScriptControlBase.OnLoad(EventArgs e) +59
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Member 10263519
27-Jan-14 7:53am
View
code in transaction.aspx.cs get executed ,i observed that by keeping breakpoint. rdr(Data Reader)
is showing HasRows=true.but the gridview is not displaying
Member 10263519
27-Jan-14 7:18am
View
i have added columns as:
<columns>
<asp:BoundField DataField="member_id" HeaderText="Member ID" ReadOnly="true" />
<asp:BoundField DataField="card_id" HeaderText="Card ID" />
<asp:BoundField DataField="name" HeaderText="Name" />
<asp:BoundField DataField="paid_amount" HeaderText="Paid Amount" />
<asp:BoundField DataField="due_amount" HeaderText="Due Amount" />
<asp:BoundField DataField="paid_date" HeaderText="Paid Date" />
<asp:BoundField DataField="location" HeaderText="Location" />
<asp:BoundField DataField="phone_number" HeaderText="Phone Number" />
but it's not displaying Gridview.plz give a suggestion how to solve it
Member 10263519
27-Jan-14 7:04am
View
Could not find specified column in results: member_id,card_id,name,paid_amount,due_amount,paid_date,location,phone_number]
if i keep ur code i got the error as above ,those r my database column names
Member 10263519
27-Jan-14 6:55am
View
gridview itself not displaying
Member 10263519
27-Jan-14 6:52am
View
yes , it's entering and executing complete code there is no errors.
Member 10263519
27-Jan-14 6:51am
View
code in transaction.aspx.cs get executed ,i observed that by keeping breakpoint. rdr(Data Reader)
is showing HasRows=true.but the gridview is not displaying
Member 10263519
27-Jan-14 6:47am
View
yes it's giving values from database by executing the query in workbench
Member 10263519
27-Jan-14 5:03am
View
thanq ,thanks a lot...
Member 10263519
27-Jan-14 4:35am
View
ok, i was removed and checked , but still not working.
Member 10263519
27-Jan-14 4:25am
View
no change click event is not firing
Member 10263519
27-Jan-14 4:11am
View
eventhough it's not working. by removing AutoPostBack
Member 10263519
27-Jan-14 3:56am
View
no i didn't get,
Member 10263519
27-Jan-14 3:45am
View
no i wasn't be missed adding validationgroup and validation message for any validator.
Member 10263519
27-Jan-14 2:42am
View
in edit panel am not using any validations
Member 10263519
27-Jan-14 2:31am
View
yes it's validation problem , bcoz by keeping CausesValidation="false" button click event in edit panel is fired.
how to solve it.
Member 10263519
27-Jan-14 2:19am
View
yes ,only in Add panel button click is firing.in other panels button click is not working . why it's not working. plz help me ,am struggling with it since two days.
Member 10263519
27-Jan-14 0:03am
View
thanks a lot
Member 10263519
24-Jan-14 7:41am
View
How to check whether the textboxes having data or not in javascript. how to get the value of textboxes(which are in ajaxtabcontrol toolkit tabs) in javascript
Member 10263519
24-Jan-14 6:19am
View
In the tab page code behind file, i have
protected void usertabContainer_ActiveTabChanged(object sender, EventArgs e)
{
string uname = Request.QueryString["UserName"];
String password = Request.QueryString["Password"];
if (usertabContainer.ActiveTabIndex == 2)
{
using (MySqlConnection con = new MySqlConnection(ConnectionString))
{
String query = "select member_id,card_id,name,date_of_membership,opening_balance,phone_number,address,password,confirm_password from admin where member_id='" + uname + "' ";
MySqlCommand command = new MySqlCommand(query, con);
con.Open();
using (MySqlDataReader rdr = command.ExecuteReader())
{
if (rdr.Read())
{
txtsettingmemid.Text = rdr["member_id"].ToString();
txtsettingcardid.Text = rdr["card_id"].ToString();
txtsettingname.Text = rdr["name"].ToString();
txtsettingdate.Text = rdr["date_of_membership"].ToString();
txtsettingopenbal.Text = rdr["opening_balance"].ToString();
txtsettingphone.Text = rdr["phone_number"].ToString();
txtsettingaddress.Text = rdr["address"].ToString();
txtsettingpwd.Text = rdr["password"].ToString();
txtsettingconfirmpwd.Text = rdr["confirm_password"].ToString();
}
}
}
}
}
when i click OK ,it's entering into this event(it's executing untill ) {
string uname = Request.QueryString["UserName"];
String password = Request.QueryString["Password"];
if (usertabContainer.ActiveTabIndex == 2)
but it's not tab=2, so moved to end and jumping into OK button fun.then moving to transaction , and executing completely. but it's not displaying Gridview
Member 10263519
24-Jan-14 5:57am
View
and i checked while debugging rdr (reader)---> HasRows=true
Member 10263519
24-Jan-14 5:53am
View
ok , i was checked it .but am not getting the issue
Member 10263519
24-Jan-14 5:44am
View
query is correct, already i was debugged the query by taking runtime values.
am not getting what is the problem.
Member 10263519
24-Jan-14 5:15am
View
after entering memberid,cardid,fromdate,todate ,when i hit OK it's redirecting to Transaction page.upto this fine, but Transaction web page should disply gridview, it's not displaying.
Member 10263519
24-Jan-14 4:04am
View
plz give me solution , how to solve it. am struggling a lot with this issue.
Member 10263519
24-Jan-14 1:16am
View
ichecked it , but i googled i requires membership...., but i don't know about that so am solving it by without using ChangePassword Control
Member 10263519
22-Jan-14 23:35pm
View
still same problem, with out entering any data into textboxes ,if i click OK ,then popup is showing "do You want to delete."
if i doesn't enter any data , that should give a message as enter data for memberid or card id.
may be i need to write server side popup control instead of client side in button click,how to solve it.
Member 10263519
22-Jan-14 6:33am
View
if i write this, when i hit OK button it's not displaying popup.
Member 10263519
22-Jan-14 6:21am
View
ok, how can i get txtdmemid textbox value into javascript.
Help me am strugling a lot with this issue.
Member 10263519
22-Jan-14 6:02am
View
ok, but my textbox is in ajaxtabcontrol tab.
<ajax:TabPanel ID="tbpnldelete" runat="server" ><HeaderTemplate>
Delete Member
</HeaderTemplate>
<contenttemplate>
<asp:Panel ID="DeleteMem" runat="server" Width="476px">
<table align="center">
<tr>
<td></td>
<td align="right" ></td>
<td class="style1">
Delete Member
</td></tr>
<tr><td></td><td align="right">Member ID: </td><td class="style1">
<asp:TextBox ID="txtdmemid" runat="server" Height="21px" Width="112px"
> </td> <td></td></tr>
<tr><td></td><td align="right">Card ID: </td><td class="style1">
<asp:TextBox ID="txtdcardid" runat="server"
> </td></tr>
<tr><td></td><td align="right">
<asp:Button ID="btndok" runat="server" Text="OK" OnClick="btndok_Click" onclientclick="return DeleteItem()" /> </td>
<td class="style1">
<asp:Button ID="btndcancel" runat="server" Text="Cancel"
onclick="btndcancel_Click" OnClientClick="this.form.reset();return false;" /> </td></tr></table>
how to get the value of that textbox(txtdmemid)
Member 10263519
22-Jan-14 5:22am
View
<script language="javascript" type="text/javascript">
function ConfirmOnDelete(memberid,cardid) {
if (confirm("Are you SURE you want to Delete") == true) {
window.location = "del.aspx?memberid="<%=txtememid.Text%> "&cardid="<%=txtcardid.Text%>;
return true;
}
and button
<button id="btndok" value="Delete" önclick="ConfirmOnDelete('<%# Eval("memberid,cardid") %>')">
</button>
and in page load
using (MySqlConnection con = new MySqlConnection(ConnectionString))
{
String query = "delete from admin where member_id=@memid OR card_id=@card";
MySqlCommand command = new MySqlCommand(query, con);
command.Parameters.AddWithValue("@memid",txtdmemid.Text);
command.Parameters.AddWithValue("@card", txtdcardid.Text);
con.Open();
command.ExecuteNonQuery();
}//connection
please help me, can i write is there any wrong
Member 10263519
22-Jan-14 4:48am
View
<script language="javascript" type="text/javascript">
function ConfirmOnDelete(memberid/cardid) {
if (confirm("Are you SURE you want to Delete") == true) {
window.location = "del.aspx?memberid=" + txtdmemid.text + "&cardid=" +txtdcardid.text;
return true;
}
</script>
shall i write like this.
onclick="ConfirmOnDelete('<%# Eval("MobileNo") %>')"
here is Eval predefined fun or not.
Member 10263519
22-Jan-14 4:42am
View
ConfirmOnDelete('<%# Eval("MobileNo")
there u have taken only mobile no,but i need to pass either memberid or cardid .
if i any one that record should be deleted.
Member 10263519
22-Jan-14 4:18am
View
i don't have another page (del.aspx).i can enter either memberid or card id ,to delete.
Member 10263519
22-Jan-14 4:12am
View
<script type="text/javascript">
function DeleteItem() {
if (confirm("Are you sure you want to delete ...?")) {
return true;
}
return false;
}
</script>
Member 10263519
21-Jan-14 23:47pm
View
thanks a lot it's working
Member 10263519
21-Jan-14 2:41am
View
thanks for ur responce, i was added scriptmanager
Member 10263519
20-Jan-14 4:41am
View
it's ok plz give an example how to use validation groups
for perticular button.
Member 10263519
20-Jan-14 4:09am
View
plz check out my code behind.
Member 10263519
20-Jan-14 4:05am
View
i wasn't used any validations for those tabs and their controls.
Member 10263519
20-Jan-14 2:50am
View
yes, exactly but i wrote code for click events,
when i click the button from design it's moving to proper click event ,but in debugging it's not perfoming,why am not getting it.
am struggling a lot since one week
Member 10263519
18-Jan-14 1:32am
View
means ,here is my code for admin page design
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Online_Billing_System.Admin" %>
<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" tagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Admin</title>
<script type="text/javascript">
function DeleteItem() {
if (confirm("Are you sure you want to delete ...?")) {
return true;
}
return false;
}
</script>
<style type="text/css">
.style1
{
width: 151px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<ajax:ToolkitScriptManager ID="scriptmanager1" runat="server">
<div style=" width:89%">
<ajax:TabContainer ID="adminTabContainer" runat="server" ActiveTabIndex="3">
<ajax:TabPanel ID="tbpnladd" runat="server" ><HeaderTemplate>Add Member</HeaderTemplate><contenttemplate>
<asp:Panel ID="AddMem" runat="server" Width="738px">
<table align="center"
style="width: 651px"><tr><td></td><td align="right" ></td><td align="center">
Add Member
</td></tr><tr><td></td><td align="right" >Member ID: </td><td><asp:TextBox ID="txtmemid" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage=" Enter Member ID " ControlToValidate="txtmemid"
ForeColor="Red"></td></tr><tr><td></td><td align="right" >Card ID: </td><td><asp:TextBox ID="txtcardid" runat="server" ></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ErrorMessage="Enter Card ID" ControlToValidate="txtcardid" ForeColor="Red"></td></tr><tr><td></td><td align="right">Name: </td><td><asp:TextBox ID="txtname" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Enter Name" ControlToValidate="txtname" ForeColor="Red"></td></tr><tr><td></td><td align="right">Date Of Membership: </td><td>
<asp:TextBox ID="txtdate" runat="server"
> </td><td><ajax:CalendarExtender ID="calendar1"
TargetControlID="txtdate" runat="server" PopupButtonID="calendar"
Format="yyyy-MM-dd" Enabled="True"></td>
<td class="style1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Enter Date Of Membership" ControlToValidate="txtdate" ForeColor="Red"></td></tr><tr><td></td><td align="right">Opening Balance: </td><td><asp:TextBox ID="txtopenbal" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Enter Opening Balance" ControlToValidate="txtopenbal" ForeColor="Red"></td></tr><tr><td></td><td align="right" >Phone No: </td><td><asp:TextBox ID="txtphone" runat="server"></td><td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Enter Phone No" ControlToValidate="txtphone" ForeColor="Red"></td></tr><tr><td></td><td align="right" >Address: </td><td align="left"><asp:TextBox ID="txtaddress" runat="server"></td><td>
<asp:RequiredFiel
Member 10263519
18-Jan-14 1:19am
View
am using ajaxcontroltoolkit
Member 10263519
17-Jan-14 3:30am
View
i was closed vs and again opened that project , it's displaying in design time ,but in design tabs are in vertical but i need in horizontal. in debugging it's showing properly.
Member 10263519
17-Jan-14 3:27am
View
how to remove and install.
i was added ajaxControlToolkit.dll in references and added declaration tag to register
except this shall i need to do any changes in system.web , if so how to do that
Member 10263519
17-Jan-14 3:00am
View
when am debugging it's working , but in design it's showing error,
what's the problem
Member 10263519
17-Jan-14 2:36am
View
am not getting intellitrace in vs 2010
Member 10263519
17-Jan-14 1:48am
View
i have deleted all breakpoints as u said, eventhough it's consuming so long time.
Member 10263519
10-Jan-14 2:23am
View
ok responce.redirect transfering but i want the values of login in Admin
how can i get those values
Member 10263519
10-Jan-14 2:18am
View
thanq, working by using responce.redirect.
just i heared server.transfer is the best method am very new to .net
Member 10263519
7-Jan-14 3:54am
View
thanq
Member 10263519
2-Jan-14 2:46am
View
ok thanq
Member 10263519
31-Dec-13 4:29am
View
simply how to get the parameter from user while installation.
Member 10263519
31-Dec-13 4:28am
View
not that thing,while installing the application using installer that should ask drive/folder.
in that folder ,from project ,we r creating excel sheet
Member 10263519
30-Dec-13 0:50am
View
ok thanq .
Member 10263519
27-Dec-13 2:19am
View
ok,my serialport_datareceived() is like this:
<pre lang="c#"> private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
if (serialPort1.BytesToRead>0)
{
buffer = new byte[serialPort1.BytesToRead];
serialPort1.Read(buffer, 0, buffer.Length);
run.Set();
}
}</pre>
when i click button , from my application serialport writes data to device and creates a thread then executes downloadThread() method at run.waitone()it's wait for the event,when device returns data serialport_datareceived event will be fired after reading data at run.set() that thread will be invoked and executes remaining of downloadThread() method.
But here am getting error as:
NullReferenceException was caught: Object reference not set to an instance of an object.
in catch() of downloadThread() method
plz help
Member 10263519
27-Dec-13 0:08am
View
ok, but here run is an object of AutoResetEvent, and am using thread
downloadThread.
Member 10263519
26-Dec-13 5:11am
View
thanks for quick reply.
i searched google ,using abort is dagerous.keeping thread as background will terminate the tthread only when application is closed.But i want to teminate it when i complete reading from serialport.
Member 10263519
20-Dec-13 2:25am
View
hi,
by using above code. when i run it's giving first row , and it not receiving data(buffer is filled wilh 0x00) why am not getting.
Member 10263519
20-Dec-13 1:02am
View
ok, am also reading data(from $ to #) byte by byte and placing in byte[] buffer.then wakeup the thread to check the responce,
after reading complete, i have data as bytes in buffer.
in threadUpload() method converting into String, and spliting that string then i have responce in 2nd position (1).
then execute next record.
Member 10263519
20-Dec-13 0:30am
View
ok ,comment that line plz give me the solution
Member 10263519
20-Dec-13 0:29am
View
when i click upload button , thread should start, and send first record of excel.then immediatly another program through serialport sends responce for ex:am taking $M121,0#
then split that responce and test if it is 0(after ,) then only send next record.
so here am taking a thread in upload _click(), proces the first record and wait for responce, in serialport_datareceived() ,when it reads data (it should read complete data between $,#) then resume that suspended thread. this is my task plz help me......
am trying a lot
Member 10263519
17-Dec-13 2:11am
View
serial port receiving data from excel sheet. after every row imy appli need to send ok signal then only serialport read next row and send to application.
but my application reading all the rows at a time ,and placing in excel as
machid custid name totalBalance paid lastpaidDate remaining
m123 m123 m123 m123 ..........
so on like that ,every column(received data) is displaying in all excel columns ,
ny serialport_dartareceived is:
if (!serialPort1.IsOpen)
return;
Thread.Sleep(50);
byte[] buffer = new byte[serialPort1.BytesToRead];
serialPort1.Read(buffer, 0, buffer.Length);
s = System.Text.ASCIIEncoding.ASCII.GetString(buffer);
// MessageBox.Show(s);
Member 10263519
16-Dec-13 7:52am
View
plz help me how to store that data in excel
Member 10263519
16-Dec-13 6:50am
View
ok this exception was solved by starting columnindex 1.but data is not storing in excel.
Member 10263519
16-Dec-13 1:26am
View
ok thanq
Member 10263519
16-Dec-13 0:44am
View
Regex is in which namespace
Member 10263519
16-Dec-13 0:04am
View
data is coming from excel through serial port
Member 10263519
15-Dec-13 23:58pm
View
hi,
thanq ,my string stars with $ and ends with #
in between them all the words based on delimeter , i need to split that string and at the same time need to place in excel sheet.
Member 10263519
14-Dec-13 2:33am
View
plz anybody help me.........
Member 10263519
14-Dec-13 1:55am
View
ok but i need in second thing . from 2nd application to 1st application . where can i write
Member 10263519
14-Dec-13 0:33am
View
ok working fine.
Member 10263519
13-Dec-13 5:31am
View
thanq soooooooooooo much for your quick reply........
Member 10263519
13-Dec-13 5:01am
View
i ran that by keeping that in a button.
first i debugged the two applications. then i clicked the button in which i placed that code .it's giving error as
invalidOperation exception was unhandled
Cross-thread operation not valid: Control 'textBox2' accessed from a thread other than the thread it was created on.
Member 10263519
13-Dec-13 4:25am
View
plz where can i keep that code and how to test plz help me. qm very new to serial port
Member 10263519
13-Dec-13 1:42am
View
just i need to test ,whether they are sending/receiving data .
in application1 ,i have serialport and it's port is COM5.
in application2 ,i have serialport and it's port is COM6.
am sending data from application1 that should be received in appl2 textbox.both applications are in different namespaces.
Member 10263519
12-Dec-13 7:07am
View
yes i read those but am not getting
Member 10263519
12-Dec-13 6:00am
View
in serialport1_datareceived( , ) i have a message ,but it's not showing.
actually here my concept is:
first i need to select excel file by clicking browse button then click on upload button it's going to serialport,after receiving data that needs to send ok signal back.
Member 10263519
2-Dec-13 5:22am
View
from: D;\ to c:\STL
i want to make copy o the file
Member 10263519
2-Dec-13 4:29am
View
private void Browse_Click(object sender, EventArgs e)
{
textBox1.Enabled = false;
OpenFileDialog fdlg = new OpenFileDialog();
if (fdlg.ShowDialog() == DialogResult.OK)
{
fdlg.Filter = "Excel Files|*.xls";
textBox1.Text = fdlg.FileName;
File.ReadAllText(textBox1.Text);
// string extension1 = Path.GetExtension(textBox1.Text);
//MessageBox.Show(extension1);
}
}
private void Saveas_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
saveFileDialog1.Filter = "Text Files|*.txt";
textBox2.Text = saveFileDialog1.FileName;
File.WriteAllText(textBox2.Text,"hi");
// string extension2 = Path.GetExtension(textBox2.Text);
// MessageBox.Show(extension2);
}
}
Member 10263519
30-Nov-13 0:58am
View
how to generate database script
Member 10263519
29-Nov-13 6:25am
View
plz i didn't get it clearly
Show More