« first day (724 days earlier)      last day (4240 days later) » 

12:00 AM
in the designer it might just be called ItemDataBound
 
    protected void rptList_ItemDataBound(object source, RepeaterCommandEventArgs e)
    {
    }
something like that?
 
i don't know how to find events
I just always type them
is there a way to add them with the GUI?
 
in aspx:
<asp:Repeater ID="outerRepeater" runat="server" OnItemDataBound="outerFunction">
yeah, click the lightning bolt looking toolbar icon in your properties panel in the designer
 
errr
 
Panel AddNotePanel = (Panel)rptList.FindControl("AddNotePanel");
void outerFunction(object sender, RepeaterItemEventArgs e)
{
Repeater innerRepeater = (Repeater)e.Item.FindControl("innerRepeater");
innerRepeater.DataSource = ... // Some data source
innerRepeater.DataBind();
}
what is this code doing
calling the intter repeater
 
ignore that
 
finding inner repeater
 
in your code that inner repeater would be the panel
 
then why do I need outerFunction in my code... ?
 
12:04 AM
that question I linked is for having a repeater inside a repeater
I linked it to show you the event code
sorry, I should have clarified
 
it's cool thanks for helping me
OnItemDataBound="outerFunction"
i don't want it to do anything on DataBind
I want it the panel to appear when I click the link button
 
right
so you start the panel out hidden
 
done
 
and in the itemdatabound event, set a click handler on the button
in that click handler, show the panel
the reason for the itemdatabound event is because we're in the context of that row
 
protected void rptList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
Panel AddNotePanel = (Panel)rptList.FindControl("AddNotePanel");
AddNotePanel.Visible = true;

}
 
12:06 AM
and e.Item contains the controls for that row, making it easier to find the correct controls by id
 
hold on let me go back up to your code... soryy i am so dumnb
sorry I am so dumb*
 
not dumb, just learning
 
protected void rptList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
Panel AddNotePanel = (Panel)rptList.FindControl("AddNotePanel");
LinkButton button = (LinkButton)e.Item.FindControl("AddNoteLink");
button.Click += (sender, args) => e.Item.FindControl("Panel").Visible = true;

}
 
replace this:

Panel AddNotePanel = (Panel)rptList.FindControl("AddNotePanel");

with this:

Panel AddNotePanel = (Panel)e.Item.FindControl("AddNotePanel");
 
erro
i just saw that
the "sender" word is red after button.click
 
12:10 AM
change it to something else
 
it tells me a local variable named sender cannot be declared in this scope because it would give a different meaning to sender which is already used
        Panel AddNotePanel = (Panel)rptList.FindControl("AddNotePanel");
        LinkButton button = (LinkButton)e.Item.FindControl("AddNoteLink");
        button.Click += (somethingotherthansender, args) => e.Item.FindControl("AddNotePanel").Visible = true;
and in the asp
 
<asp:LinkButton ID="AddNoteLink" runat="server">Add Note</asp:LinkButton>
 
that's all I need ?
 
12:11 AM
and
 
omg i'm so excited / giddy to press play.
 
<asp:Repeater ID="blah" runat="server" OnItemDataBound="rptList_ItemDataBound">
you may not need that depending on if auto wire events it turned on
but it doesn't hurt
 
well it just gave me a null reference exception so let me check
hmm yep I have it all
and it's telling me null reference exception on load
 
which line?
 
<asp:Panel ID="AddNotePanel" runat="server" Visible="False">
                                      <div class="likesList">
                                        test
                                    </div>
                                    </asp:Panel>
when it is trying to find "AddNotePanel"
        button.Click += (somethingotherthansender, args) => e.Item.FindControl("AddNotePanel").Visible = true;
that line
 
12:14 AM
try this
right above that line put
Panel panel = (Panel)e.Item.FindControl("AddNotePanel");
and change that line to
button.Click += (somethingotherthansender, args) => panel.Visible = true;
 
same issue
hmmmpfgh
dangit
maybe I need an entirely different approach
 
may i suggest javascript?
 
yes you may
I was playing around with jqeury
jquery but kept running into the same issues
or somewhat similar issues
Control 'rptList_ctl00_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.
Couldn't get my textbox to nest without trowing all shorts of errors
and I had all the runat tags working.
 
12:40 AM
hey kyle
@RaySülzer - try a generic html text box
<input type="text" ...
 
