Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

c#

A transport-level error has occurred

August 27, 2022 by Magenaut

Possible Duplicate:
A transport-level error has occurred when receiving results from the server

Categories ASP.NET, Q&A Tags asp.net, c#, sql-server Leave a comment

Most efficient way to update with LINQ to SQL

August 27, 2022 by Magenaut

Can I update my employee record as given in the function below or do I have to make a query of the employee collection first and then update the data?

Categories ASP.NET, Q&A Tags asp.net, c#, datacontext, linq, linq-to-sql Leave a comment

How can I redirect to a page when the user session expires?

August 27, 2022 by Magenaut

I am currently working on an web application that uses ASP.NET 2.0 framework. I need to redirect to a certain page, say SessionExpired.aspx, when the user session expires. There are lot of pages in the project, so adding code to every page of the site is not really a good solution. I have MasterPages though, which I think might help.

Categories ASP.NET, Q&A Tags asp.net, c# Leave a comment

What is a complex type in entity framework and when to use it?

August 27, 2022 by Magenaut

I have tried to read the msdn article on complex types. But it does not explain when to use it. Also there is not a comprehensive explanation on the web on complex types and when to use them.

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework Leave a comment

How to render decoded HTML in a (i.e. a ) in GridView cell

August 27, 2022 by Magenaut

I’m binding a GridView to an LINQ query. Some of the fields in the objects created by the LINQ statement are strings, and need to contain new lines.

Categories ASP.NET, Q&A Tags asp.net, c#, gridview, newline Leave a comment

Getting value from a cell from a gridview on RowDataBound event

August 27, 2022 by Magenaut

string percentage = e.Row.Cells[7].Text; I am trying to do some dynamic stuff with my GridView, so I have wired up some code to the RowDataBound event. I am trying to get the value from a particular cell, which is a TemplateField. But the code above always seems to be returning an empty string. Any ideas? … Read more

Categories ASP.NET, Q&A Tags asp.net, c#, gridview Leave a comment

Best way to check if a drop down list contains a value?

August 27, 2022 by Magenaut

When the user navigates to a new page, this ddl’s selected index is determined by a cookie, but if the ddl doesn’t contain that cookie’s value, then I’d like it to be set the 0. What method would I use for the ddl? Is a loop the best way, or is there a simply if statement I can perform?

Categories ASP.NET, Q&A Tags asp.net, c#, drop-down-menu Leave a comment

How to call controller from the button click in asp.net MVC 4

August 27, 2022 by Magenaut

Please i am working on MVC website, i have a Search page and another search form on index page. I want to call the the same search page controller when i click the search button from index page. Below is how my button is on the index page.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, c# Leave a comment

Convert Windows timezone to moment.js timezone?

August 27, 2022 by Magenaut

We have an app in ASP.NET that stores all user timezone data in Windows format (by TimeZoneInfo.Id).

Categories ASP.NET, Q&A Tags asp.net, c#, javascript, momentjs, timezone Leave a comment

How do I use the cookie container with RestSharp and ASP.NET sessions?

August 27, 2022 by Magenaut

I’d like to be able to call an authentication action on a controller and if it succeeds, store the authenticated user details in the session.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, restsharp Leave a comment
Older posts
Newer posts
← Previous Page1 … Page298 Page299 Page300 … Page451 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress