.NET Programming

134K

Solutions

39K

Contributors

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

Share tech news, updates, or what's on your mind.

Sign up to Post

This question is kind of a continuation of our previous question which was solved. This was the previous question: How to Edit an .aspx page: We have a new website and one of the pages when opened in a browser is like a form, and the boxes are not lined up correctly and the page is dark.
Is there a program that I could open up the page and edit it, such as lining up the boxes and making the page brighter? We have Visual Studio 2015 and when I open the page up in design view, I can align the boxes but when I save it, it doesn't keep the changes.
New question:
We've been able to edit this page with Visual Studio 2015 somewhat but now I'm stuck. We have a label on this page called "Amount" which spans 2 columns and is centered. We would like to be able to put the text "Total" to the left of the "Amount", kind of like below:
                                                             Total                                 Amount
Please see the code below, thanks for your help.
<td colspan="2">
                             <asp:Label ID="lblAmount" runat="server" ForeColor="Black" BackColor="White" Font-Names="Calibri" />
                        </td>
0
Introduction to R
LVL 13
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Hello Experts,

I am fairly new to C# programming for MS Word document.
I am trying to create an interactive Word document for users.
I have separate csv file that has values for "Country Name, Country code".
Now from my word document, I want users to have ability to search by country name and pick the value of country code to the text box in Word.
Not sure if have to use any local database like SQLLite or how I can make this search interactive for users from the Word document.
Can you help by throwing pointers that I can use to get started.

Thank you.
0
Hi,

I have this rest api request that returns a boolean value. Initially this value is always set to false but will turn to true within seconds (or up to a minute) . I need to do re-do or poll the request until the status of the value has changed from false to true and then, of course, stop the request(s) and continue.

What kind of methods can I use to make this happen.

Grateful for help and example code.

Peter
0
How do I add an image from resource to WPF form?

In Visual Studio I create a new project. I select: Visual C# | Windows Desktop | WPF App (.NET Framework)
Name of new project is "WpfApp1"

In Solution Explorer I right-click on "WpfApp1", select Properties

On left side I select Resources

