« first day (1384 days earlier)      last day (3554 days later) » 
00:00 - 22:0022:00 - 00:00

12:22 AM
any idea why this was downvoted? am I an idiot?
-1
A: Loading Partials with AngularJS

Pheonixblade9You need to use routing to do this. Here's a tutorial but the basic setup is this: HTML - This will have several <a> anchor tags that each contain their respective routes, like so: <ul class="phones"> <li ng-repeat="phone in phones | filter:query | orderBy:orderProp" class="thumbnail"> ...

 
12:39 AM
@c0dem0nkey oh hai
 
 
6 hours later…
6:47 AM
Hi Guys !
 
7:09 AM
Stars star = new Stars();
WaitFor(ref object obj){}
WaitFor(ref star) - error
whY
 
First time I see the C# compiler give an error that's comprised entirely of the word "error".
 
A ref or out argument must be an assignable variable
 
I think your ref parameter must be an assignable variable.
(Can you show us your actual real code please, that gibberish is not C#)
 
What will happen if WaitFor assigns something that isn't a Stars to obj?
Since object isn't assignable to Stars, compilation fails.
 
7:17 AM
As AvnerShahar-Kashtan pointed out, types don't match. Besides, that is some truly useless code. What is it supposed to do anyway?
 
A simple workaround would be to define WaitFor generically: private static bool WaitFor<T>(ref T obj, int timeoutSec), but as Roel said, this whole pattern doesn't smell right to me.
 
programming in c # made me cum
 
@AvnerShahar-Kashtan thanks, its work!)
 
If I really wanted to have a loop which polled a value, I'd probably pass it a Predicate:
`public static bool WaitFor(Predicate predicate, TimeSpan timeout)
{
while (!predicate())
{
// do the timeout test.
}
}`
 
Or just have it call the async variant with a cancellation token.
 
7:24 AM
Dammit, code formatting in chat is annoying.
 
Agreed.
I also do not like the size of text input window. Can't be changed if I am right.
 
Also, there's no non-generic Predicate delegate, it seems, so it should be Func<bool>.
 
8:22 AM
And one more question :)
#define trouble
how can i resolve this problem?
 
Is the other DLL compiled with CONSOLEAPP? It's a per-project setting.
And in general should be handled through project configurations, rather than in code.
 
hey guys, i have a little question: why when im trying to set some text to a label, it closes the app ?
 
@KraziiKiiD Catch the exception and see. In VS, do Debug -> Exceptions -> Break on Thrown for CLR Exceptions.
 
@AvnerShahar-Kashtan allright
 
@AvnerShahar-Kashtan in other dll i haven't CONSOLEAPP
 
8:26 AM
@GLeBaTi So !CONSOLEAPP resolves to true, and the code is compiled and run.
 
thanks)
 
@AvnerShahar-Kashtan it doesnt chates anyting, only in debug line it writing: has exited with code 0 (0x0).
 
@KraziiKiiD So no exception is thrown? Did you wrap the setting of the label in a try/catch?
 
@AvnerShahar-Kashtan yes
 
When you step into it in debug, the Label.Text = ""; line simply causes the app to close?
 