But, then how will I post data to the sever?
 
runat server
 
hmm
 
or jquery to webmethod is a much e=better way if it makes sense in your situation
@KyleTrauberman
 
I'm trying to do something that I feel should be simple.
When someone clicks "add note"
 
12:43 AM
what?
 
a box appears that lets them add a note
saves it to database
done.
 
that should definetly be ajax
you do not need a postback for that
 
:) now is time to learn ajax
:-D
I just started programming like two months ago
 
straight to c# ?
 
my first app!
Yes, I did VBA in Excel, but that's like easy stuff haha
 
1:07 AM
is anyone here?
 
No one here but us chickens.
I'm trying to figure out how to get an azure sql database configured.
 
yes
i'm here
about to run into a wall with this nested repeater
 
haha
hey I have a function in code behind , egghh , let me explain
 
don't we all ;)
 
hold on, let me gather my thoughts
If I call a function directly from page-Load and reference a query string it works fine , but in a button click event handler , it goes through a bunch of code , then into the same function that was run from page load , but the second time it says object reference is null -referring to the query string
WTF??
 
1:13 AM
uhh
 
if someone said that to me , i'd be like - we'll there is something else giong on, but there isn't!
 
can you put the page load function in
!IsPostBack {}
so it only does it once?
or would it rock your world?
I had the same issue when I was submitting a form and then it wouldn't submit because the page load would overwrite the data
similar*
 
It checks if your logged in - if yes straight to function , if no then the page is displayed and then on button click it sets cookies , logs in , then somehow looses the querystring
 
can you set it in sessionstate?
 
it was in session - had to move it to cookie
 
1:16 AM
cookies yummm
sorry
wrap it in !IsPostBack
see what happens
on the page load
 
I hate VB !! If IsNot PostBack Then ... (I think)
 
oh VB
can't help you there buddy
 
no, i can translate , just bitching
 
lol you know how to setup nested repeaters? haha
i'm at my wits end
 
yea , well I have never used repeaters , I prefer sending HTML directly like I like it
I prefer cloning html
 
1:28 AM
hrmm
 
I personally prefer templates and json data, but that's just me.
 
i'm so noob
i need to take a break
i'm burnt
 
@karbon - that is what I meant
 
ah, right on.
 
clone the template
template in jquery is depreciated , now its clone
0
Q: query string is throwing exception for being null when its not

Scott SelbyHere is whats happening , If the user is logged in - this is called directly from Page_Load Protected Sub EnterNewTransInDb() Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("connstring").ConnectionString) Dim comm As New SqlCommand("INSERT INTO tblRegisterRe...

any help ?
 
1:34 AM
Whats up guys?
 
what up kinected - check out my question
 
What about it
 
an answer would be cool
 
:)
 
upvote will do though :)
 
1:37 AM
Just because you asked...
 
bastard
...
 
Psych!
 
haha
 
@Billdr Working on texturing :D
 
1:52 AM
know any good ajax introductory tutorials?
 
I wish
 
um yea
just go to jquery website
or google jquery ajax with asp.net
 
Do any of you know gimp?
 
2:42 AM
0
Q: Execution time of Matrix Product of two N x N matrices in C

Bic BI am trying to measure the time it takes to carry out a Matrix Product of two N x N matrices: AB = C I have managed to write some code for it but for some reason its not working at all. I think the for condition for k might be the cause and also for some reason the time is not getting measured. ...

 
@ScottSelby
 
3:40 AM
you still here @KyleTrauberman
 
nite guys
i got a 6am flight to fayetteville, ar
 
it'll be warm there
 
you think?
i'm flying out from DC
 
oh... I don't know
 
kinda @ScottSelby
 
3:46 AM
I'm the only one workin at 10:45 pm????
thats not right...
 
I'm playing planetside 2
and borderlands 2
 
at the same time *
 
im losing it
 
*disclaimer: not at the same time
 
3:48 AM
I took like an hour trying to figure out why this wouldn't work , I had the wrong handler , and my code wasn't being gone through at all
 
3:59 AM
Hi all, I wrote some code for matrix N x N multiplication and tried measuring the time but for some reason the run time prints 0
would you know could be causing this
clock_t start, stop;
double t = 0.0;
start = clock();

//code here
stop = clock();
t = (double) (stop-start)/CLOCKS_PER_SEC;
printf("Run time: %f\n", t);
 
