« first day (440 days earlier)      last day (728 days later) » 

1:27 AM
@Gotalove
 
1:42 AM
@Sabilv
 
hi @eirishainjel good morning
 
 
3 hours later…
4:52 AM
hi @all
 
Good morning
@eirishainjel sup
 
im having issue in converting to string in LINQ query
can anyone help me out?
 
5:16 AM
good morning guys
need a little help
I have a table like this
I want to check if if name john is present or not
if present dont insert else insert
can it done using single query
I can use select coun(*) from test where name='john' ,if it returns >0 then do nothing else insert query
cant it be done using single query?
 
@Justcode hello! :D
 
@SpringLearner ofc, you can
 
5:33 AM
gud mng....
 
5:59 AM
@Justcode ??????
 
yeah
you can do in one query
 
can you tell me how?
 
query is long
you can edit that fiddle and then try something
I will edit it
 
what edit is required?
what changes do you want in fiddle?
 
changes means you haven't tried anything
I can see that fiddle is empty
 
6:03 AM
ok then I will put some values
 
now, explain what you want?
 
As you can see there no named called john
I want to insert john
As john is already not present
so john will be inserted
however if you insert mohan it will not insert as mohan is already present
 
if not exists (select name from test where name='john')
begin
insert into test (name) values ('john')
end


select * from test
 
this is a procedure ,right?
 
yeah
 
6:21 AM
cant it be done using sql?
 
@SpringLearner what you mean by sql?
 
@Justcode can u help me .. related to kendo.treeview
 
sorry, I don't know kendo
 
I dont want in pl/sql
 
spring not able to get you
 
6:23 AM
for SP(stored procedures)
we have create SP first,then
everytime we have to call the the SP using exec
Am I right?
 
you ask just code there is a Procedure, I think it's procedure too, you should ask "this is Stored Procedure ?" they're different
 
yup
 
morning guys
hi @eirishainjel
 
hi. Is there any one know treeview?
 
I dont want in SP
 
6:35 AM
u r using entity?
 
@SpringLearner you can perform the queries sepereatley
get the value from 1st query
do the 2nd query
 
6:48 AM
guys :) any idea about input type radio per table row in html? :D
 
what?
 
Use foreach or for
lazy loading in entity framework?
 
@Gotalove yes thats what I am doing now
 
7:33 AM
good afternoon all
 
posted on March 12, 2015 by kbironneau

/* by L0fty85 */

 
good afternoon
Vikas
finally posted on SO the gridmvc problem
0
Q: GridMvc render column based on if condition

