Problems and Solutions - Microsoft.net

0

Like

Hi,

I am using Rotativa for PDF generation in MVC, Its working fine on my local machine but when i have uploaded on production server it is giving Error Unhandled Execution Error.

I seems i need to get install "Visual C++ Redistributable Packages" but server guy is not ready to installed the component on shared server.

Anybody can help to solve the problem without installing "Visual C++ Redistributable Packages" on the production server.

Thanks :) ...Read solutions
Posted by: Sam
On 01 Oct 2016 | Views: 239 | Categories: MVC
0

Like

I need two screen navigation items (i.e. 2 menu items) pointing to same screen, but with different parameters. Is it possible or not, how to do it. I am using silver-light client.

My final goal is to use one screen for two jobs, which are 95% similar, but for some reason we need to have separate screens. But I don't want to create a separate screen, I want to use the same screen for both jobs with little tweaks. ...Read solutions
Posted by: Muhammad Idrees
On 13 Oct 2015 | Views: 312 | Categories: Visual Studio, Tips & Tricks, Silverlight, C#
0

Like

I am using Microsoft LightSwitch framework, need to add dynamic items in choice list. So far I found different posts saying that choice list is only for static items and you have to use a separate table if you need to populate it in non-static means.

In my case, table will also not be a good option, I want to add items manually from C# code. Actually I need to populate years combobox, for this I need to add last 3 years, current year, and one next year. This I could not achieve through static data or TABLE will also be not a good idea. ...Read solutions
Posted by: Muhammad Idrees
On 13 Oct 2015 | Views: 289 | Categories: Visual Studio, Tips & Tricks, Silverlight, C#
0

Like

I have a requirement to add a temporary field in a data table. There are two types of fields you can add in data table. One is DATA fields which are actual fields, and Second is COMPUTED fields which have some limitations (not discussing here).

Let me explain my scenario, I have a table with fields Qty, Rate and Amount. Now I need to add one more field like InputRate which will be just a temporary field, do not have any role in the database. Why I need this is, I need to input rate let say in US Dollar, then then I have to convert this to my own currency say SAR. So I want that this temporary field will not save in database, but the actual one (the rate converted to SAR) will be stored.

We can do this easily in .Net windows Applications or Web Applications. But how can we do this in MS Lightswitch, because it will not allow to add fields on screen untill it is part of the data table. Even if you add a custom field (as I experiment) only on the screen, then it is going to repeat the same field's value for all rows (since my this table is DETAILS table). Means if my table has 5 rows, and in 6th row if I enter anything in custom field(with scope only on screen) then it is showing the same value of all other rows also, e.g. if I entered, then all other rows start also displaying the same value 10.

Any idea how to do this? ...Read solutions
Posted by: Muhammad Idrees
On 13 Oct 2015 | Views: 256 | Categories: Visual Studio, Silverlight, C#
0

Like

I have an ASP.NET application with MS SQL Server back end. This application takes more time to load. It has multiple images, means multiple profile images scrolling in a listview. The application takes too much time to load.
please visit www.trustedlawyers.co.uk
and verify the loading time.
Please anyone suggest how to increase performance of the application.
Thanks,
Anjana ...Read solutions
Posted by: Anana
On 20 Feb 2015 | Views: 515 | Categories: C#, ASP.NET
0

Like

Hi
I have some duplicate rows in my table, i want to remove it and keep original row. Could anybody help me to write a query.

Thanks :) ...Read solutions
Posted by: Sam
On 13 Jun 2013 | Views: 970 | Categories: Database (SQL Server)
0

Like

i have to restrict the size of image when user upload the image.?
can anyone please tell me that how is it possible.. ...Read solutions
Posted by: Nisha Kadian
On 10 Apr 2013 | Views: 953 | Categories: ASP.NET
0

Like

how can i embed the existing master page in another existing master page.
and another problem is in loading master page?
please help me.... ...Read solutions
Posted by: Nisha Kadian
On 10 Apr 2013 | Views: 907 | Categories: ASP.NET
0

Like

I have added two templateFields with one as FileUpload Control and Add button..when User Clicks Add button one row is added in GridView so that user can upload more than one file.when i click add button due to postback selected path is lost even if i maintain the selected path i cannot assign it to fileupload control as it is readonly...what shall i do to persist the uploaded path....please do the needfull ...Read solutions
Posted by: saiprasad
On 04 Feb 2013 | Views: 868 | Categories: ASP.NET
0

Like

I am not able to select multiple files in FileUpload control by using Shift / Ctr + Mouse click like the gmail in asp.net for uploading multiple files on one click.

Anybody can help me to implement this functionally. I am using asp.net and C#

Thanks in advance ...Read solutions
Posted by: Sam
On 13 Nov 2012 | Views: 1502 | Categories: C#, ASP.NET
1

Like

Hi
I am developing a website in asp.net and C#, I need to pass array in QueryString.

Currently I am using Cookies for transferring array from one page to another page.

But problem is that when i open same page in multiple window with different parameter then old page result is replacing with current page.

