Quantcast
Channel: CSharp Forum Latest Questions
Viewing all 32756 articles
Browse latest View live

How to directly export silverlight UI to PDF?

$
0
0
Hi,


       I want to know how to silverlight UI screen export into PDF format.

Thanks.

Video chat application

$
0
0
How to implement a video chat application using asp.net in c# code

Runtime Ajax Error

$
0
0
Hi All,

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.



Any Idea...??

When a developer should get stable life

$
0
0
If you are working as a developer.. as everyday new technology is coming out and microsoft is keep changing versions, what you think when a developer should get stable life. Sometime in free time i plan to read something, so it's kind of confusing there are so many new things from where should i start?

Why only developers have less hairs and big tummy and big sunglasses

How to retrive & display table in JqGrid using MVC3

$
0
0
Hii to all,
Can anyone Please guide me how to work with JqGrid for retriving a table data present in SqlSqerver database,I have downloaded @ added JqGrid plugins to my application,anyone guide me how to get & bind a table data to JqGrid..
 
Thanks
Ramu

Selecting same column in same table twice with different cri

$
0
0
Selecting same column in same table twice with different criteria in one query

I need to get  part_id as first column next six columns based on process_id=21 and next six columns based on process_id=42 and so on..it retrieves duplicate records.Please help

     SELECT   DISTINCT A.PART_ID,
                  A.resources,
                  A.SCRAP_PCT,
                  A.FPLT,
                  A.ATP_FAMILY,
                  A.rfgo_family,
                  A.gfgo_family,
                  B.Sec_Resources,
                  B.SEC_SCRAP_PCT,
                  B.SEC_FPLT,
                  B.SEC_atp_family,
                  B.SEC_rfgo_family,
                  B.SEC_gfgo_family
  FROM       (SELECT   DISTINCT a.PART_ID,
                                  f.name Resources,
                                  a.SCRAP_PCT,
                                  a.FPLT,
                                  e.NAME atp_family,
                                  c.NAME rfgo_family,
                                  d.NAME gfgo_family
                  FROM   s_ftl_line_mfg_process_map a,
                         s_ft_part_params b,
                         s_ft_rfgo_family c,
                         s_ft_gfgo_family d,
                         s_ft_atp_family e,
                         S_FTL_MACHINE_RESOURCE f
                 WHERE       f.name IS NOT NULL
                         AND a.part_id = b.part_id
                         AND b.rfgo_family_id = c.rfgo_family_id(+)
                         AND b.gfgo_family_id = d.gfgo_family_id(+)
                         AND b.atp_family_id = e.atp_family_id(+)
                        -- AND a.part_id = f.part_id(+)
                         AND A.PROCESS_ID = '21') A
            JOIN
               (SELECT   DISTINCT a.PART_ID,
                                  f.name Sec_Resources,
                                  a.SCRAP_PCT SEC_SCRAP_PCT,
                                  a.FPLT SEC_FPLT,
                                  e.NAME SEC_atp_family,
                                  c.NAME SEC_rfgo_family,
                                  d.NAME SEC_gfgo_family
                  FROM   s_ftl_line_mfg_process_map a,
                         s_ft_part_params b,
                         s_ft_rfgo_family c,
                         s_ft_gfgo_family d,
                         s_ft_atp_family e,
                         S_FTL_MACHINE_RESOURCE f
                 WHERE       f.name IS NOT NULL
                         AND a.part_id = b.part_id(+)
                         AND b.rfgo_family_id = c.rfgo_family_id(+)
                         AND b.gfgo_family_id = d.gfgo_family_id(+)
                         AND b.atp_family_id = e.atp_family_id(+)
                       --  AND a.part_id = f.part_id(+)
                         AND A.PROCESS_ID = '42') B
            ON A.part_id = B.part_id

Thanks,
Crystal

could not able to copy 'obj\debug\projectname.exe to bin\deb

$
0
0
Hi friends i have two issue in my project.

1.Error143Could not copy "obj\Debug\LibrarySystem.exe" to "bin\Debug\LibrarySystem.exe". Exceeded retry count of 10. Failed.
2.Error144Unable to copy file "obj\Debug\LibrarySystem.exe" to "bin\Debug\LibrarySystem.exe". The process cannot access the file 'bin\Debug\LibrarySystem.exe' because it is being used by another process.

I have  tried with add the following in the build event.
if exist "$(TargetPath).locked" del "$(TargetPath).locked"
if not exist "$(TargetPath).locked" move "$(TargetPath)" "$(TargetPath).locked"

it worked for me once. but next time same error occur. how can solve this problem.


How to divide single column in two different column's on bas

