Похожие чаты

Yes I assigned to do simple crud in mvc. created form

with multiple fields and controls
I hv one radio button for saving status of user.Active and Inactive.

Now I created in Create.cshtml and when users fills its get saved and displayed in Index too.

Now if user wants to edit record, in the edit page I hv to display radio button with value clicked inbuilt.

How do I do this? can u help

9 ответов

3 просмотра

Save the value from db and load it when rendering the view

i-aspirant Автор вопроса
i aspirant
yes how do I do could u elaborate a little

Search “asp net core entity framework tutorial”

i-aspirant Автор вопроса
Liza 丽莎
Search “asp net core entity framework tutorial”

nope it's not abt ef....I just wants pass the radiobutton value in to edit page with selected value....I performed everything

i-aspirant Автор вопроса
Liza 丽莎
You saved it to db?

yep saved in db and retrieved in Index page too.i just hv one radiobutton field tat when user set value in Create.cshtml and its displaying in Index and database also.perfectly running. Now I just need to fetch the selected value of radiobutton from Index to Edit.cshtml coz if user wants to edit a record, I need to show the radiobutton with selected value in edit page.

i aspirant
yep saved in db and retrieved in Index page too.i ...

You can fetch it from the db the same way as you did for the first page right?

i-aspirant Автор вопроса
Liza 丽莎
You can fetch it from the db the same way as you d...

but in Index I fetch collection of fields as record. Here I just need to fetch the ra0diobutton valuel with whatever value it is selected.

Похожие вопросы

Обсуждают сегодня

Вопрос по организации кода. Пилю свой велосипед логгер Есть у меня множество уровней сообщений. Я набрасываю сообщения в стринглист, а когда они нужны, вызываю их через функц...
Serjone
21
Has anyone experienced Sign in with Apple (with Firebase Authentication) does not provide name or email of the user even when requested with "email" and "fullName" scopes? He...
Sree (𝓣𝓪𝔂𝓵𝓸𝓻'𝓼 𝓥𝓮𝓻𝓼𝓲𝓸𝓷) 🦉 🦉
12
VIP-320 [Arbitrum] Configuration of markets Summary If passed, this VIP will perform the following actions: - Configure the Venus markets on Arbitrum one, for WBTC, WETH, U...
Venus Announcements
2
А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
Мне интересно, скорее людей здесь используют D, Rust, C/C++ для решения реальных прикладных задач за деньги?)
Evil Satanson
16
NEW: 🇦🇺 Australia's first spot Bitcoin ETF, $IBTC, goes live tomorrow! Are you prepared? 🚀
Vedika Crypto Trader
25
It's currently only active on the Ethereum blockchain, right? Something like that
Noah Noure
19
I was checking from the beginning all the info from your posts on X or Medium, some of them deleted, alliance block documents, nxra nuklai… Ok, these are the facts from Allia...
David
4
Sol deposit and withdraw ho Raha hy kya?
Sol sharma 💰
22
Hey guys, My feeling is that with the launch of fraxtal we finally have a product with broad mass market appeal. Many different ways for people to earn yield, eg by staking ...
DeFiDegen.ETH (¤, ¤)
7
Карта сайта