Jump to content
View in the app

A better way to browse. Learn more.

Andhrafriends.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Our forum software has been upgraded to the latest version and we are currently experiencing temporary technical issues. Our server administrator is actively working to resolve them, and the forum should be fully operational within the next few hours. Thank you for your patience and understanding.

.net Code Help Urgent!

Featured Replies

.net MVC pattern lo checkbox create chesaka dani code behind I mean
checkbox value ni view ascx page lo ela pass cheydam with an if condition ? controller lo kuda code add cheyala?

ex : ila check box create chesanu
<input id="Checkbox1" name="copy_abc_xyz" type="checkbox"
value="1" /><b>abc xyz</b>
</p>

dinki controller and view lo checked value ni ela pass cheyali any idea


if condition ( checked value = "true" )
{
some paragraph should be displayed
}
else

{
error
}

koncham urgent please help...

thanks in advance...

galigannarao ani oka ID untundi, PM pettu. he may help you out !

  • Author

Ok thank you..

he is one the way........ :0012391: :0012391:

oka bool variable teesukoni check box check danni true set chesi controllerki passchesi kummey inka

  • Author

PM chesanu.. reply chestharu ani waiting

<asp:TextBox id="work" runat="server" />
<asp:CheckBox id="check1"
Text="check box name" TextAlign="Right"
AutoPostBack="True" OnCheckedChanged="Check"
runat="server" />

<script runat="server">
Sub Check(sender As Object, e As EventArgs)
if check1.Checked then
work.Text="what ever is your para"
else
work.Text="error message"
end if
End Sub
</script>

something like form .getelementbyid("idname") itla untadhi emo sSa_j@il

[quote name='sqlhelp' timestamp='1327982724' post='1301362078']
PM chesanu.. reply chestharu ani waiting
[/quote]

paina already sol kuda cheppesinattu unnadu gaa

  • Author

[quote name='galigannarao' timestamp='1327982710' post='1301362077']
oka bool variable teesukoni check box check danni true set chesi controllerki passchesi kummey inka
[/quote]

bool variable ni ekada view lo set chesthama or controller method lo na ?

ikada inko point added

checkbox oka view page lo undi... condition inko view page lo rayali...

controller is linked with condition view page..

[quote name='sqlhelp' timestamp='1327982964' post='1301362100']

bool variable ni ekada view lo set chesthama or controller method lo na ?
[/quote]
Modello nuvvu public properties create chestavuga so andulo oka bool property create chesuku. elago nee pagelo class yokka object create chestavuga so checkbox check ayte true set chey aa propertyki lekaote false. then pass that object to controller and use it.

[quote name='sqlhelp' timestamp='1327982964' post='1301362100']
bool variable ni ekada view lo set chesthama or controller method lo na ?

ikada inko point added

checkbox oka view page lo undi... condition inko view page lo rayali...

controller is linked with condition view page..
[/quote]
adi cheppu mari. i got ur point. aspx page lo user control use chestunnavu antena. then do one thing create a public property in the user control and set the value in the aspx and use that in the ascx.

  • Author

ok thanks a lot try chesthanu ipudu

  • Author

bool value ni ilage na pass chesedhi ?

<%if ((bool)ViewData["abc xyz"] == true)
{ %>
paragraph
<%}
else
{%>
paragraph



I am getting an error saying check if value is 0

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.