$
0
0
I have one column named as Time with another column named as ID.
I want to divide the column Time in two different columns as InTime & OutTime.
But the important thing is that if the count of that ID present in a ID column is even, the  corresponding value present at that ID of column Time will be inserted in a  column named as OutTime & if the count of that ID is odd the corresponding value present at that ID of column Time will be inserted in a column named as InTime.
I want the data when ID's are same.Because I want to divide the time in two different column on the basis of ID.

 ie if values are like this
Insert #temp values(1,'09:30') 
Insert #temp values(1,'12:30') 
Insert #temp values(1,'18:30')

I want data as 
ID      Intime         Outtime
1      09:30          12:30
1       Null             18:30
Please Reply..
Its Urgent..
Please help me as I'm new in this field.....
THANK YOU in Advance.

How to bind Model List data to Jqgrid present in a view, mvc

$
0
0
hii to all,
  I have requirement that i need to display a table data in JqGrid present in a sqlserevr database using Entity Framework.Iam trying with ViewBag to bind data to JqGrid but iam unable to meet my requirement,please help me how to meet my requirement using ViewBag or provide any other alternatives to achieve my requirement.
=>This is My Controller Code:-
 public ActionResult Index(TableData model)
        {
            //ViewBag.Message = "Welcome to ASP.NET MVC!";
            Employee empDetails = new Employee();
            using (personalEntities db = new personalEntities())
            {
                var emply = (from p in db.empdetails
                             select p);

                model.getobj = emply.ToList();
                ViewBag.Name= model.getobj.ToList();
            }
            return View(model);
        }
=>This is My Employee Model Code:-
public class Employee
    {
        public int EmployeeId { get; set; }
        public string EmpName { get; set; }
        public string Designation { get; set; }
        public int Salary { get; set; }
        public int DeptNo { get; set; }
    }
=>This is My TableData Model Code:-
public class TableData
    {
        public List<empdetail> getobj { get; set; }
    }
=>This is My View code:-
@model JQGrid.Models.TableData
@{
    ViewBag.Title = "Home Page";
}
   var x = @ViewBag.Name 
      

<link href="@Url.Content("~/Content/themes/base/ui.jqgrid.css")" rel="stylesheet" type="text/css" />
 
<script src="@Url.Content("~/JS/jquery-1.7.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/JS/jquery.jqGrid.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/JS/grid.locale-en.js")" type="text/javascript"></script>
<table id="student-grid-array"></table>
<script type="text/javascript">
    $("#student-grid-array").jqGrid({
        datatype: "local",
        colNames: ["EmployeeID", "EmpName", "Designation", "Salary","DeptNo"],
        colModel:[
                { name: "EmployeeID", index: "EmployeeID" },
                { name: "EmpName", index: "EmpName" },
                { name: "Designation", index: "Designation" },
                { name: "Salary", index: "Salary", sorttype: "int" },
                {name:"DeptNo", index: "DeptNo",sorttype:"int"}
            ],
        multiselect: true,
        shrinkToFit: false,
        caption: "Employee List - Loading via Array"
    });
for (var i = 0; i <= x.length; i++) {
        $("#student-grid-array").addRowData(i,getobj[i]);
    }
</script>
In the top third line(i.e in view code) i tried to store viewbag data to some variable "x" but i was unable to do that,please guide me how to achieve this task,thanks in advance

Thanks
Ramu

The name "PresentationUIStyleResources" does not exist in th

$
0
0

Dear Experts

I getting an error in wpf  vb. net while apply classic.xmal theme and I have already added reference as

System.Windows.Forms

how to salve it?

rror 3 The name "PresentationUIStyleResources" does not exist in the namespace "clr-namespace:System.Windows.Documents;assembly=PresentationUI". D:\MANOJ\Ocean\Ocean\Themes\Classic.xaml 1858 39 Ocean

expression for parameter in ssrs

$
0
0

Hi Friends,


This expression is not working

=IIF(Parameters!pTh.Value =

"ALL", "Americas,EMEAR,APJC,GET",Parameters!pTh.Value)


 

Scope of Sharepoint

$
0
0
Dear All Experts, I want to know Scope of Sharepoint in future and also i want to know .. IS share point is related is WCF and .net web application. Please Reply.?

NANT Build

$
0
0
Hi All,
With older ver of Visual studio I have created NANT script which was doing following for me
1. Connect to source control
2. Get latest form label
3. build the solution.
4. deploy at particular location

However with VS2010 is there are any other alternative available. NANT seems older?

What I am looking ulitmately batch file which will do above task.


Thanks,
Sanjay

time as X axis of graph, visual studio 2012

$
0
0
Good day everyone.