GotaloveI am trying to render a column based on condition in gridmvc like below : @model IEnumerable< BasicSuprema.Models.BioUserModel > @using GridMvc.Html @helper CustomRenderingOfColumn(BasicSuprema.Models.BioUserModel users) { if (users.cardType == 0) { <span class="label label-suc...

 
8:26 AM
@Gotalove try this
columns.Add(c => c.cardType).Titled("Card Type")
.RenderValueAs(c => c.cardType = 0 ? Normal : ByPass);
tell me if there is any error coz i cant test it here
 
hii all
 
hi all a question : being a asp MVC developer which method you use mostly in your project's, Code First or Database First ?
 
can anyone suggest, how we can prepare an application on mobile platform that can connect with sharepoint
a general idea will be helpful
 
8:52 AM
guys any one know which is the open source or free site to shorten urls
 
@stom both. for the smaller projects database first and for the bigger projects codefirst
@SpringLearner try googling
 
yes i am doing that
but if you guys know it then it will be helpful for me
 
hmm
I have no idea :P
@Gotalove I think something to do with BioUserModel
not sure yet to confirm
@Gotalove
try alternative?
@foreach (IGridColumn column in Model.Columns)
{
    if(column.Name == "CustomColumn")
    {
          <td class="customclass">@column.GetCell(item).ToString()</td>
    }
    else{
        @Html.Raw(column.CellRenderer.Render(column, column.GetCell(item).ToString()))
    }

}
 
okay
let me try @Justcode
@VikasRana your approach 1st
 
okie
 
9:08 AM
@VikasRana I tried adding Normal,and Admin as vars like
 var Normal="Normal";
 var ByPass ="ByPass";
error Constant value '0' cannot be converted to a 'bool'
 
@Justcode thank you for the tip. Do you know any good tutorial or resources for code first ?
 
@stom may be in code project you can find some.
 
@Justcode thank you for that
 
welcome
 
no go yet Justcode
 
9:18 AM
@Gotalove ?
 
still havent sorted it
 
@Gotalove I've given you an alternative... tried?
 
yes thats the one am struggling with now
 
show me implemented code
 
@Justcode give me the link you got it from
@foreach (IGridColumn column in Model.Columns)
{
if(column.Name == "cardType")
{
if(column.GetCell(item).ToString() == "0"){
@Html.Raw(column.CellRenderer.Render(column,"Admin")
}
}
else{
@Html.Raw(column.CellRenderer.Render(column, column.GetCell(item).ToString()))
}

}
 
I need to have it paste a different value in the row not add a class to the entire column
that won't do for now
 
I'm still not getting you. but, I think this will do the trick
 
posted on March 12, 2015 by kbironneau

/* by poney */

 
9:47 AM
Hey guys, it's my first time here can I just ask questions?
 
9:57 AM
@VítorMartins yes. but, read the rules before you post.
 
I developed an ASP.NET Web API and when I created it I chose no authentication. But now the boss man wants me to use active directory (Which I had never even heard of). So I have to implement it. At the moment I'm connected to another computer that has a visual machined with the active directory server and is connected to mine through a switch. How would a connection string to a thing like this even look like? How do I test that connection string? ... Is this a correctly formulated question?
 
Thanks I think that will help! ;)
 
On appending new row in kendo grid my previous datas gets cleared
This is my question link.I cant able to get solution for these..
0
Q: On appending new row in kendo grid my previous datas gets cleared

venkiIn my project,i dynamically adding new rows to the kendo grid.I entered datas to that row.But on appending new row to the grid the entered datas gets cleared.I am trying to add batch creating of records. here i used kendo widgets in all columns.My code is @(Html.Kendo().Grid<POC_Grid.TblProduct...

 
 
2 hours later…
11:49 AM
@krishnamohan can u helpme to find out a solution related to treeview
 
12:12 PM
@ishaan sorry @ishaan i never worked on treeview , nyway where is ur question?
 
Hahaha
 
when he gets to the laughing yoga I couldnt help it Lol
 
Read a Comment Below
i need my 8inutes back
 
hahahahhahahahhahahahhahahahhahaha
:D :D too good makes me off the chair
 
@krishnamohan i need to customise treeview like this.The behavior should be:
* If the parent node is selected, by default all child nodes should also be selected
* If the parent node is NOT selected, the user should be able to select all child nodes without change the checked state of parent node.
 
12:26 PM
still laughing
@Gotalove my stomach is paining now
 
any one experiened in cron job?
 
Listening very nice Song....
Nice TUne
@Justcode I didn't find Visual Studio Installer in My vs 2013
How can i add it??
 
12:44 PM
@yash don't know. what you trying to do?
 
Creating Setup for winform application
@Justcode
Listen this
@Justcode
You remember this??
 
@yash yup :')
tears on eyes
 
Nice tune it is....
 
@yash try installshield
 
Hahaha Tears....
Limited Edition??
 
12:56 PM
yup
 
ok
One more thing
How to Run a Form Only first time of Application when setup is Installed??
 
@yash remove that form after installing?
 
yes
After Install Have to save some personal info than i should never run again...
 
hmm
 
Understand?? @Justcode
??
 
1:10 PM
yeah,you should delete that after first run!
as I said
 
hmmm....or should i use Custom Dialog during Setup Installation??
 
both can be used. but logic is same
 
is it okay to assign a null to .SingleOrDefault() like .SingleOrDefault(null) ?
@yash @Justcode?
 
1:25 PM
@Gotalove vary upon where you are using it.
 
like here
 u.DepartmentID = db.Departments.Where(x => x.DepartmentName == deptname)
                    .Select(x => x.DepartmentID).SingleOrDefault(null);
departmentid is a nullable int
 
@Gotalove no need then.
 
1:42 PM
any one knows batch scripting?
url is entered from commandline
I dont want insert url in the command line
just I will put the url name in the file itself and when I call callurl then it should call the URL
how to do?
 
 
1 hour later…
3:02 PM
posted on March 12, 2015 by kbironneau

/* by Frankie */

 
 
2 hours later…
5:04 PM
posted on March 12, 2015 by kbironneau

/* by proudh0n */

 
 
3 hours later…
8:13 PM
hey guys, what's the best solution in MVC to set different cache expiry for various sections of a page? @Html.Action with [ChildActionOnly] seems to do the trick, however asynchrony is lost that way.
 

« first day (440 days earlier)      last day (728 days later) »