Questions tagged as 'asp.net'

0
answers

ScriptManager.RegisterStartupScript run on time? or just after the end sub

When you run this line: ScriptManager.RegisterStartupScript(Page, Me.GetType, "OK", "openModal()", True); Does the script run the moment the debug pointer passes through it, or just after the subprocess is finished? If this is the case o...
asked by 08.02.2017 / 18:58
2
answers

Problems with MVC routes ASP.Net

I have a problem with routes in MVC. routes.MapRoute( name: "Default", url: "{controller}/{id}", defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } ); This route, for my pages, works (because I...
asked by 23.02.2017 / 20:20
0
answers

Data transfer methods asp.net/javascript

I have the following scenario: I am implementing payment for transparent paging checkout. Some functions with a return can only be executed via javascript (Returns like credit card token, PagSeguro session id, etc.). The cart already ex...
asked by 08.02.2017 / 20:25
1
answer

Javascript and asp.net [vb] webforms session

I have a javascript method that returns a string, In case: var hash = PagSeguroDirectPayment.getSenderHash(); How to put this hash variable in a session and read this session in asp. Dim hash as string = Session("sessionDoHashExemplo").t...
asked by 25.01.2017 / 22:35
0
answers

Using IF with Eval asp.net

<%# Eval("filiacao").ToString() == "nada consta" ? "nada consta" : "+infos" %> I want "+ infos" to be a link. Any ideas?     
asked by 01.02.2017 / 20:20
1
answer

Web App Questionnaires in ASP.NET Web Forms

I searched and could not find the correct term to correct my mistake. I created an AppWeb where the user chooses a subject in a DropDownList and it loads a questionnaire from the database. What happens is that if there is simultaneous a...
asked by 04.02.2017 / 15:48
0
answers

SQL query for ASP.NET page with C #

On my client's site, I have a SQL query that brings the readiness result of multiple collaborators. However, for the moment I can only translate the result of the query into a GridView: SQL CONSULTATION SELECT codigoAvaliacao, codigoColab...
asked by 18.01.2017 / 18:08
0
answers

ItextSharp - That assembly does not allow partially trusted callers

I've been trying to solve this problem for days, to no avail. I saw that many people have solved this problem by compiling the itextSharp dll by adding the [assembly: System.Security.AllowPartiallyTrustedCallers] line in the assemblyinfo.cs file...
asked by 12.12.2016 / 14:55
0
answers

Web alert in script c #

I'm developing a web system in asp.net and I came across a problem. In return for your Catchs, I return an error via an alert to the user like this: try{ ... } catch(Exception ex){ Response.Write("<script>alert('Erro ao adicionar...
asked by 16.01.2017 / 20:17
1
answer

Put a slash at the end of Url?

I'm doing a mapping in web.config for when the person accesses the project root, already loading ~ / Default.aspx <urlMappings enabled="true"> <add url="~/" mappedUrl="~/Default.aspx" /> </urlMappings> Mapped URL> lin...
asked by 06.12.2016 / 19:55