8:30 AM
@AvnerShahar-Kashtan wait, im showing you kind of my code
i have somethng like this in the button code
try
{
pictureBox1.Visible = true;
label1.Text = "1";
btnCreate.Enabled = false;

if ()
{
label1.Text = "2";
}
else
{
try
{
if ()
{
label1.text = "3";
}
else
{
label1.text = "4"
}
}
catch
{
}
}
 
WinForms, I assume from the code. Ugh.
 
yes
 
Is this code running in the main UI thread?
 
it is
 
@KraziiKiiD Stop showing "something like this". Show the actual code if you want help with it.
 
8:34 AM
@RoelvanUden but there's a lot of code, and this thingy is the same thing just without the conditions from the if statements
 
Is it possible that the button is defined as the Default/Accept button for a dialog window, and clicking it closes the window?
Haven't used WinForms in years, so I don't remember the exact behavior for Default buttons.
 
i dont know
if im putting msgboxes instead of setting text to label, is working...
oh...
 
9:16 AM
@AvnerShahar-Kashtan are you here?
so i've changed a little bit my code, so i have a gif image, and when i click on the button, durring the button will process the other code, the image should be always visible and moving (gif). but it isnt visible when i click the button, and its visible and moving only when the button's code has finished.
i made a method like this:
private void SpinImage(PictureBox pic)
        {
            for (int i = 0; i < 500; i++)
            {
                Invoke(new MethodInvoker(() =>
                {
                    pic.Visible = true;
                    Application.DoEvents();
                }));
            }
        }
and in the button:
spinner = new Thread(() => SpinImage(pictureBox1));
spinner.Start();
any help here?
 
As I said, I haven't done any WinForms for years, but I'm pretty sure there are better waits to show an animated icon on screen.
 
yes but durring another processing thingy, you should have something like this..
but it's just shows the gif after the button has finished it's job
 
It's more of a WinForms question than a general C# question, and I don't remember enough WinForms for this.
 
okay then, thanks however :)
 
10:03 AM
@ReedCopsey I just posted a question that is mostly for interests sake. I thought you might find it interesting, so therefore this shameless redirection: stackoverflow.com/questions/25056073/…. Feel free to ignore if you don't care ;-)
 
 
2 hours later…
12:07 PM
Hello guys, anyone have experience with experting xls data to specific sheet in Excel please?
 
exporting excel data to excel?
 
seems like a converting code into vb from visual basic language
 
@Shell Or pehaps converting all your URLs to Uniform Resource Locators.
 
it's looking quite difficult..
@Marek what exactly want to do? xls is the extension of Excel file. What do you mean by xls?
 
@Marek 1. save as CSV
2. Import the CSV to SQL Server http://stackoverflow.com/questions/15242757/import-csv-file-into-sql-server
3. use a data connection to the SQL Server to reimport your data to excel, then copy/paste the data to the appropriate sheet.
 
12:19 PM
@Squiggle that's the answer. :) very nice
 
Thanks! I got it from reddit.com/r/shittytechsupport
 
@Shell and @Squiggle I have a DataTable or data in SQL that I need to pass to first Sheet in xls and to Sheet2 in same xls. Do you think it is possible?
 
@Marek Sure. How are you accessing your Excel files?
 
@Marek so u want to export that data into a specific excel.xls file on Sheet2? right?
@Squiggle for a while i thought i have been using DOS when i have visited this site reddit.com/r/shittytechsupport
 
12:24 PM
@AvnerShahar-Kashtan I have it on local PC, data can be downloaded from SQL.
@Shell Yes please.
 
@Marek No, I mean which API are you using for Excel? Or have you not gotten that far yet? Are you using OpenXML to create or modify the Excel file directly, or using the Excel interop assemblies to do it through the Excel application?
 
@Marek check this tutorial
 
@AvnerShahar-Kashtan I was using Interop for Word export previously. But I think i don't care which API will I be using.
@Shell thanks I see excelSheet.Name = "Test work sheet"; ! that should work.
 
I'd recommend the OpenXML API - it's much more current and usable, unless you need to support Excel '97 or somesuch.
 
@Marek change those lines with this
excelSheet  = excelworkBook.Worksheets["Sheet2"];
remove both following lines
excelSheet = (Microsoft.Office.Interop.Excel.Worksheet)excelworkBook.ActiveSheet;
excelSheet.Name = "Test work sheet";
 
12:31 PM
@Shell I will start now with opening the existing xls
 
ok good luck
 
@Shell, thanks I think I need to replace this line var excel = new Microsoft.Office.Interop.Excel.Application(); Do you think that .Application() takes parameter with path?
 
No @Marek you need to add reference of Microsoft.Interop.Excel dll
 
