Subscribe: Web Forms
http://forums.asp.net/rss.aspx?ForumID=18
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
application  data  end  mvc  net core  net  relativedob  set  system web  system  web application  web  window  windows form 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Web Forms

All Forums



All Forums



Last Build Date: Tue, 17 Oct 2017 16:00:09 -0700

 



Link from MVC app to a application in IIS

2017-10-02T18:55:30.267-07:00

Hi 

I am trying to open another application within my MVC app environment. I am not sure what the best way to do that is.

I have MVC app (Worksite) in IIS and underneath that I have a normal asp app (ApplicationSetUp). 

In Worksite app this is the code. When the user clicks on the link, it needs to take the user to the URL that points to ApplicationSetup 

@foreach (Login.AppDetails Apps in Model)
    {
       
       
            @*
                @Apps.ApplicationName

            *@
           
                @Apps.ApplicationName
           


       
           
        }

 My first question is 

1) How to open this link within the framework of outer app (Worksite)

2) When the link is clicked I get this error

 The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

Thanks so much for help on these.

-Sarah




Not able to create “Asp.Net Core Web application” in Visual Studio 2017

2017-10-17T22:55:18.88-07:00

I am not able to create "Asp.Net Core Web application" in Visual Studio 2017. When I select the option to create a "Asp.Net Core Web application" I am not getting any templates in the Listbox to create the application? I even installed .Net Core 2.0 and rebooted my system. Still nothing is getting loaded to proceed?

Any ideas what is it I am missing here? (image)

(image)

Note: 2 times I have uninstalled it and Installed .Net core 2.0 and Visual Studio 2017 again.




Envelope aspx pages

2017-10-17T22:53:26.797-07:00

Hey everyone

I have a project that has a bunch of aspx pages in it, including a login page. What is happening right now is that login pages takes the user to several other subsequent pages and so forth.

What I want to do is once the user login all the pages should be in a framework or envelope with top right corner with a logout button. 

How can I go about doing that. Maybe add a page (maybe a master page) that will stay during the course of the site. I don't know.

I want to use all the aspx pages just need them in a box or a boundary. 

Thanks

-Sarah




Web API Learning Resources

2017-10-17T22:52:27.107-07:00

Hi,

I am an experienced .net and MVC developer. I am looking for good learning resources for web api 2.

I like the content on the link below, which is very good.

https://docs.microsoft.com/en-us/aspnet/web-api/

But I want to learn more from intermediate level to advanced areas, e.g. performance, high availablity, scalable. I found the books on this link, but not sure if it is any good.

https://www.asp.net/web-api/books

Please advise.




what technologies i will need after add dll as reference to windows form

2017-10-17T22:48:44.9-07:00

I have dll files from mvc asp.net web application AND i need to use it in windows form application in

visual studio 2015 .NET 4.5.2 .

I add dll files as reference IN windows form application 2015.

dll files taken from web application working with mvc 5 entity framework 6

and i need to use dll in windows form application 

so that what i need in windows form application to implement dll files

and functions inside it .

so that when i use dll in windows form application what i will use

I will use entity framework or .net framework technology .

use Add new item - Data- ADO.net entity data model (edmx) or NOT .

 




How to change the field background color in CR using HTML?

2017-10-17T22:23:35.017-07:00

Hello,

I have a cross-tab in the report. I need to change background color of the summary field based on the database field HEX value. For this I'm interpreting field as HTML. So I created the formula fields and trying to use HTML tags to format it. I can change the font color OK, like this:

' & {Report_SELECT_TagLayouts.TagColorAbbreviation} & '

But I cannot figure out how to change the background color. I have a database field for this - {Report_SELECT_TagLayouts.BackgroundColorHex}, but even if I just use regular HEX values it doesn't work. I've tried different tags - div, span etc. - no luck.

I would appreciate your suggestions.




Setting Date to Null

2017-10-17T15:57:16.12-07:00

Hello everyone and thanks for your help in advance.  I have a WebApi that can pass a date that may or may not be filled in and continue to receive the error:  System.InvalidOperationException: Nullable object must have a value.  Here is my model:

    Public Property RelativeDOB() As Nullable(Of Date)
        Get
            Return m_RelativeDOB
        End Get
        Set(value As Nullable(Of Date))
            m_RelativeDOB = value
        End Set
    End Property
    Private m_RelativeDOB As Nullable(Of Date)