I tried to go to your question , but it was deleted
 
yeah I had to delete it coz it was part of my assignment =(
If someone else copies the code then I will get 0 aswell
 
i have no idea man , im too tired to figure that out, you are missing a lot of that code
 
Hmm I made sure the matrix multiplicaton works fine
so i put the start() just before the for loops of the multiplication and then stop() it after
 
I don't know what clock_t is
or CLOCKS_PER_SEC
 
4:03 AM
=)
I would show you the code if theres a way only us 2 can view it
 
I haven't used c since school years ago
you did type this line wrong though
cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
 
tried that but stil coming up as 0
 
Hey there. Could anyone possibly read this (rather forcibly shortened) description of a persistent and immutable O(1) real-time queue that uses strict evaluation
 
I am using C btw!
 
There's a longer version with examples but it frightens people
goo.gl/wNm7A also some drawings
the drawings aren't complete. Especially not the latter ones.
IT has height log* (iterated logarithm) and a quite predictable structure so it can be very well used for indexing as well. I'm not sure how that works out though.
 
4:22 AM
fuk the code was too small!
 
 
1 hour later…
5:38 AM
good morning!
 
6:22 AM
why can't i pass by reference in a foreach loop :/
 
damn, awfull quiet over here
 
morning rob
 
morning Samy
oora
 
:) how'z ur day today
oora??
 
Samyooora
:)
it's your name
 
6:23 AM
lol, they are zeros not Os
 
:)
my day is fine. Still working on a new software release
i'm happy when it's done
 
great
:)
 
this platform sucks
 
which platform??
 
My boss thought he was smart, so he bought some crappy middleware layer to develop his software
it's a tool that some company developed but didn't have a clue about what they where doing
full of bugs and restrictions
 
6:27 AM
meh, bosses and their weird decisions,
 
i'm helping him out for now. We are starting a big migration project to ASP.NET MVC 4 end this month
well, he agrees that it sucks
 
but he didn't know that when he bought it a couple of years back
:-)
 
i discovered one of the leak reasons,
 
well, what was it
i'm curious!
 
6:30 AM
i am recieving a string file of around 4 mb
obviously it gets stored in a variable
then i split that file into an array based on the documentation
but that makes anathor copy of the data does'nt it
 
yes it does
that's the string type
 
now i am passing each member of the array to a method with pass by value
that duplicates it again
and in that method, i again split the member into further smaller array, more duplicating
 
that's not good
:) good for you that you found out
time consuming issues
 
i just sat for an hour and actually went through my whole code
i was just trying to breakdown the large string into small parts, but i forgot to collect the left behind parts
 
okay, are your problems solved now?
 
6:35 AM
not yet,
working on it now
but that delegate thing still remain
due to multithreading, i am bound to use delegates
and delegates are evil,
they have a very dark side
:o(
 
it won't let me use pass by ref in for each
:(
how can i pass by ref in foreach
?
 
sorry, i was getting coffee
 
cofffee........O_O
 
i can haz coffee....:P
 
6:45 AM
"The iteration variable corresponds to a read-only local variable with a scope that extends over the embedded statement."
 
i want this
foreach (string value in Allmarkets)
{
makeMyTree1(value);
}
===>makeMyTree1(ref value);
actually the value itself is a reference to the original array members
so i think it can not pass a reference of a reference
:|
 
i'm not sure what you are trying to accomplish. Can you post the MakeMyTree1 method implementation?
 
i am trying to stop duplicating my string again and again
make as few copies as possible
 
ok, but what are you doing with the value inside the other method
 
here it is 'https://gist.github.com/3857036'
i am making more copies of it there :|
 
6:51 AM
@Billdr :(
 
hie lew, why sad ??
 
Hi All - We have a lot of custom code written for Login, account setup and role management in C# using old version of .Net framework. Can someone please let me know how it is possible to integrate the old code in .Net framework 4.5
 
Fell asleep, was supposed to be in a meeting with Billdr lol
11pm GMT+ is too late for me apparently.
 
lol
too sad man
 
Yeah yesterday was too depressing for me.. How was the suggestion anyway?
 
6:58 AM
well to be honest, i could'nt get it working for me
some of the libraries were not available in winforms
 
Ok, let me checkout BeginInvoke Winforms
 

« first day (724 days earlier)      last day (4240 days later) »