.NET Programming

132K

Solutions

77

Articles & Videos

38K

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

I have a DataList that has a bunch of controls in it. I load controls based on what is supposed to be shown from my database. I show certain images, buttons, labels based on values, and blablabla....Everything works fine. But......I have buttons that will show up based on logic and they all work but I added the RoundedCorners Extender and I noticed that the rounded corners only happen on the very first DataList item? It shows the first item with rounded corners but not on any of the following buttons? I should note that I only have code for the ItemTemplate( also have minimal code for HeaderTemplate and FooterTemplate) but not for anything else (AlternatingItemTemplate, SelectedItemTemplate, etc...). Im not sure if I have to have code for one of the other Templates in the Datalist for the roundedcorners to work for every item but I tried the AlternatingItemTemplate(?) but that didnt work.
I forgot to add that I am having the same exact problem with the balloonPopupExtender. It works on the first but not on any of the other items in the DataList

If anyone has any suggestions Id really appreciate it. If I cant find something Im just gonna take it out but I really like the look so I would hate to have to do that. Thanks for any help!!

I added a pic just to show what Im dealing with...Thx again

DataList RoundedCorners
0
Learn by Doing. Anytime. Anywhere.
Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Hello Experts!

I have a website that uses microsoft.aspnet.Identity for Logging in.  I have a companion windows program that I'd like to be able to create users and make adjustments to the settings of the website.  

Is it possible to Microsoft.aspnet.Identity to create users in a Windows Program or is that only for Web only?
Would anyone have example code?

thanks!
0
I have a RadGrid that is populating fine.

But on postback I am getting an error in the Item_Created sub

If Not IsDBNull(DataBinder.Eval(e.Item.DataItem, "TourID")) Then
    If DataBinder.Eval(e.Item.DataItem, "TourID").ToString() <> "0" Then
        TourID = CType(DataBinder.Eval(e.Item.DataItem, "TourID"), String)
    End If
End If

Screenprint
SP
0
Hi

Following on from this post Getting-started-in-C

Which version of visual studio should I be using it looks like the MS training video's are using Community 2015 unsure what the youtube   videos use

When I attempted to install the latest version it need over 8 GB of space and despite pointing the installation to a drive other than C:\ it wouldn't install

To complicate matters I would need the same version on my Laptop which I know  is space limited
Also on an air gapped system not connected to the internet  from what I've seen VS out of the box requires add ons (For instance to connect to a database) this is simple with an internet connection not so without, for the Air gapped system I'd need to download the add on and transfer via CD/DVD

Running Windows 7 64 bit On all systems
0
Hello,
How can I navigate between tabpages by arrow keys;  (Left and Right).
I am using vb.net 2015 desktop.

Cheers
0
I'm using jquery ui autocomplete
I want to have a drop down list on my page also. So my DropDown list will display countries.
If I select USA from the drop down list then the autocomplete should only show suggestions for states in USA.

Anyone know a good link to a good example where a drop down list filters the autocomplete suggestions?
0
Hi Experts
Attached is an image of an RLDC report Right Mouse click and select open with
The Default is Report Designer, how do I find what its connected/Pointing to so I can setup
in a new Laptop with Visual Studio 2008

Report Viewer
0
On my asp.net mvc view page I have textbox like this.

The EventTime field is a DateTime datatype in the database.
I'm using the Entity Framework Database First approach.

On the web browser i'm displaying it like this:  09:00 AM

@Html.TextBoxFor(model => model.EventTime, "{0:hh:mm tt}", new { @class = "form-control", id = "EventTime" })
@Html.ValidationMessageFor(model => model.EventTime)

But the validation is saying "The field EventTime must be a date."


Any ideas of how to fix this?
0
Hello all,

I searched my company url https://abc.com and received results.  Is there some way to not have results appear for that search.
Can you please help me asap.

Thank you,
Rithesh
0
how to add images in panel, and do some operations like crop, select image, rotate, etc in c# windows application.
0
Forrester Webinar: xMatters Delivers 261% ROI
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

I need to access the registry in my .NET program I am writing and need to know if I reference this registry entry:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Jet\4.0\Engines\Text

it will not break if the code is running on a 32 bit system.
0
I have a SQL Server table with column FullName VARCHAR(300)

I have a .net import from file process that runs fine except...
Where there are accent characters
It substitutes a ? as it goes into SQL.
Exemple   'PIñERO RODRIGUEZ' goes in as 'PI?ERO RODRIGUEZ'

However..if I run a simple update...
Things update correctly in SQL and can be selected with no issues

UPDATE dbo.Individuals
SET LASTNAME = UPPER('PIñERO RODRIGUEZ')
WHERE IndividualID = 204140


Or I do something simple in SQL like...
INSERT INTO Individuals
VALUES ( UPPER('PIñERO RODRIGUEZ'))   - (Abbreviated code of course...)

Inserts fine

So...

Do I need to change my import Sub (VB.NET) ?

