15,892,005 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
Abhijit Ghosh (Subho)
(Top 39 by date)
Abhijit Ghosh (Subho)
25-Nov-14 3:26am
View
I hope you know what you are doing! Anyways show us what you have done and we can go from there.
Abhijit Ghosh (Subho)
25-Nov-14 3:10am
View
What I understand is that you want to simply update the location in the edit event of the gridview. I don't understand why you are bothered about the selected item! See, once you click edit and then update , the gridview event should simply contain code to update the record in the database. Once that is done, simply bind the ddl again and you are done.
Abhijit Ghosh (Subho)
25-Oct-14 4:21am
View
Quite appropriate. I agree. Thank you for that.
Abhijit Ghosh (Subho)
23-Oct-14 7:54am
View
Thanks Bill. Actually I was waiting for the OP to comment if that's what he wanted! If not, then I could try to provide a better and detailed solution. Guess it's solved now.
Abhijit Ghosh (Subho)
23-Oct-14 7:47am
View
Logical approach should be:
1. bind table 2 to gridview
2. use gridview edit template to add your button
3. add code to update table table 1 aganist the button event
Refer http://www.codeproject.com/Articles/36528/GridView-all-in-one
You will get all you need there.
Try it and tell us if you have any problem.
Abhijit Ghosh (Subho)
23-Oct-14 6:42am
View
The question is nearly 1.5 years old. The OP must have done it by now.
Abhijit Ghosh (Subho)
23-Oct-14 6:02am
View
This is excellent. I didn't know about this one.
Abhijit Ghosh (Subho)
23-Oct-14 5:56am
View
Read this: http://www.codeproject.com/Tips/163829/Sending-an-Email-in-C-with-or-without-attachments
There is no need to post your personal contact details here. I don't think people are going to text you the solution.
Have a nice day bro.
Abhijit Ghosh (Subho)
23-Oct-14 5:51am
View
I read the question but I never noticed the date. Only because of your comment. :)
Abhijit Ghosh (Subho)
23-Oct-14 5:46am
View
Why not keep your textbox disabled by default. Set textbox eabled property to true inside the button click event.
Abhijit Ghosh (Subho)
23-Oct-14 5:41am
View
I think that for the average person, it's going to take a few years. I voted 5 because the answer absolutely satisfies the closure property.
Abhijit Ghosh (Subho)
21-Oct-14 3:06am
View
Please improve your question. What do you mean by 'Why Copy' and 'On C#' ?
Abhijit Ghosh (Subho)
21-Oct-14 2:56am
View
vote of 5
Abhijit Ghosh (Subho)
21-Oct-14 2:52am
View
How could anyone except you ever answer that? It all depends on where you want the redirection. Simply call it from there.
Abhijit Ghosh (Subho)
21-Oct-14 2:43am
View
The code seems to be okay. The only problem here is that you aren't calling the Redirect() method anywhere. If you have, lets see that snippet.
Abhijit Ghosh (Subho)
20-Oct-14 12:41pm
View
I didn't get your point.
Abhijit Ghosh (Subho)
20-Oct-14 12:41pm
View
Since you are converting it to a string after all, just convert both stringChars and stringNums to string and concatenate them. It will make the code smaller.
Abhijit Ghosh (Subho)
20-Oct-14 12:33pm
View
vote of 5
Abhijit Ghosh (Subho)
20-Oct-14 6:44am
View
If you didn't notice, FinalString is a char array.
Remove: TextBox1.Text = finalString.ToString();
Add: TextBox1.Text = new string(finalString);
Abhijit Ghosh (Subho)
20-Oct-14 6:33am
View
Must be something at your end. I just tested this. Works fine.
Abhijit Ghosh (Subho)
20-Oct-14 5:41am
View
Why not create your own using Random class? If your problem is that the generated guid is large, just extract a substring from it. If you need a autogenerated number with custom specifications, you have to build your own.
Abhijit Ghosh (Subho)
20-Oct-14 5:02am
View
I can't help you out there. I have absolutely no idea about Windows hook programming.
Abhijit Ghosh (Subho)
20-Oct-14 3:52am
View
Please share the error. Actually just removing the static keyword should give error if you have called the method directly form elsewhere. But tell us in detail what's wrong. And pay heed to what SA has mentioned above, even if it doesn't solve your problem.
Abhijit Ghosh (Subho)
20-Oct-14 3:48am
View
This is odd. Debug and check what value combobox1.SelectedItem holds currently.
Abhijit Ghosh (Subho)
19-Oct-14 9:17am
View
Please improve your question.
What exactly is your problem?
Abhijit Ghosh (Subho)
19-Oct-14 8:27am
View
I don't see how the event GridView1_RowDataBound() is being fired.
I think you have to add onrowdatabound="GridView1_RowDataBound"
Abhijit Ghosh (Subho)
19-Oct-14 8:08am
View
You want us to help steal somebody's code? Like seriously?
Anyways, this is not the way bro.
You can probably build and run it in a few more hours but I doubt that's going to help you.
Good Luck!
Abhijit Ghosh (Subho)
17-Aug-14 7:38am
View
The question was downvoted. An explanation would be nice.
Subho
Abhijit Ghosh (Subho)
17-Aug-14 7:35am
View
Took your advice and wrote it from scratch. The parsing part is complete.
Thank you SA.
Subho
Abhijit Ghosh (Subho)
27-Jul-14 19:24pm
View
what exactly do you mean by that?
like Abhinav said, you must learn html and style sheets and you can use jquery to build even more fascinating menus
to design simple menus on webpages, you can use menu control from the asp.net toolbox
Abhijit Ghosh (Subho)
26-Jul-14 13:10pm
View
where exactly are you facing a problem?
1) while adding the rows to the second datagrid
or
2) adding them to the database
Abhijit Ghosh (Subho)
26-Jul-14 12:04pm
View
Please improve your question. Show us your code and provide a little more detail.
Abhijit Ghosh (Subho)
26-Jul-14 9:44am
View
First you need to check whether the StudList contains all the items, since it is getting the data from the database. Then we can narrow down the problem.
Abhijit Ghosh (Subho)
26-Jul-14 8:30am
View
I wasn't trying to post the exact solution. You can't use ListItem in your case. I was trying to explain why you can't create an instance of ComboBox.
In your case, just these three lines should do it
cb_StudentName.DataSource = StudList;
cb_StudentName.DisplayMember = "StudentName";
cb_StudentName.ValueMember = "StudentID";
But the code has already been suggested previously. It should work fine. If not, what errors are you facing?
Abhijit Ghosh (Subho)
26-Jul-14 7:56am
View
You can read about the ListItem class anywhere. Try msdn.
Abhijit Ghosh (Subho)
26-Jul-14 7:47am
View
Like I was saying you are printing all 20 but you have less inputs. Modify the for loop to run till x.
Abhijit Ghosh (Subho)
26-Jul-14 7:21am
View
I think those are just garbage values. Have a look at your array size and see how many numbers you are storing. Maybe you are not storing anything in some of the array cells whose values you are printing.
Please post your entire code. It's very diificult to say otherwise.
Abhijit Ghosh (Subho)
26-Jul-14 6:57am
View
What do you mean by unwanted numbers?
Abhijit Ghosh (Subho)
26-Jul-14 5:52am
View
You are welcome.
Rate the answer if it solves your issue.
Abhijit
Show More