15,885,365 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 BELGIUMsky (Top 67 by date)
BELGIUMsky
28-May-14 4:29am
View
do you need to change the lifespan or something to make this work?
if i try to use the same instance i get an error that the connection is closed
BELGIUMsky
15-May-14 15:01pm
View
first of all i send network credentials to a service that will check against Active Directory
second the user needs to login because the functionality of the program will be depending on the users roles.
i would like to keep the credentials just for the duration of the use of the client application.
else i would need to ask the user his credentials for every transaction with the server
BELGIUMsky
15-May-14 6:37am
View
it would be making a Library project where you put all the code for your database connection and then add the library as a reference to the projects that will use it.
BELGIUMsky
12-May-14 3:17am
View
be carefull the user can still disable javascript to run.
like the firefox browser gives the user the ability to disable all scripts on a website
BELGIUMsky
9-May-14 7:17am
View
to make it look nice and not reload the page you will have to make an api and a javascript or jquery ajax call to that api
BELGIUMsky
8-May-14 10:01am
View
How do you have the data
In a list, database, datatable, user input, ...
not really sure what the question is.
you want to create or do you want to change an excel file, ...
BELGIUMsky
8-May-14 3:17am
View
I've always used settings for this.
did you do something like
Properties.Settings.Default.myColor = Color.AliceBlue
If you want it to be saved in settings you have to do the next line after changing the setting
Properties.Settings.Default.Save();
source: http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx
Read this link good and you will now how to do this
BELGIUMsky
6-May-14 10:55am
View
maybe you could use code like this to make it easier to read
var item = LIST.Single();
txtile.Text = item.Title;
txtdesc.Text = item.Description;
...
Now i don't understand that you get a list if you ask for 1 item
Are you sure you get a list from that procedure?
BELGIUMsky
6-May-14 10:50am
View
What installer do you suggest from that list?
BELGIUMsky
6-May-14 10:46am
View
What i understand from your code is that you don't know how to get datatable from a database.
do you know how to connect to your database and how to query that database?
you can't get datatable from a session variable.
you have to use the session variabele to query your database and get your table from that query
BELGIUMsky
29-Apr-14 9:53am
View
indeed the second i found impersonation i found those links.
but the problem with this still is that the service will have the same rights as the user that logs in and i don't know if that will be a propblem or not
+ you need to give the service user or computer the clearance to use impersonation/delegation
BELGIUMsky
29-Apr-14 9:48am
View
you can use username authentication with the windowstokenroleprovider or something like that
this still needs to be tested because i don't have access to our AD atm they are upating or something
BELGIUMsky
29-Apr-14 9:45am
View
what do you think i'm doing all day today?
BELGIUMsky
29-Apr-14 9:43am
View
yes the client application will authenticate himself with username and password from within the organization(active directory) (this because the client application will not be in the domain) connection from behind the internet<br>
<br>
that username and password should be mapped to the active directory windows account<br>
<br>
because the sql server has some role based access the persons i create this service for want that these credentials are used to connect to the database
BELGIUMsky
29-Apr-14 9:25am
View
and can you change that with like impersonation or delegation?
BELGIUMsky
29-Apr-14 9:23am
View
and how can you set that username and password dynamicly in a wcf service? that uses username authentication mapped to windows active directory
BELGIUMsky
29-Apr-14 9:08am
View
i don't mean the username and password specified in the connectionstring
i want to use the passed username and password the client sends to the wcf service
BELGIUMsky
28-Apr-14 6:36am
View
what internet explorer version do you use? i have 11 atm
http://www.nullskull.com/q/10112922/how-to-get-current-active-tab-handle-in-an-ie7-window-using-c.aspx
and tried the first method but its not working for me.
BELGIUMsky
28-Apr-14 5:21am
View
oh you don't want every open page you want the page the user sees?
will check if i can find that
BELGIUMsky
27-Apr-14 6:06am
View
i mean in your ischecked property
set
{
if (isChecked != value) // on this line
{
isChecked = value;
RaisePropertyChanged("IsChecked");
}
}
}
BELGIUMsky
25-Apr-14 10:57am
View
can you debug your code?
set an debug break at your setter of your ischecked method;
and run your program as debug
if you see that a value is changed then the problem is not your ischecked binding
BELGIUMsky
25-Apr-14 8:20am
View
i don't see anything wrong with this code.
what is your timetable for testing?
like:
fist open page in ie, then run program, then type in url in ie, ... ?
BELGIUMsky
25-Apr-14 8:10am
View
to know when its created you can use FileInfo
http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx
BELGIUMsky
25-Apr-14 8:08am
View
You should add the error description or something so people can see what is wrong
BELGIUMsky
23-Apr-14 8:13am
View
Actualy (what if there is no selectedrow) is not a bad comment.
Shiv016 when is the error ocuring?
1. when you select a row.
2. when you select multiple rows.
3. when you deselect the selected row / rows
BELGIUMsky
23-Apr-14 8:11am
View
sorry but your code you show right now is just the same that the user uses.
BELGIUMsky
23-Apr-14 7:53am
View
Hi Shiv016,
so you tried to use the datasource instead of the gridview to get the datakey?
ps:
u use gvrow.DataItemIndex can you try to use gvrow.RowIndex instead?
the rowindex is something i see returning in some sites i looked at
BELGIUMsky
23-Apr-14 7:27am
View
Maybe the solution for this question can help you
get datakey from selected item
[
^
]
BELGIUMsky
23-Apr-14 6:20am
View
You can make a list of questions
shuffle the list like shown in: http://stackoverflow.com/questions/273313/randomize-a-listt-in-c-sharp
and then show them like you wish
BELGIUMsky
23-Apr-14 3:06am
View
Do you know the data type of the column?
and can you have a try of the (field + 0 ) converts the text/character in the field into an integer?
to know for sure it doesn't work in your case?
BELGIUMsky
23-Apr-14 2:41am
View
Did you save the numbers as text?
because if you follow the instructions for a column integer like in the following url(see url in solution):
<a href="https://dev.mysql.com/doc/refman/5.0/en/sorting-rows.html">sorting rows</a>[<a href="https://dev.mysql.com/doc/refman/5.0/en/sorting-rows.html" target="_blank" title="New Window">^</a>]
you get the result you want
BELGIUMsky
17-Apr-14 10:48am
View
ok sorry that i suggested it then
BELGIUMsky
17-Apr-14 10:43am
View
and what error do you get?
if it says out of range or something like that try using
(Rnum < oRng.Rows.Count) instead of (Rnum <= oRng.Rows.Count)
i used oledb to read excel files a while ago maybe you should look into that?
Reading and Writing Excel using OLEDB
[
^
]
BELGIUMsky
17-Apr-14 10:41am
View
Did you try explicitly closing the streamwriter within your using statement? (for testing)?
Do you have the log file open with another application?
BELGIUMsky
17-Apr-14 10:29am
View
EDIT: have posted this as a solution because it looks like i can't use the code tags in a comment
BELGIUMsky
17-Apr-14 9:54am
View
how do you mean? do you want to show the data as a datagrid and make it possible to add rows and so on?
BELGIUMsky
17-Apr-14 2:59am
View
did you find your answer?
if so can you share it?
BELGIUMsky
17-Apr-14 2:47am
View
is it on the same server?
if so why use wcf service?
if not you should implement something like folowing article
6 Steps to Implement DUAL Security on WCF using User name + SSL
[
^
]
so ssl for the transport and then maybe a message authentication to see if the user / ... can do the action / actions in the service
BELGIUMsky
16-Apr-14 2:33am
View
You use e.CommandArgument.
but you don't set an argument in your linkbutton
BELGIUMsky
4-Apr-14 3:59am
View
Maybe this question will answer your question
textbox in c# to accept unicode text
[
^
]
BELGIUMsky
4-Apr-14 2:38am
View
What do you mean with media device?
usb hdd, usb stick, analog headphone, usb headphone, microfoon, ...
BELGIUMsky
3-Apr-14 7:01am
View
and can you just specify that the data will be a datetime
(don't know if its possible in excel)
BELGIUMsky
3-Apr-14 6:53am
View
google search? ".net webservice" client java
[
^
]
maybe this article is something for you.
How to consume an ASP.NET webservice from Java via SOAP
[
^
]
BELGIUMsky
3-Apr-14 6:20am
View
hi bijaynayak
I'm sorry to inform you that i don't have time this week and the next. i have 2 big deadlines coming up.
BELGIUMsky
28-Mar-14 10:53am
View
the people that downvote if you can do it better why don't you give him an answer.
No wonder people just delete there answers on this site
BELGIUMsky
28-Mar-14 6:01am
View
col.DataType you mean?
BELGIUMsky
28-Mar-14 5:42am
View
I updated the solution 1hr ago.
Didn't you see or isn't it what you wanted?
BELGIUMsky
28-Mar-14 4:34am
View
Hi vamshi
Does it print empty pages or doesn't it print at all?
BELGIUMsky
28-Mar-14 3:38am
View
I'm sorry had some problems at home that needed my complete attention.
Will update my solution in a couple of minutes
BELGIUMsky
27-Mar-14 10:52am
View
In about 2hours and 15min i will be home and try to make an example for you.
Don't have my sample data with me.
BELGIUMsky
27-Mar-14 10:49am
View
Don't seem to find it again but maybe the solution to this question can help you out
wrap text within a aspbutton
[
^
]
BELGIUMsky
27-Mar-14 10:35am
View
Did you try using height auto?
BELGIUMsky
27-Mar-14 9:29am
View
Is your program a windows form, wpf, asp.net, mvc, ... ?
BELGIUMsky
27-Mar-14 6:56am
View
Do you have experience in somthing else like php frameworks(like sylex), asp.net, ...
maybe its easier to find a suitable example for you.
BELGIUMsky
27-Mar-14 6:07am
View
This only works for new added rows
if i remember correctly
BELGIUMsky
27-Mar-14 6:04am
View
Maybe the new solution is better for you
Let me know if it works fo you
BELGIUMsky
27-Mar-14 4:16am
View
Is the project created on the other computer or did you create it with this user?
It is possible that microsoft only gave the creator the rights to execute/change the folder or files in that folder.
Do you know how to see or change rights on a folder?
If you do. You could try to add the user that doesn't have the rights and make him able to change/execute files in that folder and subfolders
If you don't know how to do that i will try to explane how to do it(or find a good tutorial or how to for you)
BELGIUMsky
27-Mar-14 3:52am
View
Can you try starting visual studio as administrator?
Maybe your user doesn't have rights to open files/execute in the folder of your project
BELGIUMsky
27-Mar-14 3:36am
View
Did you follow the example given on that page?
BELGIUMsky
26-Mar-14 11:13am
View
Deleted
Maybe you can find your answer in this link
Complete image upload crop image compresstion
[
^
]
The second answer gives some good links
BELGIUMsky
26-Mar-14 5:43am
View
Can't you make a view instead of using partial view?
BELGIUMsky
20-Mar-14 9:32am
View
Have you tried some solutions found by google?
if i search for hidden columns datatable. i get a lot of answers
BELGIUMsky
20-Mar-14 6:16am
View
I don't have experience with that problem but.
Can't you just hide the columns?
Why do you want to remove them?
BELGIUMsky
20-Mar-14 6:15am
View
What do you mean with data?
Is it just some text?
What database do you use?
What connection do you want to use? for example linq to sql or entity framework, ... .
BELGIUMsky
20-Mar-14 5:43am
View
Can you tell which solution you tried?
what tutorial you used to make this?
BELGIUMsky
20-Mar-14 5:36am
View
Can you give some sample data so we can check/reproduce the problem?
BELGIUMsky
20-Mar-14 5:32am
View
Can you tell more?
like an example of the link button you talk about?
Edit:
With this i mean what commandName / commandParameter and so on did you give the link button
Show More