Possibly the "AddWithValue" should actually be this type of format???
oCom2.Parameters.Add(New SqlParameter("@" + header(k), SqlDbType.VarChar, 300)).Value = returnRecords.Rows(i).Item(k).ToString()

This is how its sendingthe insert right now
Dim returnRecords As DataTable = Session("sheetData")
Dim test As String = hdJsonData.Value
 Dim header As String() = test.Split(",")
Dim columnNames As String() = returnRecords.Columns.Cast(Of DataColumn)().[Select](Function(x) x.ColumnName).ToArray()

Using... blah...blah...blah...
oCom2.CommandText = "InsertImportContactStaging"
 oCom2.CommandType = CommandType.StoredProcedure
oCom2.Parameters.AddWithValue("@ImportID", GUID)
oCom2.Parameters.AddWithValue("@ImportRecordType", Session("ImportFileType").ToString() + "")

             …
0
Hi Experts,

This is my program. I am using some private variable to hold the values. Then I am using them through out the program. I want to know is it the right way to do or I should keep them in the session variable and use them. I am curious to know that when many people access the same web page are these variables going to create problem or change the values.  I am using ASP.net and VB.net.

Thanks in advance.


Partial Class EditCustomerOrder
    Inherits System.Web.UI.Page
    Private Shared Calling_Form As String
    Private Shared CustomerID As Integer
    Private Shared LocationID As Integer
    Private Shared MenuOrderDate As DateTime
   
    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Calling_Form = Request.QueryString("Calling_Form")
       
            If Session("EditCustOrder_Calling_Form") Is Nothing = False Then
                Calling_Form = Session("EditCustOrder_Calling_Form")
            Else
                Calling_Form = Request.QueryString("Calling_Form")
            End If

            If Session("EditCustOrder_MenuOrderDate") Is Nothing = False Then
                MenuOrderDate = Session("EditCustOrder_MenuOrderDate")
            Else
                MenuOrderDate = Request.QueryString("MenuDate")
            End If
0
EgEgI have checkbox that when' Checked' sets the  value of the checkbox into a textarea.

    Protected Sub chkReviewdate_CheckedChanged(sender As Object, e As EventArgs) Handles chkReviewdate.CheckedChanged
        CheckActions()
        txtNotes.Text = "Review date to be added or incorrect"
    End Sub

Open in new window


The problem is that when more than 1 checkbox is checked it overwrites the value in   txtNotes.Text with the latest checkbox value

What I would like to do is list ALL the values of the 'Checked' checkboxes, not just the last one. Whats the best way to achieve this?
0
I am using lotus notes to send email in .net application using c#. I am able to send mails from this application while i run this in my local host. But the thing is when host the application in local IIS server i am not able to send mails.
 I am getting the following error.
Notes error: Notes shared login failed with this ID file.
Please tell me why i am getting this error after hosting the application.
0
Can anyone recommend a .Net Kafka library?


thanks,

Rick
0
My C# application is showing ominous behaviour.

The application is working perfectly fine for a specific Installation. But it's giving me this exception in another..
- SqlDataAdapter.Fill - Timeout expired.  The timeout period elapsed Prior to executing the query or the Server is not responding.

I've been searching all day for a solution and cant find anything helpful.

