Questions tagged as 'asp.net'

1
answer

A URL for the entire site

is it possible to make the URL for an entire site the same? For example www.midominio.com , by clicking on a section sends you to iframe and the URL changes to: www.midominio.com/Aplicaciones_Usuarios . But could you...
asked by 06.11.2018 / 00:13
1
answer

Using Where in c # asp.net mvc 5

what can I do to save what that where generates every time I enter and then show it in the view, as well as saving the FirstOrDefault that every time I enter it I keep it in that add if (DedudccionesId != null) { IL...
asked by 17.10.2018 / 18:00
1
answer

Object reference not set as an instance of an object. Runat="Server" ASP

My problem is this: They asked me not to put runat="server" to textArea1 . Then in the part of the code the label does not appear to me. I tried to trap the tag with the master.findcontrol() but it throws me a NullExcep...
asked by 12.09.2018 / 15:25
1
answer

how to identify that the attribute of an object is a class type? C # [closed]

I'm doing a method in c # where I traverse an object taking out its attributes, its properties and see the value of the properties, but some of these attributes are classes that in turn contain more properties, I must access them, to I am doing...
asked by 21.09.2018 / 16:26
1
answer

Error in ASP TextBox: The name 'txtDate' does not exist in the current context

I have an ASP TextBox control with ID="txtDate" that captures a date from a CalendarExtender control. When I try to access the value in codebehind of the txtFecha.Text object, the compiler shows me the message: The name 'txtFecha' does not exist...
asked by 16.08.2018 / 11:06
2
answers

How to make a conditional if depending on which model type my variable contains?

I have the following code below: var response = await ... the response of the await can be of two types, for example of type Model1 or of type Model2 depending on which type model is the answer I need to do certain things, it...
asked by 06.06.2018 / 21:13
1
answer

Obtain a parameter by means of a querystring

When I move from one page to another, I send the user parameter by means of a querystring, being on the new page I see that the url has the value that I am bringing (user) but, I do not know how to get that value being in the new page.     
asked by 30.05.2018 / 19:09
3
answers

Add columns of a mvc table

I have a table created in this way <table class="table table-bordered table-striped"> <tr> <th> @Html.DisplayNameFor(model => model.Sale.Date)...
asked by 18.07.2018 / 23:10
1
answer

How to collect data in a form with ASP .NET Webforms?

I'm doing an ASP .NET Webforms form When designing the form it is best to do it with HTML tags only or it must be done mixing the ASP Webforms object tools In other words, for the form and the buttons I can do it in HTML: <form id="pa...
asked by 20.07.2018 / 11:17
1
answer

Because split of a string does not return the string? returns System.net

I have variables of session[] created in my application which I must occupy in the view to show that information that has stored in memory. The question is, how can I read that session [] 'in the view but only a part of the text they cont...
asked by 15.05.2018 / 22:11