I already have that. This is what I need
 var wordApp = new Microsoft.Office.Interop.Word.Application();
 wordApp.Visible = true;
 var document = wordApp.Documents.Open(cl);
 
then it should work make sure that u have selected correct reference and it has been added successfully.
@Marek there is a sample code has given in that tutorial site. you can download it
 
12:42 PM
@Shell I dont know how to insert my path into his code :/
 
Workbook workBook = excel .Workbooks.Open("D:\\myFile.xls",
	    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
	    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
	    Type.Missing, Type.Missing, Type.Missing, Type.Missing,
	    Type.Missing, Type.Missing);
 
@Shell I don't want to interupt you but I have following code:
    var excel = new Microsoft.Office.Interop.Word.Application();
    excel.Visible = true;
    Workbook workBook = excel.Workbooks.Open("D:\\myFile.xls",
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing);
 
yeah ok
 
excel.Workbooks.Open - The exce does not have extension for .Workbooks
 
Are you using .NET 4.0 or higher? Because you really can stop using all those Type.Missing overloads: programmers.stackexchange.com/questions/185186/…
 
12:50 PM
@Marek you should start with the basic... just open the excel sheet and read it. check this tutorial
times to go home.. bye all @Marek i will help u more tomorrow
 
@Shel bye and thanks.
 
1:09 PM
Don't you love it when someone randomly goes through your answer history and downvotes a bunch of stuff? :)
 
Those usually get flagged after a while, and the scores reversed (and user banned)
 
People do that?
:S
 
Hey folks, anything out there which helps us make blackberry apps in c#?!
 
Xamarin?
 
Blackberry 10 runs Android apps right?
 
1:13 PM
not as far as I'm aware...
wait, does it?
 
I know they were talking about it a couple of years ago
 
oh wow - haha so it does :)
but it's locked down to licensed apps only for now?
 
xamarin only cross-compiles to ios and android
 
fair enough.
My suggestion for full Blackberry compatability and speed-of-development would be to use Blackberry Webworks.
it's ideal for forms-based business apps, if you only need to write for BB
the only apps dev work I did was cross platform for iOS and Android, with BB development done separately in Webworks
(never use Titanium Appcelerator)
 
@deostroll iOS, Android, Windows Phone, Linux, Mac OS X, Windows.
Nobody supports Blackberry really.. except HTML/JS via Titanium/Cocoon/PhoneGap/etc
 
1:20 PM
Apparently you can install the Amazon Appstore on Blackberry and get your Android apps on it that way. No guarantee they will run properly though.
 
Heh, BB10 has indeed SDKs to 'quickly convert Android apps'.
Might be incentive for xamarin to support that in the future..
 
Or not support it and quietly hope it goes away...
 
can we do what xamarin does in visual studio itself?!
 
@deostroll If you pay for Xamarin you can use Visual Studio.
 
I am just looking for source control support out-of-the-box ...
@DavidG explain further plz...
 
1:32 PM
Xamarin integrates with Visual Studio so you can develop in there. But if you use the free version you need to use Xamarin Studio.
 
0
Q: C# Stop Async for freezing other Form

user3712833I have written this code in form1, and when i click on it, everything is fine: it's showing a gif picturebox and in the meantime is doing some code, but when i get a messagebox, and click ok, it opens form2 freezingly. can someone tell me how to write stop doing that? private async void btnCrea...

 
2:00 PM
Oi.
Via NuGet console, is there a syntax to specify fuzzy versions, like ~1.0 or 1.0.* to get the newest patch release of a package.
 
It's possible for sure, but I'm not sure how to do it from command line.
If you edit your packages.config and restore, it can do * and shit..
 
