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

write, read and lock mifare card C#

$
0
0

I am able to write and read data in mifare 1kb card. But i am not able to change to access key code to make the card secure. Please help to change  access key of the mifare card.

Crawl different career website& aggregate all job at 1 place

$
0
0
i want to scrap the data various career site and save date in storage and this data should  auto post in the various portal. so please tell me 

How can i Crawl different career site and aggregate all job at single place???\
 also i want to know, which is the best aggregation techniques ??

Thanks,
Gaurav Singh

write, read and lock mifare card C#

$
0
0
I am able to write and read data in mifare 1kb card. But i am not able to change to access key code to make the card secure.

Select the row as a column in oracle 11g

$
0
0
Hi

I am having two table

           1. tbl_CategoryCreteria
           2.tbl_Feedback.

First table is used to save the creteria for the feedback and i am having the following values

tbl_CategoryCreteria.

        ID                 Name
        ---------------------
        1                  Lunch
        2                  Dinner

In the second table i having the value as

       ID  CreteriaID           Rating
  ----------------------------------
       1      1                    1
       2      1                    A
       3      2                    B
       4      2                    2

I need the output as following

              Lunch         Dinner
         ---------------------
              1                 B
              A                 2

(i.e) In the second table, i having the CreteriaID which is the FK of first table.

Instead of 1, i need to display as Lunch because the Creteria of 1 is Lunch in First table and i need to display as column.

Hope this is clear.

Please let me know if this is not.

how to implement slideshow extender in asp.net

struts LookupdispatchAction with hibernate example program

$
0
0
hi i want  struts Lookupdispatchaction with database (delete update inserting) crud operation using gridview program please send me ...

Create thumbnail(with link) of a uploaded video

$
0
0
Hi all ...
           I want to create the thumbnail of uploaded video with out using ffmpeg. By clicking on this thumbnail video must be play.Any suggestions.

Convert mouse coordinates to diom image pixel coordinates i.

$
0
0

In my application dicom image is rendered on picturebox of winform..When i clike on image by mouse using mouse move event i got mouse coordinates i.e. location at that point as..

 private void OnMouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
               {                     
                  Point point =new Point(e.Location);
               }
            }
        } 
Using above code me getting only mouse coordinates but i want pixel coordinateds of image which is render on picturebox at that location...Please help me.


How to migrate sharepoint wiki to confluence

$
0
0
    I have several(numerous) wikis in sharepoint website how can i migrate all that wikis to confluence.

Date not getting updated aftr editing from datepicker in WP7

$
0
0

Hi,

I am currently using the Datepicker provided from the windows phone 7 toolkit nov 2011.

In my applicaion i have fetched the value from the datepikcker and saved it in the db without any problem.

The issue currently im facing is after that.

"I retrieved the date from the database and set it to the page in the required field. Once i click the date field to change the date, it opens the full screen date selector. After I select the requried date and click the "check button" date is not getting changed/updated in the page."

It remains the same even after changing the date from the date picker.

So far i googled i found out that "whenever i select date in datepicker it moves to new page, after selecting new date and press back button it".

Please help/provide me a suggestion to solve my current problem.

How to keep a ActionLink to each row of the JQGrid

$
0
0
Hii to all,
I have done successfully,in getting the tables data from database & displayed in JQGrid.Now i want to add one more column to my JQGrid that should be an ActionLink say "EDIT",i.e i want to add a Link button to each row of my JQGrid,so that whenever user clicked on ActionLink it has to redirect to another View,and also it has to get the respective row data say some cell value(id)..This is my JQGrid

$("#emp-data-grid").jqGrid({
datatype: "local",
data: mdata,
colNames: ["EmployeeID", "EmpName", "Designation", "Salary", "MobileNo", "Email", "EDIT"],
colModel: [
{ name: "EmployeeID", index: "EmployeeID", sortable: false,
editable: true, edittype: 'checkbox', editoptions: { value: 'true:false' }
},
{ name: "EmpName", index: "EmpName" },
{ name: "Designation", index: "Designation" },
{ name: "Salary", index: "Salary", sorttype: "int" },
{ name: "MobileNo", index: "MobileNo", sorttype: "int" },
{ name: "Email", index: "Email" },
{ name: 'EditAction', formatter: 'showlink', formatoptions: { baseLinkUrl: '@Url.Action("Edit")'} },
],

shrinkToFit: true,
viewrecords: true,
sortorder: 'asc',
caption: "Employee List"
});