And the controller:

            Dim RelativeDOB As Date
            If Not (String.IsNullOrEmpty(model.RelativeDOB)) Then
                RelativeDOB = model.RelativeDOB

            Else
                RelativeDOB = Nothing

            End If

The error is being thrown at 

If Not (String.IsNullOrEmpty(model.RelativeDOB)) Then

Ultimately, I want to be able to pass a null date value through the WebApi and into a stored procedure.  I guess I could fabricate some way to pass strings and then convert, but I would think there is a better solutions.  Any help would be appreciated.




Passing data from view to controller with html checkbox

2017-10-17T12:15:02.42-07:00

Hi I am using MVC.

I want to do Passing data from view to controller with html checkbox.

I try to when I click checkbox true get filter data. Other checkbox true get filter data.

HTML 

Class
  • Economy
  • Business

Controller

public ActionResult Talepler(int chkclass)
        {
           
            var talep = (from v in shy.T_Talepler where v.KlasID == 1 select v).ToList();
 
            return View(talep);
        }




Index increment in gridview

2017-10-17T21:24:13.25-07:00

Hello everyone, I have a question about Container.DataItemIndex. So here is my griview:

 
        
            
                
                    <%# Container.DataItemIndex + 1 %>
                
            
  
                
                    

Here is my databound event

 Protected Sub gvMain_DataBound(sender As Object, e As EventArgs) Handles gvMain.DataBound
        For Each r As GridViewRow In gvMain.Rows
            Dim lblHidden As Label = DirectCast(r.FindControl("lblHidden"), Label)
            If lblHidden.Text = 1 Then
                r.CssClass = "hidden"
            End If
        Next
    End Sub

So now the problem I am having is the first column for counting the number of rows. For example, if I have 10 rows, the first three are hidden. The row starts at 4, 5, 6, 7, 8. 9, 10. Or if 5th and 8th rows are hidden, the number will be 1, 2, 3, 4, 6, 7, 9, 10. Is there a way to make it display correctly? In the first case 1, 2, 3, 4, 5, 6, 7 cause first three rows hidden. The second one is 1, 2, 3, 4, 5, 6, 7, 8.

Thanks. 




ASP.NET VNC Viewer

2017-10-17T16:41:03.28-07:00

Hi,

I would like to ask about possibilities I have in ASP.NET to create a web app, that could show (and of course - control) remote computer's desktop using VNC.

I have read a little bit and I believe that Websockets (?) is something I'm looking for? I'm even looking at SignalR, which should be even easier.

Am I going the right direction here?

Thanks.




css help

2017-10-16T16:57:01.91-07:00

Hello experts

I have the following css sample code below

https://jsfiddle.net/6814o81j/

i would like to rotate text so that this is a test starts from the bottom up. in otherwords, instead of having this appear on top of test. I want test to appear on top of this. Also, i am working on creating a background color of grey for it, if i can get help on that as well.

All is appreciated. thank you




Certifications for .Net Developer

2017-10-16T23:57:09.363-07:00

Hello,

