« first day (390 days earlier)      last day (778 days later) » 
02:00 - 09:0009:00 - 20:00

2:01 AM
Folks, I want to access the Application object in a .cshtml file, but the Application object is not available. It's underlined with a red squiggly line.
What could be the cause? What am I missing?
 
 
1 hour later…
3:02 AM
hi good morning!
 
hi good morning
 
3:25 AM
@NickAlexeev have u imported reference of that object in ur cshtml file. @using Application.Models.Student;?
@SpringLearner you should read about MERGE in Sql Server. It can be supported in MSSQL 2008+ version.
 
3:44 AM
@Nimesh Thanks for the response. No, I haven't imported references. Sorry, I'm a newbie when it comes to ASP.NET .
What should I import to get access to the Application object?
 
good morning to all
declare @IsSpecialIncentive as char(1)
if exists (select IsSpecialIncentive from requirements where RequirementsID= (select RequirementID from RecSubmissionSummary where RecSubmissionSummaryID=@RecSubmissionSummaryID))
begin
set @IsSpecialIncentive = (select IsSpecialIncentive from requirements where RequirementsID= (select RequirementID from RecSubmissionSummary where RecSubmissionSummaryID=@RecSubmissionSummaryID))
if @IsSpecialIncentive='Y'
set @IsSpecialIncentive = 'Y'
else
if @IsSpecialIncentive='N'
 
@using Namespace.Models
@model Namespace.Models.LogOnModel

@{
    ViewBag.Title = "Hello" + Model.MyName;
}
@NickAlexeev
 
@RecSubmissionSummaryID=56962
is this Correct ?
 
@Suresh if the code is bigger than try to use pastie
 
ok Nimesh
@Nimesh plz check this code
 
3:54 AM
is it like this pastie.org/9846022 choose language too from the top-left corner of pastie window
 
@Nimesh ok nimesh
 
take a look at this pastie @Suresh
 
Gm Guys.....:)
 
morning @vishuminhas
 
Hows u @Nimesh?
watsup?
 
4:00 AM
Im fine but, stuck at Navigation toolbar in jqGrid
how about u?
 
I am fine @Nimesh
What you doing with the navigation bar and where you stuck?
 
@Nimesh thanks its working fine
i used kendo tabstrip , 3 contents are there, in 1st content if i click one drop down field means i used disable all functions in 3rd content , then i used some Jquery validation in 3rd content , if i fill that form then choose that drop down field then click submit means it validate the 3rd content while disable mode.. how to solve this pbm?
 
Morning Guys.....
 
Moorning @yash
 
Whats going on....@vishuminhas
 
4:11 AM
@vishuminhas actually I am trying to open add dialog window from navigation toolbar. but, its not responding.
 
Working on admin panel @yash what about you?
 
Hmm...Working on Javascript now...boring work....
 
0
Q: jqGrid add button in Navigation Toolbar does not work

NimeshI am trying to create a grid that allows user to add, edit and delete the record. I have done working for populating grid now I am going to display dialog for add record. But, I don't why it doesn't work. Dialog does not getting displayed. This is the snapshot of my grid. and this is my js fu...

 
plz check this out
I can't figure this out
 
@sabbir try to place this line console.log($scope.myData.fromServer); on success event
 
4:17 AM
@Nimesh, no problem in success event
 
Now I need to do some operation with $scope.myData.fromServer and It still undifined
 
@sabbir because success event is invoking after console.log($scope.myData.fromServer); line. So, u cannot get fromServer object initialized at that time.
 
@Nimesh, then why console.log($scope.myData); show all data of $scope.myData.fromServer
 
you can use $scope.myData.fromServer object only after success event invoked.
@sabbir can u make a fiddle of this code?
 
4:26 AM
morning all
 
Morning
 
Moorning @VikasRana have you worked with jqgrid?
 
@Nimesh i solve that by linq query actually i'm using code first with db so relationships are already built in classes
@vishuminhas no , only in grid.mvc
 
@VikasRana good but, creating a mapper class between two entity for many to many relationship is good practice whether u r using code first or not. it will make your logic clear and easy to understand.
 
@Nimesh i think its auto created but not sure
kk let me read article
i found that i just need to clear the solution
 
4:32 AM
yeah when u use Db first then it will be created automatically but, when u use code first then u have to create it manually.
 
