15,900,110 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 ankur789 (Top 86 by date)
ankur789
1-Aug-13 0:42am
View
not working
ankur789
31-Jul-13 23:48pm
View
i put where in my code
DataTable dt = new DataTable();
dt.Columns.Add("Column1_Name", typeof(string));
dt.Columns.Add("Column2_Name", typeof(string));
GridView1.DataSource = dt;
GridView1.DataBind();
ankur789
6-Jul-13 2:31am
View
sir this query fetch like this if i have 4 question then
1
4
4
3
3
means not a distict flow has been show suppose a student perform a test and after question 2 newid fetch 3 aftre that it again fetch 2 then problem has been find so
ankur789
6-Jul-13 1:11am
View
with all questions
ankur789
6-Jul-13 1:10am
View
but sir i have a problem i fetch the maxcount on the basis of quesid and if newid fetch directly last question then my submit button has been enabled so how can i work
ankur789
4-Jul-13 5:13am
View
This will not give the recored in same row. The resut will be shown in two rows.
I wants result in one row
ankur789
3-Jul-13 7:28am
View
Sir incorrect syntax near pivot
ankur789
3-Jul-13 7:16am
View
incorrect syntax near pivot
ankur789
27-Jun-13 5:16am
View
one by one
ankur789
22-Jun-13 0:20am
View
Table1
-------------
ID Name
1 A
2 B
3 C
Table2
--------
ID Name
1 Z
I need to insert data from Table1 to Table2 and I can use following sytax for the same:-
INSERT INTO Table2(Id, Name) SELECT Id, Name FROM Table1
However, In my case duplicate Ids might exist in Table2 (In my case Its Just "1") and I dont want to copy that again as that would throw an error.
I can write something like this:-
IF NOT EXISTS(SELECT 1 FROM Table2 WHERE Id=1)
INSERT INTO Table2 (Id, name) SELECT Id, name FROM Table1
ELSE
INSERT INTO Table2 (Id, name) SELECT Id, name FROM Table1 WHERE Table1.Id<>1
ankur789
21-Jun-13 23:47pm
View
select CustomerA.sendername,CustomerA.sendermobileno,CustomerA.sendtoname,customerb.name,customerb.mobileno from CustomerA join customerB on customerA.id=customerB.id
ankur789
19-Jun-13 22:37pm
View
sir output is in grid
and sir my complete database is in the sql server 2000 through which i manage other databases like library ,mess mang etc so i only added certain tables in my previous database and continuous my work
ankur789
19-Jun-13 2:33am
View
this is also an unwanted condition and i never find such like a problem so i do not understand why this condition occurs
ankur789
18-Jun-13 0:54am
View
what is your advice to do
ankur789
17-Jun-13 23:38pm
View
sir now you understood what i want ,now sir what i do for such a answer
ankur789
17-Jun-13 23:35pm
View
date1 date2 hkey
07/11/2013 10/11/2013 1
10/11/2013 11/11/2013 2
15/11/2013 17/11/2013 3
this is my table
now when i have a form which has two datetime pickers
now i select in both 09/11/2013
so now i want to check is in my table there is a range for 09/11/2013
yes i have the range which is
07/11/2013 10/11/2013 1
so the answer will be this range from my query then what is the query so that i found such a answer
ankur789
17-Jun-13 23:29pm
View
sir what exactly i want is now in updated ques please help me in such a matter,
i m trying to got my answer but failed,
ankur789
17-Jun-13 23:22pm
View
while the answer should be
07/11/2013
10/11/2013
because 9 is in this range
ankur789
17-Jun-13 23:20pm
View
sir i select 09/11/2013
then your query will be
select date1 from h_leave
where (date1 between '2013/11/09' and '2013/11/09')
union all
select date2 from h_leave
where (date2 between '2013/11/09' and '2013/11/09')
but please check in my table there is a row between this range the row consists 07/11/2013 as date1 and 10/11/2013 as date2
but fromyour query the answer i got as null
ankur789
17-Jun-13 23:09pm
View
sir same answer i found
date1
07/11/2013
10/11/2013
15/11/2013
ankur789
14-Jun-13 1:26am
View
sir my other code for omr sheet working module in visual studio 2005
so i want to read barcode from omr sheet through a particular button with my omr sheet module.so i want to use visual studio 2005
ankur789
14-Jun-13 0:57am
View
in visual studio 2010it takes 4 to 5 seconds
ankur789
14-Jun-13 0:56am
View
in visual studio 2005 it takes 108 second
ankur789
14-Jun-13 0:55am
View
sir i already use get barcode from image but it works in visualstudio 2010 but in the visual studio the code take 108 seconds to get barcode which is too delay
while in visual studio code takes 4 to 5 seconds so i want other reference
i am using the reference
http://www.codeproject.com/Articles/42852/Reading-Barcodes-from-an-Image-III
ankur789
11-Jun-13 23:20pm
View
above comment is for rollno1
ankur789
11-Jun-13 23:20pm
View
sir in my table i have 300(100+100+100)maxmarks and 200(60+70+70)obtmarks
i want the output given in my ques.
i do'nt understand how i do it ,am i use case or anyother
ankur789
8-Jun-13 5:34am
View
first link i referred but there is a problem because i am using vb as default language so
HttpContext.Current("key") = me.textbox1.text
shows an error as
cannot be indexed beacause it has no default value
ankur789
7-Jun-13 2:56am
View
sir AT client side it is already in dd/MM/yyyy format
ankur789
5-Jun-13 2:02am
View
sir i have a table in which i have student roll no and image .
how can i get image on selecting stud_roll_no
ankur789
3-Jun-13 3:07am
View
yes sir i am implemented same way but at the code when debug today date is fetch only
ankur789
3-Jun-13 2:35am
View
sir now in the text box date is fetching but onle today date is fetch when i change the date from the calendern extender the changedate is displayed in the texbox but while debug the code message box shows today date only
ankur789
3-Jun-13 2:04am
View
but while debug my code in the message box MsgBox(txt_frmdate.Text)
value i find is blank
ankur789
3-Jun-13 2:03am
View
yes sir in text box date is showing
ankur789
3-Jun-13 1:58am
View
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label id="Label3" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Phone No" Width="176px"></td>
<td style="width: 100px">
<asp:TextBox id="txt_p_no" runat="server" Width="128px">
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label id="Label4" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Course" Width="176px"></td>
<td style="width: 100px">
<asp:TextBox id="txt_course" runat="server" Width="128px">
</td>
<td style="width: 100px">
<asp:Label id="Label7" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Student Type" Width="120px"></td>
<td style="width: 100px">
<asp:TextBox id="txt_stud_type" runat="server" Width="128px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 26px">
<asp:Label id="Label5" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Branch" Width="120px"></td>
<td style="width: 100px; height: 26px">
<asp:TextBox id="txt_branch" runat="server" Width="128px">
</td>
<td style="width: 100px; height: 26px">
<asp:Label id="Label6" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Batch" Width="120px"></td>
<td style="width: 100px; height: 26px">
<asp:TextBox id="txt_batch" runat="server" Width="128px">
</td>
</tr>
</table>
<br />
<table style="width: 264px; height: 24px;" id="TABLE1" önclick="return TABLE1_onclick()">
<tr>
<td colspan="3" style="height: 20px; width: 107px;">
<asp:Label id="Label8" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Large"
ForeColor="Maroon" Text="Leave Reason" Width="176px"></td>
</tr>
<tr>
<td colspan="3" style="height: 6px; width: 107px; text-align: left;" align="left">
<asp:Label id="Label9" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Why" Width="128px"></td>
<td colspan="3" style="height: 6px">
<asp:TextBox id="txt_why" runat="server" Width="560px">
</td>
</tr>
<tr>
<td colspan="3" style="height: 1px; width: 107px; text-align: left;" align="left">
<asp:Label id="Label10" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Where" Width="120px"><br />
</td>
<td colspan="1" style="height: 1px">
<asp:TextBox id="txt_where" runat="server" Width="192px"><br />
</td>
<td colspan="1" style="width: 3px; height: 1px">
<asp:Label id="Label11" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text=
ankur789
3-Jun-13 1:57am
View
complete page is
<%@ Page Language="VB" MasterPageFile="~/MasterPage2.master" AutoEventWireup="false" CodeFile="Student Application.aspx.vb" Inherits="Student_Application" title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="studPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript">
// <!CDATA[
function TABLE1_onclick() {
}
// ]]>
</script>
<table style="width: 464px; border-top-style: none; border-right-style: none; border-left-style: none;">
<tr>
<td style="width: 85px; height: 22px;">
</td>
<td style="width: 100px; height: 22px;">
<asp:Label id="lb_active" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Maroon" Text="Student is not Active" Visible="False" Width="160px"><asp:Label id="lb_empty" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Maroon" Text="Roll No Fields ca'nt Leave Empty" Visible="False" Width="272px"></td>
<td style="width: 100px; height: 22px">
<asp:Label ID="lb_sub" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Maroon" Text="Request Has Been Submitted" Visible="False" Width="192px"></td>
</tr>
<tr>
<td style="width: 85px; height: 20px">
<asp:Label id="lb_stud_roll_no" runat="server" Font-Bold="True" Font-Names="Arial"
Font-Size="Larger" ForeColor="Black" Text="Student Roll No" Width="176px"></td>
<td style="width: 100px; height: 20px">
<asp:TextBox id="txt_stud_roll_no" runat="server" BorderStyle="Inset" Width="256px" Height="32px" OnTextChanged="txt_stud_roll_no_TextChanged"></td>
<td colspan="2" style="height: 20px; width: 142px;">
<asp:Button id="btn_get" runat="server" BackColor="Black" BorderStyle="None" OnClick="btn_get_Click"
Text="Get Record" Width="136px" Height="24px" Font-Bold="True" ForeColor="#E0E0E0" /></td>
</tr>
</table>
<br />
<table>
<tr>
<td style="width: 100px; height: 26px;">
<asp:Label id="Label1" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Student Name" Width="176px"></td>
<td style="width: 100px; height: 26px;">
<asp:TextBox id="txt_stud_name" runat="server" Width="128px">
</td>
<td style="width: 100px; height: 26px;">
</td>
<td style="width: 100px; height: 26px;">
</td>
<td colspan="2" rowspan="5">
<asp:Image
ID="img_stud" runat="server" Height="40px" Width="24px" />
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label id="Label2" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Larger"
ForeColor="Black" Text="Father Name" Width="176px"></td>
<td style="width: 100px">
<asp:TextBox id="txt_father_name" runat="server" Width="128px">
<
ankur789
3-Jun-13 1:57am
View
<asp:TextBox ID="txt_frmdate" runat="server" Width="152px" ReadOnly="True">
<cc1:calendarextender id="CalendarExtender1" TargetControlID="txt_frmdate" Format="dd/MM/yyyy" runat="server">
ankur789
3-Jun-13 1:55am
View
sir in the web page toolbox there is no datetimepicker
sir while i am working in window application i am always using datetimepiker but in web no datetime picker is there in the toolbox so i am using calender extender with textbox
ankur789
3-Jun-13 1:51am
View
yes Tadit sir exactly you are right i am doing as you think
sir please help me
ankur789
3-Jun-13 1:41am
View
sir now blank date i found while debug but in the form i already select the date which is display in textbox
ankur789
3-Jun-13 0:19am
View
sir same problem is also find in the
Dim dt1 As DateTime
dt1 = DateTime.ParseExact(Me.txt_frmdate.Text, "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture)
ankur789
26-Apr-13 5:57am
View
thank u sir your answer is really helpful for me
ankur789
13-Apr-13 3:21am
View
sir question is that how can manage two transaction if both are performs same time even if no difference in the seconds
ankur789
3-Apr-13 6:28am
View
sir i make a auto suggest box with using java script tha auto suggestion box is working properly but when i select the value from a list of values and that selected value i want to fetch in a variable in my .vb page ,how can i redirect this selected value in the variable
ankur789
2-Apr-13 0:52am
View
thanx
ankur789
2-Apr-13 0:03am
View
date1 and date2 is the datetime type field
ankur789
2-Apr-13 0:02am
View
i use it but find no row
ankur789
20-Mar-13 5:40am
View
sir i run my site in 3 computers first one is the server 2 others are client
my first page is login
page
but when i put url with any other page in the client computer it is also open directly
ankur789
18-Mar-13 7:23am
View
Protected Sub b_next_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If Me.dl_course.SelectedIndex = 0 And Me.dl_branch.SelectedIndex = 0 And Me.dl_batch.SelectedIndex = 0 And Me.dl_sem.SelectedIndex = 0 Then
MsgBox("You have not choose right value") here i use <scriptlanguage=""javascript"">alert('You have not choose right value');</script>
Else
Session("course") = Me.dl_course.SelectedIndex
Session("branch") = Me.dl_branch.SelectedIndex
Session("batch") = Me.dl_batch.SelectedIndex
Session("sem") = Me.dl_sem.SelectedIndex
Response.Redirect("studinstructions.aspx")
End If
End Sub
ankur789
18-Mar-13 7:18am
View
sir i use single quote double quote and without quote also but not working
ankur789
18-Mar-13 6:58am
View
sir i use java script code is
<script language=""javascript"">alert('You have not choose right value');</script>
but it give error like does not parsing at <script language ja>
ankur789
18-Mar-13 4:16am
View
sory sir but i am not shouting sir
ankur789
12-Mar-13 4:11am
View
not working sir
ankur789
12-Mar-13 2:41am
View
have u code of it
ankur789
12-Mar-13 1:55am
View
how can i do it sir
ankur789
7-Mar-13 0:32am
View
error shows incorrect syntax near with
ankur789
7-Mar-13 0:08am
View
sir i donot understand this
ankur789
6-Mar-13 23:53pm
View
only these four type record
at id 1=excelent
at id 2=good
at id 3=average
at id 4=poor
i want to answer such like
Excellent good Average Poor
ankur789
6-Mar-13 23:41pm
View
it gives result like
id score performance
1 30 excellent
2 15 good
But i want sir
excelent good
30 15
sir it is just like row to column format
ankur789
26-Feb-13 3:20am
View
here is a problem that when i imports system .linq package then this package is not found in the memory of visual studio 2005
ankur789
23-Feb-13 2:55am
View
no sir problem is that when i click enter key then values add in the list box .after text change the list box is not populated on the basis of text change of textbox
ankur789
22-Feb-13 22:19pm
View
i want to add such like when i write anku in text box then all the name having string anku populate in the listbox on textbox text change the values automatically change in the list box according to text box string
ankur789
21-Feb-13 4:57am
View
Deleted
i have only one variable in my java script file
the value in java script is
var gDarr=["a"];
ankur789
21-Feb-13 4:56am
View
Deleted
i have only one variable in my java script file
the value in java script is
var gDarr=["a-15"];
ankur789
20-Feb-13 3:26am
View
thanks ma'am ,
But mam one problem is also here.
tell me how this query works means how this query fetch the values
ankur789
20-Feb-13 3:17am
View
complete summary sir
if possible then coloumn wise
ankur789
20-Feb-13 3:14am
View
mam here is a problem that i m not doing the selection on the basis of first coloumn let us consider the condition
a b c d
1.0 1.0
now the answer comes as 1.0 occurs 2 times but the query will not give right answer
ankur789
20-Feb-13 1:11am
View
sir then what query can i use .
i am using count with select but not find such a result i wanr
ankur789
16-Feb-13 3:18am
View
i want the answer for asp dot with vb as default language it using c# sir
ankur789
14-Feb-13 22:51pm
View
Yes Sir grid view is on the window form and i get the data in it by uploading an excel file in the grid view.
ankur789
14-Feb-13 5:40am
View
sir i want to check in the database that is there any duplicate value in the database on the basis of datagrid view id field
ankur789
9-Feb-13 3:38am
View
sir i am using vb as default language so please give me solution according to that
ankur789
5-Feb-13 5:11am
View
thankx it really help me
ankur789
5-Feb-13 3:46am
View
Sir these links also give the solution with .cs (c#) dotnet.
But with vb.net problem is as it is.
ankur789
5-Feb-13 3:41am
View
while i m using vb as a default language then how can i rediect two textbox values to another page
ankur789
5-Feb-13 3:39am
View
sir i m using vb as default language
ankur789
29-Jan-13 4:13am
View
sir when i use row 1 then i find an error
out of index
ankur789
23-Jan-13 2:26am
View
Thank You
ankur789
17-Jan-13 1:19am
View
sir is it possible to fetch the ip without hosting
ankur789
15-Jan-13 21:53pm
View
Sir how can i do it with student id
ankur789
9-Jan-13 23:18pm
View
Sir
these
year and dob is in
datagridview
and i used vb.net
is there any way to put date time picker in
the datagrid view coloumn
.
or
i want to make validation that these columns in
the data grid view
not take any other value except of type "MM/DD/YYYY"
ankur789
9-Jan-13 23:18pm
View
Sir
these
year and dob is in
datagridview
and i used vb.net
is there any way to put date time picker in
the datagrid view coloumn
.
or
i want to make validation that these columns in
the data grid view
not take any other value except of type "MM/DD/YYYY"
ankur789
19-Dec-12 5:48am
View
so please tell me about to send the message at a mobile phone
ankur789
19-Dec-12 5:48am
View
i want to send the message at the mobile phone not at email
ankur789
4-Dec-12 23:04pm
View
i Want only the latest single row in the entries
please provide sql query for it
ankur789
23-Nov-12 3:12am
View
Deleted
i want code for it
in vb.net
ankur789
14-Sep-12 4:44am
View
i have a form designed in vb.net , in this form in one text field i give ∂ sign but when i see in my database the sign changes and become ? is there any solution of such a problem
Show More