15,909,039 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 Osman24 (Top 33 by date)
Osman24
18-Jun-13 4:01am
View
What kind of Internet Connection do you use? It is important because to able to show your computer to your website domain you will probably need port forwarding. If you have not access to your routers you can not, if you have, yes you can achieve this.
Osman24
14-Jun-13 9:16am
View
Can you try Request["name"]
because if you use method other than get it may not get the value
Osman24
6-Jun-13 16:35pm
View
Yeah you were correct it is my bad.
Thank you
Osman24
5-Jun-13 7:10am
View
Ok use google chrome open console by using f12 and try to insert an existing record and look for an error and share with me. I'm waiting for you
Osman24
5-Jun-13 6:35am
View
I did not understand the problem. What I understand is It does not insert same record but not show popup but when a new record inserted it shows popup. Is it true?
Osman24
5-Jun-13 5:03am
View
protected void GV_UserEntry_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName.Equals("AddNew"))
{
TextBox TxtRollNo = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterRollNo);
TextBox TxtStudentName = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterStudentName");
TextBox TxtStandard = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterStandard");
TextBox TxtFathersName = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterFathersName");
TextBox TxtMothersName = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterMothersName");
TextBox TxtFamilyName = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterFamilyName");
TextBox TxtLocation = (TextBox)GV_UserEntry.FooterRow.FindControl("txtFooterLocation");
con.Open();
SqlCommand cmd = new SqlCommand( "SELECT Count(*) FROM StudentDetailsTable where RollNo = '" + TxtRollNo.Text + "' StudentName = '"+TxtStudentName.Text + "'", con);
int count = int.Parse(cmd.ExecuteScalar()+"");
if(count == 0)
{
cmd = new SqlCommand("INSERT into StudentDetailsTable (RollNo,StudentName,Standard,FathersName,MothersName,FamilyName,Location) VALUES ('" + TxtRollNo .Text + "','" + TxtStudentName .Text + "','" + TxtStandard .Text + "','" + TxtFathersName.Text + "','" + TxtMothersName.Text + "','" + TxtFamilyName.Text + "','" + TxtLocation .Text + "')", con);
int result = cmd.ExecuteNonQuery();
if(result == 1)
{
Bind_StudentDetails();
ScriptManager.RegisterStartupScript(this, this.GetType(), "RunCode", "javascript:alert('Student Details Added successfully');", true);
}
}
else
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "RunCode", "javascript:alert('Record already exists');", true);
}
con.Close();
}
}
try this I have not compiled. I think this will work also I jave not check your alert code. Are you sure ScriptManager.RegisterStartupScript(this, this.GetType(), "RunCode", "javascript:alert('Student Details Added successfully');", true); this code is running
Osman24
5-Jun-13 4:23am
View
Ok forget the primary key. as I understand it is urgent. Use this
public int Count()
{
string query = "SELECT Count(*) FROM StudentDetailsTable where RollNo = '" + TxtRollNo .Text + "'"; ///add other columns
int Count = -1;
//Open Connection
if (this.OpenConnection() == true)
{
//Create Mysql Command
MySqlCommand cmd = new MySqlCommand(query, connection);
//ExecuteScalar will return one value
Count = int.Parse(cmd.ExecuteScalar()+"");
//close Connection
this.CloseConnection();
return Count;
}
else
{
return Count;
}
}
if this count bigger than 0 run javascript alert code else make insertion.
Osman24
5-Jun-13 4:14am
View
I understand but here is the thing When you say same record what does it mean. It is all values are same or not?.
Osman24
5-Jun-13 4:05am
View
Can you be more spesific about what you need. If you are, I can help as much as I can
Osman24
3-Jun-13 6:47am
View
I do not understand what you need but as you must create a button or link button to download and when this clicked you can get the name from its item index and give the link or write the file. If you exatcly tell your problem I can be more helpful.
Osman24
31-May-13 11:14am
View
Sorry It is my bad also sorry for bad english. Here is the thing when you bind checkbox items like CommandArgument='<%# Eval("AssignedTo") %>' you just get the value and embed into it. Container.ItemIndex means you get the index of item. So when you add name='<% "checkbox" + #Container.ItemIndex %>' it means in the first item the combobox's name attributes becomes checkbox0 and in the second it becomes checkbox1(If you add this into checkbox). When you add this to linkbutton and if you add this like name='<% "linkbutton" + #Container.ItemIndex %>'
the first item's linbutton's name attribute becomes linkbutton0.
So when you add onclick event to checkbox, on the javascript you can get name attribute of sender. For example if you click first checkbox, you will get name attribute as checkbox0. So by this way you will know, first checkbox clicked so you need the component whichs name attribute is linkbutton0.
To be able to handle this component you will use for example document.getElementsByName("linkbutton0")[0]. So this elements value is your userid.
Is everything ok?
Osman24
31-May-13 9:36am
View
Is it just green color or also their variances?
Osman24
31-May-13 9:22am
View
Sorry it is my bad but you said GridView yet in Windows Application it is DataGridView :). For it
yourcolumn.DefaultCellStyle.Format = "n2";
yourcolumn.ValueType = GetType(double);
I think it is something like that
Osman24
31-May-13 7:29am
View
Can you be more specific ?
Is it appropriate :
string s=string.Format("{0:0.00}",doubleValue);
Osman24
31-May-13 7:04am
View
It is also about size and other limitations. Here is the answer: http://msdn.microsoft.com/en-us/library/ms143432.aspx I think you are using MSSQL
Osman24
31-May-13 3:43am
View
When you say "I want to scroll the label from top to bottom and from bottom to top", did you mean that I want scroll label from top to bottom pixel by pixel and when it reaches the bottom I want scroll it to the top pixel by pixel again ?
Osman24
31-May-13 3:21am
View
Yes you can but you must create a way to create combobox and others with your ids. If not you will not know the id of an component and you will not reach this pbject via javascript.
Osman24
30-May-13 4:55am
View
Hi,
Here is the thing. You should use HKLM because you want access for all users. If application will not write anything. you can read from hklm without admin rights and the good point is that as I know, by using trusted installers setup do not need admin rights to write to hklm. I'm using it now but I did not check it for all kind of users. I'm using Inno setup and also setup project also will be ok.
Another thing is HKLM keeps lots of com data and operating system data. you must select a path in hklm which is not used before to avoid to break any other data.
Osman24
27-May-13 6:41am
View
how did you redirect to inner pages. There is no difference with Response.Redirect and coping url. Am I wrong ? Did you mean anything else?
Osman24
27-May-13 6:36am
View
if you mean word document you can look here:
http://msdn.microsoft.com/en-us/library/bb412305.aspx
if not, what dou you mean with document
Osman24
27-May-13 3:51am
View
Thank you for your response. I have never faced a situation like this. As i know Network Service alredy have these permission. I'm happy for you to solve your problem.
Thank you
Osman24
26-May-13 18:41pm
View
you may configure it by changing web config:
http://msdn.microsoft.com/en-us/library/h6bb9cz9(v=vs.71).aspx
Osman24
24-May-13 17:04pm
View
hi,
I completely understand your problem. haar cascades algorithms are used for generally detection. For example if you try to find a person in a picture the most basic way you can is with haar cascades you can find this man's face and get that part then with template matching you can check he is or not.
So if you research the idea of haar cascades algorithm it just find the object which similar to your training and is generally more succesfull for more 3d objects but leaf is more close to 2d. a template matching algorithm can be more successfull compare to haar cascades.
Another important part is your positive images. Namely in what kind of pictures you will search leaves. As i understand according to your picture sharing i use edge detection and after that template matching or block matching.
please share your test cases and you can read haar cascades algorithms, hu moments edge detection template and block matching.
Osman24
24-May-13 6:52am
View
maybe it can give you an idea:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
Osman24
23-May-13 16:17pm
View
I used haar cascades algorithms almost 1 year for animal face recognition. The best option I think is opencv. In this package everrything is ready and you just need cascades training which negative( images do not contain your object for recognition ) and positive ( images contain your object ) images. There are several sites they have lots of negative images. If you need we can find for you. One of the problems is you need lots of positive images.
Main idea of haar cascade algorithm is it collects this data and according to your rectangle choices(generally 16 x 16 or 24 x 24)it creates data collection and according to these collections it recognize what you want. These pixels (16x16 or 24x24) are not enough your detailed recognition. Namely in this situations coded haar cascades algorithms can not realize the differences between two different kind of leaves. Baceuse these algorithms generally used for real-time recognition.
If you create your own haar cascades algoritm with bigger and bigger windows like 512 x 512 it may help to solve the problem.
The question is here do you know the unique properties of leaves.
Keep me informed.
Osman24
23-May-13 4:59am
View
Deleted
you can look Apex.WinForms.Controls.ShellListView
Osman24
23-May-13 3:36am
View
Instead of nested gridview you can use nested repeater. Because it is easy to manipulate and change.
Osman24
23-May-13 3:27am
View
Why do not you just insert and use your query with order by Name asc
Osman24
23-May-13 2:54am
View
Haar cascades and face recognition all them is a kind of machine learning. In face recognition actually you collect some datas and according to this data the algorithm can decide whether it is face or not.
To be able to do what you want needs collect images of spesific leaves.
Also haar cascades is best at colored images not at gray-scaled images.
Firstly you must determine unique properties of leaves. For example if the main vessel's shape (I do not know its academical name) you can use block matching or else but I think haar cascades can not achieve this because haar cascades run based on the depth differences.
Once upon a time i used haar cascades for animal face recognition but cows and horses' faces are so similar for haar cascades so it can not recognize correctly.
Sorry for bad english
Osman24
8-May-13 3:51am
View
ok use gvInbox.DataBind(); instead gvInbox.Page.DataBind();
Osman24
8-May-13 3:07am
View
I think you have a problem with pagersettings because there is no closing tag, It might be problem but I can not see any wrong part for this problem. Can you share your codes after correction of pagersettings tag
Osman24
8-May-13 2:27am
View
Can you share Page_Load?
Osman24
7-May-13 10:10am
View
Did you look at IIS session timeout value for your website
Show More