populate dropdown list ,on event change of textbox
I have below table.i want, when i input in textbox Prdno (10001) then relevent data get display in dropdown list(ItemMasterFile) and label(Orderno) Create table #itemMasterFile (Codeitem int,Descriptionitem varchar(50)) Create table #Probale (Prdno…
how to call a controller method from razor view text input field
how to call a controller method from razor view text input field
How to pass a TextboxID in an HTML Link
I have an aspx page and it has a standard TextBox for input. For testing, I place an integer in it (i.e. 5), run the solution and it displays information pulled from SQL table into the page based on the ID entered. How do I call this from a link where…
Highlighte table cells
When the 'add line' button is clicked, I want to check the values of each cell in all rows in my table and if the value is 0 or empty, i want to highlight those cells. I tried something like this, but it doesn't work: var $row =…
are below mentioned packages windows-specific dependencies?
My web application is using below packages, System.Security.Principal.Windows WindowsAzure.Storage Microsoft.WindowsAzure.ConfigurationManager System.windows.forms this particular application also has .resx files It does not have .xaml…
Where to store Access Token after Web API Authentication?
I am having 2 application components: Web API protected with JWT WEB APPLICATION WEB APPLICATION authenticates user with login page (username, password) to the WEB API and gets the Access-token & Refresh-token. Where do I store the…
System.InvalidOperationException: The ConnectionString property has not been initialized. ASP.NET Core 7
I am encountering the following error when I debug my application. System.InvalidOperationException: The ConnectionString property has not been initialized. Otherwise, if I don't debug it just shows no data. I am very new to ASP.net and not sure how to…
ASP.net: Data field used in gridview is not showing as column but turns into title in another field
Hi. I have a SQL datasource that returns 5 columns and a gridview to show them, but one of the columns does not show as a column in the gridview but turns into title (showing when holding the mouse over) in one of the other columns. It keeps doing it no…
Change event on Dropdown list ,populate label
I have table Create table #SalesOrder (orderno int,Order_Date date) Create table #OrderDetail (ID int,orderno int,orderqty int) Insert into #SalesOrder values(11,'2023-03-15') insert into #OrderDetail Values(1,11,25) insert into #OrderDetail…
If there any alternative for parallel foreach issue
We are using the parallel foreach for Asyn process, and it sometimes returns an unexpected value, how can I resolve this functionality issue Or is there any alternative solution for parallel foreach
CSS table - column width adjustment
i wish to make a table 1. column 1 wrap must be true 2. if column 1 has short text, column 2 push to the left 3. if column 2 has long text or multiline, column 2 push to the right within 100% width of the table Thanks a…
how to edit the razor pages url?
I have razpr pages :ProductEidt and its url will be http://localhost/ProductEdit?id=1 can i change the@page directive to use the url like http://localhost/p-e-1 ? ProductEidt to p-e and the parameter is 1
Date parameter is not working Properly
I am using linq ,in which date parameter is not working public ActionResult BBDetail(DateTime? start, DateTime? end) { var list = new List<ProbaleMV>(); List<ItemMasterFile> tblitem =…
Get a list of files in a directory in descending order by creation date.
I have created a folder that a user can copy and paste a monthly newsletter PDF into. Trying to get the monthly newsletter PDF list of files and sort them by the day they were created on the crownfile page, and then select the last recently modified file…
Asp.net require field validator stops click event
Hi, i have designed web part in SharePoint 2019, problem: as i place required field validator on text box, so it stops button click event. (asp.net button click event) as i remove require field validator, button click events works. Kindly suggest, what…
Created a new project in asp.net web application visual studio 2022 and i get a blue screan when trying to open it
so i created a brand new project i tried to run it right away and i'm getting blue screens everytime after compiling the project.
Is it possible to show empty label value if the value of a column used for date or time is null?
I have column for Name, Date and another one for Time. If the values of date and Time columns are null or empty, how do I get to still show the label value in null data value? Is this Possible? please how can I do that?. Here is what I mean in the…
Is there a way to capitalize first letters of each word in a parameter string?
I tried to set letters case to store textbox values in the database table, and store the beginning of each word in capital letter, but so far, I have been able to set only capital letters into the database, with this lines. These are two different…
web config page access and permission not working with Global asax Routing
How do I give permission to a web page or web form for all users in web config file when routing is done in the Global asax file? This is how I grant permission to all users in the web config file for a page named topic.aspx <location…
Programmatically Change Field Name at runtime
Is there a way to change the FieldName of a model at runtime instead of using resource files? I'm trying to develop a multi-language set of forms where the FieldName is loaded from a database rather than a resource file. The reason for this is the…