I drag image file from File Explorer to the "Resources page". This adds the image to my resources. (Let's say the image file is "MyImage.bmp" and it shows up as "MyImage")

I set Access Modifier: change from "Internal" to "Public"

Now I would like to add this image to my MainWindow.xaml form:
<Window x:Class="WpfApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp1"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Image Source="{something goes here}" />
    </Grid>
</Window>

Open in new window

What do I specify as Source for Image I'm my MainWindow.xaml file?
0
I work in a VB.Net shop. The branch of the company I work for odes a great deal of mailing and as such use IMB Barcoding. We need to use a dll provided by USPS and from everything I have found in my research it is not compatible with Visual Basic, .NET or otherwise. The dll provided by USPS is USPS4CB.dll, which was written in C.

I refuse to believe that some great mind out there hasn't found a way to access the dll and use its functions. I have found some references in my research to a compatible version of the dll that was provided to someone by USPS, but have no way of obtaining it.
I either need to figure out either how to import and use the dll in VB.Net or how to obtain a compatible version of the dll.
0
How do I easily passing information from a database to  model and then to the view without using binding, i am using mvc 4.0
0
How do I allow users of my application developed in VB.NET to send email using the application?

The application generates an invoice, I would want the user to send that invoice through the application and using his email account as a form address.

Thank you, Anthony
0
(Even tho I've resigned, I still want to help the team out before I leave on Friday)...

Our code is MVC , C# with EF 6. The mid developer on the team is going on and on about adding IoC to the code, gut it out whatever , to add unit testing. He said IoC for unit testing because we don't have any unit testing in the solution.

What is he talking about?  It's not a huge solution and not a complicated project.

I found this
https://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

and this http://duanenewman.net/blog/post/better-unit-testing-with-ioc-di-and-mocking/

I know this an open question... but should he do this? Would it add complexity to the code that's already suffering from performance issues and is an old code....written 5 or 6 yrs ago.
0
Looking at integrating a vb.net application to pull orders from a web API. In the past I have added a reference and used the WSDL. The software I am trying to integrate is:

http://docs.handshake.com/?json-doc#quickstart

It would be better if I could use a WSDL type integration but from the documentation it looks like you have to do a HTTP request.

Really looking for the best way to move this forward. don't know if I should use the HttpWebRequest.

The documentation says :
# Use the command below to dump the JSON data for your orders. Replace the `2c493d74` with your own API key (which will be much longer)
curl -u 2c493d74:X "https://app.handshake.com/api/latest/orders"


I am a bit unsure if I keep my httpwebrequest as:        
Dim myRequest As HttpWebRequest = CType(WebRequest.Create("https://app.handshake.com/api/latest/orders"), HttpWebRequest)

If I try and anything else it fails. I can call myRequest.Credentials but is this what I should be trying to do?


Best Regarsd,

Ross
Example.JPG
0
When using asp.net web forms or asp.net mvc and using a gridview or an html table holding a sql server table with large amount of records and you want to allow exporting of the data to pdf.
What solution or technology do you normally use to export the large amount of data to pdf quickly?
0
Become a CompTIA Certified Healthcare IT Tech
LVL 13
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

whats the best way to make an app that recieves messages from udp port (string )  convert into and object  and send it to a  db  by store procedure . using .net or .net core   ... is favorable to use MSQM ? (using a buffer ?) or  is way better to use  sql server vs MSQM .. what about MSQM over WCF ? ane suggestions.  .. it means  massive (5000+/sec) messages    and convert it  to an object and  use a store procedure
0
Hi,

I am having trouble to install .net framework 3.5 or 4.o  in Window 10 enterprise due to WSUS server we have.

Any suggestions are appreciated!

Thank you very much in advance!
0
I had this question after viewing Textbox Textchanged event doesn't fire....
0
Hi all
i got

cie as date
cie.ToString("dd/MM/yyy")

result

14/03/2019

I need

Jueves 14 de Marzo del 2019
trans

Thursday 14 of march of 2019

or some like that, the needment is that give me the day as text format
"thursday"

tsm experts
0
Hello,
I am getting below error :
 
System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
   at System.Data.SqlClient.SqlBuffer.get_Int64()
   at System.Data.SqlClient.SqlDataReader.GetInt64(Int32 i)

Open in new window


This comes on line row[7] where it is assigning Date value. This is assigning to DataRow in Datatable , Please help.Thanks I checked there are data available in reader there is nothing like NULL for data. There is data present.


                    while (dr.Read() == true)
                    {
                        
                        if (Uid!= dr.GetInt32(0))
                        {

                            row = table.NewRow();
                            rectificationId = dr.GetInt32(0);
                            row[0] = dr.GetInt32(14);
                            row[1] = IdTest; 
                            row[2] = dr.GetString(1); 
                            row[3] = dr.GetInt32(2); 
                            row[4] = dr.IsDBNull(4) ? 0 : dr.GetInt32(4);                           
                            row[5] = dr.IsDBNull(6) ? string.Empty : dr.GetString(6); 
                            row[6] = dr.GetString(11); 
                         [b]   row[7] = new DateTime(dr.GetInt64(12)); [/b]
                            row[8] = new DateTime(dr.GetInt64(8)); 
                            row[9] = new DateTime(dr.GetInt64(9)); 
                            row[10] 

Open in new window

0
Hello Experts,
In a web from I am trying to get confirm window stating "All the selected rows will be deleted, would you like to continue?".  I need two buttons "Yes" and "No".  All the above should happen when I click a "Delete" button on the screen.  Please help.

Thank you very much in advance.
0
Hi,

I need a versatile asp.NET Content Management System which can be used for various websites and web-apps, for instance...

- Brochure sites.
- Knowledgebase sites.
- E-Commerce sites.
etc...

I need a widely used CMS which has strong community/support base and lots of extensions/add-ons.

I don't mind paying a premium if the solution works.

Please can I have some recommendations.

Many thanks
0
Hi I am planning to move my .net website to Google Cloud Platform, Is it simple or it will take lots of effort to do that, Please tell me some tutorials which can help me
0
Hi Experts

I need to upgrade Exchange servers 2013 CU and I'm planning to upgrade to CU20.
I have DAG setup with 2 members, 1 Witness server.
Total 4 Exchange server 2013 and 2 at HQ (CAS and Mailbox) and the other 2 at DR site (CAS and Mailbox).

Due to .Net upgrade requirement asked by security team, I need to upgrade my Exchange servers .Net to 4.6.2 (supported .Net for CU20) and then upgrade my exchange to CU20.

The security team suggest to upgrade one site first(1 CAS and 1 Mailbox).  Please advise what is recommended procedure to upgrade and explain why it is required.

Based on this, http://koustovworld.blogspot.com/2015/07/exchange-2013-cu-upgrade-process-cu5-to.html it suggests to upgrade Mailbox servers first then follow by CAS.

In my scenario, I need to upgrade both CAS and Mailbox of 1 site then they'll monitor for any issue for 1 week. Then I can proceed upgrade for the other side upgrade of CAS and Mailbox.

Can I follow the step above or please advise what recommended procedure I should follow and please explain the reason of procedure required to follow.

Thanks
Regards
Maung
0
Exploring SharePoint 2016
LVL 13
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Hi there, I am using C# wpf and trying to operate on a rich text finding and replacing words and formatting them in bold italics etc by using code behind. What is the simplest way to do it as I have read many complicated options and can't decide on one. Thanks.
0
Been searching for the answer with no success. All I've read is how DateTime is not nullable. No explanation. It's probably due to it being a data structure, I guess.

What's needed is clearing the DTPs before a new doc is created. Since it's not nullable, how do you guys "clear" the DTP in VB.NET 2017?

Thanks for any help.

--Bob
0
Hi Experts,

Can you please share me the solution in C# to upload the document and file information to another system by using the restful request .

I have following :

1) Url ( They provided the service url to upload the documents)

Regards,
Kumar
IMG-20190220-WA0051.jpg
0
How do I set just the bottom line of an excel border? I've found some examples but none work. I get the default(I think) of a border all around the merged cells.
Here is a bit of code I'm using for test:

Dim objApp As Excel.Application
        Dim objBook As Excel._Workbook
        Dim objBooks As Excel.Workbooks
        Dim objSheets As Excel.Sheets
        Dim objSheet As Excel._Worksheet
        Dim range As Excel.Range
        Dim uintRowIndex As UInt16 = 1
        Dim misValue As Object = Reflection.Missing.Value

        FrmMain.Cursor = Cursors.WaitCursor
        Try

            strtModualCrashPoint = "LoadExcelWithItemsFromSearchedDatasets 0" '<<<ERR LOCATION

            ' Create a new instance of Excel and start a new workbook.
            objApp = New Excel.Application()
            objBooks = objApp.Workbooks
            objBook = objBooks.Add(misValue)
            objSheets = objBook.Worksheets
            objSheet = objSheets("Sheet1")

            strtModualCrashPoint = "LoadExcelWithItemsFromSearchedDatasets 1" '<<<ERR LOCATION

            ' objSheet.PageSetup.PaperSize = Excel.XlPaperSize.xlPaper11x17
            objSheet.PageSetup.PaperSize = Excel.XlPaperSize.xlPaperLetter
            objSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlPortrait


            With objSheet.Range("A2:I2")
                .Merge()
                .Borders(Excel.XlBordersIndex.xlEdgeBottom) '<<<<<<<<<<< not working.

                .Borders.LineStyle = 

Open in new window

0
I have a simple asp.net website, with a default page and on page_load function , I check some basic user information by calling a web service, getting a response and checking whether or not a certain value exists in the response for every user. I don't fully understand page cycle and post back in asp.net website.
My current code looks like following sample.

I am not sure , when this IsPostback returns true or false. My assumption is that my code to call the web service only fires when the page loads , after that i don't have to call it again for the same user. does the following code construct accomplishes that . if not what can i do to achieve that.

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {        
               if (! IsPostback )  {
                   
                   //call web service 
                    if ( response != null && hasSomeValue) {
                    
                        //user is authenticated and has full access to the site 

                    }
              }
    }
}

Open in new window

0
dear all ,
How to use interactive sorting control in crystal report in visual studio as it is shown in the designer but hidden when the report is previewed?
0

.NET Programming

134K

Solutions

39K

Contributors

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.