« first day (689 days earlier)      last day (4485 days later) » 

00:19
:)
 
2 hours later…
02:48
:)
hey kendall
 
2 hours later…
 
1 hour later…
06:25
anyone here?
Do wah diddy diddy dum diddy do
lol
old school
mess with xna at all?
nope, sorry
hellloi peeps
Yo
06:33
hows things
vir
vir
Hi
good i guess
kinda tired
vir
vir
i got list<> in c# code behind, i want to populate ui li in html, how could i do it?
how would i access a function from a class in C#
that doesn't return anything
vir
vir
i got List<DragAndDropData> draganddropdata = new List<DragAndDropData>();
draganddropdata.Add(new DragAndDropData{Id=1,Name="Item1"});
draganddropdata.Add(new DragAndDropData{Id=1,Name="Item2"}); in code behind.. i want to populate ui and li in html..
06:47
@vir what are you using? Webforms, MVC?
vir
vir
what i am try is this :
WebForms
<script type="text/javascript">
$(document).ready(function () {
var arr = "Code behind function retures list"
$("#firstDiv").append("<ul id='ul1' class='sortable-list'></ul>");
for (var i in arr) {
var li = "<li class='sortable-item'>";
$("#ul1").append(li.concat(arr[i]))
}
});
</script>
var arr = "Code behind function retures list"
^^ and that's the dubious part
vir
vir
:(
then how could i get list data as ul and li
this is easily done in MVC, but WebForms has to work around some limitiations in client server comunications
vir
vir
Ok
06:50
easiest to do (that I can think at the moment) is make a javascript object, and emit it to the webpage during rendering
damn, just read that Michael Clarke Duncan died
vir
vir
:(
the whole things that i am doing is : i'm doing drag an drop li elements to div

i want to populate ui and li elments from code behind <list> and save <list> in session when i'm moving
li to div
07:06
why do it in javascript then?
Facing one Algorithmic prob :I have this datatable which has got multiple rows containing information about RequestDetails , including the recipients.
Now in that case , One request may have multiple recipients , so the request comes in multiple rows from the db,
What i want to do is that i have a Entity on the service layer , which has got data as
RequestDetails
	RequestId,
	RequestName,
	ETC...
	RecipientsDetails (a List of recipient details.)
		RecipientName
		RecipientOffice
		ETC...

So i want to strip the data that way that the common details to be populated in the RequestDetails , an
Next what ? Got the distinct RequestIds > But stuck with further steps .. .
vir
vir
@SWeko, how could i show list data to ul and li then, if we are not using JavaScript?
lots of quetions this morning
07:24
Hai all... good evening!
morning
Hello Dunn.. where are you from?*
uk hows about you
Im from malaysia... in here is evening... hehe
Nice to meet you...:)
Are you C# developer?
you to fella
yea
07:27
C# not easy to learn.. hehe..
Need more practice...
yea?, im sure you`ll get there though ;)
It depends of where do you come from, don't you think
I come from Java and I'm getting to use C# kind of fast, i think
@vir Was on a coffee break, sorry, you still here?
You could emit them to the page using a asp:Repeater
07:43
Hey guyS nEEd Help ..
shoot
I am using connection string
con = new SqlConnection("database=Society_security_database;server=.\\SQLExpress;Persist Security Info= True;integrated security=True;Trusted_Connection=Yes");
But everytime i install at some user pc
it says to Logion failed error
you dont have permission to alter database
i want to get administrative permissions with my c# code
throughout my Application runtime ? for my database mdf and ldf file
any Help how to do this ? @SWeko pro !!
The installation fails?
ya installation fails too when i try to install at another account on a pc
i mean for Standard user
not administrator
well, it's simple :)
07:48
But if i run installer on administrator
Account
it installs with no problem
but for databases
it saYS LOGIN FAILED
so the error is correct: you indeed don't have permission to alter database
Hi guys has anyone used Wireshark by any chance?
That's i want o know how to get adminstrative privilages
for my databases with c# code
Short answer: you shouldn't
07:50
why ? so :(
how are you altering the database in code?
and do you expect the client to have sqlexpress installed?
or do you install it as part of the setup?
no i have included sql server 2005 express edition as a prereuisites
to it installs it before installation
i dont know which instance it use ..when it installs it as a prerequisite
and the database (for your app) is created when?
i run a sql script ..at the time of installation for the default databse
so at the first time of login to app
it takes the credentials from databse
but it says you dont have administrative privilages to alter database
as you explain it you are not altering the database when you start the application, right?
07:54
actually this app is running properly on my pc
vir
vir
@SWeko, and how about the drag and drop, how could i do it in asp:repeater control
not i just validating the default credentials ..
:)
at the time of login
@SWeko
i just need to know that
07:56
@vir, as I understand, those should be rendered on client when the page is shown?
vir
vir
yes
@Aradhaya.Kansal Try to find out why the database thinks you are altering it
@vir Then, render them statically, html and all
vir
vir
SWeko, i don't understand :(
set the list as the repeater's dataSource, and set the repeaters template to the ui template
@vir Have you used the repeater control?
vir
vir
yes, i used
<asp:Repeater ID="LstSortable" runat="server">
<HeaderTemplate>
<ul id="sortable">
</HeaderTemplate>
<ItemTemplate>
<li class="ui-state-default">
<%=Eval("Blah") %>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
somthing like this?
07:58
yes
vir
vir
ok, let me try
in code behind, just do something like
lstSortable.DataSource = myList;
lstSortable.DataBind();
vir
vir
yes, thx
i need to work on drag and drop also from this ul and li elements
That another story, and I'm no help there :)
Struggling with a stuborn UI myself :D
vir
vir
ofcourse :) , i really appreciate your help
08:15
guyz Anybody comfortable with linq out here ?
@SWeko ?
vir
vir
ask...
@SWeko
EXEC dbo.sp_dbcmptlevel @dbname=N'Society_security_database', @new_cmptlevel=90
what is this lincue you are talkin' 'bout?
i am creating database with this script
i mean script part
isn't that in the installation?
08:20
do you know how to add adminstrative rights with this database
ya this script
from management studio, sure
no
i want with sql script
not want to do manually in ssms
can you help me creating this database with adminsitrative tights
r*
some 1 said over net that you have to add sysadmin roles?
i dont know how to add it this in script
@SWeko
take a look at these:
I have this datatable which has got multiple rows containing information about RequestDetails , including the recipients.
Now in that case , One request may have multiple recipients , so the request comes in multiple rows from the db,
What i want to do is that i have a Entity on the service layer , which has got data as
RequestDetails
	RequestId,
	RequestName,
	ETC...
	RecipientsDetails (a List of recipient details.)
		RecipientName
		RecipientOffice
		ETC...

So i want to strip the data that way that the common details to be populated in the RequestDetails , and the multiple recipients in 
ok
i m @SWeko
this will help me a lot i think thanks @SWeko .. :)
well that should be in the installation sql script somewhere and somehow
ohkz.. i m gonna add sysadmin roles
with the script
@bhuvin So, you have a single table in the database?
@SWeko - No they are 2 tables
My query gives in joined form
08:27
what are you using to load the data?
Linq-2-sql or EF could load everithing correctly
if you use some custom loading, you'll need to do everything yourself
maybe 2 calls to the database should be used, if there are lots of requests, and only several recipients
(one to get requests, one to get recipients)
The issue is that this is sort of legacy code , and i cant change it to use EF , or linq to sql
yes 2 calls can be used
but what i wanted to do was to use linq on datatable and do this ...
coz that will save one round trip
so you have a System.DataDataTable thing?
You'll have to make it enumerable first, anyway (using .AsEnumerable, or .AsDataView)
Yeah have done that ... But that converts it to a data row collection , and linq is not able to query the whole collection i.e. No First() or Single() sorts
08:34
you could try DataTable.Select()
that will return a DataRow[] that is perfectly linq-able
08:47
have i missed anything?
guess not
09:35
penguins
10:15
pow pow
10:43
posted on September 04, 2012 by Scott Hanselman

I was trying to write a blog post about something totally different and was using this small EntityFramework 5 Code First model: public class TouristAttraction { public int TouristAttractionId { get; set; } public string Name { get; set; } public DbGeography Location { get; set; } } You'll notice I'm using the DbGeography spatial type with Latitude and Longitude. This suppor

11:00
Hey people, anybody got answer/view for this comment: stackoverflow.com/questions/150479/…
i do
@E.LDunn Care to elaborate?
let me grab a coffee and find some energy first lol
@E.LDunn Caffeine, not dog, is man's best friend.
Is it EOD yet?
11:10
to what EOD do you refer Bildr
end of day
and yes, dav.. have you ever tried drinking a dog... its not easy
@E.LDunn Depends how big your blender is.
haha
hello all
how to handle this exception in c#
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
11:14
hi all...
is there any method to handle this in HttpPostedFile class
That's a hard limit in windows, @rahul. Make the path shorter.
Hmm, it's an http request?
@Billdr actually this exception is thrown when i upload a file with max allowed char. in it's name
but yes to your original quesiton @dav_i . My order is much like he lists them public fields , stand alone private fields, private fields controlled via properties above the property, contructors , public methods , private methods. to his problem of large properties, to me properties should be thin, so add a private method and call that..
@rahul: then don't
11:18
hi to all the people that suddenly started talking
@E.LDunn My query is what do you do at the finer levels. Surely some form of alphabetising - but should it be based on type or name?
@SWeko but i want to know how to handle this
@dav_i whatever floats your boat, I guess. Just make sure it's consistent
as user can upload any file or is there any method so i can validate the input file for this thing
@rahul: the filename of the uploaded file does not have to be the same as the file that is saved on the filesystem
11:21
@SWeko Water usually.
@SWeko but can i manipulate this thing that a file has valid file name or not
Ok, the standard test including water is that if it floats it's either a duck or a witch
@rahul depends on what and how you use, but in general, yes
so how to ?
i normally group by its intended action or against a layout for instance CRUD all create methods first then read and so on. so its hard to say for certain what order things will go in unless we tlak about specific classes
Okay, interesting point.
11:25
@rahul What's your current code?
i am not checking for file name length
till now
is there any inbuilt method to check it
No need, just compare the length with the max_path value (260)
you mean i have to check full path length including directory name
how could a filename not be valid ?
i.e. If you are saving in C:\MyApp\Uploads\, append that to the file name, and see if it's longer than 260
@E.LDunn: try creating a file called "."
or con:
11:32
yea but windows tells me thats not valid, i thought he was doing something to do with uploading
you can handle stuff bigger then 260 chars, there is a MS opensource library for that on codeplex I think
the compleat path length is limited to 260
@E.LDunn try making a file and set it's name to max char. available
The file system can support 32k long filenames, but some applications might fail, so i'd stick with the 260 if possible
It should be enough for any sane scenario
"if possible" being the keyword here :)
11:36
if the user uploads a file with a 1k long filename, you can rename it
you can rename it, if possible
or if allowed
why shouldn't it be allowed, just keep the original filename somewhere
so the user could download it later using the original loooooooooooooooooooooong name
I had to support long file names in my application
Then do use the library
That is what I'm saying :)
if possible
11:40
any1 knows how and why to use ORCA
my boss suggest that i use it to edit my msi
:/
why i am getting this message Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more.
?
low-quality questions and answers are blocked. This includes posts from:

users who can't be bothered to form sentences
users who don't do the most basic kinds of research themselves
users who barely even explain what it is they are trying to do
To quote from the link
why even bother to answer
If he can't read then GTFO
11:56
It's just a posting questions ban, I think everything else works
if this is the reason why should i have 959 reputation
Yeah, and from what I see, you look like a normal user
then why this
u messed up with some moderator??
did you do something stupid? or did somebody hack your account?
11:58
i don't know
and i didn't messed up with any moderator
i don't know how to resolve this thing
go to meta chat and ask there
lol....i quoted something from the link
"The only way for the ban to be lifted is for you to convince the community that they should give you another chance..."

« first day (689 days earlier)      last day (4485 days later) »