15,868,016 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 Ganesh KP (Top 151 by date)
Ganesh KP
27-Nov-16 1:30am
View
I don't understand the necessity of creating controls dynamically in your situation. Well if you want to create control's dynamically, you can create it and need to save the created controls in a session or some other way and retrieve them on a post back and draw it on your web page.
We can able to give you more suggestions depends on your exact requirements.
Ganesh KP
27-Oct-15 2:59am
View
This is not a freelancing site to post your requirements rather than this is a q & a forums site to query your answers.
If you are looking to develop a similar kind then, a simple google search might helps to get many answers.
Ganesh KP
24-Mar-15 6:43am
View
I guess the error nothing do with your logic. Make sure that you have a valid connection string and place the statements in try... catch and find the exception.
Ganesh KP
12-Mar-15 2:34am
View
What you are trying to do, your question is incomplete. If you want to show the data for any control in code behind, you should give "Name" property value in Xaml and try to access from the code behind. If this is your query then do it or is some thing different you are trying to ask, make sure that you should frame the question completely.
Ganesh KP
11-Mar-15 9:42am
View
What you are trying to ask? Just posting a code does not give any solution, a low rated question and minus points.
Try to frame the question correctly.
Ganesh KP
10-Mar-15 9:30am
View
Have a windows service or can it be a schedules tasks running on the WPF application button click and as on automatic windows login. So either way you can control the running and stopping the service.
Look for a solution like how to create a background service or a make a scheduled tasks in dotNet.
Ganesh KP
12-Feb-15 4:49am
View
Specify more about the problem, there are many problems which might be causing the error. See microsoft's answers for dispatcher exception.
https://msdn.microsoft.com/en-us/library/system.windows.application.dispatcherunhandledexception(v=vs.110).aspx
You need to debug and find what is causing the exception which main UI thread was unable to catch.
Ganesh KP
12-Feb-15 4:43am
View
When is the usercontrol will be hide and shown? I mean do you have any event to control the show and hide of the user control?
Was the behavior is same in two servers? Might be some script was not supported in the server which is causing all or some time not to trigger the event to show and hide.
It would be helpful if you could paste some code related to hide and show and on which scenario are you doing the show and hide.
Ganesh KP
12-Feb-15 4:38am
View
I guess that you might be creating a new instance of the VariableHolder when you are actually moving to second page. In that case you will all new values. To achieve the functionality of what you asked, is, either create a static class of Variable Holder or else, pass the data from one page to another by using a public property or else a parameter to the control (page2).
Ganesh KP
12-Feb-15 4:35am
View
What type of installation procedure are you following?
You can use uninstaller to do or else you can use an update which will ask to uninstall the previous versions (if any) and then installs a fresh copy.
Coming to the database, are you restoring the database again after new installation? I guess when you restore a database, it will copy into C:\\ location.
But not very sure about the database issue unless and until if you can provide a few more details of the same.
Ganesh KP
12-Feb-15 4:15am
View
Make sure that you are executing the query on the specified database where that table exists. Also try by removing 'dbo'.
Ganesh KP
12-Feb-15 4:13am
View
As Maciej said, we need the structure of the table with a clear question format to answer your question.
Ganesh KP
12-Feb-15 4:11am
View
@Prabhu, please form the question clearly. It was totally confusing with no punctuation's at appropriate places.
Ganesh KP
12-Feb-15 4:07am
View
How are you reading data from Xml file? You might be using some object to hold the data and you might be using that object bind to gridview. Now use the same object to save the data into database. Don't think about saving data from gridview to database, it will be difficult and not a right or recommended way when you have an easy method of doing so.
Try it and do let us know what's your output.
Ganesh KP
25-Jan-15 3:54am
View
Reason for my vote of 3 \n Good for providing a good article with clean contents.
Will be much good, if you can provide an article on how to do with database also.
Ganesh KP
6-Sep-14 10:13am
View
What is Student and teacher here? Can you give some more information?
Ganesh KP
31-Aug-14 5:45am
View
Why do you want to create a php file? Can you tell me how does a PHP file look like and what kind of data does it contain?
Even if you send a php file to server- how are you going to parse the file to read data from that file.
I am not really sure what you are going to achieve. Try to get some more information on what you want to do.
It really helpful for others to resolve your problem quickly.
Ganesh KP
22-Aug-14 8:58am
View
Okay good...
Ganesh KP
14-Aug-14 10:09am
View
As many people suggested, use RegEx for validating the correct input. It will help you in solving complex problems with little effort.
For reference use this link
Link
Ganesh KP
24-Jul-14 15:29pm
View
Reason for my vote of 3 \n Provide reasons why this error comes and then provide a solution.
But appreciates your article.
Ganesh KP
15-Jul-14 12:30pm
View
I think @Sergey gave you the answer for you. Create a property of your object that have all the properties that you need to bind to the control and call from main window and set, it. Its easy job.
Ganesh KP
18-Jun-14 2:14am
View
Thanks for your answer. It helps me.
Ganesh KP
19-Apr-14 6:12am
View
Try these links also
http://stackoverflow.com/questions/9360791/visible-property-of-asp-net-control-not-working
http://stackoverflow.com/questions/11309171/asp-net-update-panels-and-postback
Ganesh KP
19-Apr-14 6:12am
View
I think because of postback the page is getting refreshed and set the state of a page to the initial first time load. So, can u please post the code of where you are trying to do set the visibility of the control.
Ganesh KP
19-Apr-14 5:58am
View
You need to provide some more information like your stack trace and put a break point and check what does the error actually and from where does it comes.
Its better if you could post the code.
Ganesh KP
19-Apr-14 5:39am
View
Question was completely unclear to me @guru, can u explain or rephrase your post.
Ganesh KP
17-Apr-14 0:06am
View
Please give some more clarity regarding your question. I assume that you want to delete a selected record or row from a grid view on a button btnDeactivate click. Am I right?
And also what your code is doing, I am not very sure about it, please add a necessary comments like what error you got it and what needs to be done.
Ganesh KP
17-Apr-14 0:03am
View
good, so you solved your own question. As @Rahul suggested don't leave the question unanswered, better to give a clear and clarity answer.
Ganesh KP
15-Apr-14 2:53am
View
Where you want to read the excel file? You have given two questions, how to read and how to open? Which is your question? Please give some clarity regarding your question.
Ganesh KP
13-Apr-14 22:44pm
View
Is the selectionChangedEvent is firing? Put a break point and check it once, if the event is firing and whether the data is coming i.e selected record.
Ganesh KP
13-Apr-14 6:22am
View
Can you post the stack trace of your exception?
Ganesh KP
13-Feb-14 10:20am
View
I didn't worked on Crystal reports before but thinking logically, create one more property in your class and make the total before sending it to the report and bind the total amount control to TotlalAmount property.
Ganesh KP
13-Feb-14 10:06am
View
If you are buying a thermal printer, then you can ask the API provided by the manufacturer, but if they doesn't provide the API at least you can ask them command code where you can send and receive the data via printer. And also mention in your question as to which type of thermal printer you are targeting either a USB or bluetooth or a wifi printer. I have worked on a bluetooth thermal printer but from Android, if you need a sample of it then I can send across your mail.
Ganesh KP
26-Jan-14 23:58pm
View
Please post some more code to make us understand @wang.
Ganesh KP
26-Dec-13 23:27pm
View
seems you are asking two diff. questions in a single go. your header question says "how to read from dataset..." and another question asking for "calculate number of edges...." which is your question? Please give clarity question so that it is easier for others to answer your question and you will get the correct info soon.
Ganesh KP
25-Dec-13 12:13pm
View
i totally agree with idle63, dont make life harder with unnecessary things. use tab control to do that and make your life better and easier.:)
Ganesh KP
23-Dec-13 1:15am
View
I think u are saving relative path in your database (like images/file name...) and when u retrieve the file path from the database, check with the absolute path (like YourprojectDirectory/ImagesFoldername/Filename) and check in your windows explorer. if the image is shown opened in your folder then I think it is wokring if it not showing, then there is a problem with your image path.
try that and let us know.
Ganesh KP
18-Dec-13 9:29am
View
best thing u can do is get all the data before or on page loads and when ever user enters some data (probably a key press event) search for a products that start with or having the entered text. In this way you can save a lot of traffic to your database and I hope this is the best method to do.
Ganesh KP
18-Dec-13 9:06am
View
what you are trying to achieve?
Ganesh KP
17-Dec-13 21:29pm
View
read the selected records from the gridview into some kind of DTO ( a class object) and use the columns (properties in a DTO) which ever you want. Its so simple, don't make it more complicated.
Ganesh KP
17-Dec-13 9:13am
View
totally confused with the question, any one can help me to understand the question?
Ganesh KP
12-Dec-13 12:03pm
View
Can u please tell what controls you are using? Is it ASP.Net controls or HTML controls inside a grid view? What did u tried so far?
Ganesh KP
11-Dec-13 12:15pm
View
Syntax might be different with Vb.Net and Java but if you consider overall functionality then it should work, so tell us what is your games does? then try to replicate the same thing in Java or PHP what ever language you like, no matter, the over all logic will remain same every where. Dont try to convert to line by line, it mights leads to extra burden and leads to errors.
Ganesh KP
11-Dec-13 4:10am
View
From where you are downloading the songs? Do all the songs are in the single url? Please provide complete question so that every one can answer.
Ganesh KP
11-Dec-13 4:08am
View
It seems it is not possible to see whole world in a single go from this post http://stackoverflow.com/questions/17561414/display-the-whole-world-with-maps-api-v2
I dont think no one will ask for whole world to see at a time.
Ganesh KP
10-Dec-13 23:49pm
View
Try to move the controls initialization to onCreate() method.
Ganesh KP
10-Dec-13 1:39am
View
What are you trying to achieve here? really I did not understand what you are going to do sorry man.:'(.
Please try to explain atleast what you want to do in simple terms.
Ganesh KP
9-Dec-13 2:29am
View
for more info see this link too http://social.msdn.microsoft.com/Forums/en-US/599ed74a-ad3d-451e-9a41-551900c542da/returning-object-from-webservice
Ganesh KP
9-Dec-13 2:28am
View
I think we can return an Object, as an Object is also a base data type, try to create a sample service which returns an object and consume that in your application.
Ganesh KP
9-Dec-13 2:26am
View
if it is a normal usb printing then this link might helps you http://stackoverflow.com/questions/6911258/sending-data-to-usb-printer-in-c
Ganesh KP
9-Dec-13 2:22am
View
Do u want to print complete cheque or you just want to print in the blanks provided in the cheque.
To print the complete cheque, it is easier when printing the blanks on the existing cheque because, alignment will make u cry and dry to get a perfect print.
Ganesh KP
6-Dec-13 4:12am
View
sounds interesting, you can do it using background services in android, you can trigger that service when ever particular app is invoked like you can invoke your app when there is a incoming call or like that. You can calculate the start time and end time of the app when your games starts and can save either in local database or can update to server database via some webservices.
looks like you have a good techie brain. you need to separate the kind of operations that you have to perform in your app like
1. You have to write a background service
2. You have to invoke your app when ever a particular app in your mobile is invoked and do certain operations like get the app id, and start time and end time and using your service you have to update either local database or server via webserivces.
hope you understands what I mean to say, if not then comment here below.
Ganesh KP
5-Dec-13 0:21am
View
Where you want to do, using WPF in XAML or in code behind, give us complete question to answer.
Ganesh KP
3-Dec-13 6:33am
View
Writing such a huge code will not help you instead of that tell what do you want to achieve? Yes controls created dynamically will be lost after post back, you need to keep all the controls in a stack and after each post back again have to read from stack and add back to your UI that is the actual approach.
Ganesh KP
1-Dec-13 11:58am
View
Please provide some more info about what do you want to do so that it is easier for others to answer your question.
Ganesh KP
1-Dec-13 11:53am
View
seems incomplete code, how can I answer this?
Ganesh KP
1-Dec-13 8:43am
View
I think the way he writes the code is of no use to any one because the code seems do nothing. Instead of write some server side code where you dynamically adds the question and answer to the UI elements and from there you can read the user inputs.
this way of coding is not good, suppose for example your quiz has 100 questions then in that case you are going to write 100 div's, 100 para elements and 100 input elements. This is absolute way of wrong coding standards.
Ganesh KP
1-Dec-13 8:29am
View
I could not understand what you are trying to achieve? Can u please elaborate what you want to do? As far as I understand from your words is that you want to combine all the tables and make one single table and when you combine each table you want to add the table name in a separate column for each record. Am I right? If my assumption is right, you can do it one way, try to read each table name and check if there is any data in each table, if there is data add to new table with the column name changes with the old table name. loop through until you reach end of tables. Try in this way, hope this helps.
Ganesh KP
29-Nov-13 9:59am
View
Did u tried of setting the target platform to dotNET 3.5 instead of 4.0 or 4.5 from the project properties section? To do that Right click on your project and Click on Properties and in the left side pane, select Application and set the Target Platform to 3.5 and try. I hope this will work and if it doesn't work then post it again what error u got latest.
Ganesh KP
18-Nov-13 23:12pm
View
this is absolutely part of Artificial Intelligence coz how can we determine which word will sufficient at which sentence? Needs a parser to work with this.
Ganesh KP
18-Nov-13 13:05pm
View
thanks Chill60, actually I have not seen solution1 when I posted my solution, seems both the solutions same. My internet connection is too slow to come up with the whole page loading.
Ganesh KP
18-Nov-13 12:57pm
View
What is dateTimePicker1 here? Is it a DateTimePicker control or a textbox? If it is a datetime picker control, then I think u have to get the text by dateTimePicket1.Value.
What is the exception you are getting, paste the exception too and what line you are getting the exception? Paste the whole @durantvanzetty
Ganesh KP
17-Nov-13 23:26pm
View
The output you have shown is the expected output and AutoIncrement will increment automatically when u add a row and it will not decrement or re-adjust with other rows if you going to delete any rows. If you want to achieve that behavior then you have to use another column with Row_Index and you have to do manually every time when u update/delete the row. Offcourse you can run a script every time when you perform an update/delete operation which does the Row_Index set automatically.
Ganesh KP
15-Nov-13 13:38pm
View
Incomplete question, How u want to do either asp.net or windows or wpf? What did u tried so far? Give proper questioning format so that others can answer your question quickly.
Ganesh KP
14-Nov-13 23:46pm
View
You can send the exception message from your wcf web service to your android app and show in an alert dialog box.
Ganesh KP
14-Nov-13 13:05pm
View
Can u explain the question more clearly? Where you want to insert the password? Where you are typing the Username and Where it is inserting into new filed? Which controls you are using? Is it HTML or ASP.Net or some third party controls? If you are not providing question clearly, no one can help you with answer, the first thing requires when a question is being asked is a clear explanation of what you want to achieve? what did you try till? What you want to others to help you with? I think you got what I mean to say dude?
Ganesh KP
13-Nov-13 21:24pm
View
Try to add project reference instead of dll reference.
Ganesh KP
13-Nov-13 0:41am
View
I think the problem is not with the missing dll. Which Crystal Reports are you using? Did u install Crystal Reports in your machine? Check in C:\Windows\Assembly. If crystal reports are installed then it will show up there.
Ganesh KP
12-Nov-13 12:17pm
View
Hi Hussain, I think you can use Voice to Text conversion and can achieve this task. Try to search for Voice to Text Conversion in C#, you might get many results like
Link1
or
Link2
Ganesh KP
12-Nov-13 12:05pm
View
Hi Reji, can u try this way of assigning a click event dynamically
button.Click += Your_Method;
public void Your_Method(Object sender, RoutedEventArgs e)
{ //Rest of the code goes here where u can call the page to open}
try this way, I think it might works and if it does n't work, let us know
Ganesh KP
11-Nov-13 22:42pm
View
Hi Harshada, the code is very difficult to read and answer to your question. There are no comments mentioned any where in the code, try to separate each method and also mention comments for each method, so that is will be easier for every one to look at and to answer. Hope u understands.
Ganesh KP
10-Nov-13 23:36pm
View
Hi Yogesh, see this link, it might helps you
Link
.
Ganesh KP
10-Nov-13 12:01pm
View
Hey, please post the question in English and also you need to tell what you want to achieve and what problem did u faces?
Ganesh KP
30-Oct-13 12:32pm
View
Too much of code and am unable to figure out whats the problem? Never paste code alone, the code alone does not help the viewers to answer your question. We need a simple explanation of your doubt? @MrChang
Ganesh KP
14-Oct-13 9:38am
View
Hi Hopkins, what value u r getting in TextBoxEA.Text value, just put a breakpoint and check whether you are getting any values before u insert and also please paste the error you have got, so that it is easier to others to debug and get u the answer so easily.
Ganesh KP
29-Sep-13 14:16pm
View
Hi dude, please post your html code too, its very difficult to find the solution to your problem with simple css itself.
Ganesh KP
28-Sep-13 14:32pm
View
I think with the id assigned to this hyperlink, you can set visible to true or false in your html.
Ganesh KP
28-Sep-13 13:57pm
View
Try to add the references of that particular dll in your project and rebuild it and try. Sure you project get build succeeded.
Ganesh KP
28-Sep-13 13:52pm
View
Hi Narsimhan, I am very sorry that I could not understand your requirment. Can u please tell us clearly what do u want to do exactly?
Ganesh KP
28-Sep-13 2:27am
View
Hi Amit, as far as I understand from your query, you have a list with some x no.of items, and on selecting one item in the list you want to update some data in another update panel. this is what I understand from your query.
I think u can get the selected item from one list and based on the selected item value, u can do what ever update you want to do it.
also please mention clearly what your query was and which controls you are using, which technologies you are working on? Please mention clearly about every thing, that makes others to answer to your query.
Ganesh KP
22-Sep-13 2:42am
View
Hi Komail, I have a small doubt here in u r question, You want to add a new column to asp.net grid control right? and also please explain your question clearly, it is little confusing.
Ganesh KP
20-Sep-13 8:45am
View
Is it a programming error or some what related to your domain maintenance? then you better consult the domain seller. @Krishna97
Ganesh KP
20-Sep-13 8:43am
View
Really, I am so worried that I can't understand your question @Anil Kumar. Please specify clearly bro.
Ganesh KP
20-Sep-13 8:39am
View
When u put a breakpoint what value are you getting to the groupQuery? If you are not getting any value, try to run sql statement first against the database and see whether you are getting any results.
Ganesh KP
14-Sep-13 5:10am
View
Where are you declaring your picturebox1? I think the object is not int the scope of your class. try to create as public and do.
Ganesh KP
10-Sep-13 10:55am
View
Please use this site for good purpose. I didn't understand which button u clicked on and what u did not get and What you are trying to achieve? Please specify clearly.
Ganesh KP
7-Sep-13 7:05am
View
Use AsyncTask to do all network related operations for Android version 2.3 and above, other wise your app will crash. see this link for how to use
AsyncTask
Ganesh KP
7-Sep-13 6:37am
View
Hi Naser, I have some questions to u. You said that you want to send data to desktop version and get update there. My question is if u want to send the data to desktop version, there should be some app which recieves the data that sends from your mobile. I mean how can a desktop can recognize that this data recieving should be for your desktop app. I think this is not possible if u dont have any specialized app meant for only your desktop and also your bluetooth should always hear your one connection in order not to loose any communication.
My suggestion is make an mobile app which will do the operations like updating and inserting (and what ever operations u want) and updates in a centralized database and in ur desktop app, for every x min, check the database for any new updates and if u have any updates then reload the data with new data and in similar way, get the data for every xmin in u r mobile app if any new data is updated.
I hope this is the easiest method. But I think if u want only through bluetooth communication, then you need to send data in some file format and then parse the file in u r desktop and make further progress.
any help, just post comments
Thanks
Ganesh
Ganesh KP
7-Sep-13 6:21am
View
Hi Himanshu, I think the two main activities that your app should do is first get the list of contacts and bind to the ListView and when click on the Listview a IntentService should be done to make a call or sms or some other external operation.
Ganesh KP
7-Sep-13 6:06am
View
have u keeping track of logcat and if u see the logcat data u can get what exception it was?
Ganesh KP
7-Sep-13 2:44am
View
Hi ingenis, Are you getting any exception? Please post your Logcat and use pastie.org to post your log cat or any sort of code.
Ganesh KP
7-Sep-13 2:17am
View
Hi, I am really confused with your question. What do you want to do exactly? You can have buttons of Ok and Cancel to the date picker to close the calendar when ever you does not require the datepicker or calendar.
If this is not the your query, please specify it clearly what do you want to achieve?
Ganesh KP
7-Sep-13 2:08am
View
Hi Ashish, You want to make an activity as a common useer control that can be used in many places. Am I right?
Can u post your log cat? Please use pastie.org to post your log cat or any sort of code. and just go through the links
http://stackoverflow.com/questions/8821240/android-how-to-create-my-own-activity-and-extend-it
and also check this
http://stackoverflow.com/questions/8080212/android-cannot-start-android-class-that-extends-activity-from-another-activity
if any doubt please post your query here...
Ganesh KP
6-Sep-13 1:07am
View
hey Why you started this question in another new question instead of continuing in the old discussion?
http://www.codeproject.com/Questions/648796/want-an-export-print-option-in-my-app-or-how-to-im
Ganesh KP
6-Sep-13 1:04am
View
App development using ASP.Net? I never heard about that doing app development with ASP.Net. I thought you mean of developing mobile pages with ASP.Net, then it sounds good and you can do that like a normal web page development and you need to concentrate on certain things like responsive design of your UI.
hope this helps
http://www.abookapart.com/products/responsive-web-design
Ganesh KP
6-Sep-13 0:31am
View
I think you almost done with your task and only thing is reminding you is the correct url to get the time line tweets. Am I right? @Member 10239936
Ganesh KP
6-Sep-13 0:29am
View
I hope that if u are creating an app which is a cross platform application, then it might works in all devices, but I am not sure about this because I didn't work on NFC any time and also on Crass platform apps.
Ganesh KP
6-Sep-13 0:07am
View
First of all this is not a single question.
In what format do u want to export your report? Excel or PDF?
and How do you want to print through wireless or bluetooth?
and do u want to take the backup of your app? I can't get what is the back up of ur app? Do you mean the data of your app to be some where in centralized server?
Please specify the question in clarity so that you will get a clear answers.
Ganesh KP
5-Sep-13 10:56am
View
Even I am waiting for the same since long time, but I didn't find it and every one tells that Eclipse is the best tool than any thing, but I didnot find any thing more easier for a rich and good UI to develop with Eclipse. Well some says
FluidUI
is good for some UI design, but not completely. Even I am looking for great UI design tool to have a blasting UI interface for my app. @prabhu19
Ganesh KP
4-Sep-13 0:34am
View
Try to move the network operation to AsyncTask class and in AsyncTask class write the code for getting the tweets from twitter and onPostExecute() update the listview. Some times you are not allowed to do network operations in normal UI thread. Try that and let us know if u r facing any problems.
Ganesh KP
4-Apr-13 5:50am
View
I want to develop an app with metro interface like in Win 8 and I know normal wpf application but dono how to get those interface @Seregey
Ganesh KP
29-Jan-13 3:21am
View
Venkatesh Please post the code of Jquery and code of ASP Control.
Ganesh KP
17-Dec-12 2:38am
View
also tried this type , but still same problem persists
Ganesh KP
17-Dec-12 2:36am
View
How can we know whether a response or request is happened? is this is possible with firebug huh?
Ganesh KP
13-Dec-12 22:35pm
View
No Boss, it works long back when I worked with some project in the similar manner, but this time it is giving a lot of trouble. and I tried also in the same way what u said but still the problem persists. I hope u understand my problem clearly. if don't Please again post for new comment
Ganesh KP
13-Dec-12 22:33pm
View
Yes it is on page load using javascript i.e $(document).ready(function())....not only I am using this function on page load but also in some Onclick events for HTML buttons. in either way I am unable to go to either success or error functions but when I keep a break point at the start of the fun yes, the controls is going to the pass the break point. and another problem is that it is working only in some browsers, I dont understand why this is happening and I am getting doubt whether the procedure that I followed is correct or not to call a web service using ajax in javascript.
Ganesh KP
13-Dec-12 4:02am
View
the menu is hide based on the login user again why should I hide again and again when ever I have alert message and I have many alert messages, for reference Please see above comment for code how I am hiding the div's
Ganesh KP
13-Dec-12 3:59am
View
if (LoginUser == 3)
{
$("#AdminMenu").attr('class', 'MenuCSS');
$("#UserMenu").attr('class', 'MenuCSSHide');
GetAllItemsOnLoad();
}
else {
$("#AdminMenu").attr('class', 'MenuCSSHide');
$("#UserMenu").attr('class', 'MenuCSS');
}
Ganesh KP
13-Dec-12 3:59am
View
Thanks Boss, yes I did in the same way but but not with js function just added a css attr like below
if (LoginUser == 3)
{
$("#AdminMenu").attr('class', 'MenuCSS');
$("#UserMenu").attr('class', 'MenuCSSHide');
GetAllItemsOnLoad();
}
else {
$("#AdminMenu").attr('class', 'MenuCSSHide');
$("#UserMenu").attr('class', 'MenuCSS');
}
however the div's which are hidden one are visible at the time of message box alert time that's it. Can we fix this also? Please share the code thanks
Ganesh KP
11-Dec-12 23:23pm
View
but I am able to run the web service in some browsers like IE and in some PC's it is working in All browsers. I don't get what the actual problem was? but u are telling that use serialization, however I have written one service long back but it works fine without any problem then I didnot use any serialization concept.
Ganesh KP
22-Nov-12 23:16pm
View
Naoh I am not using any serialization? Does it is mandatory to use seralization?
Ganesh KP
10-Nov-12 4:03am
View
I have a lot of code that deals with the service? Which part should I need to post that code that interacts with the service. then here it is?
function GetAllItems()
{
var aid = 1;
var param = '{"AgencyId":"' + aid + '"}';
try
{
$("#lblLoading").html("Loading Please Wait...");
$.ajax
({
type: "POST",
async: false,
contentType: "application/json; charset=utf-8",
url: WebSvcUrl+"/GetAllItems",
data: param,
dataType: "json",
success: OnSuccessGetAllItems,
error: OnFailOfGetAllItems
});
}
catch (err)
{ alert("There was a trouble in Get All Items. Please Try again"); }
} // of Get All Items
function OnSuccessGetAllItems(msg)
{
try
{
AllItems = msg.d;
$("#AddItemDiv").hide('slow');
$(".txtboxCSS").attr('disabled', 'disabled');
$(".txtareaCSS").attr('disabled', 'disabled');
$("#lstItemCode").attr('disabled', 'disabled');
if (AllItems.length == 0)
{ $("#lblLoading").html("No Results Found!"); }
else
{ $("#lblLoading").html(""); }
$("#DivItemRes").html('<label for="Caption" style="font-family:Verdana ; font-size:larger; font-weight:bold; font-variant:small-caps; color:#5190cf;">Result Panel</label><div class="gapDiv"></div>');
for (x in AllItems)
{
ThisItem = AllItems[x];
$("#DivItemRes").append('<div id="Item_' + ThisItem.ItemId + '" class="subdiv">' + ThisItem.ItemType.Itemname + '</div>');
$("#DivItemRes").append('<div class="gapDiv"></div>');
$("#DivItemRes").show(1000);
}
}
catch (err)
{ alert("There was a trouble in Get All Items. Please Try again"); }
} // on func succ get all items
function OnFailOfGetAllItems(request, status, error)
{ $("#lblErrIname").html("Error Occured in Get All Items<br>" + request.responseText); }
similarly all other javascript functions that are interacted with service will be alike Mr Al MOje
Ganesh KP
10-Nov-12 4:03am
View
Deleted
I have a lot of code that deals with the service? Which part should I need to post that code that interacts with the service. then here it is?
function GetAllItems()
{
var aid = 1;
var param = '{"AgencyId":"' + aid + '"}';
try
{
$("#lblLoading").html("Loading Please Wait...");
$.ajax
({
type: "POST",
async: false,
contentType: "application/json; charset=utf-8",
url: WebSvcUrl+"/GetAllItems",
data: param,
dataType: "json",
success: OnSuccessGetAllItems,
error: OnFailOfGetAllItems
});
}
catch (err)
{ alert("There was a trouble in Get All Items. Please Try again"); }
} // of Get All Items
function OnSuccessGetAllItems(msg)
{
try
{
AllItems = msg.d;
$("#AddItemDiv").hide('slow');
$(".txtboxCSS").attr('disabled', 'disabled');
$(".txtareaCSS").attr('disabled', 'disabled');
$("#lstItemCode").attr('disabled', 'disabled');
if (AllItems.length == 0)
{ $("#lblLoading").html("No Results Found!"); }
else
{ $("#lblLoading").html(""); }
$("#DivItemRes").html('<label for="Caption" style="font-family:Verdana ; font-size:larger; font-weight:bold; font-variant:small-caps; color:#5190cf;">Result Panel</label><div class="gapDiv"></div>');
for (x in AllItems)
{
ThisItem = AllItems[x];
$("#DivItemRes").append('<div id="Item_' + ThisItem.ItemId + '" class="subdiv">' + ThisItem.ItemType.Itemname + '</div>');
$("#DivItemRes").append('<div class="gapDiv"></div>');
$("#DivItemRes").show(1000);
}
}
catch (err)
{ alert("There was a trouble in Get All Items. Please Try again"); }
} // on func succ get all items
function OnFailOfGetAllItems(request, status, error)
{ $("#lblErrIname").html("Error Occured in Get All Items<br>" + request.responseText); }
similarly all other javascript functions that are interacted with service will be alike Mr Al MOje
Ganesh KP
24-Oct-12 12:41pm
View
I have done I am able to extract the div from seperate page but I am unable to access the div in my current page where I pasted the cut div. I am asking how can I do that.Please post some sample example.
Ganesh KP
21-Oct-12 8:52am
View
Well in that senario I want only single div from that page but here it is pasting whole page which is not supposed to be and also I want to access the controls? can I do it?
Ganesh KP
21-Oct-12 8:49am
View
Noah Boss we can do I have done but I am unable to get access the controls that 's I am asking how can I solve it?
Ganesh KP
18-Oct-12 23:29pm
View
I have used the condition but when I am not in Admin.aspx page it is thorwing error as "Unable to get the value of the property style:object is null or undefined"
What cause this error here is the code I have used
var containsFoo = currentUrl.indexOf('Admin.aspx');
if (containsFoo != -1) {
if (document.getElementById(DivId).style.display == "none") {
document.getElementById(DivId).style.display = "block";
}
else {
document.getElementById(DivId).style.display = "none"; //Error is coming here as above stated error.
}
}
else {
if (document.getElementById(DivId).style.display == "none") {
document.getElementById(DivId).style.display = "block";
}
else {
document.getElementById(DivId).style.display = "none";
}
window.open("Admin.aspx", "_self");
}
Ganesh KP
18-Oct-12 0:36am
View
I cant understand what you say? Even I move my code to that specific page how I am able to do that div open after that page has loaded, see here I am using that specific page in many ways to display all the necessary summary info and to search by Id option etc. so I cant do so in that way?
Ganesh KP
18-Oct-12 0:33am
View
In my code I have checked the Current Browser Url and if it is a Admin.aspx page then I am just opening the div in that page, when the current page is not admin.aspx then I am opening the admin.aspx page and after that particular div. but I am unable to do so that means I am able to open the div but not able to open the div after that page is opened. what may be the problem.
Ganesh KP
18-Oct-12 0:33am
View
Deleted
In my code I have checked the Current Browser Url and if it is a Admin.aspx page then I am just opening the div in that page, when the current page is not admin.aspx then I am opening the admin.aspx page and after that particular div. but I am unable to do so that means I am able to open the div but not able to open the div after that page is opened. what may be the problem.
Ganesh KP
17-Oct-12 2:00am
View
The error is showing that connections were in use and max pool size was reached. so what can I do to get the data from the database.
Is there is any other way to overcome this problem.
Ganesh KP
16-Oct-12 7:55am
View
Yeah I have seen that Please provide some example on how you tell to do that?
Ganesh KP
16-Oct-12 7:54am
View
Thanks but can you please mention on how to make that in small example Aman
Ganesh KP
16-Oct-12 7:47am
View
I want to make my SQLConnection visible through out my service.
Ganesh KP
9-Oct-12 1:36am
View
Noah I didnot get any errors it is just saying Success, but the db has not updated in my service.
Ganesh KP
8-Oct-12 14:52pm
View
Can you Please give me some example what I need exactly? Sergey
Ganesh KP
8-Oct-12 5:58am
View
Thanks Sergey , Can we commit this with using ASMX Web Service like our Desktop app will send some data to the service and can receive the data from asmx service.
Ganesh KP
7-Oct-12 10:04am
View
I have tried the code the same in my asp.net code but it shows an error
"Object reference not set to an instance of an object."
What can I do now?
Ganesh KP
7-Oct-12 9:36am
View
Thanks Sandip, Can we do Cross page posing using Javascript?
Ganesh KP
6-Oct-12 14:08pm
View
So What is the difference if we add runat="server" then it becomes like a normal ASP Control what is the use of having again HTML Control?
Ganesh KP
4-Oct-12 23:38pm
View
Yes I have done this way but I am un able to go. All I want is that to Update the session value using javascript. I know that we cannot update the session variable using javascript but with the combination of Js and cookies it can be done but I didnot know how to do that. So Please tell me an alternative way of doing this.
Ganesh KP
3-Oct-12 4:29am
View
I have pasted the code in my doc.ready function but doesn't work. I have tried also calling that function onclientclick for menu item even then also not works. So Please tell me what to do and where to call exactly.
Ganesh KP
1-Oct-12 1:46am
View
How about if we want to disable only one menu item in asp menu using javascript. Please Post the answer here.
Thanks
Ganesh
Ganesh KP
28-Sep-12 1:35am
View
Thanks Kumash
Here is my code
<div id="ItemsDiv" align="left" class="invoptDiv">
<label for="Caption" style=" font-family:Verdana ; font-size:larger; font-weight:bold; font-variant:small-caps; color:#5190cf;">Inventory Item</label>
<label for="Name" class="showLBL">Name :</label><br />
<div class="showTxtDiv"><input type="text" id="txtItemname" class="txtboxCSS"/></div>
<label for="Make" class="showLBL">Make :</label><br />
<div class="showTxtDiv"><input type="text" id="txtMake" class="txtboxCSS"/></div>
<label for="Model" class="showLBL">Model :</label><br />
<div class="showTxtDiv"><input type="text" id="txtModel" class="txtboxCSS"/></div>
</div>
and it is my EventDiv.
<div id="EventDiv" align="left" class="invoptDiv" style="display:block;">
<label for="Caption" style=" font-family:Verdana ; font-size:larger; font-weight:bold; font-variant:small-caps; color:#5190cf;">Event Details</label>
<label for="Make" class="showLBL">Name :</label><br />
<div class="showTxtDiv"><input type="text" id="txtName" class="txtboxCSS"/></div>
<label for="Name" class="showLBL">Event Start Date :</label><br />
<div class="showTxtDiv"><input type="text" id="txtStartDate" class="txtboxCSS"/></div>
<label for="Name" class="showLBL">Event End Date :</label><br />
<div class="showTxtDiv"><input type="text" id="txtEndDate" class="txtboxCSS"/></div>
<label for="Model" class="showLBL">Location :</label><br />
<div class="showTxtDiv" style="height:auto;">
<textarea id="txtLocation" class="txtboxCSS" rows="3" cols="17"></textarea></div>
<label for="Model" class="showLBL">Description :</label><br />
<div class="showTxtDiv" style="height:auto;">
<textarea id="txtEventDescription" class="txtboxCSS" rows="3" cols="17"></textarea></div>
<br />
<%--Event Despatch Combo Box--%>
<label for="EventDespatches" class="showLBL">Event Despatches :</label><br />
<div class="showTxtDiv">
<select id="cmbEventDespatch" class="txtboxCSS" önchange="javascript:GetEventDespatch();">
<option selected="selected" value="0">Select</option>
<option value="1">Event DespatchId 1</option>
<option value="2">Event DespatchId 2</option>
<option value="3">Event DespatchId 3</option>
</select></div>
<%--Event Despatches Combo Box--%>
<br />
<%--Despatch Container Combo Box--%>
<label for="DespatchContaoiners" class="showLBL">Despatch Containers:</label><br />
<div class="showTxtDiv">
<select id="cmbDespatchContainers" class="txtboxCSS">
</select></div>
<%--Despatch Container Combo Box--%>
<br />
<%--Container Items Combo Box--%>
<label for="ContainerItems" class="showLBL">Container Items:</label><br />
<div class="showTxtDiv">
<select id="cmbContItems" class="txtboxCSS">
</select></div>
<%--Container Items Combo Box--%>
<br />
<%--Single Items Combo Box--%>
<label for="SingleItems" class="showLBL">Single Items:</label><br />
<div class="showTxtDiv">
<select id="cmbSingleItems" class="txtboxCSS">
</select></div>
<%--Single Items Combo Box--%>
<br />
So I think you have got my problem I want to display the Items DIv when I click Items link and also when I click Events Div I want that div to be under the events div. i.e where ever I want I can be placed. and I donot got any error I donot know how to add using javascript. Hope you have got my complete problem.
<div class="showTxtDiv" align="cente
Ganesh KP
7-Sep-12 8:00am
View
Hi Graus I have created own class and then created an object to that. still the same error persists me. I think the web service is unable to take the parameter that is sent from the JQuery. What else can we do in another way.
Ganesh KP
29-Aug-12 2:40am
View
Hi Christian Graus Could you Please give me a sample code regarding what you are saying
Ganesh KP
20-Aug-12 3:00am
View
Deleted
I didnot understand what you are saying?
What's wrong in my code?
Ganesh KP
15-Aug-12 13:41pm
View
Yes it is same in manner but I want to call that service using JQuery.
How can I do this? Please do reply if you have any answer
Ganesh KP
15-May-12 11:08am
View
Thanks I have seen that article, its work fine when I click the edit button, but I want to show them as * when I display the password and also in edit password.
Ganesh KP
10-May-12 3:29am
View
I mean Can we Save automatically as soon as we press Ctrl+X to some folder then the contents are back up. So even if the power is gone, data is not lost as we have them a back up aside.
Can we do this by using registry settings.
Ganesh KP
10-May-12 3:26am
View
Noah I am talking about Pure Tablet only and If I choose Windows it costs more than Android and I use for PDF ,Documents Reader ,to Surf Net and to use as a mobile.
What best config is better with cost Price Rs.3000 to Rs.5000 Mr. Pete O'Hanlon
Ganesh KP
10-May-12 3:24am
View
I am asking the configuration best for using as a small pdf reader like. Richard MacCutchan
Ganesh KP
1-May-12 9:20am
View
Noah I have written smtp.gmail.com not smtp.gmailcom
Ganesh KP
1-May-12 1:14am
View
Hi Ahmed I have used the same code but I am still unable to send mail from my application, and I got the error which I comment above. Please check and if you know Please review and make a necessary corrections in my code.
Ganesh KP
1-May-12 1:08am
View
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.77.109:587 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at AVIT_WebSite.ForgotPassword.btnResetPassword_Click(Object sender, EventArgs e) in D:\AVIT_WebSite_25thApril\AVIT_WebSite\AVIT_WebSite\ForgotPassword.aspx.vb:line 43
This is my Error I got when I hosted the application in Server and Click the Forgot Password Button.
Ganesh KP
30-Apr-12 10:38am
View
Hi amraj, I have seen your code but my site is hosted in another server but I am sending mail from my gmail account does it supports this type of service that hosted in some other server and mail from my gmail account.
Ganesh KP
9-Nov-11 1:03am
View
Can we implement a macro for excel in vb.net.
Ganesh KP
9-Nov-11 0:40am
View
Yes I know that but if a person who is aware will tell the best answer.
I need to develop an macro for excel does it is possible with Vb.Net or should i go with VBA only.
Is there any syntax difference between those two.
Ganesh KP
1-Nov-11 5:24am
View
Hi Losmac,
I need some function that is used frequently in Excel. for that reason i want to write a Macro using VB.Net. If i know how to write a macro using VB.Net then i can implement the same procedure for all different functionality that i need when ever.
Hope you got it what am saying.
I want a complete procedure on how to start the coding for a macro in vb.net.
Thanks
Ganesh....
Ganesh KP
28-Oct-11 3:14am
View
I think there is no need with code it is same like in normal windows application but when i got adding a reference and calling the methods that are defined in the service i am unable to get them at the same time i am getting the name of my method as "ASYNC my method name".
How can i get from this/
If possible i will send you the necessary code.
Ganesh KP
4-Oct-11 5:02am
View
Thank you Simon, I have tried the method that you post but it doesn't works.
If you know any other way,Please specify here.
Thanks once again
Ganesh
Show More