15,896,606 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 rahul dev123 (Top 117 by date)
rahul dev123
18-Sep-13 13:20pm
View
Its showing not a valid OS application
rahul dev123
9-Sep-13 6:30am
View
please check my below code here kill process one by one on selecting the process, but i need to close all task from my listbox..so plz can u help me
Thanx in advance
Dim p As System.Diagnostics.Process
For Each p In System.Diagnostics.Process.GetProcesses()
Dim arr() As String = _
lstProcesses.SelectedItem.ToString().Split("-")
Dim sProcess As String = arr(0).Trim()
Dim iId As Integer = Convert.ToInt32(arr(1).Trim())
If p.ProcessName = sProcess And p.Id = iId Then
p.Kill()
End If
Next
rahul dev123
7-Sep-13 7:42am
View
Windows 7
rahul dev123
7-Sep-13 7:18am
View
plz can u help me how to find the process which cause the system shutdown..Thanks in advance
rahul dev123
7-Sep-13 7:16am
View
yes, actually i cant find out the process which cause my system shutdown
rahul dev123
7-Sep-13 7:13am
View
here is my button click code
first i am find and adding all the running task in a list then kill all from the list, but here i actully dont know how to mention not to close system progrma
For Each p As Process In Process.GetProcesses
lstProcesses.Items.Add(p.ProcessName.ToString)
If Not p.ProcessName = "winlogon.exe" Or p.ProcessName = "VCSystemTray.exe" Or p.ProcessName = "VCAdmin.exe" Then
p.Kill()
End If
Next
rahul dev123
11-Oct-11 7:35am
View
Actually i want like this:
My first table like:
user_id specialisation
10 Banking
10 marketing
20 Business law
20 civil
20 family
but when i need to display i want like this
user_id specialisation
---------- ----------------------------------------
10 Banking, marketing
20 Business law,civil,family
rahul dev123
1-Jul-11 3:49am
View
Thanks for your solution but it shown error like indexOutOfRange
rahul dev123
30-Jun-11 2:52am
View
sb.Append(string.Format("<li>
{2}
</li><br />",
dr["title"], dr["id"], dr["title"]));
This line is not supported
rahul dev123
23-Jun-11 6:21am
View
i used this:
where group_id="&group_id&" and status<>1 order by msg_id asc
where group_id="&group_id&" and status<1 order by msg_id asc
but still same problem
rahul dev123
21-Jun-11 1:54am
View
Thanks
rahul dev123
21-Jun-11 1:14am
View
error:
Column 'category.cat_name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
rahul dev123
21-Jun-11 1:12am
View
if i remove CUBE then (,) are not accepted
rahul dev123
20-Jun-11 9:06am
View
i used this but shown error please help where i get wrong:
SELECT B.cat_name as [cat_name],B.articles_count as [articles_count], B.cat_ID as [cat_ID],SUM(A.article_visit) AS [Article_Visit] FROM article_list A LEFT JOIN category B ON A.cat_ID = B.cat_ID WHERE A.article_status = 1 AND B.article_allow = 1 GROUP BY CUBE (B.cat_name,B.articles_count, B.cat_ID);
rahul dev123
20-Jun-11 8:20am
View
Thanks for your solution. I used this:
SELECT B.cat_name as [cat_name],B.articles_count as [articles_count], B.cat_ID as [cat_ID],A.article_visit AS [Article_Visit] FROM article_list A LEFT JOIN category B ON A.cat_ID = B.cat_ID WHERE A.article_status = 1 AND B.article_allow = 1
But this command retrieve category name: Example-Student many times but i want it display one time only and sum of total article visit under student category
rahul dev123
20-Jun-11 6:52am
View
If i get this id separated by comma then what will be do....because i need this id to sql command to view the article visit related to this id
rahul dev123
20-Jun-11 4:11am
View
This give the result like this:
Label12356789101141445253
but how can i solve my problem
rahul dev123
20-Jun-11 2:46am
View
It display same value for every articles, i have a page where i can display articles category list and under this category display article visit but it display same value for every article category.
rahul dev123
18-Jun-11 5:49am
View
article_visit=int.Parse(data1.Rows[index1]["article_visit"]) + article_visit;
this line shown error like:
The best overloaded method match for 'int.Parse(string)' has some invalid arguments
rahul dev123
18-Jun-11 5:45am
View
Still not working
rahul dev123
16-Jun-11 1:59am
View
Thanks for your solution, i have also done this.
rahul dev123
16-Jun-11 1:57am
View
Before telling something please see the code and try to give the answer. i am not a expert, i am a student and i try to learn and develop something. In this code i had mistake to Convert it into string, after convert it works fine but u can't do to give the correct answer.
rahul dev123
16-Jun-11 1:50am
View
If u don't no the answer please keep quiet. Here is the answer, i have solved this:
if(Convert.ToString(Session["user"])=="admin")
{
// statements
}
rahul dev123
15-Jun-11 4:00am
View
Yes that's why i am using this code in source page. If you do that please provide me the correct code.
rahul dev123
15-Jun-11 3:04am
View
i used asp image under datalist but it can't access in code behind. How can i do this?
rahul dev123
14-Jun-11 8:13am
View
No its not working. If i used this then the source is src="images/"
rahul dev123
14-Jun-11 5:33am
View
If i used this code then Error shown like this:
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
rahul dev123
10-Jun-11 7:52am
View
I already use this code but it shown error
rahul dev123
10-Jun-11 7:51am
View
I already use # but it shown error
rahul dev123
10-Jun-11 7:49am
View
No same problem
rahul dev123
10-Jun-11 6:11am
View
No i can't access yet
rahul dev123
10-Jun-11 3:51am
View
There is no if else condition. my error is only for using if else
rahul dev123
9-Jun-11 8:51am
View
If i use this then its display nothing
rahul dev123
9-Jun-11 5:26am
View
If i use ToString it shown some error
rahul dev123
8-Jun-11 9:00am
View
It gives the output like this:
656.07:48:06.7656250
but i want like 1hour ago, 1days ago
rahul dev123
8-Jun-11 8:22am
View
I can't do that because i use Eval function
rahul dev123
4-Jun-11 7:00am
View
I have already a form tag used in my master form so i can't used 2 forms tag in one form. so any other procedure to do that?
rahul dev123
4-Jun-11 3:57am
View
I can't use session because there is a lots of field in the first form, so i don't want to use session.
rahul dev123
3-Jun-11 8:30am
View
No this line is shown error
rahul dev123
3-Jun-11 8:23am
View
After remove # it shown error like:
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
can you help me
rahul dev123
3-Jun-11 8:17am
View
yes but i declare it also !=null but it same problem.
rahul dev123
3-Jun-11 7:36am
View
If condition satisfied then i need
<%# Eval("a_comment_counter")%> comments
like this but how can i declare. please help me
rahul dev123
3-Jun-11 7:23am
View
I already declare like this but error on Eval
rahul dev123
3-Jun-11 1:40am
View
Same error
rahul dev123
2-Jun-11 8:51am
View
I have no problem in name field. Its problem on if if(Eval("img_url") != "" so where i used this code
rahul dev123
2-Jun-11 8:03am
View
where to use this code?
rahul dev123
2-Jun-11 5:47am
View
Thanks its working....
rahul dev123
2-Jun-11 5:32am
View
it shown error like:
invalid expression term else
rahul dev123
2-Jun-11 2:38am
View
Ho to use ToString, i already use like this:
string article_date = dr["date"].ToString("dd MMM yyyy");
but it shown error
rahul dev123
2-Jun-11 2:34am
View
I already use this but it shown error
rahul dev123
31-May-11 8:13am
View
Thanks its working
rahul dev123
31-May-11 7:47am
View
i want to store variable in session at class file
rahul dev123
31-May-11 7:45am
View
i can't declare this in class file. class file not supported session.
rahul dev123
31-May-11 6:06am
View
regex shown error like unrecognized escape sequence
rahul dev123
31-May-11 6:02am
View
your code shown error like this:
Index was outside the bounds of the array.
rahul dev123
31-May-11 6:01am
View
SubString not supported
rahul dev123
31-May-11 5:58am
View
Your code shown Error like this:
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero
rahul dev123
31-May-11 5:58am
View
Your code shown Error like this:
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
rahul dev123
31-May-11 5:55am
View
Your code error like this:
System.ArgumentOutOfRangeException: Length cannot be less than zero.
rahul dev123
31-May-11 5:51am
View
Your solution is work for get the value but one problem is every time it display the same value. it does not change along with url
rahul dev123
30-May-11 6:46am
View
please send me different solution it does not work
rahul dev123
30-May-11 4:34am
View
it shown error like showAvailability does not exists
rahul dev123
28-May-11 9:20am
View
Is this solution?????????????????????????
rahul dev123
27-May-11 6:13am
View
what is the difference to use imagebutton or button. my problem is not to display image in button
rahul dev123
27-May-11 5:56am
View
I already create css but i want some common function separate and use every time where needed
rahul dev123
27-May-11 3:50am
View
if (char(13) = c || char('@') )
this line show error invalid char
rahul dev123
26-May-11 8:09am
View
string number = System.IO.Path.GetFileName(Request.Url.AbsoluteUri).ToLower().Replace(".aspx", "").Substring(s.LastIndexOf("-") + 1)
what is s. error s is does not exists
rahul dev123
26-May-11 8:05am
View
I already done this procedure......but i can't use like this
rahul dev123
26-May-11 7:42am
View
how to use regex please send me details and also previous code not working
rahul dev123
26-May-11 7:38am
View
Its output likes:
studentdetails?test-subject-1
rahul dev123
26-May-11 7:36am
View
i used this but not working
rahul dev123
26-May-11 7:32am
View
if the test-subject name change for id 2 example test-physics-2 then how can i get this
rahul dev123
26-May-11 7:24am
View
Error IO not exists current context
rahul dev123
26-May-11 7:15am
View
please send details how to store the id in a variable
rahul dev123
26-May-11 5:29am
View
I already told that i used validateRequest="false" but its not working
rahul dev123
26-May-11 5:19am
View
i also used validateRequest="false" but its not working
rahul dev123
26-May-11 4:23am
View
In the case of Fckeditor its ok but i want to use ckeditor. Ckeditor is not working
rahul dev123
26-May-11 4:06am
View
Thanks its working.........
rahul dev123
26-May-11 3:17am
View
Thanks for ur solution..but if i go to the student page then it's ok
it looks like Home->Student but if i go to the StudentEntry from then it show Home->Student but i want to look like this Home->Student->StudentEntry
rahul dev123
21-May-11 8:13am
View
I also test with TotalMinute but its not working
rahul dev123
21-May-11 7:13am
View
No it shown a wrong result. 1hr 26mint ago but it shown only 26 mint ago
rahul dev123
21-May-11 3:54am
View
If the comment is posted 1 hour ago then it show 0 days ago.I want to show 1 hour ago
rahul dev123
21-May-11 3:50am
View
it will shown error like this:
Invalid cast from 'Int32' to 'DateTime'.
rahul dev123
21-May-11 3:27am
View
Here also one problem.If comment is post today then it will display 0 days ago. I want if comment post today then show how many hours ago.
rahul dev123
21-May-11 3:16am
View
I have also need more columns data from database so i can't write this select command. I also need Id, Name,address from this table so how can i do that. Please help me
rahul dev123
21-May-11 2:21am
View
Thanks for your solution but i want to use in datalist in source code here how can i do that? I retrieve data from database using datalist and view those data using Eval function. So how can i do that in source code.
rahul dev123
19-May-11 9:05am
View
No...Thats why i send it clearly.. Please give me the solution
rahul dev123
19-May-11 9:03am
View
Thanks For Your solution
rahul dev123
19-May-11 8:56am
View
I use RequireFieldValidator but i also want to check in code behind
rahul dev123
19-May-11 7:02am
View
i have function like this:
if (act == "getpendingS3")
{
string response = S3DetailsClass.getS3details(0);
Response.Write(response);
}
if (act == "getcompletedS3")
{
//Response.Clear();
string response = S3DetailsClass.getS3details(1);
Response.Write(response);
//Response.End();
}
data will be display according to the request function by the user but if we call first function then its ok next time when i get call the second function then previous function data is also display
rahul dev123
19-May-11 6:49am
View
I have set value in my string str variables then it show in web page
rahul dev123
19-May-11 5:39am
View
Thanks everyone
rahul dev123
19-May-11 1:49am
View
if you do that please give me the solution not a link
rahul dev123
19-May-11 1:46am
View
str3 + = dr["id"].ToString() + "," + dr["Path"].ToString() + " ";
it's not supported. different errors are there
rahul dev123
19-May-11 1:43am
View
please help me providing example code for this
rahul dev123
18-May-11 8:06am
View
If i use this then its not secure because anybody can modify our url. any other procedure
rahul dev123
18-May-11 7:31am
View
if we write direct in source code(Html code)in .aspx page then its not working
rahul dev123
17-May-11 9:10am
View
I use this but it not separated the string. It should be like that:
IdNameAddresss or values(@Id@Name@Address).
Can you help me..
rahul dev123
17-May-11 7:56am
View
I also do this. If i declare "+coloumn_name+" then it shown errors like unassigned local variables.
rahul dev123
17-May-11 7:16am
View
Not only this but i need how to create column_names string in C#
rahul dev123
17-May-11 6:54am
View
No
rahul dev123
17-May-11 5:05am
View
If i required one more columns to be updated. Then how can i do that, again need to create another procedure or update the procedure. But i need to create command at only one time. what is the solution?
rahul dev123
17-May-11 3:37am
View
Thanks,i use this command but in the second part
public void update()
{
}
in this code shows various errors. It not support Dictionary etc.Please help
rahul dev123
17-May-11 3:27am
View
I want to write query in only one time....In your code if we required one more columns then again we are need to create different query.
rahul dev123
17-May-11 3:11am
View
Thanks for your help but i want to know if i declare stored procedure then it is static for a table. I have to write different stored procedure for different tables or if we required different columns to update then how can it is working because in stored procedure we have to declare the columns name?
rahul dev123
17-May-11 3:05am
View
Thanks for your help but i wan't to know how to pass parameters,what is fieldlist and what is the condition
rahul dev123
17-May-11 1:55am
View
Thanks for your help but its not clear for me. If you don't mind please help me to sending the details code
rahul dev123
16-May-11 9:29am
View
i need to create insert command dynamically for various table...Not just declare like this one
rahul dev123
14-May-11 4:07am
View
if i have declare the sqldatareader in class file then how can i compare variables from another form textfield
like:
if (dr["username"].ToString() == txtUserNamr.Text)
how can i access txtUserName from member.aspx to class file
rahul dev123
14-May-11 3:35am
View
can you help me for this:
i use this function in a class file but i want to use this command in sqldatareader how can i call it in sqldatareader.
ex:
SqlDataReader dr=cmd.ExecuteReader();
but now this function how can i call???? Because now i have no cmd in this file. its written in only class file.
public static void SelectMembers(string username)
{
SqlConnection con = Database.GetConnection();
SqlCommand cmd = new SqlCommand("select * from members where username=@" + username + "", con);
cmd.ExecuteNonQuery();
}
rahul dev123
14-May-11 2:07am
View
Thanks for Your help its working.
Please tell me any other best procedure to do that for every sql command.
rahul dev123
14-May-11 1:54am
View
I want like this..
public static string MemberId(string tblName)
{
SqlConnection con = Database.GetConnection();
SqlCommand cmd = new SqlCommand("select max(member_id) from tblName", con);
int a = Convert.ToInt32(cmd.ExecuteScalar());
a = a + 1;
string m = a.ToString();
cmd.ExecuteNonQuery();
return m;
}
after creating this class i call the function like this:
Label1.Text = MemberClass.MemberId("members");
but table name not pass in the class.
can you help me for this
rahul dev123
13-May-11 9:23am
View
please help me providing the example code
rahul dev123
11-May-11 5:53am
View
<%@ Page Title="" Language="C#" MasterPageFile="~/includes/Header_Footer1.master" AutoEventWireup="true" CodeFile="article_add.aspx.cs" Inherits="articles_add"%>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<br class="spacer">
<table style="width: 100%" cellpadding="5px" cellspacing="0">
<tr>
<td style="padding-right: 10px" valign="top">
<img alt="Submit Articles" title="Submit Articles" src="../img/articles_submit_main.jpg">
Submit Articles
<br class="spacer">
<table style="width: 98%; color: #808080" cellpadding="10px" cellspacing="0">
<tr>
<td style="padding-left: 30px" valign="top">
<form method="POST" action="article_list_addnotify.asp" name="FrontPage_Form1" önsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
Title
*
<br class="spacer"><br class="spacer">
<asp:TextBox ID="txtTitle" runat="server" Height="20px" Width="228px">
<br class="spacer">
(Will be displayed on on homepage)
<br class="spacer"><br class="spacer"><br class="spacer">
Click here to attach an Image to your Article
<div id="upload">
</div>
<br class="spacer"><br class="spacer"><br class="spacer">
Category
*
<br class="spacer"><br class="spacer"></form>
<%--<form id="frm2" runat="server">--%>
<asp:DropDownList ID="ddlCategory" runat="server" Height="20px"
Width="250px">
<br class="spacer"><br class="spacer"><br class="spacer">
Full Article
*
<br class="spacer"><br class="spacer">
<asp:TextBox ID="TextBox1" runat="server" Width="372px">
<br class="spacer"><br class="spacer">
(You can submit a 2-line bio for inclusion)
<br class="spacer"><br class="spacer"><br class="spacer">
Source<br class="spacer"><br class="spacer">
<asp:TextBox ID="txtSource" runat="server" Height="20px" Width="228px">
<br class="spacer"><br class="spacer">
(Kindly post your own original article and provide source of any info used in the article)
<br class="spacer">
* - Required Fields
<br class="spacer"><br class="spacer">
<input id="B2" type="reset" value="Reset" name="B2" runat="server" önclick="return B2_onclick()">
<asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click"
Text="Submit" />
</td>
</tr>
<tr>
<td>
<p align="left" style="font-size:.9em;padding-left: 24px">You can also send us your article or any other contribution that you have at
</p></td>
</tr>
</table>
<br class="spacer">
<
rahul dev123
11-May-11 4:16am
View
Thanks for your solution but i check this code but can't find it. Please help me
rahul dev123
10-May-11 6:56am
View
actually i don't want this. I am try to hide some controls if condition is true in asp.net source code not in a code file.
rahul dev123
6-May-11 2:11am
View
Thanks for your suggestions but i also want to update the database
Show More