@RoelvanUden So, the fuzzy notation goes in packages.config, eh?
Rather than via console (cause it's expectedly borking on syntax)
 
I'm pretty sure that the console is capable of it, too, somehow..
 
docs.nuget.org/docs/reference/command-line-reference command line reference doesn't really help much :(
@DanLugg what's the nature of the issue? Can't you just specify 'latest'?
 
2:16 PM
@Squiggle What do you mean "specify 'latest'"?
 
I imagine he wants, say, Entity Framework "6.x"
Whatever update it may be.
 
^^ More specifically, patch versions; so the "latest" that is >1.2 but <1.3
aka, ~1.2, or 1.2.*
 
yeah
yeah I figured
 
I can only really say that vNext will have systems that work automatically with fuzzy searches etc.
making it easier
 
Apparently, I wanted the -Safe flag
So for reference, Update-Package -Reinstall -Safe to fix "all the things" ;-)
 
2:29 PM
how do you tell a company no to offer, letter or phone call?
 
@NETscape Flaming bag of dog poop.
 
+1 for the poop solution
"no to offer"? are you turning down a job offer?
Allow me to help draft your email
Subject: Re: Job Offer
http://www.reactiongifs.com/wp-content/uploads/2013/02/nope.gif

kthxbye
 
hi guys
 
HI!
 
2:45 PM
Morning everyone.
 
Morning.
 
i'm working on a C#/.NET application that needs a database, until now i've been using sql server... but for this application i need to use Mysql database.
i connected to database every thing is working fine, for now i'm using my wampserver, and i'm worried about the deployement phase. I've never used mysql before, all tutorials that i found are with PHP... and this is not a web application.
could someone help, sorry for bad english :/
 
What are you worried about? The SQL from the tutorials are the same.
Worried about connectin?
*connecting
 
i'm worried about deployement phase, when i need to install the mysql server and secure it,
the developement part is very OK
i already have a dedicated server, i need to install mysql in it as a single server
 
@redaa The connection will be a tad bit different, but you shouldn't have any issues. They're quite similar, but have subtle differences. Which until you encounter those, you shouldn't have an issue.
@ton.yeung Yeah, what do I have to do?
Can you send me that page?
 
2:54 PM
@Greg The connection part: connecting to database ... is ok for me, but the problem is server side problem, i need to install mysql on a linux machine as a "single server"
 
So I have to create an account? Then file a claim?
But the person who received the item, can't file the claim?
 
@KoBE thanks, one more question : is there some desktop applications using Mysql databases ?
 
Does this look right?
        private bool PromotionalUpload(string image)
        {
            string path = Path.Combine(ConfigurationManager.AppSettings[@"PlattU_Upload"], @"Promotional");

            if (!Directory.Exists(path))
                Directory.CreateDirectory(path);

            if (string.IsNullOrEmpty(image))
                return false;

            string[] content = Directory.GetFiles(path, image + ".*", SearchOption.TopDirectoryOnly);
            foreach (string uri in content)
                if (!File.Exists(image))
@ton.yeung Then why do they charge people if they don't intend to honor it, I can't file it until tomorrow.
 
@Greg Is.. is.. is that JavaScript embedded in C#?!
 
3:05 PM
@redaa I'm sure there are plenty of them.
 
@RoelvanUden Yeah, my new job doesn't like actual error handling. Cause it causes crazy page errors to the end user.
 
@KoBE thank you for your answers :)
 
np, be sure to look at this as well: dev.mysql.com/downloads/connector/net
 
Most desktop apps dont want dependencies on mysql
 
@RoelvanUden Not if you're storing locally, but you'd have dependencies no mater what having a remote database
 
3:15 PM
If you have a remote database, then yes absolutely. But I was presume he has an app that works totally locally and is using mysql for that. Basically, his customers would have to install mysql and the app.. which seems.. odd.
 
@RoelvanUden That would be, but since he mentioned having to set it up on a linux server, I assume that isn't the case.
I wouldn't recommend connecting directly to the DB using .NET anyways.
Security is non-existenct in .Net applications.
*existent
 
That's completely incorrect. Security does exist in .NET, but you should not ever (regardless of technology) expose a DB directly to a client.
 
.Net is ridiculously insecure. What security do you know of that I don't?
 
In what way is .NET insecure?
 