I have been a .Net Developer (ASP.Net and C#) for 6+ years with MCTS certification. I want to update my skill set with other Microsoft Certifications. I did some research but was not able to decide where to start. Can someone guide me in the right direction?

I want to know the available (and valid) certifications in my field in ascending order after MCTS? What/How long are they valid for, if there is an expiration? Books/Material I need to prepare for these exams etc.

Thank you. Your help is greatly appreciated.




How and Where can I place a Web User Contol in a content page

2017-10-17T18:01:42.557-07:00

I have the following ResolutionDetector.ascx  Web User Control:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ResolutionDetector.ascx.vb" Inherits="Logon_ResolutionDetector" %>

" id="_height" />
 
" id="_width" />
 
<%if (_IsFirstTime){%>


 
<%}%>

ResolutionDetector.ascx.vb

Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls

Namespace TestScreenHeightAndWidth.Includes

    Partial Public Class Logon_ResolutionDetector
        Inherits System.Web.UI.UserControl

        Private m__isFirstTime As Boolean = False
        Public Property _IsFirstTime() As Boolean
            Get
                Return Me.m__isFirstTime
            End Get
            Set
                Me.m__isFirstTime = Value
            End Set
        End Property

        Protected Overrides Sub OnInit(e As EventArgs)

            If String.IsNullOrEmpty(Request.QueryString("_height")) OrElse String.IsNullOrEmpty(Request.QueryString("_width")) Then

                Me._IsFirstTime = True

                Session("ScreenHeight") = InlineAssignHelper(Session("ScreenWidth"), String.Empty)
            Else

                Session("ScreenHeight") = Request.QueryString("_height").ToString()
                Session("ScreenWidth") = Request.QueryString("_width").ToString()
            End If

            Me.DataBind()

        End Sub
        Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T
            target = value
            Return value
        End Function

    End Class

End Namespace

How can I use it from a content page?




Need help with Regular expression DDMMM YY

2017-10-17T19:14:34.493-07:00

Hi All ,

Need help in extracting  Date from following text "TRAVEL ON/AFTER   28JUN 12 "   . i tried couple of regular expressions but no luck . 

Thank you so much in advance for your help




Dynamic Scaffolding?

2017-10-17T19:56:08.58-07:00

I've been reading the walkthoughs and watched various videos on how to get started with Dynamic Data Controls, and am pretty amazed at how quickly you can get a reasonably well featured UI together.  However everything I've seen so far assumes that you will use a designer build a LINQ to SQL (or use a predefined class structure).  Can I programmatically build these models on the fly?  I think I'm asking if I can use code to generate a dbml file for example.  Is this possible?  If so can anyone point me in the direction of some further reading.

Many thanks in advance, and apologies if I've asked a dumb question.




Decimal Precision, scale

2017-10-17T19:47:18.917-07:00

Hello 

I am using .Net Core

I want to add a property to my model 

pubic decimal ContractId {get;set;}

and create relation to Contract Table Primary Key 

so I added 

public virtual Contracts Contract {get;set;}

Because the ContractId field  Precision, Scale in the Contracts Table is (32,0) , I am getting error that the length are not same 

and it is forcing me to create it as 18,2 

I changed the size from the database and same error exist. 

I tried all the following solutions and nothing works 

https://www.andrewcbancroft.com/2017/03/29/entity-framework-tip-specifying-decimal-precision/

https://stackoverflow.com/questions/3504660/decimal-precision-and-scale-in-ef-code-first

and this 

https://github.com/CypressNorth/.NET-EF6-PrecisionAnnotation

any Idea? 




looking for advice on MVC graphics capablities/performance

2017-10-17T19:41:32.887-07:00

I am looking for advice on whether the graphics capabilities of ASP.NET MVC can meet the requirements of an old MFC legacy application that needs to be rewritten.  Most requirements of this legacy application can readily be ported to a web application.  However, the application has one particular real-time graphic requirement and my question is about whether this requirement can be met/implemented with ASP.NET MVC.  

The application displays wave data in real-time as a 'scroll chart'.   There can be up to 128 different signals (e.g. a sine wave), each which is digitized with sampling rates ranging from 100Hz to 2000Hz.   The application records 1 second of data from all signals and then displays 1 second of data.  The duration of time over which the signals are recorded and wave data is displayed ranges from a 5 to 60 minutes.

My question is as follows.   Assume the web application and server run on the same 'local' computer and all data are saved/persisted on this 'local' computer (i.e. this is NOT a distributed application).   Does ASP.NET MVC have the graphics capability of displaying the wave data in real time?   I have little experience with web applications and this is why I have posted this question.




query may have two versions of sql server 2014 and 2016 installed

2017-10-17T17:24:58.363-07:00

good ones

days forum friends I need to do a previous work on the team I had installed sql server express 2014 now I need to install 2016 sql express my query if I can have both installed? or can I just have sql installed 2016 will not have problem with taking my sql server 2014 database?




Asp.net core application windows integrated authentication 20 users start kicking out other users

2017-10-06T16:42:35.257-07:00

I developed asp.net core intranet application which uses windows authentication and We have this weird problem start seeing.

When my client deploy the app to the production environment and test with a few users it works nicely but once they start using with more users( around 50 )

it seems to kick out user who was logged in and people are prompted for credential. My client network looks very complicated(they said it was set up to be secure ) and

has to go through special router(they could not explain what's for ).  While I can create fake 50 users in Domain controller to simulate the different users with JMeter. are there any monitor tools I can use to find out what is the problem on the client site? 

Thanks in advance