The c# Code is

            DataTable dt = new DataTable(tableName);
            try
            {
                using (SqlDataAdapter da = new SqlDataAdapter(SqlQuery, conn))
                {
                    Console.Write(SqlQuery);
                    da.Fill(dt);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(string.Format("Foo String there is nothing good Happening {0}", ex.ToString()));
            }

Open in new window


The SQL is : SELECT * FROM FooTable WHERE ColumnA=0 and ColumnB='15'

Every Google post I've been looking at is about "increase your command timeout". Which makes me almost give up hope.

The same SQL in SSMS Returns only 1 row and I've seriously no idea what is going on.

I've attached a Debugger to the process and can definitely say the code is reaching the Console.Write as a breakpoint.
The exception is thrown at the fill method line.

I'm highly thankful for any responses.
0
Two different workstations, two exact versions one has the link in the tools menu one does not, both have the application installed.  Why would the menu item disappear?

Thanks in advance!
0
I have a database that contains quotes for pricing. I am trying to copy a quote from the quote table and it's related records into the same tables as a way to provide the user a starting point rather than creating a new one from scratch. I have 3 tables...a quote is made up of several assemblies from the assemblies table and each assembly can contain many assembly items from the assemblyItems table.

So here is how it should work. I provide the new quote number to the stored procedure. It will copy the quote from the quote table into the same quote table using the new quote number. Also copy any related Assemblies into the assemblies table and each assembly's item into the assemblyItems table.

I also need the new QuoteID as a return value into my .NET app.

Thank you,
Randy

example structure
Quote
	|
	|----Assembly
	|	|
	|	|---AssemblyItem
	|	|---AssemblyItem
	|	|---AssemblyItem
	|
	|----Assembly
	|	|
	|	|---AssemblyItem
	|	|---AssemblyItem
	|	|---AssemblyItem
	|
	|----Assembly
	|	|
	|	|---AssemblyItem
	|	|---AssemblyItem
	|	|---AssemblyItem

Open in new window

0
Business Impact of IT Communications
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

I'm new to Entity Framework and looking to move future development of an existing application in that direction.  Previously the development has been 'traditional' with VB, Winforms and SQL DataAdapters.  Looking forward, I'll be moving to C# with EF6 (or EF Core).  I'm currently working out how best to do this.  

To minimise impact on end users, I need the new forms I develop to work the same way as they always have.  In the past, for a data object neededing validation, I would handle the .validating event of the Control to which the data was bound and, if validation failed, display a messagebox to the user, set e.cancel=True and get them to try again.

That way, the validation code is in the Client Side  (the view).  In future I want it on the Object Model so that I can use the same validation for potential future development on other platforms (e.g web access).

I've read a lot about this and it doesn't seem to be the way validation works on EF.  Here's where I am.

I have a 'Schedule' data object in EF that has a field / property for Interval_Mins, which is an Integer value representing Minutes.  I want to ensure this value is between 1 and 59 (for example).

I know about the Range DataAnnotation but I want to do this in code in case I require some validation more complex that DataAnnotation allows (also I'm new to DataAnnotation so not clear on it's limitations - let me know if that's the better approach).

So, in my partial class for my 'Schedule' object I …
0
I have a ASP.NET application. I'm using TFS to check in my code.

In my project I revised a few files and then checked them in to tfs.

But after I checked my files in. I noticed the one file that I didn't check in was the Visual Studio .csproj file.

So when I get the latest. The files I checked in are phyiscally there but not included in the application directory.

Is there a way to fix this? So the checked in files are added to the app directory.
0
Hi Experts,

I am testing my project in multiple computers and found a serious problem.

In Machine 1
I log in as an Admin. Then In the page I have to select Customer, location and Room. Then I click OK to go to a different page. (Sesson Admin='Y')

Then in Machine 2, I log in as a user.  select Customer, location and Room. Then I click OK to go to a different page (Sesson Admin='N')

When I come back machine 1 , where I logged in as Admin='Y' before, it changes it to Admin='N'  and all the selection (Customer, location and Room) has changed to that of machine 2.

What should I do. Please help.

Thanks in advance.
0
Hi,

I have a .net application where I'm wanting to host files on a separate drive (D:/) on the same web server. I have that drive set up as a virtual directory in IIS, Problem is when I go to download the file, the browser thinks of course I am sending the user to that virtual directory, and the user is bounced to the login page with this querystring: /login.aspx?ReturnUrl=%2fattach%2fCustomer_Agreement_Test_125372.docx. When I was using Amazon S3, this wasn't the case - is that because the request was to a different server?

The virtual directory pointing to the D drive has a URL of https://[domain].com/attach/, and the dev site URL I'm testing on is https://[domain].com:4443

I can't figure out what's happening here - any ideas?

Thanks,
Steve
0
<asp:GridView ID="grdAdmin" runat="server" AutoGenerateColumns="false" GridLines="None"  CssClass="table table-condensed table-hover table-striped small" data-toggle="bootgrid">
                <Columns>
                    <asp:BoundField HeaderText="#" DataField="ID"  />
                    <asp:BoundField HeaderText="TableID" DataField="TableId" />
                    <asp:BoundField HeaderText="FieldName" DataField="FieldName" />
                    <asp:BoundField HeaderText="isKey" DataField="isKey" />
                    <asp:BoundField HeaderText="canEdit" DataField="canEdit" />
                    <asp:BoundField HeaderText="canFilter" DataField="canFilter" />
                    <asp:BoundField HeaderText="FilterTypeID" DataField="FilterTypeID" />
                    <asp:BoundField HeaderText="SortOrder" DataField="SortOrder" />
                    <asp:BoundField HeaderText="Active" DataField="Active" />
                    <asp:CommandField HeaderText="" />
                </Columns>
            </asp:GridView>


 private void grdAdmin_RowCreated(object sender, GridViewRowEventArgs e)
        {
           
            if (e.Row.RowType == DataControlRowType.Header)
            {
                e.Row.Cells[0].Attributes.Add("data-column-id", "ID");
                e.Row.Cells[0].Attributes.Add("data-identifier", "true");
                e.Row.Cells[0].Attributes.Add("data-type", "numeric");
                …
0
Hi how do i insert an image in a form that i send via email
ObjSendMail.HTMLBody ="Nombre:" +" " + Request.Form("fname") & Chr(10) & "<br>Email:" +" " + Request.Form("email") & Chr(10) & "<br>Consultorio:" +" " + Request.Form("consultorio") & Chr(10) & "<br>Comentarios:" +" " + Request.Form("message")

Open in new window


thats the text, i want to insert an image in the top of that

<img src="images/Oncdelbajiologo.png"

regards
0

.NET Programming

132K

Solutions

77

Articles & Videos

38K

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.