I am having little problems in my windows form program in visual studio.
I want to generate a graph where the x axis is in terms of minutes or hours, because I want to have 
readings every 5 mins. I am able to generate the graph but its x axis is in terms of date, and no matter
what I do, I was still not able to change it to minutes. 
As a summary, I want a program where my readings will be inputted first, then my graph will be 
displayed after all the readings have been inputted, and the x axis of the graph should be in minutes and should
have intervals of 5 mins. please HELP me. PLEASE. 

for experimenting, i made this program for just a few input so that it wont be tiring when i run it. Here's my code. I am just a beginner and I don't fully understand the c# language .

public void button1_Click(object sender, EventArgs e)
{
int[] dataInputs = new int[5];
dataInputs[0] = int.parse(textbox4.text);
dataInputs[1] = int.parse(textbox5.text)
dataInputs[2] = int.parse(textbox6.text);
dataInputs[3] = int.parse(textbox7.text);
dataInputs[4] = int.parse(textbox8.text);
chart1.Series["Series1"].Charttype = System.Windows. . .  SeriesChartType.Spline;
chart1.chartArea[0].AxisX.IntervalType = System.Windows . . . DateTimeIntervalType.Days;
chart1.chartArea[0].AxisX.Interval = 1;
chart1.chartArea[0].AxisX.Maximum = dataInputs.Length;
chart1.Series["Series1"].XValueType = System.Windows . . . chartValueType.Date;
chart1.Series["Series1"].Points.AddY(dataInputs[0]);
chart1.Series["Series1"].Points.AddY(dataInputs[1]);
chart1.Series["Series1"].Points.AddY(dataInputs[2]);
chart1.Series["Series1"].Points.AddY(dataInputs[3);
chart1.Series["Series1"].Points.AddY(dataInputs[4]);

}

the output of this code is a graph where the x axis is in days. I would like to have the minutes. where there is 5 min interval.




Client Side Scripting

$
0
0
I have a html table whose values had to filled from server side code. it consist of select control in one of the columns of the table.
Using one webmethod and ajax json , i filled the table contents with data . Using second ajax method i am able to get the dropdown list data but unable to bind it.
Actually , i am able bind only first select control with data but not other select controls .How to fill or bind select control(consist of DeptID,DeptName) in each row of the table with data coming from server by asp.net webmethod. The whole scripting has to be on client side.

Do not want to directly access .swf file

$
0
0

On my website I had embeded swf file on aspx page. But few users can directly access swf file . Which i

donot want . How can I do this

bitlocker unlocking

$
0
0
hi
this is my 1st post in this forum.i hope through this forum i can get rid of my bitlocker problem..
i have encrypted my D drive and  forgotten the password of my bitlocker and try xp windows and other version of windows 7 hoping that perhaps
this will solve my problem but all failed.
Now i have found my bitlocker recovery key but when i entered that it says that THE RECOVERY KEY YOU ENTERED IS INCORRECT

 

Jquery Model dialogbox in asp.Net

$
0
0
 I am trying to open jquery popup box in asp.net
i have four pages in array
------------------------------------

i.e.
var i=0;

var forms;
this
.aForms = new Array("Page1.asp",

                         "Page2.asp",

                         "Page3.asp",

                         "Page4.asp");   


and open dialog code
----------------------


var
url = form ;
$.showModalDialog({
url: url,
dialogArguments: window,
height: 470,
width: 400,
scrollable:
false,
onClose:
function () {
var returnedValue = this.returnValue;}
});



while ((Btnstat =="next"))
{
objWizard.showDialog();

form =
this.aForms[i];
i++
}

 
and i next button on popup window and i am setting value of Btnstat variable= next and at the end
finish

when i am running the code the dailog is not opening until loop fineshes its process and at the end only one page get display

so how can i display my first page in popup and click of next button another page should display in popup

Plz help me....

Net DVR online surveillance

$
0
0
I want video surveillance from using asp.net. Already through NetDvr Client setup its working but i want to connect through .net. 
it will help me to access in internet. it should not ask authentication for dvr. 
authentication should be given in code.

how to Create Scorm Compliant Content in ASP.NET

$
0
0
Hi There ,

My Company strategically taken the decision to create Scorm compliant e-learning web solutions for the end user
I want to develop scorm compliant Content in asp.net ,Please help me i already gone through the http://scorm.com/wp-content/assets/old_articles/whatisscorm/What%20Is%20SCORM.htm
above link,but  in real scenario how to integrate ,Manage and Create scorm Content in Asp.net web application


Reply would be appreciated

Thank n Regards
Nikhil waghmare

Viewing all 32756 articles
Browse latest View live