i used code first with database first in EF 6.1.1 all code is autocreated like code first
@Nimesh
 
Good Morning @VikasRana @yash @Nimesh @vishuminhas and all
 
morning
 
@cool morning
 
Morning @Cool @VikasRana
 
4:37 AM
@yash @Cool o/
 
I get fb json data string from fb graph api, Can I make linq operation so that I get my desire data.

JArray values = JArray.Parse(jsonString);
and
dynamic data = JsonConvert.DeserializeObject(jsonString);
I use both method, but I don't know what next?
 
@vishuminhas jqgrid seems interesting is it free
 
what is the meaning of start a bounty ?
 
Yes it is open source @VikasRana.
 
hmm i just found it has a commercial editon also @vishuminhas
@Nimesh @vishuminhas is it right link ?? codemerx.com/jqgrid/free-asp-net-jqgrid-server-control
 
4:54 AM
for jqGrid? no
 
@Nimesh than ???
 
it redirect me on same link :p
 
@vishuminhas i have created a fiddle and its working fine but, still i could not recognize the issue jsfiddle.net/yNw3C/9800
 
4:55 AM
hahaha @Nimesh same problem i have faced yesterday remember?
 
@VikasRana hain??
@vishuminhas yeah
 
ok@vishuminhas
 
@Nimesh show me your fiddle
?
ok got it
 
@Nimesh i click on download for asp.net from this link and it redirect me to the link i provided above
 
ohh that is registration page u have to register before downloading it
but, i am using package from console manager in vs
no server side code feature included
 
5:03 AM
@Nimesh +1 is it on nuget ???
 
yes
 
thakyou you make me happy today :))
i'll try jq grid now
 
jqGrid is very nice grid but, its requires too much maintenance. all the codes are written in client side. so, if u want to modify any validation then u have to do it both side. serverside and client side.
 
hmm and Crod operations server side or ajax calls
 
for example the max length of any field
 
5:07 AM
ohk i'l try its features
 
Hi guys
 
@VikasRana ajax, most of grid does not call postback. it will slow down the the application when postback occurs. because it has to carry all the data of grid on every postback. even there are lot of chances to lost entered data or unsaved data.
 
@Nimesh i know almost null about ajax calls have to read something about it
do you have nay good article
 
I think handling postback event is much difficult than ajax call. anyway i am giving u a basic example of it. wait
 
:) ok
 
5:27 AM
are u using only asp.net or with mvc?
 
Mvc 4 with EF 5
 
i have a text box in my view page and i need to check (other than numbers any value is giving in that time i should display error ) in controller what type of value have passed .if value is number then fine else i should store a string that enter proper value(here i am thinking to use Tempdata or Session) ...that i will show in view page
any idea
i am not using Model
whatever i have do in controller and view
 
you should use data annotations for validation
@cool
in model
 
yes @vishuminhas that i have done many times but here the case is different
 
could you please paste your code in pastie?
 
5:31 AM
wait
like this i am trying to do
this u check
last one
 
you should use viewdata here
if you use tempdata then you should empty tempdata everytime on page postback
 
tempdata is used to take data from one controller to another as vishu said use viewdata
 
@VikasRana +1
 
ok
if (collection["Employee To"] != string.Empty)
{
if(collection["Employee To"]==)
}
can we use regular expression here
@vishuminhas @VikasRana
 
5:48 AM
in C#?
 
no mvc 4
 
heheh mvc 4 is not a language. i mean want to check it in C# code or javascript?
 
:D :D
 
you can use regex classes and compare it
 
r u using cshtml page and want to check this validation in razor code?
 
5:50 AM
@Nimesh I think merge is used in tsql ,isnt it?"
 
haha ...no means to say validation i need to give in controller
 
yup @SpringLearner
 
yes @Nimesh
 
I want it in pure sql
actually my back end is in java
so I want only in sql
 
can't u create stored procedure for this?
 
5:52 AM
Morning @Nimesh @VikasRana
 
morning @Elahe
 
yes I can create store procudre but
it will be helpful if I have many stored procdures
we do not use stored procdures at all in our project
 
morning @Elahe
 
ur requirement creates the limitation here. U don't want to use TSQL in ur project so, the features like IF.. ELSE and MERGE could not be used. So, I think u have to manage it manually in ur javacode
 
