15,999,410 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by itsathere (Top 162 by date)
itsathere
15-Feb-24 8:43am
View
Thanks for you information.
itsathere
15-Feb-24 7:01am
View
I got your point. Thanks but
We have defined dynamic destination path in S3 bucket. So, how can we make sure that file uploaded on specific folder or not
itsathere
5-May-23 13:26pm
View
After enabling the log on the server does not generate the log. That's another reason to not identify the issue. Will try to resolve it by tomorrow with their support help if not and then will ask for a refund.
Thanks for your suggestion.
itsathere
6-Mar-23 7:18am
View
that's true, may due to system issue...btw thanks for your time.
itsathere
21-Jan-23 12:09pm
View
Thanks
itsathere
16-Mar-21 9:30am
View
binary string
itsathere
9-Mar-21 6:43am
View
An exception occurs on Response.End();
and the exception is
ex = {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}
If you need more information, I can share that too.
itsathere
11-May-20 7:46am
View
I am using .net and I am not able to insert data more than 32,767 characters
itsathere
12-Feb-19 10:37am
View
You have neither understand the question nor you have readout the question carefully that's why you are asking these question. Just read the question carefully and here is the link for you https://www.nuget.org/packages/jquery-globalize/
itsathere
12-Feb-19 7:15am
View
All would be valid but conversion to date happen on region basis. If I will try to convert another region format into my region then it will return invalid date.
itsathere
25-Jun-18 6:39am
View
can you explain it with example
itsathere
15-Feb-18 7:31am
View
I want to remove space and line breaks too. As I have mentioned the format above.
itsathere
15-Feb-18 7:29am
View
No, I am not building it. I am getting json format and inserting it to database and again trying to use that json and getting exception.
itsathere
6-Nov-17 7:46am
View
Yes. Now, I have got solution.
Thanks
itsathere
6-Nov-17 4:35am
View
It's known thing, I need proper solution that's why I have posted it here.
Thanks
itsathere
6-Nov-17 3:45am
View
@Html.DropDownListFor(m => Model.UserId, (Model.GetUsers == null ? Enumerable.Empty<selectlistitem>() : Model.GetUsers.Select(a => new SelectListItem { Text = a.Name, Value = a.ID.ToString() })), new { @class = "form-control" })
itsathere
6-Nov-17 3:43am
View
Deleted
@Html.DropDownListFor(m => Model.UserId, (Model.GetUsers == null ? Enumerable.Empty<selectlistitem>() : Model.GetUsers.Select(a => new SelectListItem { Text = a.Name, Value = a.ID.ToString() })), new { @class = "form-control" })
itsathere
3-Jul-17 6:51am
View
Yes and still trying to find.
itsathere
23-Sep-16 10:37am
View
But I need it dyanamic try to understand the situation.Btw thanks for your valuable time.
itsathere
23-Sep-16 10:30am
View
Thanks for suggestion.I am trying to figure it out.
itsathere
23-Sep-16 10:21am
View
I have dynamic lots of data to bind in header not only 7.When 1st time I load calendar then fullcalendar binds data correctly because I am providing json databut on search it should be change dynamically.So, header will be dynamic.
itsathere
23-Sep-16 10:17am
View
Yes, header should be like your mentioned image url.
itsathere
23-Sep-16 10:14am
View
But I have lots of column to bind in header but there is only 7 days in a week then how will I handle lots of data in your scenario.
itsathere
23-Sep-16 9:52am
View
City1 city2 city3 city4 city5 ... these are dynamic header in place of Sun/Mon/Tue/Wed/Thu/Fri/Sat
and I need to change it dynamically onchange in dropdownlist.
below is url of snap shot
http://imgur.com/FnHkZ7x
itsathere
23-Sep-16 9:44am
View
Yes. below is url of snap shot
http://imgur.com/FnHkZ7x
itsathere
23-Sep-16 9:41am
View
I don't know to how to post screen shot but I am an example below
City1 city2 city3 city4 city5 ... these are dynamic header in place of Sun/Mon/Tue/Wed/Thu/Fri/Sat
and I need to change it dynamically onchange in dropdownlist.
itsathere
23-Sep-16 9:22am
View
If you see the demo fullcalendar header of calendar show Sun/Mon/Tue/Wed/Thu/Fri/Sat.In my case all these days are places which is dynamic and I need to change it dynamically.
itsathere
23-Sep-16 9:22am
View
If you see the demo fullcalendar header of calendar show Sun/Mon/Tue/Wed/Thu/Fri/Sat.In my case all these days are places which is dynamic and I need to change it dynamically.
itsathere
23-Sep-16 9:18am
View
On dropdownlist change I need to refresh data of calendar where header and event of calendar is dynamic.I am able to change event title but unable to change it's header value
itsathere
23-Sep-16 9:18am
View
Deleted
On dropdownlist change I need to refresh data of calendar where header and event of table is dynamic.I am able to change event title but unable to change it's header value
itsathere
20-Sep-16 9:27am
View
thanks, I have done it by myself before you have provided the solution.
itsathere
20-Sep-16 8:12am
View
It's same solution I have tried and given link of stackoverflow, have few modifications that's it. btw thanks.
itsathere
20-Sep-16 6:33am
View
http://stackoverflow.com/questions/1146789/rendering-a-hierarchy-of-options-in-a-select-tag
Trying to implement the same.
itsathere
17-Jun-16 6:01am
View
loop will take time.Is it possible or not?
itsathere
10-May-16 6:30am
View
It's windows authentication not active directory authentication.
itsathere
12-Apr-16 11:23am
View
I have got the solution by putting @@ at @.Thanks for your reply.
previous version
var pwd = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@#$%^&*()_+]{6,}$/
new version
var pwd = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@@#$%^&*()_+]{6,}$/
itsathere
12-Apr-16 5:14am
View
@ not support in mvc view due to razor engine. I have checked regex
var pwd = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@#$%^&*()_+]{6,}$/
if you are able to modify, reply.
itsathere
12-Apr-16 3:25am
View
Yes, it fine but what about if i use regular expression like below but getting error ""#" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid." due to razor
var pwd = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@#$%^&*()_+]{6,}$/
itsathere
5-Apr-16 10:57am
View
on button click call call controller action method using ajax/json. You will get many code on google search.I think, it will be better for you.
itsathere
4-Apr-16 9:16am
View
I have created a desktop application and used below code System.Diagnostics.Process.Start("http://localhost:2042/Admin/EmailDatabase/Sendeamil");
to redirect url in browser it will help to reach the method at particular time .It's working after clicking that shortcut of executable file but after scheduling and attachment of the shortcut file not working the same.
itsathere
2-Apr-16 10:09am
View
Yes, Its working.Thanks for explanation.
itsathere
2-Apr-16 10:03am
View
Explain please.
itsathere
2-Apr-16 9:51am
View
what is 'key'='a'
itsathere
2-Apr-16 4:12am
View
No, from database. I think it does't matter.
itsathere
2-Apr-16 4:01am
View
Yes.
itsathere
22-Mar-16 10:00am
View
I can't attach image here because i think there is no way to upload image in codproject and link is not shareable.
itsathere
22-Mar-16 9:58am
View
when i try those link header comes in a multiple line and rows mix with another rows and all looks hazy.
itsathere
10-Mar-16 5:52am
View
In csv file, I am watching below format
A B C D E
1 COLUMN1 COLUMN2 COLUMN3 COLUMN4
2 col val col val col val col val
3 col val col val col val col val
4 col val col val col val col val
after export, Table data is like below format
csvfileName#csv.E1 csvfileName#csv.E2 csvfileName#csv.E3 csvfileName#csv.E4
1 - s @
1 4 c f
itsathere
10-Mar-16 5:35am
View
using (OleDbCommand cmd = new OleDbCommand(string.Format
("SELECT * FROM [{0}]", file.Name), con))
{
con.Open();
// Using a DataReader to process the data
using (OleDbDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
// Process the current reader entry...
// I don't understand
}
}
// Using a DataTable to process the data
using (OleDbDataAdapter adp = new OleDbDataAdapter(cmd))
{
DataTable tbl = new DataTable("MyTable");
adp.Fill(tbl);
foreach (DataRow row in tbl.Rows)
{
// Process the current row...
// I don't understand
}
}
}
In current situation csv file is reading but Column Name is not matching with exact .csv file column and column value is also not same. MyTable datatable value is in different format or something goes wrong.
itsathere
10-Mar-16 5:15am
View
Your suggested url is good but i am not getting the column name and row values matches with csv file.What to do for?
itsathere
10-Mar-16 4:18am
View
I am able to read the csv file from my above code but main problem is column have sentences with , separated and StreamReader is reading all column with comma separated so,
If I have column
"Column1" "column2" "column3" "column4" "My, Name"
In above i have 5 column
after result i am getting "Column1","column2","column3","column4","My","Name"
and if I split column with ,
then i am getting 5 column ("Column1","column2","column3","column4","My","Name")
so, can you explain me how to split column with ",
itsathere
9-Mar-16 9:12am
View
Did you check the indexes?
explain please
itsathere
9-Mar-16 8:45am
View
still takes 30 seconds and my query takes 23 seconds
itsathere
9-Mar-16 8:01am
View
select ID, ErrorDescription, ErrorPage, IpAddress,
PageEvent, Status, CONVERT(varchar(50),CreatedDate,103) as CreatedDate,
(case when Status=1 then 'Open' when Status=0 then 'Resolved' end) as IsActive from dbo.ExceptionLog order by ID desc
this query takes above 60 seconds on execution
itsathere
8-Mar-16 4:35am
View
Table have foreign keys. Btw thanks again.
itsathere
8-Mar-16 4:29am
View
I have done that. Thank you.
itsathere
8-Mar-16 4:26am
View
THANKS.
itsathere
8-Mar-16 4:19am
View
getting Incorrect syntax near '('.Ok, I am able to resolve error but what about paging if we remove where clause.
itsathere
8-Mar-16 4:13am
View
Incorrect syntax near '('.
itsathere
8-Mar-16 2:35am
View
ALTER PROCEDURE [dbo].[Profile_GETCity]
@PageSize int = null,
@CurrentPage int = null,
@SortExpression nvarchar(max) = null
AS
BEGIN
SET NOCOUNT ON
DECLARE @SqlString nvarchar(max)
Declare @UpperBand int
Declare @LowerBand int
SET @LowerBand = (@CurrentPage - 1) * @PageSize
SET @UpperBand = (@CurrentPage * @PageSize) + 1
BEGIN
SET @SqlString='
WITH
aliases as (
SELECT
[ID],
[Name],
state=(select Name from State_District where City.StateId=State_District.ID),
District=(select Name from State_District where City.DistrictId=State_District.ID),
[PinCode],
[status] = CASE [IsActive]
WHEN 1 THEN ''label label-sm label-success''
WHEN 0 THEN ''label label-sm label-danger'' END,
[commandname] = CASE [IsActive]
WHEN 1 THEN ''Active''
WHEN 0 THEN ''InActive'' END
FROM [dbo].[City]
),
tempProfile AS
(
SELECT
[ID],
[Name],
state,
District,
[PinCode],
[status],
[commandname]
ROW_NUMBER() OVER (ORDER BY '+ @SortExpression+', ID ) AS RowNumber
FROM aliases
)
SELECT
[ID],
[Name],
state,
District,
[PinCode],
[status],
[commandname]
FROM
tempProfile '
end
EXEC sp_executesql @SqlString
END
itsathere
8-Mar-16 2:11am
View
Yes, I am trying for paging with sorting in asp.net webforms.After removing where clause I am getting error incorrect syntax near '('
itsathere
8-Mar-16 1:10am
View
I have already tried this is not working.
itsathere
8-Mar-16 1:03am
View
this query is not returning any data.
itsathere
4-Mar-16 9:48am
View
Your idea is quite good but i have done it by onkeyup method.
Thanks.
itsathere
29-Dec-15 4:59am
View
I wanna click event to redirect details page on image click using anchor tag.
itsathere
18-Dec-15 0:10am
View
Use?.If you have idea then reply.Why should you reply if u r unable to explain.
itsathere
14-Dec-15 8:48am
View
yes.
itsathere
11-Dec-15 3:58am
View
on postback event in Page_Load i have recreated that panel again and if i try to delete from same panel then it's not working but if i delete from another panel it's working fine.
itsathere
30-Nov-15 4:14am
View
create a hidden field and in onchange method of dropdown/textbox store dropdown/textbox value.Finally, on model popup click assign that hidden field value.
itsathere
12-Oct-15 4:25am
View
when i placed '>' this link working but image link not working.you can see the below code
><img src=cid:companylogo/>
itsathere
29-Sep-15 4:09am
View
I have updated my question details.
itsathere
19-Sep-15 1:03am
View
autocomplete works fine but have word arrangement problem on search. when i put a in textbox it's not showing all values start with a.
itsathere
18-Sep-15 10:01am
View
thanks.
itsathere
18-Sep-15 9:13am
View
Yes.I have created a alert message after for loop; alert also showing data but autopopulate..
itsathere
18-Sep-15 9:08am
View
after json result i have checked arrylist on mouse over on records[], it shows array like availableTags but autopopulate not working on records[].
itsathere
8-Sep-15 10:02am
View
above solution does not match requirement.I want to implement that in "Gridviewscroll demo".
btw thanks for comment.
itsathere
3-Sep-15 11:22am
View
var receiveDetails = objDB.GetAllReceivedDetails()
.Where(a =>
a.ReceiveDate.Value.Date == DateTime.Now.Date &&
((DateTime.Now - a.ReceiveDate.Value).TotalHours <=1));
U have done mistake
btw Thanks.
itsathere
30-Jul-15 11:25am
View
Thanks.
itsathere
30-Jul-15 11:02am
View
whatever u have written i think, it's sql command to backup database.
itsathere
25-Jul-15 6:28am
View
In same machine works locally but not from server.I have changed our app to 32 bit but still have same error
itsathere
2-Jul-15 10:18am
View
You did not get the point i have written..Actually, I want to show 2 different view from same controller one for list page another target blank(new tab).
itsathere
10-Jun-15 3:54am
View
It wil be better if i use Timespan
DateTime recentTime = DateTime.Now;
TimeSpan timespan = new TimeSpan(10, 30, 00);
DateTime Exdt = recentTime.Date.Add(timespan);
if(DateTime.Now>Exdt )
{
}
Btw Thanks.
itsathere
10-Jun-15 3:05am
View
Q.can we add time in date?
Example:
Date=6/10/2015+10:30 AM
itsathere
10-Jun-15 2:58am
View
please explain..
itsathere
5-Jun-15 3:09am
View
it's not exact solution..i have to do it dynamically or on database value
btw yesturday, i have solved it by myself.
Thanks.
itsathere
26-May-15 7:28am
View
how will i insert UTC time into sql and after insertion how will i get the actual time in different time zone.
itsathere
25-May-15 12:21pm
View
Good Idea..
thank u.
itsathere
25-May-15 12:06pm
View
var Physiciandetails = objDb.SelectAll().ToList();
Physiciandetails is a list where all table data is available. Now, i want a where clause like below to search FacilityId
var Physiciandetails = objDb.SelectAll().ToList().Where(a=>a.FacilityId==16);
but FacilityId column shows result is like 16,17,14,2,10
Is it possible to search FacilityId within where clause.If yes, then how will i convert particular column to array and will use the array to exact search
If it's not possible to search within list then explain the store procedure for similar result.
itsathere
25-May-15 11:49am
View
I have a list which contains many rows.So, please explain me to convert particular column of list to array
data.Contains(16) not working properly..it gives result of 6 and 16.
itsathere
25-May-15 11:14am
View
actually it'll be better if u explain it in linq otherwise whatever u want.
thanks
itsathere
22-May-15 1:16am
View
I have updated actual linq.
now, i want hour difference between two datetime using below code
DeliveryLateTime = (DateTime.Now - Convert.ToDateTime(item.CreatedDate)).Hours,
itsathere
21-May-15 9:40am
View
I have checked database CreatedDate is not null and also checked like item.CreatedDate.Value but still error is same
itsathere
21-May-15 8:51am
View
I am using Model to insert,update data and model is like below code
public DateTime? CreatedDate { get; set; }
afterward i m using it.
before using Convert.ToDateTime it shows because of it's type DateTime?
itsathere
21-May-15 8:47am
View
elaborate please..
itsathere
21-May-15 7:31am
View
type of item.CreatedDate is DateTime. Actually, without using TimeSpan it may not be possible to get the difference and in linq if i will implement it then coding will be complex that's y i use another static method to get exact difference.
itsathere
21-May-15 1:55am
View
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
$(document).ready(function () {
var interval = setInterval("ReloadPage()", 60000);
});
function ReloadPage() {
location.reload();
}
</script>
In above script 60000 is time interval in miliseconds.
itsathere
20-May-15 5:44am
View
Thanks.
itsathere
20-May-15 5:39am
View
Thanks.
itsathere
20-May-15 1:55am
View
it's 2 hours early in chicago..I have change it locally by changing different time zone it works fine but someone sitting at chicago is saying "it's 2 hours early".What to do now.
itsathere
20-May-15 1:50am
View
if u have problem with my script then forget about above script and reply me new javascript
itsathere
20-May-15 1:49am
View
if u have problem with my script then modify and reply me the exact solution
itsathere
19-May-15 11:48am
View
Thanks.
itsathere
19-May-15 9:34am
View
it's clear and above javascript working but there is time difference at different country or zone.I have to show time with am/pm that's y i did it part wise(hour ,mins,ampm )
itsathere
19-May-15 9:33am
View
Deleted
it's clear and above javascript working but there is time difference at different country or zone.
itsathere
18-May-15 11:33am
View
yeah, anyways thanks.
itsathere
18-May-15 11:26am
View
I have done it myself
Below is the javascript
<script>
function fnchkFlow() {
debugger;
var str = "1,2";
var items = $('#<% = chkFlow.ClientID %> input:checkbox');
for (var i = 0; i < items.length; i++)
{
if (items[0].checked == true) {
items[i].checked = true;
break;
}
else {
items[1].checked = false;
}
}
}
</script>
itsathere
18-May-15 11:13am
View
<table id="chkFlow" >
<tbody><tr>
<td><input id="chkFlow_0" type="checkbox" name="chkFlow$0" value="1"><label for="chkFlow_0">Flow</label></td><td><input id="chkFlow_1" type="checkbox" name="chkFlow$1" value="2"><label for="chkFlow_1">STAT</label></td>
</tr>
</tbody></table>
itsathere
18-May-15 11:02am
View
var optionStat = $(listbox).find("option[value='2']");
optionStat shows below
context: undefined
length: 0
prevObject: jQuery.fn.jQuery.init[1]
selector: "option[value='2']"
__proto__: jQuery[0]
var optionFlow = $(listbox).find("option[value='1']");
optionFlow shows like below
context: undefined
length: 0
prevObject: jQuery.fn.jQuery.init[1]
selector: "option[value='1']"
__proto__: jQuery[0]
itsathere
18-May-15 10:54am
View
It never go inside
if(optionFlow && optionFlow.length && optionStat && optionStat.length)
condition.When i remove the above condition then it always follow below else condition
if($(optionFlow).is(":checked"))
{
$(optionStat).prop('disabled',false);
}
else
{
$(optionStat).prop('checked',false);
$(optionStat).prop('disabled',true);
}
itsathere
18-May-15 10:43am
View
Yea i m testing it on chrome.
itsathere
18-May-15 10:43am
View
Deleted
Yea i m testing it on chrome.
itsathere
18-May-15 10:41am
View
Have u test the javascript.It's not working
itsathere
18-May-15 10:00am
View
I need this in javascript because i have tried code behind.Code behind take time to check and uncheck that's why i wanna use javascript.
itsathere
18-May-15 9:54am
View
in javascript (clientside)
itsathere
18-May-15 9:50am
View
what do u mean?
If u have idea give then give me the javascript of the logic of onchange event
itsathere
18-May-15 9:43am
View
1. if listitem "Flow" will be checked then i can check "STAT" also.but without checking "Flow" i can not check "STAT".
2. If i have checked "Flow" and "STAT" also and then when i will uncheck "Flow" then i have to uncheck "STAT" also because without checking "Flow" i can not check "STAT".
itsathere
16-May-15 3:17am
View
it's was not working.Now, I have changed the code by making a new class object and providing data.d.ObjName and it's working fine.
Thanks.
itsathere
14-May-15 10:58am
View
thank you very much.. :)
itsathere
14-May-15 10:47am
View
thanks.
itsathere
14-May-15 10:44am
View
Your generated FacilityId inside while is not getting checked.what if next generated FacilityId inside while loop matches the database FacilityID.
itsathere
14-May-15 10:42am
View
what if nextFacilityId inside while loop also exist in database.How will i check it again and again till new nextFacilityId.
itsathere
4-May-15 8:36am
View
I did it..Thanks
itsathere
4-May-15 2:00am
View
<li>
<asp:ImageButton ID="btndBlue" runat="server" OnClick="btnDarkblue_Click" ImageUrl="images/Dark_Blue.jpg"
Width="30" Height="30" /></li>
itsathere
4-May-15 1:51am
View
<li>
<asp:ImageButton ID="btndBlue" runat="server" OnClick="btnDarkblue_Click" ImageUrl="images/Dark_Blue.jpg"
Width="30" Height="30" /></li>
There is nothing like that.You can check the button code
itsathere
2-May-15 10:03am
View
Deleted
but still not working..having same problem
itsathere
2-May-15 10:00am
View
Deleted
I have already changed solution..btw thanks for reply
itsathere
7-Apr-15 2:05am
View
when and where i'll use ur if condition..
I have below method in javascript
<script type="text/javascript">
$("#ContentPlaceHolder1_ddlCountry").change(function () {
debugger;
var end = this.value;
$('#<%=hdnCountry.ClientID%>').val(end);
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "ProfileEdit.aspx/GetState",
//url: '<%= ResolveUrl("~/ProfileEdit.aspx/GetState") %>',
data: "{'countryID':'" + end + "'}",
dataType: "json",
success: function (data) {
debugger;
$('#<%=ddlState.ClientID%>').empty();
$('#<%=ddlState.ClientID%>').append($("<option></option>").val(0).html('--Select--'));
$.each(data.d, function (key, value) {
$('#<%=ddlState.ClientID%>').append($("<option></option>").val(value.ID).html(value.Name));
});
var items = $("#ContentPlaceHolder1_ddlState option").length;
if (items == 1) {
$('#<%=ddlCity.ClientID%>').empty();
$('#<%=ddlLocality.ClientID%>').empty();
$('#<%=ddlCity.ClientID%>').append($("<option></option>").val(0).html('--Select--'));
$('#<%=ddlLocality.ClientID%>').append($("<option></option>").val(0).html('--Select--'));
}
},
error: function (data) {
alert("Error");
}
});
});
</script>
and below is the code behind method
//[WebMethod]
[System.Web.Services.WebMethod]
public static StateDetails[] GetState(string countryID)
{
List<statedetails> details = new List<statedetails>();
try
{
int cid = Convert.ToInt32(countryID);
HttpResponseMessage response = objCRUD.Get("api/CountryState/0/0/" + cid); // Controller Name
if (response.IsSuccessStatusCode)
{
var Module = response.Content.ReadAsAsync<List<countrystatemodel>>().Result;
if (Module.Count() > 0)
{
DataTable dt = ToDataTable(Module);
foreach (DataRow dtrow in dt.Rows)
{
StateDetails state = new StateDetails();
state.ID = Convert.ToInt32(dtrow["ID"].ToString());
state.Name = dtrow["Name"].ToString();
details.Add(state);
}
}
}
return details.ToArray();
}
catch (Exception ex)
{
throw ex;
}
}
itsathere
20-Mar-15 11:41am
View
if(diV.Style["display"] == "block")
itsathere
20-Mar-15 11:07am
View
I also checked that not working..
itsathere
20-Mar-15 10:38am
View
i am using style="display: none" to hide div and then i want to check that's all.
itsathere
20-Mar-15 10:31am
View
not working..
itsathere
27-Feb-15 8:38am
View
both of the above comment i have checked already..not working
itsathere
16-Feb-15 5:51am
View
thanks for your valuable comments
itsathere
16-Feb-15 5:51am
View
I have done it with stored procedure btw many many thanks.
itsathere
16-Feb-15 4:20am
View
u have great idea but LeaveDate will be null sometime if employee is still working..
itsathere
16-Feb-15 4:11am
View
on change in query
var emplouee = objempBL.GetAllEmployeeDetails().Where(a => (Convert.ToDateTime(a.DOJ).Year >= 2009 && Convert.ToDateTime(a.DOJ).Year <= Convert.ToInt32(ddlyear.SelectedValue) && (a.DOL == null || Convert.ToDateTime(a.DOL).Year <= Convert.ToInt32(ddlyear.SelectedValue)))).ToList();
itsathere
16-Feb-15 4:08am
View
var emplouee = objempBL.GetAllEmployeeDetails().Where(a => (Convert.ToDateTime(a.DOJ).Year >= 2009 && Convert.ToDateTime(a.DOJ).Year <= Convert.ToInt32(ddlyear.SelectedValue) && (Convert.ToDateTime(a.DOL).Year == null || Convert.ToDateTime(a.DOL).Year <= Convert.ToInt32(ddlyear.SelectedValue)))).ToList();
itsathere
16-Feb-15 3:57am
View
sorry, it's working in sql but same condition not working in linq
itsathere
16-Feb-15 3:51am
View
still not working..
itsathere
16-Feb-15 3:30am
View
all i need is A AND (B OR C)
itsathere
20-Jan-15 5:54am
View
thanks for comment
itsathere
20-Jan-15 5:53am
View
i have done it with below code
Int32 year = Convert.ToInt32(ddlyear.SelectedValue);
DateTime fromdate = Convert.ToDateTime(year + "-" + "01" + "-" + "01");
DateTime Todate = Convert.ToDateTime(year + "-" + "12" + "-" + "31");
itsathere
29-Dec-14 9:10am
View
it's not aspx page above code is in usercontrol.ascx
itsathere
19-Dec-14 8:03am
View
i already checked that and also checked
http://msdn.microsoft.com/en-us/library/system.security.allowpartiallytrustedcallersattribute.aspx
but on changes page show many errors
itsathere
18-Dec-14 8:30am
View
btw thanks..its working
itsathere
18-Dec-14 8:17am
View
on your changes still table shows multiple date of different time interval
itsathere
16-Dec-14 0:45am
View
but every server doesn't contain job schedular..is there any code behind metod to do so
itsathere
15-Dec-14 7:49am
View
mssql server 2008
itsathere
15-Dec-14 7:45am
View
yeah, how to load a method once in a day or at a particular time ?
itsathere
6-Dec-14 5:59am
View
multiple times..
itsathere
6-Dec-14 4:59am
View
please read the code carefully..grid is binding in row command but not showing
itsathere
29-Nov-14 3:20am
View
i want to know with am-pm convertion not 14:00 that will be 2:00 pm
itsathere
29-Nov-14 3:18am
View
create appointment means 'arrangement for meeting'..
I have,
from time: 10:00 am
to time: 2:00 pm
duration between meeting is 20 minutes
then 1st meeting time will be at 10:00 am, 2nd will be at 10:20 and so on..
now problem is how to create the time duration gap of 20 minutes by for loop or while loop
itsathere
26-Nov-14 5:31am
View
u mean it's not possible..
itsathere
25-Nov-14 7:58am
View
i m sending web request to controller..actually i m able to add and edit using api controller but unable to delete or update..
itsathere
25-Nov-14 7:25am
View
HttpResponseMessage response = await client.DeleteAsync(strApiKey).Result;
r u saying the about above code
itsathere
21-Nov-14 10:09am
View
i m beginner that's y i post it here..actually i m bit confused about the topic need help..if u can i'll be thankful to u..
itsathere
14-Nov-14 8:03am
View
thanks for your solution..
itsathere
14-Nov-14 5:40am
View
your query shows last 5 details of OrderNo but not showing multiple sales with same order..
itsathere
14-Nov-14 5:04am
View
In my table fields are SaleID(Primary key), CustomerID, MachineID, OriginalPrice,
OrderNo(Unique generated by code), Salesdate, SalesPrice, Quantity, VAT_CST, Discount, Status
here 1 OrderNo may contaion multiple sale..now i want to fetch last 5 OrderNo..
here OrderNo will be repeated multiple or single times it depend on sale at a single time..If u have solution of my question then help me plz..
Thank u..
itsathere
14-Nov-14 3:38am
View
i want last five orderNo details..1 orderno contain sigle or multiple sale
itsathere
6-May-14 10:58am
View
thanks..it's working..
Show More