So that i decided to use QueryString But problem is that i don't know is it supporting in QueryString.

Could someone help me to solve this problem ...Read solutions
Posted by: Sam
On 17 Oct 2012 | Views: 4394 | Categories: C#, ASP.NET
0

Like

Hi, I am working on a chess application and need to create opening book, a file which
could contains a millions of moves and positions. we have 64 squres, some of which have
occupied by pieces while some are empty. Let we represent our pieces with following bits
(using to Huffman encoding technique).


White Black
-Empty 0 0

-Pawn 110 100

-Rook 11111 11110

-Knight 10110 10101

-Bishop 10100 11100

-Queen 111010 111011

-King 101110 101111



At initial position, we have 32 squres occupied by different pieces and 32 squres are
empty. for efficiency I have to store position in consecutive bits. Pieces bits will be
placed in bit array in sequential order, starting from a1 square, then a2 square,..a8,
then b1, b2...b8 square and so on.

So for a starting position this equates to 32 x 1 + 16 x 3 + 12 x 5 + 4 x 6 = 164 bits.

Also some additional 16 more bits are required for different game situation, like
whether castling is enabled or not, and defined enpassant square if applicable.
so I need about 180 bits (or 23 bytes = 184 bits) to store a single position for
chessboard.

Now the problem is that I have to perform some bitwise operations, and so want to know
the scheme how could I manipulate this in my code and also how to store in file. means
which data strucure should I use. e.g. maximum long (data type) will contains only 4
bytes = 64 bits. and i want to avoid using string. Could any body suggest any idea how
to proceed with this.

I am using C#.Net, Framework 3.5. ...Read solutions
Posted by: Muhammad Idrees
On 12 Oct 2012 | Views: 1165 | Categories: Visual Studio 2010, Patterns, Other, C#
0

Like

Hi all

I have a GridView inside updatepanel on my aspx page, how to refresh it automatically like gmail, could anybody help me to create this?

I am using asp.net, C# and Ajax.

Regards
Sam ...Read solutions
Posted by: Sam
On 10 Oct 2012 | Views: 2384 | Categories: ASP.NET, AJAX
0

Like

Hi

I am developing a website in asp.net, i have to show slider for filtering product rage by using jquery.

I have no idea how to do this. please help me develop this feature

Regards ...Read solutions
Posted by: Sam
On 01 Oct 2012 | Views: 1501 | Categories: jQuery, ASP.NET
1

Like

Hello experts

I just want to know how could i prepare urlrewriting in asp.net and is it necessary that it require iis 7.0?????? ...Read solutions
Posted by: Himanshu
On 23 Sep 2012 | Views: 2892 | Categories: ASP.NET
0

Like

hey can someone help me? I need to create a webapp that can send sms to mobile users using asp.net(visual studio 2010) and a smart bro plugin kit(my gateway provider). can someone give me a tutorial on how to do that? ...Read solutions
Posted by: Jerome
On 05 Sep 2012 | Views: 25379 | Categories: Visual Studio 2010, ASP.NET
0

Like

Hi All,

I want to populate combo box from database inside the grid view. I am using asp.net, C#. I have data in database table I want to fill data from database table to combo box this combo box is in grid view. Please give me the solution for this. I will be thankful to you.

Thanks
PBN. ...Read solutions
Posted by: P
On 06 Aug 2012 | Views: 1572 | Categories: C#, ASP.NET, ADO.NET
0

Like

Hi Friends

I am using FileUpload control inside UpdatePanel but it is not working.

Could anyone please give me some solution, how to use FileUpload Control inside UpdatePanel.

I am using asp.net and C#

Thanks in advance.
Regards
Sam ...Read solutions
Posted by: Sam
On 31 Jul 2012 | Views: 3187 | Categories: ASP.NET, AJAX
0

Like

Hi Friends

I need to convert formatted text in PDF format.

I have a formatted dynymic content on aspx page and I have button “Download as PDF”, I need to write conversion code on button click.

I have no idea how to do it. Can anyone please help me do this.

I am using asp.net and C#

Regards
Sam ...Read solutions
Posted by: Sam
On 16 Jul 2012 | Views: 1978 | Categories: C#, ASP.NET
0

Like

Hi,

I am working on a TCP client application. I would like to share my problem and want to know the

better design approcah for packet consumed in application.

Currently I have designed it as:
Consumer class, is activated once it received packet from socket.
PacketReceived event is fired by consumer class once it recognized and build up a valid packet.

Now:
All my forms (and User controls) which need to consume packet, has subscribed for this event to

get notified and then consume packets for interest by checking speficic packetID.

The bad thing about this design is that, it need to write event subscriptuion code and packetID

verification code on every form (and user control).

Is there any better way to get the job done, please suggest.


I am using C#.net, Framework 3.5.

Thanks.
Muhammad Idrees. ...Read solutions
Posted by: Muhammad Idrees
On 12 Jul 2012 | Views: 1302 | Categories: Win Forms, Patterns, C#, Architecture
Page 1 of 3
Other lins

.Net Techies
Other lins