15,908,455 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 Python 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 super_user (Top 200 by date)
super_user
17-Jan-17 0:35am
View
he download from folder where as i want to download from database
super_user
24-Dec-16 15:57pm
View
i dont want this.. i said i dont want multiple files selection at a time.. i want to select individual files.
super_user
23-Dec-16 5:17am
View
........
super_user
23-Dec-16 5:06am
View
this is using script or jquery.. i dont want to use this . use only c# ,net
super_user
23-Dec-16 5:05am
View
they are using javascript and i dont want to use javascript or jquery .. . want to do this with only .net c#
super_user
3-Nov-16 0:48am
View
no..there is not any errors.. not event hard coding.. problem is post back works on local host but when i publish and check then post back not working on dropdown
@F-ES Sitecore
super_user
19-Oct-16 7:40am
View
how to add where condition
super_user
17-Oct-16 2:39am
View
ok ... but thanku now done.. i have another question related to this can i ask
super_user
17-Oct-16 1:17am
View
and how to give name to this + re[i][1] + ' ' + re[i][2] + .. means 1 has header abc and 2 have header def then how i give new name .. Info . and then i want to these hide these two columns 1 and 2 and display new column name with data "Info"
super_user
14-Oct-16 2:33am
View
Deleted
table jquery code...
$("#example").empty()
if (re.length > 0) {
$("#example").append
("Service TypeService frequencyLast performedNext ServiceCreate reminder");
for (var i = 0; i < re.length; i++) {
if (re[i] !== null) {
$("#example").append("" +
re[i][0] + "" +
re[i][1] + "" +
re[i][2] + "" +
re[i][3] + "" +
re[i][4] + "");
sdate = re[i][2];
}
}
}
super_user
13-Oct-16 7:43am
View
how to call parameters Service_frequency ,Next_Service,Create_reminder in foreach loop
super_user
10-Oct-16 6:16am
View
this is always public you may check updated question
super_user
10-Oct-16 5:24am
View
this show error
Error 1 The best overloaded method match for 'string.Split(params char[])' has some invalid arguments
Error 2 Argument 1: cannot convert from 'string' to 'char[]'
super_user
10-Oct-16 5:19am
View
check again .. this is exist
super_user
10-Oct-16 3:41am
View
http://i.imgur.com/xmfiApI.gifv
super_user
10-Oct-16 3:41am
View
check this GIF
http://i.imgur.com/xmfiApI.gifv
super_user
10-Oct-16 3:30am
View
no... when i enter 10 numbers in horizontal and enter then error display An unhandled exception of type 'System.Exception' occurred in practise.exe
where as when i try to enter number in vertical i.e when i input number 12 then press enter then message display that not less than 10 ...where as i want to input 10 numbers then want to display message
super_user
22-Sep-16 6:13am
View
I try this to get ID from webmethod
$(function () {
var RegNo = '';
var Status = '';
var latit = '';
var longi = '';
var ID = '<%=Session["ID"]%>'.val();
var obj = {};
obj.ID=ID;
getdata(obj);
return false;
});
function getdata(obj) {
$.ajax({
type: "POST",
url: "home.aspx/info",
contentType: "application/json;charset=utf-8",
data:JSON.stringify(obj.ID),
datatype: "json",
async: true,
cache: false,
success: function (result) {
//map code
},
error: function (error) {
alert(error);
alert("error");
}
});
}
i try to pass id through web method in this line data:JSON.stringify(obj.ID),
when i do this there is error on console
Uncaught TypeError: "442".val is not a function
and when i remove .val() this show error
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
super_user
22-Sep-16 4:22am
View
ok now i done with both marker now will you please tell me how i call id from web method to jquery in this line data: "{'id':'442'}",
beacuse i hard code id in this line but i want id through webmethod
super_user
22-Sep-16 2:58am
View
in jsfiddle i think data is not populated .. so here i share separate links ..
this is link for
1 marker is display through this code
http://www.codesend.com/view/d15d5839083152a217071a168f38c1ef/
and this link for when both marker not display and also map not display
http://www.codesend.com/view/dce4c75055bc6fa461f86533c17f40b1/
super_user
22-Sep-16 2:49am
View
Deleted
and secondly when i try without hard code lat and long like this
$('#tabledata').ready('tr', function () {
var row = $(this);
var No = row.find('td')[0].firstChild.data;
var longi = row.find('td')[1].firstChild.data;
var latit = row.find('td')[2].firstChild.data;
var obj = {};
obj.No = No;
obj.latit = latit;
obj.longi = longi;
getdata(obj);
return false;
});
function getdata(obj) {
$.ajax({
type: "POST",
url: "home.aspx/info",
contentType: "application/json;charset=utf-8",
data: "{'id':'442'}",
datatype: "json",
async: true,
cache: false,
success: function (result) {
alert("map2");
$("#tabledata").empty();
var table_data = JSON.parse(result.d).response;
console.log(JSON.parse(result.d));
$("#tabledata").empty();
if (table_data.length > 0) {
$("#tabledata").append(
"NoLongitudeLatitude");
for (var i = 0; i < table_data.length; i++) {
if (table_data[i] !== null) {
$("#tabledata").append("" +
table_data[i][0] + " " +
table_data[i][1] + " " +
table_data[i][2] + "");
No = table_data[i][0];
latit = table_data[i][2];
longi = table_data[i][1];
}
}
}
else {
$("#tabledata").hide();
}
var map;
debugger;
var latlng = new google.maps.LatLng(24.0895898, 67.0998546);
debugger;
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
debugger;
for (i = 0; i < table_data.length; i++) {
var data = table_data[i]
var myLatlng = new google.maps.LatLng(obj.latit, obj.longi);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: obj.No
});
(function (marker, data) {
var infowindow = new google.maps.InfoWindow({
content: 'No:' + obj.No,
title: obj.No });
google.maps.event.addListener(marker, 'click', function () {
// Calling the open method of the infoWindow
infowindow.open(marker, data);
});
})
}
}
});
}
now when i try above second script then there is no error on console also no map and marker is display
super_user
22-Sep-16 2:48am
View
Deleted
I try this code and 1 marker is display on map but there is 2 rows on datatable
1 marker is display beacuse i hard code lat and long value
$(function () {
var latit = '25.19055';
var longi = '67.84629';
var obj = {};
obj.latit = latit;
obj.longi = longi;
getdata(obj);
return false;
});
function getdata(obj) {
var RegNo = '';
var Status = '';
var latit = '';
var longi = '';
$.ajax({
type: "POST",
url: "home.aspx/info",
contentType: "application/json;charset=utf-8",
data: "{'id':'442'}",
datatype: "json",
async: true,
cache: false,
success: function (result) {
alert("map2");
$("#tabledata").empty();
var table_data = JSON.parse(result.d).response;
console.log(JSON.parse(result.d));
$("#tabledata").empty();
if (table_data.length > 0) {
$("#tabledata").append(
"NoLongitudeLatitude");
for (var i = 0; i < table_data.length; i++) {
if (table_data[i] !== null) {
$("#tabledata").append("" +
table_data[i][0] + " " +
table_data[i][1] + " " +
table_data[i][2] + "");
No = table_data[i][0];
latit = table_data[i][2];
longi = table_data[i][1];
}
}
}
else {
$("#tabledata").hide();
}
var map;
debugger;
var latlng = new google.maps.LatLng(24.0895898, 67.0998546);
debugger;
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
debugger;
var marker = new google.maps.Marker
(
{
position: new google.maps.LatLng(obj.latit, obj.longi),
map: map,
title: 'Click me'
}
);
debugger;
var infowindow = new google.maps.InfoWindow({
content: 'No:' + No,
title: 'tr'
});
google.maps.event.addListener(marker, 'click', function () {
infowindow.open(map, marker);
});
},
error: function (error) {
alert(error);
alert("error");
}
});
}
in above script this line data: "{'id':'442'}", beacuse on info method there is string id so i hard this id on this id . but i dont want hard code beacuse there is not 1 id on table so how i save this id on session on call on this line
super_user
22-Sep-16 2:35am
View
Deleted
I try this code and 1 marker is display on map but there is 2 rows on datatable
1 marker is display beacuse i hard code lat and long value
$(function () {
var latit = '25.19055';
var longi = '67.84629';
var obj = {};
obj.latit = latit;
obj.longi = longi;
getdata(obj);
return false;
});
function getdata(obj) {
var RegNo = '';
var Status = '';
var latit = '';
var longi = '';
$.ajax({
type: "POST",
url: "home.aspx/info",
contentType: "application/json;charset=utf-8",
data: "{'id':'442'}",
datatype: "json",
async: true,
cache: false,
success: function (result) {
alert("map2");
$("#tabledata").empty();
var table_data = JSON.parse(result.d).response;
console.log(JSON.parse(result.d));
$("#tabledata").empty();
if (table_data.length > 0) {
$("#tabledata").append(
"NoLongitudeLatitude");
for (var i = 0; i < table_data.length; i++) {
if (table_data[i] !== null) {
$("#tabledata").append("" +
table_data[i][0] + " " +
table_data[i][1] + " " +
table_data[i][2] + "");
No = table_data[i][0];
latit = table_data[i][2];
longi = table_data[i][1];
}
}
}
else {
$("#tabledata").hide();
}
var map;
debugger;
var latlng = new google.maps.LatLng(24.0895898, 67.0998546);
debugger;
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
debugger;
var marker = new google.maps.Marker
(
{
position: new google.maps.LatLng(obj.latit, obj.longi),
map: map,
title: 'Click me'
}
);
debugger;
var infowindow = new google.maps.InfoWindow({
content: 'No:' + No,
title: 'tr'
});
google.maps.event.addListener(marker, 'click', function () {
infowindow.open(map, marker);
});
},
error: function (error) {
alert(error);
alert("error");
}
});
}
in above script this line data: "{'id':'442'}", beacuse on info method there is string id so i hard this id on this id . but i dont want hard code beacuse there is not 1 id on table so how i save this id on session on call on this line
and secondly when i try without hard code lat and long like this
$('#tabledata').ready('tr', function () {
var row = $(this);
var No = row.find('td')[0].firstChild.data;
var longi = row.find('td')[1].firstChild.data;
var latit = row.find('td')[2].firstChild.data;
var obj = {};
obj.No = No;
obj.latit = latit;
obj.longi = longi;
g
super_user
22-Sep-16 2:09am
View
when i try above code both marker not display
super_user
22-Sep-16 1:24am
View
i think i already done like this but this show no marker
success: function (result) {
// window.onload = function () {
alert("map2");
$("#tabledata").empty();
var table_data = JSON.parse(result.d).response;
console.log(JSON.parse(result.d));
$("#tabledata").empty();
if (table_data.length > 0) {
$("#tabledata").append(
"NoLongitudeLatitude");
for (var i = 0; i < table_data.length; i++) {
if (table_data[i] !== null) {
$("#tabledata").append("" +
table_data[i][0] + " " +
table_data[i][1] + " " +
table_data[i][2] + " ");
Status = table_data[i][2];
No = table_data[i][0];
}
}
}
else {
$("#tabledata").hide();
}
var center = new google.maps.LatLng(24.0895898, 67.0998546);
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 3,
center: center,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var markers = [];
for (var i = 0; i < table_data.length; i++) {
var location = yourData.location[i];
var latLng = new google.maps.LatLng(location.latitude,
location.longitude);
var marker = new google.maps.Marker({
position: latLng
});
markers.push(marker);
}
var markerCluster = new MarkerClusterer(map, markers);
google.maps.event.addDomListener(window, 'load', initialize);
super_user
22-Sep-16 1:11am
View
i am getting data -.. 2 rows
super_user
22-Sep-16 0:45am
View
@Karthik Bangalore ok i done with this .. now the problem is there is two records in grid dt but on map this show only 1 record means there is no looping on map so how i loop this .. map code
$(function () {
var No = '';
var Status = '';
var obj = {};
obj.No = No;
obj.Status = Status;
getdata(obj);
return false;
});
function getdata(obj) {
$.ajax({
type: "POST",
url: "home.aspx/info",
contentType:"application/json;charset=utf-8",
data: "{'id':'CU-8442'}",
datatype: "json",
async: true,
cache: false,
success: function (result) {
alert("map2");
$("#tabledata").empty();
var table_data = JSON.parse(result.d).response;
console.log(JSON.parse(result.d).response);
$("#tabledata").empty();
if (table_data.length > 0) {
$("#tabledata").append(
"NoLongitudeLatitude");
for (var i = 0; i < table_data.length; i++) {
if (table_data[i] !== null) {
$("#tabledata").append("" +
table_data[i][0] + " " +
table_data[i][1] + " " +
table_data[i][2] + " " +
table_data[i][3] + " ");
Status = table_data[i][2];
No = table_data[i][0];
}
}
}
else {
$("#tabledata").hide();
}
var map;
debugger;
var latlng = new google.maps.LatLng(24.0895898, 67.0998546);
debugger;
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
debugger;
var marker = new google.maps.Marker
(
{
position: new google.maps.LatLng(obj.latit,obj.longi),
map: map,
title: 'Click me'
}
);
debugger;
var infowindow = new google.maps.InfoWindow({
content: 'No:' + No + 'Status:' + Status,
title:'tr'
});
google.maps.event.addListener(marker, 'click', function () {
infowindow.open(map, marker);
});
},
error: function (error) {
alert(error);
alert("error");
}
});
}
super_user
21-Sep-16 4:31am
View
i try 2-3 times but not getting result
super_user
21-Sep-16 1:49am
View
but this is not working i guess
super_user
20-Sep-16 2:09am
View
how???? @Karthik Bangalore
super_user
19-Sep-16 8:21am
View
problem is not on these lines problem on these lines
var No ='<%=Session["No"]%>';
var longi = '<%=Session["Longitude"]%>';
var latit = '<%=Session["Latitude"]%>';
super_user
19-Sep-16 8:20am
View
how?
super_user
19-Sep-16 8:11am
View
ok i got marker through hard coded values through this jquery but the problem is i want to get values through method and still there is null value
$(function () {
var FID = '<%=Session["FID"]%>';
var ObID = '<%=Session["ObID"]%>';
var No ='<%=Session["No"]%>';
var longi = '<%=Session["Longitude"]%>';
var latit = '<%=Session["Latitude"]%>';
var obj = {};
obj.FID = ID;
obj.ObID = ObID;
obj.No = No;
obj.longi = longi;
obj.latit = latit;
getdata(obj);
return false;
});
function getdata(obj) {
$.ajax({
type: "POST",
url: "home.aspx/mapgriddata",
contentType: "application/json;charset=utf-8",
data:JSON.stringify(obj),
datatype: "json",
async: true,
cache: false,
success: function (result) {
// window.onload = function () {
alert("map2");
var map;
debugger;
var latlng = new google.maps.LatLng(27.0895898, 64.0998546);
debugger;
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
debugger;
var marker = new google.maps.Marker
(
{
position: new google.maps.LatLng(35.19055,57.84629),
map: map,
title: 'Click me'
}
);
debugger;
var infowindow = new google.maps.InfoWindow({
content: 'FID:'+obj.FID,
title:'tr'
});
google.maps.event.addListener(marker, 'click', function () {
// Calling the open method of the infoWindow
infowindow.open(map, marker);
});
},
error: function (error) {
alert(error);
}
});
}
public static string mapgriddata(string FID,string ObjID)
{
try
{
string result = "";
FID = HttpContext.Current.Session["FID"].ToString();
ObID = HttpContext.Current.Session["ObID"].ToString();
Entities w = new Entities();
List(spgetdata_fid_Result) gt = w.spgetdata_fid(FID).ToList();
DataTable dt = new DataTable();
dt.Columns.Add("No", typeof(string));
dt.Columns.Add("Longitude", typeof(float));
dt.Columns.Add("Latitude", typeof(float));
foreach (var t in gt)
{
dt.Rows.Add(t.No, t.Longitude, t.Latitude);
t.No = Convert.ToString(HttpContext.Current.Session["No"]);
t.Latitude = Convert.ToSingle(HttpContext.Current.Session["Latitude"]);
t.Longitude = Convert.ToSingle(HttpContext.Current.Session["Longitude"]);
dt.Rows.Add(t.No, t.Latitude, t.Longitude);
}
result = DataSetToJSON(dt);
return result;
}
catch (Exception)
super_user
19-Sep-16 7:36am
View
no?? how i do this ?
super_user
19-Sep-16 7:36am
View
and when i click on that image then small content window display with lat and long values ..
super_user
19-Sep-16 7:34am
View
i want display markers or any image according to these lat and long values var longi = '69.84629';
var latit = '21.19055'; if these values change then marker/image position must change
super_user
19-Sep-16 7:33am
View
i mentioned rough lat and long values
super_user
19-Sep-16 7:26am
View
yes sure this is link of screen shot http://i.imgur.com/0yx2sft.png
and this is the updated jquery code
$(function () {
var FID = '<%=Session["FID"]%>';
var ObjID = '<%=Session["ObjID"]%>';
var RegNo = '2345';
var longi = '69.84629';
var latit = '21.19055';
var obj = {};
obj.FID = FID;
obj.ObID = ObID;
obj.No = No;
obj.longi = longi;
obj.latit = latit;
getdata(obj);
return false;
});
function getdata(obj) {
$.ajax({
type: "POST",
url: "home.aspx/mapgriddata",
contentType: "application/json;charset=utf-8",
data:JSON.stringify(obj),
datatype: "json",
async: true,
cache: false,
success: function (result) {
// window.onload = function () {
alert("map2");
var map;
debugger;
var latlng = new google.maps.LatLng(67.0998546,24.0895898);
debugger;
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
debugger;
var marker = new google.maps.Marker
(
{
position: new google.maps.LatLng(-38.397, 140.644),
map: map,
title: 'Click me'
}
);
debugger;
for (i = 0; i < obj.length; i++) {
var data = obj[i]
var myLatlng = new google.maps.LatLng(obj.latlng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
});
debugger;
(function (marker, obj) {
google.maps.event.addListener(marker, "click", function (e) {
infoWindow.setContent(obj.FID, obj.No,obj.latit, obj.longi);
infoWindow.open(map, obj);
});
})(marker, data);
}
debugger;
google.maps.event.addListener(marker, 'click', function () {
// Calling the open method of the infoWindow
infowindow.open(map, marker);
});
},
error: function (error) {
alert(error);
}
});
}
super_user
19-Sep-16 7:03am
View
ok i hard code value like this
var FFID = '2012';
var ObjectID = '0';
var RegNo = '2345';
var longi = '69.84629';
var latit = '21.19055';
but markers not display according to lat and long values
super_user
19-Sep-16 6:55am
View
ok removed then ?
super_user
19-Sep-16 6:46am
View
like this ?
$(function () {
var FID = '<%=Session["FFID"]%>';
var ObID = '<%=Session["ObjID"]%>';
var No = '<%=Session["No"]%>';
var longi = '<%=Session["Longitude"]%>';
var latit = '<%=Session["Latitude"]%>';
var obj = {};
obj.FID = FFID;
obj.ObjID = ObjID;
obj.No = No;
obj.longi = longi;
obj.latit = latit;
getdata(obj);
return false;
});
function getdata(obj) {
$.ajax({
type: "POST",
url: "home.aspx/mapgriddata",
contentType: "application/json;charset=utf-8",
data:JSON.stringify(obj),
datatype: "json",
async: true,
cache: false,
success: function (result) {
window.onload = function () {
alert("map2");
debugger;
var latlng = new google.maps.LatLng(12.0895898, 34.099);
debugger;
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
debugger;
var infoWindow = new google.maps.InfoWindow();
debugger;
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
debugger;
for (i = 0; i < obj.length; i++) {
var data = obj[i]
var myLatlng = new google.maps.LatLng(obj.latlng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
});
debugger;
(function (marker, obj) {
google.maps.event.addListener(marker, "click", function (e) {
infoWindow.setContent(obj.FID,obj.No, obj.latit,obj.longi);
infoWindow.open(map, obj);
});
})(marker, data);
}
}
},
error: function (error) {
alert(error);
}
});
}
super_user
19-Sep-16 6:42am
View
yes in this line i got the values
dt.Rows.Add(t.No, t.Longitude, t.Latitude);
and then i try to save these values in session and then try to call this session in jquery but i did not get values in these lines
t.No = Convert.ToString(HttpContext.Current.Session["No"]);
t.Latitude = Convert.ToSingle(HttpContext.Current.Session["Latitude"]);
t.Longitude = Convert.ToSingle(HttpContext.Current.Session["Longitude"]);
super_user
19-Sep-16 6:37am
View
means still i did not get values in these lines
t.No = Convert.ToString(HttpContext.Current.Session["No"]);
t.Latitude = Convert.ToSingle(HttpContext.Current.Session["Latitude"]);
t.Longitude = Convert.ToSingle(HttpContext.Current.Session["Longitude"]);
super_user
19-Sep-16 6:34am
View
$(function () {
var FID = '2012';
var ObID = '0';
var No = '';
var longi = '';
var latit = '';
var obj = {};
obj.FID = FID;
obj.ObID = ObID;
obj.No = No;
obj.longi = longi;
obj.latit = latit;
getdata(obj);
return false;
});
super_user
19-Sep-16 6:32am
View
i already do this correction still no markers is display on google map when i check sources jqyery look like
super_user
19-Sep-16 6:15am
View
still i got this error on console . Uncaught ReferenceError: getdata is not defined
super_user
19-Sep-16 5:53am
View
yes @Karthik Bangalore i am getting the list
super_user
19-Sep-16 5:44am
View
check updated question please @Karthik Bangalore
super_user
19-Sep-16 5:36am
View
when i try this ..
string No = Convert.ToString(HttpContext.Current.Session["No"]);
float latit = Convert.ToSingle(HttpContext.Current.Session["Latitude"]);
float longi = Convert.ToSingle(HttpContext.Current.Session["Longitude"]);
then No , latit and longi shows null like this ""
super_user
19-Sep-16 5:18am
View
on these lines @Karthik Bangalore
string No = HttpContext.Current.Session["No"].ToString();
float Latitude = Convert.ToSingle(HttpContext.Current.Session["Latitude"]);
float Longitude = Convert.ToSingle(HttpContext.Current.Session["Longitude"]);
super_user
19-Sep-16 5:16am
View
Deleted
List(spgetdata_ffid_Result) gt = w.spgetdata_ffid(FFID).ToList();
super_user
19-Sep-16 5:14am
View
[WebMethod]
public static string mapgriddata(string FID,string ObID)
{
try
{
string result = "";
FID = HttpContext.Current.Session["FID"].ToString();
ObID = HttpContext.Current.Session["ObID"].ToString();
Entities w = new Entities();
List(spgetdata_ffid_Result) gt = w.spgetdata_ffid(FFID).ToList();
DataTable dt = new DataTable();
dt.Columns.Add("NO", typeof(string));
dt.Columns.Add("Longitude", typeof(float));
dt.Columns.Add("Latitude", typeof(float));
foreach (var t in gt)
{
dt.Rows.Add(t.No, t.Longitude, t.Latitude);
}
string No = HttpContext.Current.Session["No"].ToString();
float Latitude = Convert.ToSingle(HttpContext.Current.Session["Latitude"]);
float Longitude = Convert.ToSingle(HttpContext.Current.Session["Longitude"]);
result = DataSetToJSON(dt);
return result;
}
catch (Exception)
{
throw new Exception();
}
}
super_user
8-Sep-16 1:08am
View
flow..
login.aspx --> wrong information--> login.aspx
|
correct info
|
Webform2.aspx
super_user
8-Sep-16 1:06am
View
but when i do that through if else then when i enter wrong information then this redirect to page whereas i want to show error as i posted my code in question
super_user
8-Sep-16 0:41am
View
ok so that means i check condition through if else?
super_user
7-Sep-16 2:26am
View
@Karthik Bangalore i try this ..
updated
protected void Button1_Click(object sender, EventArgs e)
{
try
{
loginmethod(txt_us.Text, txt_pwd.Text);
FormsAuthentication.Initialize();
String strRole = Assignroles(txt_us.Text);
FormsAuthenticationTicket fat = new FormsAuthenticationTicket(1, txt_us.Text, DateTime.Now, DateTime.Now.AddMinutes(30), false, strRole, FormsAuthentication.FormsCookiePath);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(fat)));
loginmethod(txt_us.Text, txt_pwd.Text);
Response.Redirect("home.aspx");
}
catch
{
Label1.Text = ("Incorrect UserName/Password");
Label1.Visible = true;
}
txt_us.Text = "";
txt_pwd.Text = "";
}
login method
private bool loginmethod(string UserName, string Password)
{
if((txt_us.Text!="NA") && (txt_pwd.Text!= "NA"))
{
login_class lg_class = new login_class();
Entities2 login = new Entities2();
string logn = Convert.ToString(lg_class.loginfunction(UserName, Password).Rows[0]["id"]);
Session["ID"] = logn.ToString();
return (logn);
}
else
{
return false;
}
}
private string Assignroles(string username)
{
if ((txt_us.Text !=string.Empty) && (txt_pwd.Text!= string.Empty))
return "";
else
return string.Empty;
}
when i try above code and when i login with wrong username and password then this show error incrrect username and password
but when i enter correct information i.e. username and password then this always show incorrect username and password where as i want to redirect another page when info is correct
super_user
7-Sep-16 1:20am
View
issue is when i enter wrong username and password and click on button then this redirect to WebForm2.aspx page whereas i want to show message on login page i.e. incorrect username and password when wrong information is entered
super_user
6-Sep-16 8:02am
View
yes @Karthik Bangalore
super_user
5-Sep-16 7:04am
View
dt returns id .. this return id against username and password
super_user
31-Aug-16 5:45am
View
you are right i need this :/ please suggest some good books
super_user
31-Aug-16 3:54am
View
check update question
super_user
31-Aug-16 3:54am
View
check update question
super_user
31-Aug-16 3:54am
View
check update question
super_user
31-Aug-16 3:51am
View
ok now i do that ..
private string loginmethod(string UserName, string Password)
{
login_class lg_class = new login_class();
try
{
Entities2 login = Entities2();
lg_class.loginfunction(UserName, Password);
Session["ID"]
return ;
}
catch (Exception ex)
{
throw new Exception();
}
Error 4 An object of a type convertible to 'string' is required
super_user
27-Aug-16 2:58am
View
want to open form2.aspx as a new page in new tab
super_user
25-Aug-16 8:05am
View
thanku now working when i try this
super_user
25-Aug-16 6:52am
View
ok i try this ..
if (!Page.IsPostBack)
{
if (Session["UserName"] == "admin")
{
regiondrop.DataSource = tea.spadminlist().ToList();
regiondrop.DataTextField = "Region";
regiondrop.DataValueField = "Region";
regiondrop.DataBind();
Label4.Visible = false;
}
else
{
var list = tea.tblReg.AsEnumerable()
.Where(x => !x.Region.Any(char.IsDigit) && (x.Region != ""))
.GroupBy(x => x.Region)
.Select(x => new { Region = x.Key, Value = x.Key })
.ToList();
regiondrop.DataSource = list;
regiondrop.DataTextField = "Region";
regiondrop.DataValueField = "Region";
regiondrop.DataBind();
Label4.Visible = false;
}
}
this show warning.. Warning 3 Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'
super_user
25-Aug-16 6:33am
View
in login.aspx i save username is session
Session["UserName"] = txt_us.Text;
in form.aspx
Here first i create sp
ALTER procedure [dbo].[spadminlist]
as
select Region from tblReg
where Region in ('Factory')
then i add this sp in form.aspx
//this linq query for selecting all values
var list = tea.tblReg.AsEnumerable()
.Where(x => !x.Region.Any(char.IsDigit) && (x.Region != ""))
.GroupBy(x => x.Region)
.Select(x => new { Region = x.Key, Value = x.Key })
.ToList();
//this is for admin
if (Session["UserName"] = "admin")
{
List <spadminlistresult> admin = tea.spadminlist().ToList();
}
and filling dropdown
if (!Page.IsPostBack)
{
regiondrop.DataSource = list;
regiondrop.DataTextField = "Region";
regiondrop.DataValueField = "Region";
regiondrop.DataBind();
Label4.Visible = false;
}
but this show error and also how i fill dropdown with admin sp because there is queries
Error 3 Cannot implicitly convert type 'object' to 'bool'. An explicit conversion exists (are you missing a cast?)
how i do this ?
super_user
25-Aug-16 6:15am
View
ok how i sepcify that when admin login then show these values otherwise when user login then show these values .. how i configure my dropdown linq query or sp login..
ALTER procedure [dbo].[splogin]
@UserName nvarchar(50),
@Password nvarchar(50)
as
select UserName , Password from tbllogin
where
UserName=@UserName and Password=@Password
super_user
25-Aug-16 6:06am
View
but how to select specific values for admin and user
super_user
25-Aug-16 6:05am
View
yes i know that but the problem is all values are in one table and i use this query for filling drodown
var list = tea.tblReg.AsEnumerable()
.Where(x => !x.Region.Any(char.IsDigit) && (x.Region != ""))
.GroupBy(x => x.Region)
.Select(x => new { Region = x.Key, Value = x.Key })
.ToList();
if (!Page.IsPostBack)
{
regiondrop.DataSource = list;
regiondrop.DataTextField = "Region";
regiondrop.DataValueField = "Region";
regiondrop.DataBind();
Label4.Visible = false;
}
super_user
25-Aug-16 5:53am
View
but dropdown list control is in form.aspx and login code is in login.aspx.. . there is several values in dropdown which i fetch from database and fill in dropdown using linq query ..
super_user
5-Aug-16 2:15am
View
@Richard Deeming check update please
super_user
4-Aug-16 1:33am
View
ok thanku for useful information
super_user
3-Aug-16 7:39am
View
beacuse in highcharts jsfiddle data in series display like this name: 'Tokyo', data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6] },
super_user
3-Aug-16 5:25am
View
ok
super_user
29-Jul-16 7:57am
View
.NET AND PLEASE CHECK UPDATE QUESTION
super_user
27-Jul-16 2:15am
View
I did not find thats why i post here :/
super_user
27-Jul-16 1:46am
View
there is no rule actually when i try to execute query individually like this
select distinct
tblRv.Owner,
count(tblVv.VName) as data
from tblRe
inner join tblRv
on tblRe.RID=tblRv.RID
inner join tblVv
on tblRv.ID=tblVv.MID
where tblRv.Owner='roh' and
tblRe.StartDate = '2016-06-01 00:00:00'
AND tblRe.EndDate <= '2016-06-30 23:59:59'
and VName <> ''
and tblRe.region='uk'
group by
tblRv.Owner,
order by tblRv.Owner
so this show data e.g. in the month of june data is "1"
owner data
roh 1
super_user
27-Jul-16 1:29am
View
no ok now i get the idea but if use pivot then result is same like this 3,10,6 but i want result like this 3,1,0 . this does not effect on result i think?
super_user
27-Jul-16 1:14am
View
how to use pivot ? will you please describe because i never use this before
super_user
26-Jul-16 6:36am
View
i already try through sql profiler but i did not find search_Data method or griddata in SQL profiler
super_user
25-Jul-16 8:11am
View
my sp return 24 rows
super_user
25-Jul-16 7:59am
View
check update @Suvendu Shekhar Giri
super_user
25-Jul-16 7:56am
View
@F-ES Sitecore check this image i set return type int .. http://i.imgur.com/TXonGOp.png
super_user
25-Jul-16 6:00am
View
type of return data?
super_user
25-Jul-16 5:32am
View
i only add this line in sp WHERE tblReg.StartDate >= @startdate AND
tblReg.EndDate <= @enddate
and tblReg.Region = @region
super_user
25-Jul-16 5:30am
View
my model extension is .edmx
super_user
25-Jul-16 5:30am
View
i also re add this..
so what should i use instead of var
super_user
25-Jul-16 3:03am
View
problem solved
super_user
23-Jul-16 3:35am
View
check this fiddle.. this does not work ..
https://jsfiddle.net/2oc7gxov/3/
super_user
23-Jul-16 1:21am
View
i already try this but not work
super_user
23-Jul-16 1:21am
View
i try to create through jquery .. like this .. success: function (result) {
var final = JSON.parse(result.d).response;
console.log(JSON.parse(result.d).response);
$("#tabledata").empty();
if (final.length > 0) {
$("#tabledata").append(
"<tr><th>ID</th><th>Owner</th><th>RegNo</th></tr>");
for (var i = 0; i < final.length; i++) {
if (final[i] !== null) {
$("#tabledata").append("<tbody><tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
final[i][2] + "</td></tr></tbody>");
}
}
$("#tabledata tr:first").addClass('GridviewScrollHeader');
$("#tabledata tr").addClass('GridviewScrollItem');
}
super_user
22-Jul-16 1:58am
View
ok now this worked.. success: function (result) {
if(result !==null && result.length >0){
strarr = result.d;
var myarr = strarr;
$("#divcontainer").dialog('open');
Drewchart(myarr);
}
else{
$("#<%=Label4.ClientID%>").text('No data found')
$("#tabledata").hide();
$("#divcontainer").dialog('hide');
}
} ,
when i run this table is hide and message is show but pop is display where there is no data so how i hide pop up when i add line $("#divcontainer").dialog('hide'); this show error jquery.min.js:2 Uncaught Error: no such method 'hide' for dialog widget instance
super_user
21-Jul-16 8:21am
View
when i set debugger adn when i check f12 this show like that where there is no data..http://oi68.tinypic.com/2ic2t75.jpg and where there is data this show like this .. http://oi68.tinypic.com/2rxh2wx.jpg
super_user
21-Jul-16 8:21am
View
have you check my recent comment?
super_user
21-Jul-16 7:18am
View
when i set debugger adn when i check f12 this show like that where there is no data..http://oi68.tinypic.com/2ic2t75.jpg and where there is data this show like this .. http://oi68.tinypic.com/2rxh2wx.jpg
super_user
21-Jul-16 6:56am
View
this is show now error .Uncaught TypeError: Cannot read property 'length' of undefined
super_user
21-Jul-16 6:46am
View
@F-ES Sitecore ok i try your answer.. i try this .. success: function (result) {
var myData = JSON.parse(result.d);
if (myData.length == 0 && myData!==null) {
$("#Label4").text('No data found')
return;
}
strarr = result.d;
var myarr = strarr;
Drewchart(myarr);
},
this show not any error but this also not show any message. e.g. No data found
super_user
21-Jul-16 6:10am
View
error is same "Sequence contains no elements" this means there is no data.. so how i handle this when there is no data then i want to show message no break the code
super_user
21-Jul-16 5:48am
View
when i try this this show this.. check please https://media.giphy.com/media/26gJznDimxRyV0zi8/giphy.gif
super_user
21-Jul-16 1:32am
View
problem solved
super_user
20-Jul-16 3:30am
View
@Suvendu Shekhar Giri check update
super_user
20-Jul-16 2:16am
View
yes i add links and there is error on console.. WebForm3.aspx:34 Uncaught TypeError: Cannot read property 'value' of null
super_user
18-Jul-16 7:16am
View
and your link did not help
super_user
18-Jul-16 7:15am
View
i already bind in jquery.. if you check jquery which i posted and this is the webmethod..
[WebMethod]
public static string search_data(DateTime fromdate, DateTime todate, string regiondrop)
{
try
{
string result = "";
TrackDataEntities1 ts = new TrackDataEntities1();
var dq = (from table name ........ .. .ToList();
DataTable dt = new DataTable();
dt.Columns.Add("ID", typeof(int));
dt.Columns.Add("OwnerName", typeof(string));
foreach (var c in dq)
{
dt.Rows.Add(c.ID, c.ownername);
}
result = DataSetToJSON(dt);
return result;
}
catch (Exception)
{
throw new Exception();
}
}
public static string DataSetToJSON(DataTable dt)
{
Dictionary<string, object=""> dict = new Dictionary<string, object="">();
object[] arr = new object[dt.Rows.Count + 1];
for (int i = 0; i <= dt.Rows.Count - 1; i++)
{
arr[i] = dt.Rows[i].ItemArray;
}
dict.Add("response", arr);
JavaScriptSerializer json = new JavaScriptSerializer();
return json.Serialize(dict);
}
super_user
18-Jul-16 6:33am
View
hi.. when i add this .. <asp:Repeater ID="gridata" runat="server">
<HeaderTemplate>
<table cellspacing="0" rules="all" border="1">
<tr>
<th>
</th>
</tr>
</HeaderTemplate>
<itemtemplate>
<tr>
<td>
</td>
</tr>
<footertemplate>
</table>
then this repeater not display on page
super_user
18-Jul-16 6:25am
View
when i try this $("#GridView1").append("<tr><th class='GridviewScrollHeader'>ID ... and when i check there is no effect in header... and this is css class. .
.GridviewScrollHeader TH, .GridviewScrollHeader TD
{
padding: 5px;
font-weight: bold;
white-space: nowrap;
border-right: 1px solid #AAAAAA;
border-bottom: 1px solid #AAAAAA;
background-color: #EFEFEF;
vertical-align: bottom;
text-align: left;
}
.GridviewScrollItem TD
{
padding: 5px;
white-space: nowrap;
border-right: 1px solid #AAAAAA;
border-bottom: 1px solid #AAAAAA;
background-color: #FFFFFF;
}
.GridviewScrollItem .Freeze
{
background-color: #EFEFEF;
}
.GridviewScrollItemHover TD
{
padding: 5px;
white-space: nowrap;
border-right: 1px solid #AAAAAA;
border-bottom: 1px solid #AAAAAA;
background-color: #CCCCCC;
cursor: pointer;
}
.GridviewScrollItemHover .Freeze
{
background-color: #CCCCCC;
}
.GridviewScrollItemSelected TD
{
padding: 5px;
white-space: nowrap;
border-right: 1px solid #AAAAAA;
border-bottom: 1px solid #AAAAAA;
background-color: #999999;
color: #FFFFFF;
}
.GridviewScrollItemSelected .Freeze
{
background-color: #999999;
}
.GridviewScrollPager
{
border-top: 1px solid #AAAAAA;
background-color: #FFFFFF;
}
.GridviewScrollPager TD
{
padding-top: 3px;
font-size: 14px;
padding-left: 5px;
padding-right: 5px;
}
.GridviewScrollPager A
{
color: #666666;
}
.GridviewScrollPager SPAN
{
font-size: 16px;
font-weight: bold;
}
super_user
18-Jul-16 5:24am
View
if i use html table like this <table>
<tr>
<th>Firstname</th>
</tr>
<tr>
<td>Jill</td>
</tr>
</table>
then i dont want to insert data manually i fetch data from database so what i write instead of first name and jill
super_user
18-Jul-16 1:57am
View
DirectoryInfo.Refresh? purpose of this folder is updated on every 2 mint so i refresh folder through code
super_user
16-Jul-16 0:24am
View
@OriginalGriff have you check my update question and errors?
super_user
15-Jul-16 8:44am
View
@OriginalGriff check my updated code in question i update webmethod and jquery when i build this show errors
super_user
15-Jul-16 8:26am
View
beacuse of LONG JQUERY i post in 2-3 parts please check ... so i use two webmethod on one button when i build the code and click on button then nothing happens so when i check console by F12 this shows " Uncaught ReferenceError: from is not defined"
super_user
15-Jul-16 8:25am
View
Deleted
.
super_user
15-Jul-16 8:25am
View
Deleted
.
super_user
15-Jul-16 8:22am
View
Deleted
.
super_user
15-Jul-16 8:20am
View
Deleted
.
super_user
15-Jul-16 6:49am
View
in dq when i check data is .. [0] = { ID = 1, OName = "Khan", RegNo = "AJ-24",Speed = "124" } [1] = { ID = 2, OName = "Shah", RegNo = "AL-91",Speed = "95" }
super_user
15-Jul-16 4:50am
View
in dq there is json data now i try to display this data in gridview
super_user
15-Jul-16 4:49am
View
howw
super_user
15-Jul-16 3:29am
View
because i want to display data in gridview
super_user
15-Jul-16 3:29am
View
i try to achieve display data is girdview so for this now i use datatable instead of string..
super_user
1-Jul-16 2:29am
View
i can not get last access file of folder abc and def. where as today is 1-07-2016 when i set breakpoint i got date 6/30/2016
super_user
1-Jul-16 1:21am
View
In your code, there is no code that send SMS so it is not possible to tell you where the problem is. However, it would be very easy for you to put a breakpoint on the code that does send the SMS and see why a message is sent.
------sms is sending from database so forget about sms sending--------
That being said, why would you check every 4 seconds? If you need such accuracy, would not using a FileSystemWatcher be more appropriate (FileSystemWatcher Class (System.IO)[^])?
-----yes i need that such accuracy how i do that. i want to check every 5 mint-------
I think that one problem with your code is that you add a item in the table every 4 seconds so you would send a lot of SMS if you send one for each row in the table. You probably need to remember if a SMS was sent and only sent one if no SMS where sent. Otherwise, you would have a lot of message to send.
----yes that is the problem sms sending continuously .. when i check my cell phone there is about 12+ sms .. where as i want when file is not created with in 5 seconds then want to insert record in table only one time ---
and i set path address in app.config file i.e.C:\Users\Administrator\Desktop\abc
super_user
1-Jul-16 0:31am
View
actually msg is sent from database. here i just insert the row in table and from that table msg is sending.. when i set break point i see that 5 mint not over and data is sending to table ... how i modified the code? @Philippe Mori
super_user
27-Jun-16 4:27am
View
when is select UK from drop-down and select these dates from calendar
from date '2014-02-01' AND
to date '2014-02-28'.. i am getting these values but i can not get data in gridview
super_user
27-Jun-16 4:26am
View
yes i am getting these values
super_user
27-Jun-16 1:28am
View
WHY THIS ?blvv.MID = 1 where as i want to get result when user select region from drop-down and dates from calendar?
super_user
24-Jun-16 5:59am
View
sorry this table tblRegionVehicles_Uni is same as tblRV .. check update and there is ID in both tables
super_user
24-Jun-16 5:33am
View
NOW CHECck
super_user
24-Jun-16 4:55am
View
check update please i post columns of both tables
super_user
24-Jun-16 2:52am
View
There is drop-down with region names and there is two calendars i place with fromdate and todate ID..
<asp:Label ID="Label3" runat="server" Text="Select Region">
<asp:DropDownList ID="regiondrop" runat="server" AutoPostBack="True"
onselectedindexchanged="regiondrop_SelectedIndexChanged">
<br /><br />
<asp:Label ID="Label1" runat="server" Text="From Date">
<input ID="fromdate" value="dd/mm/yyyy" runat="server" clientidmode="static" />
<br />
<asp:Label ID="Label2" runat="server" Text="To Date">
<input ID="todate" value="dd/mm/yyyy" runat="server" clientidmode="static" />
<br /><br />
<input type="button" ID="search_data" runat="server" class="sear_btn" value="Search Data" />
<br /><br />
super_user
24-Jun-16 2:49am
View
hi when i try this ..
[WebMethod]
public static string GetVo(DateTime fdate, DateTime tdate, string region)
{
string data2 = "[";
try
{
T1 DB = new T1();
var rea = (from rv in DB.tblRV
join Reg in DB.tblRe on rv.RegionID equals Reg.RegionID
join vv in DB.tblVV on rv.ID equals vv.ID
where
Reg.Region==region
&& (vv.VName != "")
&& Reg.StartDate == fdate &&
Reg.EndDate == tdate
group vv by vv.VName into g
select new
{
Name = g.Key,
cnt = g.Select(t => t.Name).Count()
}).ToList();
data2 += rea.ToList().Select(x => "['" + x.Name + "'," + x.cnt + "]")
.Aggregate((a, b) => a + "," + b);
data2 += "]";
}
catch (Exception ex)
{
throw new Exception();
System.Web.HttpContext currentContext = System.Web.HttpContext.Current;
currentContext.Response.Write("<script>alert('" + currentContext.Server.HtmlEncode(ex.ToString()) + "')</script>");
}
return data2;
}
this shows ERROR
Sequence contains no elements
super_user
24-Jun-16 2:21am
View
sorry i solve this .. and i update question.. i think during my update you post this please update your answer as per my question
super_user
22-Jun-16 3:24am
View
///
/// No Metadata Documentation available.
///
[EdmEntityTypeAttribute(NamespaceName="TrackDataModel", Name="t1")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class t1: EntityObject
{
#region Factory Method
///
/// Create a new t1 object.
///
/// <param name="regionID">Initial value of the RegionID property.</param>
public static t1 Createt1(global::System.Int32 regionID)
{
t1t1 = new t1();
t1.RegionID = regionID;
return t1;
}
#endregion
#region Primitive Properties
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 RegionID
{
get
{
return _RegionID;
}
set
{
if (_RegionID != value)
{
OnRegionIDChanging(value);
ReportPropertyChanging("RegionID");
_RegionID = StructuralObject.SetValidValue(value);
ReportPropertyChanged("RegionID");
OnRegionIDChanged();
}
}
}
private global::System.Int32 _RegionID;
partial void OnRegionIDChanging(global::System.Int32 value);
partial void OnRegionIDChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String Region
{
get
{
return _Region;
}
set
{
OnRegionChanging(value);
ReportPropertyChanging("Region");
_Region = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("Region");
OnRegionChanged();
}
}
private global::System.String _Region;
partial void OnRegionChanging(global::System.String value);
partial void OnRegionChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::system.datetime> StartDate
{
get
{
return _StartDate;
}
set
{
OnStartDateChanging(value);
ReportPropertyChanging("StartDate");
_StartDate = StructuralObject.SetValidValue(value);
ReportPropertyChanged("StartDate");
OnStartDateChanged();
}
}
private Nullable<global::system.datetime> _StartDate;
partial void OnStartDateChanging(Nullable<global::system.datetime> value);
partial void OnStartDateChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public Nullable<global::system.datetime> EndDate
{
get
{
return _EndDate;
}
set
{
OnEndDateChanging(value);
ReportPropertyChanging("EndDate");
_EndDate = StructuralObject.SetValidValue(value);
ReportPropertyChanged("EndDate");
OnEndDateChanged() <div id="Edit
super_user
22-Jun-16 3:20am
View
is there any other easy method ??
super_user
22-Jun-16 3:20am
View
ok this is done but i dont understand these lines.. Dictionary<int, string=""> dict = new Dictionary<int, string="">();
foreach (var item in list1.OrderBy(k=>k.Region))
{
if(!dict.ContainsValue(item.Region))
dict.Add(item.RegionID, item.Region);
}
super_user
22-Jun-16 2:31am
View
protected void Page_Load(object sender, EventArgs e)
{
T1 tea = new T1();
var list1 = tea.t1.ToList();
Dictionary<int, string=""> dict = new Dictionary<int, string="">();
foreach (var item in list1.OrderBy(k => k.Region))
{
if (!dict.ContainsValue(item.Region))
dict.Add(item.RegionID, item.Region);
}
var output = dict.Select(k => new { RegionId = k.Key, Region = k.Value }).ToList();
if(!Page.IsPostBack)
{
regiondrop.DataSource = list;
regiondrop.DataTextField = "Region";
regiondrop.DataValueField = "RegionID";
regiondrop.DataBind();
}
}
super_user
22-Jun-16 2:21am
View
this shows same output like repeated values in dropdown
super_user
22-Jun-16 2:11am
View
when i try this .
protected void Page_Load(object sender, EventArgs e)
{
T1 tea = new T1();
var list1 = tea.table1.ToList();
var list = from ta in list1
group ta by ta.Region into newgroup
orderby newgroup.Key
select newgroup;
this shows same output like repeated values in dropdown
if(!Page.IsPostBack)
{
regiondrop.DataSource = list;
regiondrop.DataTextField = "Region";
regiondrop.DataValueField = "RID";
regiondrop.DataBind();
}
}
super_user
21-Jun-16 1:14am
View
hi.. it works but calendar formatting is out.. when i try calendar look like this please check link.. http://oi66.tinypic.com/opxr0k.jpg
and i want this http://oi64.tinypic.com/169oy8j.jpg
2nd link calendar appear but functionality is not perform whereas 1st link calendar appear below the 2nd link calendar and functionality perform .. and i need 2nd link calendar with functionality ....
super_user
21-Jun-16 0:54am
View
thanks you much
super_user
21-Jun-16 0:53am
View
which changes?
super_user
11-Jun-16 5:15am
View
i post select beacuse i want to clarify that i want to do like that in linq
super_user
9-Jun-16 2:54am
View
in foreach loop?
super_user
9-Jun-16 2:28am
View
yes exaclty
super_user
26-May-16 3:03am
View
cehck update and comment
super_user
26-May-16 3:01am
View
check update
super_user
26-May-16 2:59am
View
i edit this
For Each p1 As PointLatLng In parallelLines3
s2 += p1.Lat.ToString() + "," + p1.Lng.ToString()
oSheet.Range("A1").Value() = p1.Lat.ToString(s2)
oSheet.Range("B1").Value() = p1.Lng.ToString(s2)
Next
but file not save
super_user
26-May-16 0:39am
View
i try this but file not save
super_user
25-May-16 7:22am
View
so how i done this
super_user
25-May-16 6:41am
View
i already declared ...
Dim worksheet As Excel.Worksheet
Dim workbook As Excel.Workbook
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Dim s1 As String = ""
super_user
25-May-16 6:35am
View
please check update question
super_user
23-May-16 4:04am
View
first i write this ... Dim parallelLines3 As New List(Of PointLatLng)
Dim parallelLines4 As New List(Of PointLatLng)
super_user
23-May-16 3:56am
View
Deleted
.......
super_user
23-May-16 3:56am
View
..
super_user
23-May-16 3:55am
View
"usin" this is "using"..
super_user
21-May-16 7:03am
View
thank a lot
super_user
21-May-16 6:04am
View
updated .. please check
super_user
18-May-16 4:26am
View
yearValue.Selectedvalue .. select value from drop down
and yearp is the parameter which i pass in function
super_user
18-May-16 4:17am
View
i want in if that when any value select from dropdown then data is displayed..
and i displayed data in alert box
super_user
17-May-16 5:53am
View
there is a dropdown in page and in that drodown i fill values from db .. so the value i selected in dropdown must be in yearp
super_user
17-May-16 4:32am
View
yearp is a parameter
super_user
17-May-16 4:32am
View
i cannot post complete code.. now please check updated question
super_user
17-May-16 0:49am
View
yes
super_user
16-May-16 7:09am
View
but did not work
super_user
16-May-16 7:08am
View
k
super_user
16-May-16 6:50am
View
this is function is for blue line .. now if i want to create another line opposite of this then is this possible?
super_user
16-May-16 6:22am
View
now i want to draw another 2 lines.. one line is in right and other in left with -500 lag and -500 lat
like this
lat line main line lag line
| | |
super_user
16-May-16 6:20am
View
check update
super_user
16-May-16 2:10am
View
i this part .Select(s=>new{
Catg_type=s
})
how i call this Catg_type.Catg_type,Program_type.Prog_name ,Year_info.year,
super_user
16-May-16 2:09am
View
ok now i try this
var query=a.Std_info
.Join(a.Catg_type,catg=>catg.Catg_id,std=>std.Catg_id,(catg,std)=>new{catg=catg,std=std})
.Join(a.Program_type,pg=>pg.catg.Prog_id,pt=>pt.Prog_id,(pg,pt)=>new{pg=pg,pt=pt})
.Join(a.Year_info,yr=>yr.pg.catg.year_id,yi=>yi.year_id,(yr,yi)=>new{yr=yr,yi=yi})
.Select(s=>new{
Catg_type=s
})
super_user
14-May-16 2:37am
View
now how to pass parameter "year_p" in linq?
super_user
14-May-16 2:36am
View
i try this var re = (from stdtable in a.Std_info
join catg in a.Catg_type on stdtable.Catg_id equals catg.Catg_id
join prog in a.Program_type on stdtable.Prog_id equals prog.Prog_id
join yea in a.Year_info on stdtable.year_id equals yea.year_id
group stdtable by new { catg.Catg_type1, prog.Prog_name, yea.year, stdtable.Catg_id } into z
select new
{
Catg_type1 = z.Key.Catg_type1,
Prog_name = z.Key.Prog_name,
year = z.Key.year,
Catg_id = z.Key.Catg_id
}).ToList();
var result = new
{
Total = re.Select(p => p.Catg_id).Distinct().Count()
};
super_user
14-May-16 1:58am
View
i call this path in code like this
string abc="";
abc= ConfigurationManager.AppSettings.Get("abcpath");
super_user
14-May-16 1:57am
View
i know this is not valid IP address. i mention rough IP address
super_user
14-May-16 0:50am
View
if i do this
connectionString="Data Source=\\122.324.234\Logs\asdslog;uid=abc; password=123"
then is this right?
super_user
13-May-16 8:36am
View
well .. will you please tell me how to store?
super_user
13-May-16 0:51am
View
ok thanku
super_user
13-May-16 0:49am
View
i mean at runtime i want to refresh folder..
super_user
12-May-16 4:59am
View
so now i declare var result = a.spstdinfo(year);
and now error shows
foreach statement cannot operate on variables of type 'int' because 'int' does not contain a public definition for 'GetEnumerator'
super_user
12-May-16 3:50am
View
which property
super_user
12-May-16 3:33am
View
thanku for suggestion
super_user
12-May-16 3:27am
View
please check update question
super_user
12-May-16 2:49am
View
[Inappropriate code sample removed — SA]
1) Use "Improve question" and format code;
2) The method in question is not shown anyway.
super_user
12-May-16 2:48am
View
if u check varaible a at the top ProjectdbEntities a = new ProjectdbEntities(); and spstdinfo is store procedure ... i create classes through database so all properties are in ProjectdbEntities and also i call store procedure
super_user
11-May-16 7:36am
View
george please explain briefly
super_user
11-May-16 3:22am
View
it shows error Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
super_user
11-May-16 3:17am
View
please explain more little bit
super_user
11-May-16 2:24am
View
curretn data is in this format
the last time 5/11/2016 11:23 am
the last time 5/11/2016 11:25 am
this is only for abc .. how i dispaly for def
super_user
11-May-16 2:23am
View
and when i use this path = ConfigurationManager.AppSettings.Get("def"); then how i i identity data when i run this application
super_user
11-May-16 2:22am
View
i already share
super_user
11-May-16 2:17am
View
if i add this then path same name exist in this line
path = ConfigurationManager.AppSettings.Get("abc");
super_user
11-May-16 2:12am
View
THIS is test so firstly i want to check
super_user
11-May-16 1:00am
View
actually i want to achieve that when someone create a new file in new folder then i want that modified date time to check when new file is created in this folder.. hope u understand
super_user
10-May-16 7:37am
View
no..
super_user
10-May-16 6:22am
View
ok if i create any new file in new folder .and i want that file date time then what i can do .. i also remove db.txt from path then when i create new file in folder and then i run to display date time then this shows error Access to the path 'C:\Users\Administrator\Desktop\New folder' is denied.
super_user
10-May-16 5:47am
View
through this line i try to show date time when the file is created/modified
super_user
10-May-16 5:41am
View
i dont want current date time .. i want the time when file is created / modified in folder
super_user
9-May-16 6:51am
View
OH HO .... thanku ;)
Show More