I have tried with the following but didn't get the Links column
name: 'EditAction', formatter: 'showlink', formatoptions: { baseLinkUrl: '@Url.Action("Edit")'} },

Please help me how can i show a links to each row..Thanks in advance

Thanks
Ramu 

how create automatics timetable using Genetic Algorithm

$
0
0
Hi all 
Any one can help or guide me in generate timetable using Genetic Algorithm in C++ or JAVA or .NEt???

I need some open source code for same target

union all with order by newid()???

$
0
0

Hai friends,
 
   here im getting error when im using union all and order by newid() together, can any one help me to solve this issue.. 

select distinct * from(select top 500 (A.AdId),A.AdImgPath,A.OnAdURL,A.AdSize from KZ_AdDetails A,KZ_Add_Cat Cat,KZ_Add_City Cit where  A.AddU_ID=Cat.AddU_ID and A.AddU_ID=Cit.AddU_ID and AdSize='250x250' order by newid()) X
union all
select distinct * from(select top 500 (A.AdId),A.AdImgPath,A.OnAdURL,A.AdSize from KZ_AdDetails A,KZ_Add_Cat Cat,KZ_Add_District Dis where  A.AddU_ID=Cat.AddU_ID and A.AddU_ID=Dis.AddU_ID and AdSize='250x250' order by newid()) Y

regards
Divya

UPGRADE ACTIVEREPORTS 6 TO ACTIVEREPORT 7 - ISSUE WITH TOOL

$
0
0
Hello friends, in one of my projects I am currently using ActiveReports 6 and m planning to move to Component Once Active Reports 7. Basically I have downloaded Active Reports 7 as of now... In the "Tool" menu, when I click on the "Convert to ActiveReports 7" I get a
"Member Not Found - Exception from HResult : 0x80020003 DISP_E_MEMBERNOTFOUND" error notification message from a popup.

This is basically stopping me from my upgradation. I tried to uninstall and re-install the ActiveReports7 on my machine. Did it several times, but the same issue exists. I tried to google a lot but could not find any documentation related to this problem.

I HAVE ATTACHED IMAGES WITH THIS POST, SINCE I AM UNABLE TO ADD IT WITH THE CONTENT.

So need a guidance from you experts... Waiting for a reply.

Thank you,
Shivanand Arur.

how can i print a id card

$
0
0

hi i want print a id card so i have a panel with idcard backgrund and some lable and i don't know how do that

my code

Panel1.Controls.Add(sho);

Panel1.Controls.Add(nameab);

Panel1.Controls.Add(last);

Panel1.Controls.Add(tal);

Panel1.Controls.Add(amo);

string mcon = ConfigurationManager.ConnectionStrings["ing"].ConnectionString;

SqlConnection con = newSqlConnection(mcon);

SqlCommand com = newSqlCommand();

SqlDataReader dr;

con.Open();

com =

newSqlCommand("select name,lastname,stdid,school,stdtel,kodmali from studenta where kodmali='" + TextBox1.Text + "'", con);

dr = com.ExecuteReader();

if (dr.HasRows)

{

Panel1.Visible =

true;

Button1.Visible =

true;

while (dr.Read())

{

sho.Text = dr[

"stdid"].ToString();

nameab.Text = dr[

"name"].ToString();

last.Text = dr[

"lastname"].ToString();

tal.Text = dr[

"stdtel"].ToString();

amo.Text = dr[

"school"].ToString();

}

}

else

{

Response.Write(

"???? ????? ?? ??? ?? ??? ????? ??? ????");

}

}

v


Acessing javascript variable of HTML site from c# win app

$
0
0
hi All,
        
        i created one web browser control application in that i sign into one website. i made download files from site that time i require variable that show how much files are downloaded in my c# code behind to create log how i acess that plz help.
         

Date not getting updated aftr editing from datepicker in WP7

$
0
0
Hi,
I am currently using the Datepicker provided from the windows phone 7 toolkit nov 2011.
In my applicaion i have fetched the value from the datepikcker and saved it in the db without any problem.
The issue currently im facing is after that.
"I retrieved the date from the database and set it to the page in the required field. Once i click the date field to change the date, it opens the full screen date selector. After I select the requried date and click the "check button" date is not getting changed/updated in the page."
It remains the same even after changing the date from the date picker.
So far i googled i found out that "whenever i select date in datepicker it moves to new page, after selecting new date and press back button it".
Please help/provide me a suggestion to solve my current problem.

