Skip to content

Magenaut

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

ASP.NET

Dropdownlist validation in Asp.net Using Required field validator

August 27, 2022 by Magenaut

I have Dropdownlist whose value field and text field are bind at runtime.
it has --select-- as first item with a value of 0
and the rest of the values are bind at runtime.

Categories ASP.NET, Q&A Tags asp.net, requiredfieldvalidator 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

Web.config Custom Errors mode Conflict

August 27, 2022 by Magenaut

I have a great and important problem with Web.Config, I need to see the Error of my page and resolve it in asp.net web form and web config, but when Error Occurred, I see another error and I see this Message :

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-3, web-config 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

RedirectToAction usage in asp.net mvc

August 27, 2022 by Magenaut

I want to post some questions about ASP.Net MVC. I am not familiar with web developing, But I was assigned to the web part of a project. We are doing the following: first, we create get & set properties for the person data:

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

iFrame parser error after upgrading to .NET 4.5

August 27, 2022 by Magenaut

We have recently upgraded all of our WebForms projects to .NET 4.5, and encountered a parser issue when loading pages with an iFrame element. We have corrected this by converting of the iFrame from HtmlGenericControl to HtmlIframe. This has corrected all of the parser errors when we run our code locally.

Categories ASP.NET, Q&A Tags asp.net, iis-7.5, windows-server-2008-r2 Leave a comment

Asp.net Core localization with json files

August 27, 2022 by Magenaut

I’m trying to find a good tutorial about asp.net localization. In the official documentation, the explanation are about .resx files and I want to use json files. If someone have a good tutorial on how to write the middleware to do that. Thanks Answers: Thank you for visiting the Q&A section on Magenaut. Please note … Read more

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, c#, json, localization Leave a comment
Older posts
Newer posts
← Previous Page1 … Page624 Page625 Page626 … Page944 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