15,900,461 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 DarkDreamer08 (Top 186 by date)
DarkDreamer08
24-Jan-15 13:11pm
View
Deleted
Iv'e tried your code above but nothing happened.
DarkDreamer08
23-Jan-15 23:40pm
View
WinForms
DarkDreamer08
22-Jan-15 23:30pm
View
what is int remainder?
DarkDreamer08
22-Jan-15 23:28pm
View
Actually i have that kind of analysis to my problem at my paper. My problem now is on how am I able to put it in codes
DarkDreamer08
22-Jan-15 11:52am
View
my project is a client server system. I need to make my project executable to other PC for them to run it. as for my database, it is on a server. I somehow did not understand your above explanation, but I will re-read it for me to be able to understand it
DarkDreamer08
19-Jan-15 19:56pm
View
Thanks for that. I will try that. I will mark it as an answer :) Thanks again!
DarkDreamer08
19-Jan-15 16:04pm
View
Yes, the table is a fixed list of options. and you are right about my problem.
DarkDreamer08
19-Jan-15 15:45pm
View
I got a little bit confused to the link that you gave after reading it. Can you show me a sample code about it? Let say for example is my code in the datagridview combobox . Can you help me about it?
DarkDreamer08
19-Jan-15 5:00am
View
I solved it now, Typo error on word UPDATE and @sched
DarkDreamer08
19-Jan-15 4:54am
View
Yes, the error occurs at line SQLDataReader far = disc.ExecuteReader();
DarkDreamer08
19-Jan-15 3:54am
View
i have tried looking for articles and I cannot find any that will help me to solve my problem. I am sorry if I am such an idiot in terms of that. I just wanted to learn. I just needed assistance and advise from others :(
DarkDreamer08
19-Jan-15 1:14am
View
When I select an item in combobox, it does not display the right data. It display all the results though it is not related to combobox. But if I will used the textbox as my searching tool, the searching of data goes well. What is the problem might be?
DarkDreamer08
19-Jan-15 1:05am
View
Which part will I edit if I want also to add the end date that I input in my date timepicker? It was not included/added after I pressed the button.
DarkDreamer08
19-Jan-15 0:29am
View
How to fill it to the datagridview
DarkDreamer08
19-Jan-15 0:04am
View
Where should I put it? inside the button 1? sorry, a little bit confused about that.
DarkDreamer08
18-Jan-15 22:31pm
View
I have already updated my question above a 50 minutes ago. I said that the data types of those months will be strings and will be displayed inside the datagridview after being pressed the button1. Do I lack of something? If I, please tell me. :laugh: .I somehow cannot understand your first statement on your comment. Sorry for that. -_-
DarkDreamer08
18-Jan-15 22:25pm
View
after being pressed button1, it will read the above codes that shows the months that came from the difference between the two date time picker and those months will be displayed in the datagridview. Hope you get it :)
DarkDreamer08
18-Jan-15 21:42pm
View
What I mean is that the record does not update whenever I clicked the button. as far as I know, my query is correct. Maybe it looks like that is the issue? :)
DarkDreamer08
18-Jan-15 21:38pm
View
I updated now the question. I am sorry of asking such question in a quick due to time is running out of me. I need to make this because I consumed a lot of time to fix some of the major module for my system. Hope you guys understand. Thank you once again.
DarkDreamer08
18-Jan-15 21:05pm
View
Actually I make it as another question. I post your solution. Please help me there :( here is the link of it as another question: http://www.codeproject.com/Questions/867059/How-to-display-the-list-of-months-from-the-differe?arn=0
DarkDreamer08
18-Jan-15 21:03pm
View
it helps me and it displays what I needed. I inserted a messagbox inside the for loop to call the date that I converted ToShortDateString. How am I supposed to render it in a list or array? :laugh: I am not good at it :(
DarkDreamer08
18-Jan-15 20:08pm
View
How am I supposed to display the months? when I insert it inside the message box, this appeared, "CompEnrollmentSystem.Sample2+<monthsbetween>d_0"
DarkDreamer08
18-Jan-15 19:19pm
View
I updated my question. i tried something but I got some errors. Hope you help me here, please.
DarkDreamer08
18-Jan-15 19:12pm
View
Thanks for that. I am trying now some thing that I found from the net but I got a problem. I will update my question :) Hope you still help me, Thanks in advance :)
DarkDreamer08
18-Jan-15 18:03pm
View
there is no issue on my code. It's just that whenever I clicked the button2 to update, nothing happens. that is what I want to solve, but I cannot
DarkDreamer08
18-Jan-15 5:48am
View
hey, it works great! thanks for that answer! :laugh: Thank you so much!
DarkDreamer08
18-Jan-15 5:45am
View
I change the data type inside my database. I switched it to float. but when I tried your suggestion above, an error occurred: InvalidCastException Occurred: Specified cast is not valid.
DarkDreamer08
18-Jan-15 5:43am
View
I am sorry. It is a windows form application codes. I am sorry to misunderstand your comment :) peace :)
DarkDreamer08
18-Jan-15 5:21am
View
Thanks for your answer and explanations as well. But do I need to change the data type for my fields if they are declared as smallmoney? such Book fee. I used that data type since they accept currency :)
DarkDreamer08
18-Jan-15 5:05am
View
sorry to say, i do not understand what the article is implying for.i am using a windows form application and not web forms. Sorry again :)
DarkDreamer08
18-Jan-15 4:51am
View
No, when you type to the AmountPaid column which is editable, let say for example 1000, the Balance will be now 9000. Meaning, the TotalFeeToPaid is the remaining balance that the customer will pay. AmountPaid is deducted to the TotalFeeToPaid Column and that will be the Balance :) Hope you get it :) if it is not possible to a table then, I think it could be in a datagridview, right?
DarkDreamer08
18-Jan-15 4:48am
View
Oh, i thought that I could post like that kind of questions which were both related. anyway, thank you for your statement about that.
DarkDreamer08
18-Jan-15 2:10am
View
Hey Dash, i updated my question. Sorry if I was late to update the question. But thanks for reminding me to clarify my question. Anyway, I have a scenario above. I want to do it in a table not in a datagridview. can you help me :)
DarkDreamer08
18-Jan-15 2:08am
View
i updated my question above,. can you help me. I am using SQL server as my database :) hope you will.
DarkDreamer08
17-Jan-15 22:03pm
View
i have not yet fried anything. I am still looking to any articles that could help me here :)
DarkDreamer08
15-Jan-15 7:54am
View
I am aware of SQL Injection attack to my code. Later I will fix that. Thanks for your concern. But my problem is that it's not displaying the data that I want.
DarkDreamer08
29-Dec-14 10:49am
View
I solved it now! I just need to indicate a primary key to my table where I load data to my data gridview :)
DarkDreamer08
29-Dec-14 7:46am
View
Thank you! it is working!!! Hope you will help me again if I have another question to ask about C#. I am just a beginner here :) I think I will post another question later Haha XD Merry Christmas :)
DarkDreamer08
29-Dec-14 7:39am
View
What do you mean by "name" at your code? is it the field name that I want to load at my combo box?
DarkDreamer08
20-Dec-14 2:15am
View
it is not that i am being lazy. i am just used to use text box.
DarkDreamer08
3-Oct-14 5:17am
View
I have not yet tried that code but I understand the output that you want to display. If I had a question, I will ask you about it, can I? Thank you in advance!!!
DarkDreamer08
3-Oct-14 3:12am
View
Actually I made it to add the image but I need the syntax to check if the checklist is already have a milestone_code, an image of checklist icon will appear and if not yet assigned, it has no image. Please extend your help to me :)
DarkDreamer08
3-Oct-14 3:06am
View
I'm sorry. It is needed to create the order number which will be added to the last end of the code for the checklist and activity.
DarkDreamer08
2-Oct-14 23:43pm
View
string builder :)
DarkDreamer08
2-Oct-14 23:05pm
View
It is somehow hard for me to understand your solution. Could you elaborate it more, please? I hope you extend your help regrading this matter.
DarkDreamer08
2-Oct-14 19:56pm
View
if the number is 1, it will added by 9 but if it is not, it will be added by 10
DarkDreamer08
22-Sep-14 5:18am
View
could you help me? any links about that?
DarkDreamer08
21-Sep-14 22:03pm
View
Question: What is the QUERY of your SLCOMMAND query in the method GetNumOfRows_From_checklists. Because I am going to use the same codes above for the activity_code and order_no. Thank you so much!
DarkDreamer08
18-Sep-14 5:28am
View
your code is correct. it is working great. I am the one who is wrong. I am asking question about editing order_no and fixing it with the help of you. and when I run the program, I am testing the checklist code and not the order_no. Hahaha. LOL. I am such an idiot! My head is now aching -_- Thank you so much!
DarkDreamer08
18-Sep-14 4:27am
View
there is no error. the thing that happens here is that: at first, there is already existing code BK-1, BK-10,and BK-20. Now when I edit BK-20 and change it to BK-10, it change into BK-10 but the original BK-10 became BK-20. they just exchange
DarkDreamer08
18-Sep-14 3:24am
View
nothing happens :(
DarkDreamer08
18-Sep-14 1:32am
View
It works so great!!! Thanks for that! I have a question. when I tried to update only the order no, it does not updated. An error message displayed saying, 'Error: Updated Checklist Code have a duplicate in table.Try different Checklist Code !' the problem here it should be updated even if the checklist code does not change. How to do that? I hope you extend your help to me :) Please :)
DarkDreamer08
17-Sep-14 21:02pm
View
but Checklist code is editable also. It should be updated whenever the user wants to. What the system will do is that to check if that code is already existing. but take note that the checklist code is a primary key in the table, so database will promptly tell that it should not be duplicated. so in terms of displaying such kind of error, an error message will appear.
- I know how to explain such things like this but I cannot sometimes put it in code :) That's the problem about me -_- Hope you guys understand :)
DarkDreamer08
17-Sep-14 20:30pm
View
What do you mean by the GetNumOfRows_From_checklists? I did not understand that, I am sorry :)
DarkDreamer08
17-Sep-14 4:26am
View
what do you mean returning to false? i think it is right.
DarkDreamer08
17-Sep-14 4:25am
View
checklist code is the primary key
DarkDreamer08
17-Sep-14 1:20am
View
Thank you so much! It works GREAT!!!!! :)
DarkDreamer08
16-Sep-14 5:17am
View
About on the first link that you provided- I got red marks indicating that it is error on the RowDelemiter and ColumnDelimeter. I do not know how to fix that. Can you extend your help for me? :)
DarkDreamer08
15-Sep-14 21:35pm
View
Help me please here http://www.codeproject.com/Questions/817498/How-to-Copy-From-Excel-and-Paste-it-into-a-Grid-Vi Badly needed to resolve this.
DarkDreamer08
15-Sep-14 21:33pm
View
Please Help me here :) http://www.codeproject.com/Questions/817498/How-to-Copy-From-Excel-and-Paste-it-into-a-Grid-Vi
DarkDreamer08
15-Sep-14 21:05pm
View
ramaraog96 I am sorry to say but this is not what I am looking for. What I need is the user will copy(Ctrl + C) data from the excel and paste (Ctrl + V) it to the grid view. I hope you will extend your help regarding this :)
DarkDreamer08
14-Sep-14 23:19pm
View
I put those links and scripts in my code. But nothing happens. i cannot move the popup.
DarkDreamer08
9-Sep-14 1:33am
View
it works great! But I want to change the choices to Yes and No and not OK and Cancel. How am I supposed to do that?
DarkDreamer08
2-Sep-14 22:28pm
View
Yup! :) That's it!
DarkDreamer08
2-Sep-14 21:55pm
View
No. I will not going to show all the records to the grid view in the original page. The records that can be seen there are those that the user added by double clicking the records from the pop up box. :)
DarkDreamer08
2-Sep-14 21:53pm
View
How to use Ajax Control tool kit? should I download it?
DarkDreamer08
2-Sep-14 3:09am
View
I do not know on how to use AJAX. I am not that good at jQuery. I am really sorry ! :(
DarkDreamer08
1-Sep-14 21:12pm
View
Please Help me here :( http://www.codeproject.com/Questions/813709/How-t-make-an-auto-complete-textbox-without-using PLEASEEE :(((
DarkDreamer08
1-Sep-14 21:11pm
View
Help me :( http://www.codeproject.com/Questions/813709/How-t-make-an-auto-complete-textbox-without-using
PLEASE :(
DarkDreamer08
1-Sep-14 21:10pm
View
Please HELP me out here :( http://www.codeproject.com/Questions/813709/How-t-make-an-auto-complete-textbox-without-using
DarkDreamer08
1-Sep-14 21:10pm
View
PLease, Kindly help me out here : http://www.codeproject.com/Questions/813709/How-t-make-an-auto-complete-textbox-without-using :(
DarkDreamer08
1-Sep-14 20:58pm
View
here is what i tried:
In my .ASPX
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<head>
<title>AutoComplete Textbox with webservice using jQuery</title>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
SearchText();
});
function SearchText() {
$(".autosuggest").autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "AutoComplete.asmx/GetAutoCompleteData",
data: "{'username':'" + document.getElementById('contract_num').value + "'}",
dataType: "json",
success: function (data) {
response(data.d);
},
error: function (result) {
alert("Error");
}
});
}
});
}
</script>
</head>
I add a Web service Method:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Data.SqlClient;
///
/// Summary description for AutoComplete
///
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class AutoComplete : System.Web.Services.WebService {
public AutoComplete () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public List<string> GetAutoCompleteData(string username)
{
List<string> result = new List<string>();
using (SqlConnection con = new SqlConnection("Data Source=192.168.100.252;Integrated Security=true;Initial Catalog=AMICASSA_Checklist"))
{
using (SqlCommand cmd = new SqlCommand("select DISTINCT Contract_num from rawdata where Contact_num LIKE '%'+@SearchText+'%'", con))
{
con.Open();
cmd.Parameters.AddWithValue("@SearchText", username);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
result.Add(dr["Contract_num"].ToString());
}
return result;
}
}
}
}
But nothing Happens :(
DarkDreamer08
29-Aug-14 3:16am
View
I tried the one you mentioned above. But nothing happens. Here is my code about that:
protected void systemid_TextChanged(object sender, EventArgs e)
{
s = WebConfigurationManager.ConnectionStrings["amicassa"].ConnectionString;
amicasaCon = new SqlConnection(s);
amicasaCon.Open();
SqlCommand cmd = new SqlCommand("SELECT system_id FROM users WHERE username = '"+username.Text+"'", amicasaCon);
SqlDataReader rd = cmd.ExecuteReader();
while(rd.Read())
{
a = rd[0].ToString();
if(a == systemid.Text)
{
password.Enabled = true;
repass.Enabled = true;
ImageButton1.Enabled = true;
}
}
rd.Close();
amicasaCon.Close();
}
DarkDreamer08
29-Aug-14 3:08am
View
I tried it inside the _TextChange event. But it does not happen.
DarkDreamer08
29-Aug-14 3:04am
View
Cant I just put the code to make the two text boxes enabled inside an event on the first text box?
DarkDreamer08
28-Aug-14 4:37am
View
Hey friend! it's working now!!! THANK YOU SO MUCH!!!
DarkDreamer08
28-Aug-14 4:19am
View
still there is an error saying,"THe SMTP requires a secure connection or the client was not authenticated." How to fix that error?
DarkDreamer08
28-Aug-14 1:55am
View
I just remove the try-catch. But the code inside the try-catch remains because I am calling it after the query executes fine. Now, an error displayed, "The operation has timed out.Error in smtp.Send(fromAddress, toAddress, subject, body);"
DarkDreamer08
28-Aug-14 1:50am
View
The code above is the code you taught to me yesterday. Exactly as it is. I just included there the codes for database.
DarkDreamer08
28-Aug-14 1:47am
View
I found the settings of my gmail account with the gear icon. But I do not know what I will I am going to click next. I am sorry :( I am just new in ASP.Net. It is just last July that I created my account here about ASP.Net :(
DarkDreamer08
28-Aug-14 1:43am
View
it is about the above code. The query inside the Image button Event Handler. the next function I am pertaining is the SendMail() which is inside the try {}and catch{}
DarkDreamer08
28-Aug-14 1:40am
View
Deleted
if I turn SSL.Enabled to false, what port should I put? either 25, 587 or 465?
DarkDreamer08
28-Aug-14 1:34am
View
I am using my gmail account. Where I could find it?
DarkDreamer08
28-Aug-14 1:33am
View
actually, it works fine yesterday when I followed the steps you gave to me on the post about sending email yesterday. So, today, I just add a query to update first the system ID generated by the system to the database before it send to the user's email. When I run the program, it does not send, but it executes the query fine.
DarkDreamer08
28-Aug-14 1:27am
View
Where I could find "allow authentication" for SMTP? Maybe it will be the thing to solved my problem.
DarkDreamer08
28-Aug-14 1:25am
View
I fixed now the error. But I got a problem. It is just executing the query then it does not move to the next function which is to send mail after I press the image button. What should I do? :(
DarkDreamer08
28-Aug-14 1:24am
View
I fixed now the error. But it does not send any message to the email that I put. It just doing the first condition which is updating the system ID in the database then nothing happens next whenever I press the image button. What should I do?
DarkDreamer08
27-Aug-14 23:02pm
View
I have read that and followed to. same error displays. That is why I switched back to my original code that I posted above. To be honest, yesterday, it works fine. but today, when I add some codes specifically the query, it does not work :(
DarkDreamer08
27-Aug-14 22:54pm
View
Please help me out here http://www.codeproject.com/Questions/812400/How-to-send-email-using-ASP-NET.
DarkDreamer08
27-Aug-14 22:54pm
View
http://www.codeproject.com/Questions/812400/How-to-send-email-using-ASP-NET help me out here please :)
DarkDreamer08
27-Aug-14 5:02am
View
Question. What is the purpose of smtp.Host? Is it the host of the email address of the one who will send the message of the host for the one who will receive the message? thanks :)
DarkDreamer08
27-Aug-14 5:00am
View
Question, What is the purpose of the smtp.Host. Is it the host on what email account am I using or the email account where I will send the message?
DarkDreamer08
27-Aug-14 4:16am
View
about the port, how am I supposed to know that?
DarkDreamer08
27-Aug-14 2:53am
View
Buddy! It works fine now. But I have a problem. Google told me that the email that I sent the message failed because the DOMAIN is not found. What will I do? for example is that I sent the message to her outlook account. That's the time Google told me that the sending of message failed.
DarkDreamer08
27-Aug-14 2:40am
View
Deleted
<configuration>
<system.net>
<mailsettings>
<smtp from="myemail">
<network host="smtp.gmail.com" port="587" username="myemail" password="pasword" defaultcredentials="true">
<system.web>
<compilation debug="true" targetframework="4.0">
<connectionstrings>
//Connection to the database
I add this to my web.config file
DarkDreamer08
27-Aug-14 2:38am
View
Deleted
Hey Buddy, you mean I need to add this portion in the web.config:
<configuration>
<system.net>
<mailsettings>
<smtp from="myemail">
<network host="smtp.gmail.com" port="587" username="myemail" password="pasword" defaultcredentials="true">
<system.web>
<compilation debug="true" targetframework="4.0">
<connectionstrings>
//Connection to the database
like that?
DarkDreamer08
27-Aug-14 2:31am
View
i will read it :) thank you. After I do it, I will mark it as an ANSWER :) Thanks Buddy!
DarkDreamer08
27-Aug-14 2:23am
View
i tried that but there were errors. Some are those Encoding,mailbody. there were red lines indicaing that there is something wrong with those line :(
DarkDreamer08
27-Aug-14 2:21am
View
the first link you gave does not work :(
DarkDreamer08
27-Aug-14 2:20am
View
It does not work.
DarkDreamer08
27-Aug-14 1:53am
View
Thank you Tadit Dash!!! :)
DarkDreamer08
26-Aug-14 20:18pm
View
on my first page, I included a session on the page load. Here is my code in that part:
//My connection to the database
if (cnt == 1)
{
if (userName == uname.Text && pass == password.Text)
{
if (u_type == "admin")
{
Session["uname"] = uname.Text;
Response.Redirect("admin.aspx");
}
else
{
Session["uname"] = uname.Text;
Response.Redirect("CS.aspx");
}
}
else if (userName == uname.Text && pass != password.Text)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('Invalid password');", true);
password.Text = "";
}
and in my second page, I just put this line at the page load event:
username.Text = Session["uname"].ToString();
Please correct me if I did something wrong. Thank you!
DarkDreamer08
26-Aug-14 4:47am
View
I am wrong at my explanation above. What I mean is that the user will input their username at first inside the text box in the first page. the the User will select the RESET ID which is a link to the next page. Now, the text box on the second page will display the username of the user. How to do that? I tried to use the session, but I got an error saying,"Object reference not set to an instance of an object"
DarkDreamer08
19-Aug-14 23:09pm
View
hey, help me out. I just inserted a CSS selector at my .aspx to make the header of my grid view fixed. It is doing good but the header overlapped with the first row and the size of the header is not the same with the whole grid view. how to fix that?
here is my CSS Selector:
.FixedHeader
{
position:absolute;
font-weight:bold;
}
DarkDreamer08
19-Aug-14 1:43am
View
Yeah, Thanks to all that helped me :) like you! XD
DarkDreamer08
18-Aug-14 23:37pm
View
Thank you so muchh..... !!!!
DarkDreamer08
18-Aug-14 23:23pm
View
Help me out here pleaseee, I really need a hand here, http://www.codeproject.com/Questions/808919/How-to-insert-records-from-database-to-a-label
DarkDreamer08
18-Aug-14 23:23pm
View
Help me please here.. http://www.codeproject.com/Questions/808919/How-to-insert-records-from-database-to-a-label I really need this thing. :(
DarkDreamer08
18-Aug-14 23:16pm
View
http://www.codeproject.com/Questions/808919/How-to-insert-records-from-database-to-a-label help me out here pleaseeee... :(
DarkDreamer08
18-Aug-14 23:16pm
View
Kindly help me here... http://www.codeproject.com/Questions/808919/How-to-insert-records-from-database-to-a-label pleaseee :) I really nedd a hand here..
DarkDreamer08
18-Aug-14 19:29pm
View
I got no error in terms of that. I just put it like that on the last part of my if statement so that, whatever the user puts in the proj_name, unit description, company code text boxes and the sattus is not completed, then the record/s that matches with the condition displays.
DarkDreamer08
18-Aug-14 1:56am
View
please help here, http://www.codeproject.com/Questions/808534/How-to-search-records-in-a-database.. Pleaseeee :)
DarkDreamer08
18-Aug-14 1:56am
View
http://www.codeproject.com/Questions/808534/How-to-search-records-in-a-database help me please here :)
DarkDreamer08
17-Aug-14 23:27pm
View
oh, yeah. Sorry about that. Why I did not think about that? How ridiculous I am? hahaha XD anyway, Thanks for your help. I am doing it now :)
DarkDreamer08
17-Aug-14 21:38pm
View
i mean there are articles that they drag a jquery script in their codes that was save in a folder. but i cannot find that file on the page that they posted their article. its just the .cs file and .aspx file. but where is the jquery that they added? that's what I mean. :)
DarkDreamer08
17-Aug-14 21:19pm
View
Please help me here :) http://www.codeproject.com/Questions/808464/How-to-make-scrollable-Grid-View-with-fixed-header Pleassseee :))) Thank you!
DarkDreamer08
17-Aug-14 21:18pm
View
Hey, I need help here http://www.codeproject.com/Questions/808464/How-to-make-scrollable-Grid-View-with-fixed-header.. Help me please :) Thank you
DarkDreamer08
14-Aug-14 21:33pm
View
Thank you!!!
DarkDreamer08
14-Aug-14 21:31pm
View
Thank you sooo much ClimerChinna!!! You helped me a lot. I hope you will help again someday! Thank you again! I mark it as an answer XD
DarkDreamer08
14-Aug-14 2:48am
View
Thank you. Please Help me about taht. I badly needed taht one, please :)
DarkDreamer08
14-Aug-14 2:42am
View
I check it but it looks like the same of all the articles I've read at the internet. it is also like my codes above that whenever I hover my mouse to the menu item, It change its color. What I am asking is that whenever I SELECT an item, it will change its text and border color
DarkDreamer08
14-Aug-14 2:38am
View
Yes. Someone already answered it. I accepted the solution they posted here :) Can you help me out to the one I am asking? Please :)
DarkDreamer08
14-Aug-14 2:24am
View
I am sorry to say that the example that you gave to me does not answer my question. Can you help me out?
DarkDreamer08
14-Aug-14 2:07am
View
Please, Help me answering this one: http://www.codeproject.com/Questions/807474/How-to-change-color-of-the-menu-bar-when-selected?arn=0
I badly needed that one, PLEASE!
DarkDreamer08
14-Aug-14 2:05am
View
please help me here. I badly needed this thing. http://www.codeproject.com/Questions/807474/How-to-change-color-of-the-menu-bar-when-selected?arn=0
DarkDreamer08
14-Aug-14 1:07am
View
CS CODE
//checklist editing
protected void checklist_modalpopup_save_Click(object sender, EventArgs e)
{
connection();
amicassaCon.Open();
SqlCommand cmd = new SqlCommand("UPDATE checklist SET checklist_code='" + lblchecklist_popup_code.Text + "',order_no='" + lblchecklist_popup_orderno.Text + "',checklist_status='" + rrd_checklist_popup_status.SelectedIndex + "',repeatable = '" + rrdchecklist_popup_repeatable.SelectedIndex + "' , checklist_type='" + rrdchecklist_popup_type.SelectedIndex + "' WHERE checklist_name = '" + lblchecklist_popup_name.Text + "'", amicassaCon);
SqlDataReader dr = cmd.ExecuteReader();
dr.Close();
amicassaCon.Close();
connection();
checklist();
}
MARK UP Language
<%-- edit checklist popup --%>
<asp:LinkButton Text="" ID="lnkFake2" runat="server" />
<cc1:ModalPopupExtender ID="checklist_popup" runat="server" PopupControlID="checklistpnlPopup" TargetControlID="lnkFake2"
CancelControlID="btnClosechecklist" BackgroundCssClass="checklistmodalBackground">
<asp:Panel ID="checklistpnlPopup" runat="server" CssClass="checklist_modalPopup" Style="display: none">
<div class="header">
Edit Checklist
</div>
<div class="body">
<table border="0" style="text-align: left" align="center">
<tr>
<td style="vertical-align: top;">
<asp:Label ID="Label12" runat="server" Text="Checklist Code:">
</td>
<td style="vertical-align: top;">
<asp:TextBox ID="lblchecklist_popup_code" runat="server">
</td>
</tr>
<tr>
<td style="vertical-align: top;">
<asp:Label ID="Label13" runat="server" Text="Order Number:">
</td>
<td style="vertical-align: top;">
<asp:TextBox ID="lblchecklist_popup_orderno" runat="server">
</td>
</tr>
<tr>
<td style="vertical-align: top;">
<asp:Label ID="Label14" runat="server" Text="ChecklistName:">
</td>
<td style="vertical-align: top;">
<asp:Label ID="lblchecklist_popup_name" runat="server" Text="" Font-Bold="true">
</td>
</tr>
<tr>
<td style="vertical-align:top">
<asp:Label ID="lblCheckStatus" runat="server">
</td>
<td style="vertical-align:top">
<asp:RadioButtonList ID="rrd_checklist_popup_status" runat="server">
<asp:ListItem Selected="False" Value="1">Active
<asp:ListItem Selected="False" Value="0">Inac
DarkDreamer08
14-Aug-14 0:37am
View
the logic you have above is like for inserting new events which is correct. Now, what if the records I have in my grid view needed to be edited? Same form, so I copied it and put it inside my code and I change the query to update,. But nothing happens.
DarkDreamer08
14-Aug-14 0:35am
View
How to do that? I am not that familiar with scripts and JQUERY. Please help me....
DarkDreamer08
13-Aug-14 21:42pm
View
I tried your logic and it runs great. But I have a problem.In my grid view, I add there a Command edit. Now, I did also the same thing in the radio button list but it is not change whenever I edited something. Why?
DarkDreamer08
13-Aug-14 20:31pm
View
The logic to submit the data to the database that will save 0 and 1 and the logic on how to show 0 and 1 as Yes and No on Grid view :) Thanks for understanding my problem!
DarkDreamer08
13-Aug-14 5:30am
View
No, there should NOT be a radio button list inside my grid view. What I need is a tutorial on how to create a function that if I select Yes, it will save as 0 in my database and if No, it will save as 1. And what will display at my grid view is something like this:
Name Age Yes/No
Billy 19 Yes
Sarah 18 Yes
Channing 22 Yes
Cha 18 No
DarkDreamer08
13-Aug-14 5:24am
View
I am sorry. At first page, I have 2 textbox for name and age , a radio button list that has 2 choices: Yes and No and a Save button. Now, If I select Yes in the radio button list, it will be saved as 0 in the database, if No- it will save as 1. Now on my second page, I have a grid view. Here, it will display all the records saved in the database. It should display the name, age and Yes/No.
DarkDreamer08
13-Aug-14 4:11am
View
But only 0 or 1 can be found at the database when you select either yes or no at the form. How am I going to do that yes and no will display at my grid view. Another thing, if I selected Yes, it will save to my database as 0 and if No, it will be 1 after clicking the SAVE button. Also, the radio button list should not be inside my grid view. what is inside my grid view are only the records that has been called from the database.
DarkDreamer08
12-Aug-14 23:25pm
View
You should have a relationship between the tables for you to be able display the orders. I think you could connect them by joining the tables. Read articles about joining tables. Another thing, what database are you using? Your question is more related to database not asp.net.
DarkDreamer08
11-Aug-14 23:13pm
View
Thanks. The problem is it is FIXED at the center. When I click the ADD button, a small window will pop up. the color of the background for the original page is gray meaning cannot be edited all the info there unless you have successfully added a record by filling up the text boxes inside the small pop up window and by clicking the SAVE button. I want to drag that small pop up window so that I could check if there is already an existing Description inside the records.
DarkDreamer08
7-Aug-14 2:00am
View
Hey, I have a question. Can I Declare @GetNo as string because ContractNo is a Varchar Value.
DarkDreamer08
6-Aug-14 4:41am
View
THANKS FOR YOUR HELP!!!! :) It goes well!!!
DarkDreamer08
6-Aug-14 2:55am
View
i tried it. but there is an error appeared. The conversion of the varchar value '1000000001690' overflowed an int column.
DarkDreamer08
6-Aug-14 1:14am
View
I change it now and it is running. But the result is error. it is inserting even if the company_code and unit_desc is already existing. it should not be. an error message must display.
DarkDreamer08
5-Aug-14 20:57pm
View
My permission to create a Stored Procedure is denied due to that I am accessing database from a remote desktop. We were only allowed to read the records. You're going to wonder why I am able to add/insert new records? They created us inside the remote desktop our own database for us to use. I am just joining two tables from two databases whenever I am going to display them in my application.
But I tried the first solution you gave using the SQL COmmand. But there is an error inside the if statement: if(drno[0].toString()!=0) saying,"Operators '!=' cannot applied to the operands of type string and integer"
And another thing, What is @DepNo? I must declare it.
DarkDreamer08
5-Aug-14 20:47pm
View
I followed the pseudo code above. an error message displays saying, "
Must declare the scalar variable "@MC".
Incorrect syntax near ')'."
DarkDreamer08
5-Aug-14 20:33pm
View
What do you mean by SP? and in your pseudo non tested code, can I change the WHERE condition?Can I just directly set the field name to the value being selected in the drop down list? I mean like this: WHERE ContractNo='"+company_code.SelectedValue+"' and not WHERE ContractNo='{0}'. What is the purpose of 0 and 1 in the WHERE condition?
DarkDreamer08
5-Aug-14 4:56am
View
I do not know that IF EXISTS in SQL. I will read about that. Cheers!
DarkDreamer08
4-Aug-14 3:22am
View
what do you mean by that? could you show me a sample- a bit of codes? I mean not totally all the codes. Let me do that. so that I can get what you want me to do :) Thanks
DarkDreamer08
4-Aug-14 3:13am
View
i do not put parameters inside my query because there is no specific row that the user will change the record.the user can change what ever they like in any rows. That is why my query is like that. Is that possible to update the database after changing all the records and clicking the update button outside the grid view? Is there any way to do that?
DarkDreamer08
3-Aug-14 21:49pm
View
what I mean about calling her my boss is that she is my Professor. haha XD Sorry about that. I know on how to put command event in the grid view of the edit by editing the columns of the grid view. what my professor would like to my project is that there should be only one edit button that will allow all the records in grid view editable. i am trying some of the examples that I have searched in the net such this one: http://www.codeproject.com/Questions/631162/edit-all-rows-of-gridview-on-button-click-which-is
DarkDreamer08
31-Jul-14 5:16am
View
why only at my PC I can view that url. on other computers, a message will display saying, "This webpage is not available"
DarkDreamer08
31-Jul-14 4:53am
View
other computers' browser displays, "This webpage is not available" :( they could not accessed it :(((
DarkDreamer08
31-Jul-14 4:43am
View
so to access it by other computers, the url they need to type is like this, 192.168.166.205/MyApp/login.aspx
DarkDreamer08
31-Jul-14 4:36am
View
i am lost.. hahaha :D i will change localhost - IP Address; VirtualDirName- by application name. where i could find that in the inetmgr? in left panel or right?
DarkDreamer08
31-Jul-14 4:26am
View
is the machine name the IP address?
DarkDreamer08
31-Jul-14 3:43am
View
what do you mean by your second statement: "later on you can change localhost with machine name and VirtualDirName by your application name given in Inetmgr."
DarkDreamer08
31-Jul-14 3:41am
View
does it mean, other computer can access it now? as long as we share same domain? hey, I marked it now as a SOLUTION!! THANK YOU SO MUCH for giving your time answering my questions. But I have still questions to ask, hope you lend me your ears, XD
DarkDreamer08
31-Jul-14 3:29am
View
if I am going to browse it, i just need to right click the application added, right?
DarkDreamer08
31-Jul-14 3:19am
View
I followed the steps all. when I browse it, an error display:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
DarkDreamer08
31-Jul-14 3:14am
View
I am sing 64bit OS
DarkDreamer08
31-Jul-14 3:14am
View
I copy the path and paste it to the command prompt. after that, I press enter, an error display
DarkDreamer08
31-Jul-14 3:05am
View
where I could find the visual studio command prompt? Or you just mean, Right click the visual studio shortcut and run it as administrator.
DarkDreamer08
31-Jul-14 2:11am
View
I followed the steps you provided. But the Application Pool available only is the DefaultAppPool where the .NetFramework version is 2.0. and I cannot change it. How to do so?
DarkDreamer08
30-Jul-14 21:56pm
View
hey, I find now the IIS. It was not checked at the windows feature, hahaha :) Question, where will I go to make a virtual directory?
DarkDreamer08
30-Jul-14 20:41pm
View
I followed the steps here, http://msdn.microsoft.com/en-us/library/vstudio/bb763170(v=vs.100).aspx but I cannot find the IIS at the Administrative tool :(
DarkDreamer08
30-Jul-14 20:38pm
View
hey, I found it now. but when I run the "inetmgr",there's an error message saying,"Windows cannot find 'inetmgr'.Make sure you type the name correctly, and then try again"
DarkDreamer08
30-Jul-14 20:29pm
View
Do you mean I will run the command "inetmgr" at the command prompt? sorry, I am new here :)
DarkDreamer08
30-Jul-14 4:57am
View
I know that our both PC are connected in the same network. also, they are both accessible. but i do not know your 3rd step. please elaborate it more. Thanks by the way! :) GOD BLESS
DarkDreamer08
28-Jul-14 1:58am
View
Rohan I hope you do understand me. I just said from above conversation that I am "ACTUALLY TRYING" since I AM NEW IN ASP.NET. I am asking those kind of questions since I really do not understand some things in the example provided by the link given to me. I am sorry if you find my questions a waste of time. so if you do find them a waste of time, then do not post a comment or do not reply like that cause I do not know if you are insulting me. Just ignore that question, okay? I am sorry again. I am new here and new in that language.
DarkDreamer08
27-Jul-14 23:31pm
View
Deleted
where i could find that CommandName?
DarkDreamer08
27-Jul-14 23:23pm
View
actually, I am trying that last example. but i am wondering and really got confused on some things in the last example of your given link to me. like the e.CommandName=="Increase", What is that 'Increase'? taht is why I am asking for some short codes for it. Hope you understand since I am a new in this language. Thank you so much.
DarkDreamer08
27-Jul-14 22:58pm
View
please, show me some codes about it XD
DarkDreamer08
27-Jul-14 22:57pm
View
can you show me some codes about it, please :)
DarkDreamer08
22-Jul-14 21:47pm
View
My answers:
1. the number of sub items will be based from the user input. but the user will not input the number of sub items. the system will just automatically create their codes when the user would like to add another record on that milestone.
2. I need to get the milestone_code from the database since the dropdownlist will display the milestone_name of each code. That's part of the project requirements.
3 and 4. Its only CC for check_code and CC-AC is for activity_code. They will be determined by this flow: at first page, the system will display a dropdownlist that contains the milestone_name. below this dropdownlist is a textbox for the check_code. if the user selects a milestone_name(for example is BOOKING), the corresponding milestone_code(which is BOO-05) of that milestone_name will be get to automatically create the check_code in the pattern of this,"BOO-CC-05" and then a save button to store the check_code. if the user wants to add another check_code from the same milestone_name: BOOKING, the check_code should be now like this:"BOO-CC-10". meaning, the system should validate if the check_code is already existing. if it is, then it will add another 5 to it. Likewise, a page that has the same setup will be for the generation of activity_code. same set up and process like the one I explained above. But there will be 2 dropdownlist for now. the first one is for the milestone_name and the other one is for the checklist _name. If I select a milestone_name, the second dropdownlist will display only the checklist_name that is related to that milestone_name. The check_code of that corresponding checklist_name will be get and will use for the generation of activity_code that will be placed in a textbox in a pattern like this:"BOO-CC-AC-05". Again, if the user wants to add another record, the system will validate if the activity_code exist and if yes, it will add another 5 to it.
DarkDreamer08
22-Jul-14 2:27am
View
actually I tried this one:
s = WebConfigurationManager.ConnectionStrings["AmicassaConnectionString2"].ConnectionString;
amicassa = new SqlConnection(s);
amicassa.Open();
SqlCommand cmdd = new SqlCommand("SELECT Milestone_Code FROM tblMilestone WHERE Milestone_Name = '" + dplmilestone_checklist.SelectedItem + "'", amicassa);
SqlDataReader drr = cmdd.ExecuteReader();
if (drr.HasRows)
{
while (drr.Read())
{
string aa = drr[0].ToString();
string[] parts = aa.Split('-');
int number = Int32.Parse(parts[1]) + 5;
string result = parts[0] + "-CC-" + number.ToString();
txtchecklist_code.Text = result;
}
}
drr.Close();
amicassa.Close();
but if I am going to add another sub item for the same milestone_code and save it, they' re both the same which should not be.
PPY-05---> PPY-CC-10
---> PPY-CC-10
It should not be like that.
How to do it?
DarkDreamer08
21-Jul-14 3:25am
View
Hey, I already fix it now! Thanks for your help. I will mark it as a solution. I hope you could help me again someday :) GOD BLESS!
DarkDreamer08
21-Jul-14 3:24am
View
hey, I fix it now. The input is based from a query. But I got a problem with this.
SqlCommand cmd = new SqlCommand("SELECT Milestone_Code FROM tblMilestone WHERE Milestone_Name = '"+DropdownList1.Text+"'");
SqlDataReader dr =cmd.ExecuteReader();
if(dr.HasRows)
{
while(dr.Read)
{
string aa = dr.[0].ToString();
string[] parts = aa.Split('-');
int num = Int32.Parse(parts[1] + 5);
string result = parts[0] + "-CC-" + num.ToString();
TextBox1.Text = result;
}
}
dr.Close();
The problem is that it only display the result for the first item in the dropdownlist. and if I select other Items, the result is the same which should not be. Please help me :))
DarkDreamer08
21-Jul-14 2:07am
View
Deleted
Hey, I already fix it now! Thanks for your help. I will mark it as a solution. I hope you could help me again someday :) GOD BLESS!
DarkDreamer08
21-Jul-14 2:02am
View
Deleted
hey, I fix it now. The input is based from a query. But I got a problem with this.
SqlCommand cmd = new SqlCommand("SELECT Milestone_Code FROM tblMilestone WHERE Milestone_Name = '"+DropdownList1.Text+"'");
SqlDataReader dr =cmd.ExecuteReader();
if(dr.HasRows)
{
while(dr.Read)
{
string aa = dr.[0].ToString();
string[] parts = aa.Split('-');
int num = Int32.Parse(parts[1] + 5);
string result = parts[0] + "-CC-" + num.ToString();
TextBox1.Text = result;
}
}
dr.Close();
The problem is that it only display the result for the first item in the dropdownlist. and if I select other Items, the result is the same which should not be. Please help me :))
DarkDreamer08
21-Jul-14 1:21am
View
I copied your codes but there is an error pertaining to the line:
int number = Int32.Parse(parts[1])+5;
The error message is "Index was outside the bounds of array"
DarkDreamer08
18-Jul-14 0:52am
View
Thanks a lot for that link. God Bless
DarkDreamer08
15-Jul-14 2:52am
View
protected void savebtn_Click(object sender, ImageClickEventArgs e)
{
foreach(GridViewRow row in GridView1.Rows)
{
if(row.RowType == DataControlRowType.DataRow)
{
CheckBox check = (row.Cells[0].FindControl("check") as CheckBox);
if (check.Checked)
{
//string milestone = row.Cells[1].Text;
string checklist = row.Cells[2].Text;
//string activity = row.Cells[3].Text;
string s = WebConfigurationManager.ConnectionStrings["amicassa"].ConnectionString;
amicassaCon = new SqlConnection();
amicassaCon.Open();
SqlCommand insertRec = new SqlCommand("INSERT INTO contractInfo (milestone,checklist) VALUES('"+ milestonedrpdwnlist.SelectedValue +"','"+ checklist +"')",amicassaCon);
SqlDataReader dr = insertRec.ExecuteReader();
dr.Close();
amicassaCon.Close();
}
}
}
}
DarkDreamer08
14-Jul-14 1:39am
View
Thanks for the answer. But why an error message showed saying, "Exception of type 'System.OutOfMemoryException' was thrown." when I try to put it in my code behind in ASP.Net. I am trying to connect in the databse so that the records will display at my gridview
DarkDreamer08
13-Jul-14 22:37pm
View
Haha, Thanks for correcting me. I am using ASP.Net in this project and I forgot to change the subject. Thanks a lot PIEBALDconsult
DarkDreamer08
10-Jul-14 0:39am
View
It could be! Thanks for your suggestion. How can I mark it as a solution?
DarkDreamer08
10-Jul-14 0:34am
View
I would like to show it to you but i do not know how to paste the picture here :) I am sorry about that.
DarkDreamer08
10-Jul-14 0:32am
View
Deleted
for tblperson
Name Age Address
Jose Manalo 31 NYC
Wally Wallace 28 NYC
for tbljob
Milestone Checklist Activity
Booking Full Downpayment in SAP Scan Booking Documents
Booking Full Payment in SAP Verify and Commit Scanned Booking Documents
what I needed to display is like this:
Name Age Address Milestone Checklist
Jose Manalo 31 NYC Booking Full Downpayment in SAP
Wally Wallace 28 NYC Booking Full Payment in SAP
DarkDreamer08
9-Jul-14 23:29pm
View
I am sorry about that. It's just my second time to post question here.
SQL SERVER 2008 R2
DarkDreamer08
9-Jul-14 3:34am
View
I have a nested gridview in my web form. Inside of this nested gridview, i add checkboxes. The problem is how am I going to save/store the selected checkboxes/data to my database?
DarkDreamer08
9-Jul-14 3:33am
View
Deleted
I have a nested gridview in my web form. Inside of this nested gridview, i add checkboxes. The problem is how am I going to save/store the selected checkboxes/data to my database?
Show More