Insecure.. I don't know what world you live in, but apparently it is different from mine.
 
3:18 PM
@RoelvanUden I've got a question for you.
 
@RoelvanUden the database is romote
@row
@RoelvanUden i guess what @KoBE try to say is that securing an application in .NET is just making the attacker a bit further from his goal.
 
And how are desktop apps insecure in .NET?
 
@KendallFrey I'm talking about desktop applications.
 
"decompilable" is not a valid argument
 
How isn't it?
 
3:22 PM
Anything can be decompiled
 
Not to the source.
 
Neither can .NET
 
@RoelvanUden Have you ever used a ASP.NET File Upload control?
 
Unless you don't mean the exact source
In which case, yes, you can decompile to source C++ or <insert your favourite "secure" language here>
 
BS. You can obfuscate it all you want. But you can get the source code back from .Net assemblies.
 
3:25 PM
You can also get the source code from native binaries
It doesn't matter how you do it. If a computer can figure out what it does, so can you.
 
@KoBE Of course you can get the source back. From .NET, from C, from C++, from everything. That's why it's called reverse engineering.
Computers have to execute it anyway. And we can compile .NET down to assembly if we want, so it takes as much effort as it takes to reverse C/C++, which honestly, isn't much.
@Greg No
 
C++ compiles to machine code, .Net compiles into IL. Which one do you think is more secure?
 
neither
why do you think one of them is more secure?
 
Neither.
 
Lol. You can not take machine code, and reverse it to source code. Reverse Engineering is way more in depth than 'reversing code'
 
3:29 PM
@KoBE Where we have ILSpy and such for .NET to "guess" the C# equivalent, we also have IDA and Hex Rays to take assembly and "guess" the C/C++ equivalent. Your point is completely invalid.
 
@RoelvanUden Oh, I know to rename a file you can use: File.Move which can rename, but if I have a file being passed as a parameter I can't just rename it until it is written to server correct?
 
@KoBE Of course you can, what gave you the impression that you can't?
 
@Greg Depends on what the 'parameter' is. IIS, AFAIK, stores uploaded files into temporary directories which you can move out. It can also be reading the stream which you can write to disk, directly.
 
Well, I have been living in a fantasy world. I'll have to do more homework on the subject before I continue to engage in this discussion. If I am truly mistaken, then I'd hate to look like an idiot. However, you can't use the arguement that EVERY language is insecure, as justification that .NET is secure.
 
There is nothing really different between IL bytecode and machine code. They're both binary, they both use opcode-argument syntax.
@KoBE .NET isn't 'secure', it's just not less secure than anything else.
 
3:33 PM
Does anyone have sample MVC5 application for reference use? Any personal projects in github would be good.
 
@KendallFrey I was referring to this comment.
 
@RoelvanUden Well, right now if I do this:

                    if (Path.GetExtension(document) == @".png" || Path.GetExtension(document) == @".jpg" || Path.GetExtension(document) == @".gif")
                    {
                        string name = Path.GetFileName(document);
                        using (StreamWriter writer = new StreamWriter(path, true))
                            writer.Write(name);

                        return true;
                    }
 
@KoBE Well, that basically is the argument. If you have access to some form of instructions your computer has to run, and you have something that can run those instructions, you can get the 'source' back. This applies to Java, .NET, C/C++, Python, Scala, and every language you want to think of.
 
It will actually write the file to the server.
 
@KoBE The amount of ease of doing so resides in tooling, which is again tied into popularity. .NET has great popularity, and great tooling. C/C++ even more so. Python, for example, has one great disassembler -- maybe due to lack of popularity, I dare not conclude that or not, but it's still quite easy there too.
 
3:36 PM
Well, I guess what I meant from my comment about .Net being insecure, is that it is easier, or more known, on how to decompile .Net applications. I've always thought that compiled languages were more secure. But i'll admit I am not an expert in security.
 
anyone here have experience with highcharts?
 