so I have to use 2 sql queries
right?
 
5:56 AM
var hasRecord = dbHelper.HasRecord("where myId=1");
if (hasRecord)
    dbHelper.InserRecord(....);
else
    dbHelper.UpdateRecord(...);
yeah just like that
 
ok thanks
have you worked on sharepoint?
 
nop
i mean never did work with sharepoint
 
@SpringLearner hy
i had worked on sp
 
@HarshBhavsar cool
basically I am a java devloper
but now thinking to migrate to SP
 
6:06 AM
@SpringLearner good.
i am working on sp2013
 
since how many years you are working in SP
 
cool
your total IT experience?
 
6:14 AM
hi @SpringLearner
 
@Cool hi
 
had u solved yestdy problm ?
 
nice
 
thanks to you both for helping
 
6:17 AM
Good mor
 
@SpringLearner have u worked in Hibernate
Spring
 
yes i am working on it now
 
mng @Justcode
oh grt
 
@Cool o/
 
u r there in java group
 
6:19 AM
this is my room

Java, Spring,JPA, PHP, jQuery & Javas

This room is for Java, ,Spring Framework, JPA, Javascript, jQu...
 
okfine
 
@Nimesh best luck for the interview
fad ke ana
 
thanks @Justcode
 
which position you're applying for?
 
Im totally prepared for it
i haven't applied they have sent me a request
for TL
 
6:21 AM
ok good and MVC?
@VikasRana kya bhai kaisan?
 
@Justcode don't know about it.
 
@Nimesh kk
 
bdia bhai tu suna @Justcode
 
@VikasRana bas acha he
from tomorrow I will be on leave till 26
 
why vacations
 
6:28 AM
@Justcode very nice.. i also want mini vacation like that
 
taken leave for 22,23 and 24,25,26 holidays so wanna attend my brother's marriage and need some rest
will not code single line on this days
I'm just freaked up by the code from morning to evening
So just wanna enjoy enjoy enjoy enjoy
 
gud luck enjoy alot
:::::::)
 
someone is here but not responding
 
btw, any suggestions for the blazer ?
I wanna buy
 
@Justcode try rajwadi
from gopal maninagar
 
6:30 AM
@Nimesh its too costly I'm thinking to go at ratan pol
 
wats ur budget?
 
3000-4500
 
and u want in 2-3 days?
 
WIndow 10 Will be Released Today
 
@Nimesh today
why 2-3?
 
6:32 AM
i think hardly possible @Justcode they will for u ask for at least 10 days to finishup the fittings
 
@Nimesh I'm ok with ready made
 
better luck if u found any in ratanpol. but, it needs to be fit as per ur physical structure. so, they have to do some tailor work on it.
 
Hey guys I decided to learn java from today, how is my choice?
 
@Nimesh I'm 99% sure it will be available fingers crossed
 
its really very good. if u want to learn it u should also learn android development using java code in eclipse @Elahe
@Justcode my wishes with u.. go my son.
 
6:37 AM
:"D
like that
 
@Justcode +1 it suits you
 
morning
 
i hope they will deliver the product by today evening.
 
@Nimesh lol no
 
guys why doesnt my string become empty here pastie.org/9846718
 
6:42 AM
guys i want to dynamically create 10 Divs side by side but on the contrary they are displayed in new line each. I keep the followng line in $.each():
$('#Panel1').append('<div id="divId"' + i + ' style="height:80px;width:80px;float:left;background-image:url(\'Image/' + images[i] + '\');"></div>');
 
am trying to use an array to check if string contyains matching characters and if it does remove from string but its failing @yash @Nimesh @TheDictator
@Justcode can you help with my problem above?seems all are busy
 
@Gotalove ur code is not clear.. there is Next statement but, i could not find For please post full and select the lines where u r getting problem
 
1
Q: Removing unmatched part of the String after a Regex match is done - c#