Thanks in Advance.

I have added the code behind of my project. 

XAML code :

 <toolkit:DatePicker Margin="139,237,0,451" x:Name="txt_DateOfPurchase" FontSize="18" Grid.ColumnSpan="2" Grid.Column="1" Width="254" ValueStringFormat="{}{0:d}" Value="" />

.CS Code

protected overridevoid OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)

        {

            base.OnNavigatedTo(e);

 

            if (e.NavigationMode == NavigationMode.New)

            {

                parameterValue = NavigationContext.QueryString["parameter"];

                Action = NavigationContext.QueryString["action"];

                using (AppliancedataContext Appliance = new AppliancedataContext(strConnectionString))

                {

                    var a = from b in Appliance.GetTable<ApplianceInfo>() where b.ApplianceName == parameterValue.ToString() select b;

                    foreach (var x in a)

                    {

                        txt_ApplianceName.Text = x.ApplianceName;

                        txt_DateOfPurchase.ValueStringFormat = x.DateOfPurchase;

                        if (Action == "EditData")

                        {

                            btnAdd.Content = "Edit";

                        }

                        if (Action == "Edit")

                        {

                            btnAdd.Content = "Edit Data";

                        }

                    }

                }

            }

        }

 

        privatevoid btnAdd_Click(object sender, RoutedEventArgs e)

        {

                using (AppliancedataContext ApplianceDB = newAppliancedataContext(strConnectionString))

                {

                    if (Action == "Edit" || Action == "EditData")

                    {

                        var Appliance = (from i in ApplianceDB.GetTable<ApplianceInfo>()

                                         where i.ApplianceName == parameterValue.ToString()

                                         select i).Single();

                        Appliance.ApplianceName = txt_ApplianceName.Text.ToString();

                        Appliance.DateOfPurchase = txt_DateOfPurchase.ValueString.ToString();

                        ApplianceDB.SubmitChanges();

                        MessageBox.Show("Updated");

                    }

                    else

                    {

                        ApplianceInfo NewAppliance = newApplianceInfo

                        {

                            ApplianceName = txt_ApplianceName.Text.ToString(),

                            DateOfPurchase = txt_DateOfPurchase.ValueString.ToString(),

                        };

 

                        if (txt_ApplianceName.Text != "")

                        {

                            ApplianceDB.Appliances.InsertOnSubmit(NewAppliance);

                            ApplianceDB.SubmitChanges();

                            MessageBox.Show("added");

                        }

                    }

                }

            }



Share point custom workflow

$
0
0

Hi all,

I have a requirement that,
 
once the document is added to document library the the custom approvalworkflow will get triggerd and the docuement moves for reviewer review 
once the review is done, the document should get convert to PDF format and the workflow should proceed till end.

Issue that i am facing is once the docuement is converted to PDF it is new document all together and  one more item in the document library
so in this situation what is the best way that workflow should continue for the PDF docuement instead of word document.

please reply on this asap waiting for the reply

Chetan



 




 

 





 


 

Microsoft JScript runtime error

$
0
0

Dear All,

Microsoft JScript runtime error: Object doesn't support this property or method

I am using this function:-

<script type="text/javascript">

                $(document).ready(function() {
                    $.noConflict();

                    jQuery('#services-example-1').services(
                        {
                            width:920,
                            height:290,
                            slideAmount:5,
                            slideSpacing:30,
                            touchenabled:"on",
                            mouseWheel:"on",
                            hoverAlpha:"off",
                            slideshow:3000,
                            hovereffect:"on",
                            callBack:function() { }

                        });

                    jQuery('#services-example-2').services(
                        {
                            width:720,
                            height:345,
                            slideAmount:6,
                            slideSpacing:20,
                            touchenabled:"on",
                            mouseWheel:"on",
                            hoverAlpha:"off",
                            slideshow:3000,
                            hovereffect:"on",
                            callBack:function() { }

                        });

            });
            </script>

how to start download from where it stopped asp.net?

$
0
0
how to start download from where it stopped asp.net?

If I want to give some video file or any other file to download to client, And user wants to stop or because of some any other reason it has been stop..

Then how to start again from that point....

Where is the best location to store video files either db or in app folder?




Viewing all 32060 articles
Browse latest View live