Just an aside, I find myself doing this lately:
var options = new string[] { ".png", ".jpg", ".jpeg", ".svg" };
if (options.Contains(fileExtension)) { Console.WriteLine("It's an image"); }

...is this considered good practice?
 
@KoBE You are right in a sense. It is trivial to get the source for a .NET binary that is not protected because the tooling for it is amazing. But throw something like Themida into the mix, which emits assembly and translates MSIL to assembly bindings and throws obfuscation into the mix, and you have a protection that is really powerful.
But again, with some effort and knowledge, it can be undone and the source can be retrieved again.
 
@Squiggle yes
 
@Squiggle I did it like this:

            if(!string.IsNullOrEmpty(file) && !string.IsNullOrWhiteSpace(file))
            {
                string name = Path.GetFileName(file);
                string extension = Path.GetExtension(file);

                List<string> extensions = new List<string>();
                extensions.Add(".pdf");
                extensions.Add(".docx");
                extensions.Add(".doc");
                extensions.Add("txt");


                if(extensions.Contains(extension))
 
3:39 PM
@Squiggle Make it a constant for optimization :P
 
I just like the visual appeal, your way is faster I believe.
 
You can't const a collection, but you can private static readonly
which is more or less the same
:P
I've seen someone do a similar thing using an enum decorated with attributes
 
@Squiggle I just like the way a List will force readability.
 
@RoelvanUden Well, thanks for the insight. I'll have to read up on it some more.
 
public enum Options {
   [ExtensionText(".txt")]
   text,
   [ExtensionText(".doc")]
   msword
}
and then write a function to compare via enum and parse the attribute
it's fugly :D
 
3:42 PM
Would a static List be the equivalent of static string[]
 
Greg: It's very similar approach - I would just inline-declare the list items
 
Well, otherwise you would need a method that would constantly add the values.
@Squiggle The performance is similar?
I get an error usually though when I do:

static List<string> extension = new List<string>() { ".png", ".jpg", ".gif" };
For example.
 
you need to instantiate the list in a static constructor
the performance should be pretty much identical
 
@Squiggle Bummer...
 
Best not to re-declare the list every time you check
 
3:48 PM
i have desktop app using mysql without ssl, now i want to use Mysql with ssl, should i make changes to my application or just the server side will be modified ?
 
I don't know much about the specifics of MySql, but for SSL the server needs a valid certificate, and the client needs to be able to trust the certificate.
 
@Squiggle the client you mean the desktop application ?
 
yeah
Ideally you should only need to change the connection in the .config file... but I can't comment on your implementation specifics
 
any good links, i can't find s//t on google
 
The Chrome Web Browser is not supported.
HOWWWWWWWW
 
4:00 PM
@NETscape ??
 
Because NO, that's why.
 
hey guys, i have a problem. in my project i went from 4.0 to 4.5.1 to test something with async and await, and went i went back to 4.0, some functions doesn works anymore :( can someone help me ??
 
"doesn't work" is a bit of a loose term
compile errors? runtime exceptions?
 
nothing, it doesnt brakes anymore no where in those functions
like the code isnt executing anymore
 
@ton.yeung No :(
@ton.yeung Yeah, totally. Maybe on Friday you can call, and we will three way call it.
 
4:09 PM
@KraziiKiiD I'd recommend debugging and stepping through these functions to see what it's doing (or not doing)...
 
@Squiggle since two hours im doing that, and i cant find any error, or anyting..
 
Did you do any changes you want to keep?
If not, just reset to the last commit that worked.
 
i restarted my computer too...and i cant reset to the last comit
i tried but same..
 
@ton.yeung Well, it'll be closer to four thirty or five my time.
Okay, that is tomorrow not today.
Okay, cool.
Anyone have a single resource for server Mime types? I want all text files, word files, and etc.
 
@KraziiKiiD then I'm sorry, but you're going to have to delete everything and start all over again.
(don't take my advice)
I'm going on holiday now. CHEERIO EVERYONE!
 
4:37 PM
@Squiggle =[[[[[[[[[[
 
posted on July 31, 2014 by ericlippert

A query expression in C# is, as you probably know, just a syntactic sugar for a bunch of method calls. For example, from customer in customers where customer.City == "London" select customer.LastName is a syntactic sugar for customers. Where(customer => … Continue reading →

 
5:20 PM
Stupid question, if you have a foreign key it is mandatory correct?
 
mandatory meaning it has to match a primary key some where else yes
 
And if I opt to use non-enforced to allow nulls, that would be poor practice?
 
who ever is the DBA might want your head
 
Yeah, I figured as much.
 
Why won't they insert?
 
5:24 PM
Well, the design. It only needs to couple to a table in some cases; in others it doesn't need to.
 
so the DBA is the problem - bad joke ;-)
 
@juanvan No, he isn't.
 
5:44 PM
Question about how to approach something. I need to generate a list of items and the user will be selecting some or all of them to be passed to and used in another page (by their ID values). My user has no clue how to use Ctrl + A or shift/Ctrl + select from a multi-select dropdown.
I could go with training and do this if it's the best option, but is there a way to populate a gridview with items from a database with a checkbox next to each and then pass the values/id's of the selected ones to another page?
I found this but curious if this is best way or if there is a more optimal recommended approach
 
6:40 PM
Stupid question, when you want to assign a `drop down list value` to a `string` it should just be:

`string file = drpCourse.SelectedValue;`

Or am I missing something?
 
@Greg that should work
 
@Daи It isn't, it is keeping file as a null when it inserts to database
 
@Greg it's possible no value is being selected
 
I made sure one was selected.
 
or have you debugged to see if drpCourse.SelectedValue has a value?
it is assigning a string value? i.e. in quotation marks, NOT Value = 1
 
6:47 PM
I have already.
 
@Greg how is the dropdown populated? A databind or manually?
if bound, are you sure it is bound properly and you have set comboBox.ValueMember properly?
 
I figured it out.
 
@Greg great
 
Well, I did a work around. Forced it to detect the value by index
 
7:09 PM
Hello there.
 
for some reason I can't get Visual Studio to recognize DataGridViewRow
gotta find that namespace
 
System.Windows.Forms?
 
@Marek yes, which I already have
which is why this is confusing
I don't seem to have System.Windows in ASP.NET
doh! I'm a moron
it's just GridViewRow in ASP.NET 4
codeproject.com/Questions/408341/… <--- not working at all
I suppose those instructions must be for another version or something
arg....
gah!!! I keep getting Object reference not set to an instance of an object. when I try to change the value of a checkbox
    public void Select_None_Click(object sender, EventArgs e)
    {
        foreach (GridViewRow row in gvItems.Rows)
        {
            CheckBox chkRow = (CheckBox)row.FindControl("ckRow");
            chkRow.Checked = false;
        }
    }
every example I find is some derivative of this
specifying the Cell doesn't help, either, i.e. CheckBox chkRow = (row.Cells[0].FindControl("ckRow") as CheckBox);
GOSH DARNIT! I have "ckRow" instead of "chkRow"
it's always something dumb like that....
 
7:47 PM
i just ran across a question from a year ago and it was how to make convert a negative number to positive
 
wrong in so many ways
unless its in assembly or something, then maybe.
 
nevermind
didnt go the way I planned...I was thinking of putting the number in a variable minus the number from itself to make it zero then adding it to itself...but then it would put you back at square 1
 
8:03 PM
AHAA!
i got it
int num = -2;
int positivenum = num - num - num;
 
8:22 PM
hey guys
also @Skullomania that is horrifying
wow, amzn down another 3% @ton.yeung :(
wow the whole market is way down
 
8:46 PM
dudes and dudetes
any Release Management freaks in today?
formerly known as InRelease
 
00:00 - 22:0022:00 - 00:00

« first day (1384 days earlier)      last day (3554 days later) »