KrishnaI have a Regex like this String ddmmyyyy = @"[0-9]{1,4}\p{P}[0-9]{1,2}\p{P}[0-9]{1,4}"; In my program I encounter a string which is "animal14-07-2014preserve" (mystring). When I use the following a simple code to check any match, like this Regex rgx = new Regex(ddmmyyyy, RegexOptions.IgnoreCa...

 
sorry @Nimesh here pastie.org/9846735
having a look now Ankit
thanks
 
@Gotalove better you remove element or use regex
 
6:52 AM
cant use regex match coz it has to be exact string
 
use foreach @Gotalove
 
still no luck it is not replacing it
it is matching it but not replaing just like before
 
put your code now
 
@Justcode solution->
isn't that because strings are immutable?
_pension2.Replace(lstfilter(j).ToString, " ")
I think that returns a string, and you should assign that back to _pension2
 
ammm not sure is it going inside that line?
I mean checking is working fine right?
@Elahe decided then why asking?
 
7:07 AM
@Justcode Nice Blazer......
 
@yash :P
 
Really good one....
 
yea but I don't think they can deliver in one-two days
 
I think they will....Is There Any Extra Charge for it??
 
@Gotalove i could not understand ur logic. what u want to do exactly.
if the string is exists in `lstfilter` then the part of the string in `_pension2` should be replaced with " "? ie. `_pension2 = "[01], [25], [30]" and lstfilter is having items {"[30]", "[25]", "[40]"} then _pension2 should becomes "[01], [30]"?
 
7:12 AM
yes Nimesh sorry it was not clear
 
@yash 15-60 days $0 else $35 extra withing 3 days
 
Too Much...
 
@yash This item does not ship to India
 
oh Man....
 
7:25 AM
i have tried .net fiddle first time. it is awesome
@Gotalove
 
let me have a klook
 
Good morning
 
AFK having lunch
 
I have a question, I am not an ASP dev but I receive on a website that is hosted on 1 of my servers the following error: paste.fedoraproject.org/172316/14218253
 
neat
 
7:31 AM
Has someone an idea what it could be? I would like to solve that error.
It sounds like a duplicate line or something is that possible? :)
 
@Justcode think you might know what Duikboot is expereiencing
 
posted on January 21, 2015 by kbironneau

/* by IcedLime */

 
7:59 AM
i had
@Duikboot need to check asp code
 
I have no access to that code. Do you have maybe some vague idea what it could be? :)
 
the error is on serverside. without knowing serverside code we cannot assume what could be the reason
 
You mean, it is appearing in a ASP file? /klixmwe.asp, line 1
that one
 
@Gotalove have u checked that fiddle?
@Duikboot yeah same as u can't see php code without its source file
 
Ofcourse ok :)
 
8:37 AM
@Nimesh negative
 
the answer is very informative and it really deserve for atleast 10 upvote.
 
@Nimesh again negative you don't need to do anything
he will receive 3 upvotes automatically and further by users
 
nop.. question is posted at morning and its not getting so much views. So, i don't think the answer will get the much votes
because nobody knows in detail about jqGrid as much he knows
 
@Nimesh yes, as views increases he will receive upvotes
 
i have been searching documentation on online from 3 days
 
8:42 AM
leave it
 
hi there can i ask asp.net mvc questions here ?
 
@stom sure
 
ok
 
this i have posted , can you check whats wrong with me : stackoverflow.com/questions/28061385/…
 
@Nimesh thanks
@stom check that are you passing anything null?
as per my view its not allowing nullable it may be creates error to convert the values in to int
 
8:49 AM
@stom u haven't specified MarksTypeId in your Linq query
 
@Nimesh ,ya i altered the MarksTypetable and added TotalMarks and the values are null in it in sql express , so should i alter again and set default values as 0 ?
@Nimesh i see
@Nimesh should i specify thsi way select new MarksType
{
MarksTypeId = .. ,
@can you tell , cause i am new to Linq
 
do u know MVVM pettern?
 
@no Nimesh
 
create a seperate ViewModel for that MarksType model where u don't need to create MarksTypeId property there if u don't need it. and use that ViewMode instead of MarksType model
 
8:56 AM
i want it conditional is it possible
i want it conditional is it possible
like if value is 1 than write A else B
 
var result  =(from a in myList where a.Name.Contains("Mr.") select new {Name = a.Name, myVal = (a.value == 1 ? "A" : "B")});
like this
 
onkeypress="return number(event,name);" ........ i want to use this onkeypress() inside @Html.TextBox("Employee To")
 
@Nimesh thanks bro :)
 
02:00 - 09:0009:00 - 20:00

« first day (390 days earlier)      last day (778 days later) »