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 Sahayamu

Featured Replies

bhayya konchem help kaavali 

yevaru aina .net vallu available vunnara ? or andaru holidays aa ??

enti aa help .. ikkada vesthe janalu cheptharu

  • Author
oka table nunchi query chesthe ee values vastunnayi.
<IDList>
<Id>1211740172</Id>
<createDate>2014-12-18T13:38:48</createDate>
<dayOfWeek>2</dayOfWeek>
<endTime>2014 -12-12 10:00 am</endTime>
<startTime>2014 -12-12 08:00 am</startTime>
</IDList>
<IDList>
<Id>1211740182</Id>
<createDate>2014-12-18T13:38:48</createDate>
<dayOfWeek>2</dayOfWeek>
<endTime>2014 -12-12 03:00 pm</endTime>
<startTime>2014 -12-12 05:00 pm</startTime>
</IDList>
  • Author
Now the requirement is to add a new element to the existing ones.(highlighted)
example dayOfWeek okkasare vundi ante then sequence value should be 1, if dayOfWeek more than once vunte the sequence value should increment based on the start time anta
 
<IDList>
<Id>1211740172</Id>
<createDate>2014-12-18T13:38:48</createDate>
<dayOfWeek>2</dayOfWeek>
<endTime>2014 -12-12 10:00 am</endTime>
<startTime>2014 -12-12 08:00 am</startTime>
<sequence>1</sequence>
</IDList>
<IDList>
<Id>1211740182</Id>
<createDate>2014-12-18T13:38:48</createDate>
<dayOfWeek>2</dayOfWeek>
<endTime>2014 -12-12 03:00 pm</endTime>
<startTime>2014 -12-12 05:00 pm</startTime>
<sequence>2</sequence>
</IDList>
 

 

oka table nunchi query chesthe ee values vastunnayi.
<IDList>
<Id>1211740172</Id>
<createDate>2014-12-18T13:38:48</createDate>
<dayOfWeek>2</dayOfWeek>
<endTime>2014 -12-12 10:00 am</endTime>
<startTime>2014 -12-12 08:00 am</startTime>
</IDList>
<IDList>
<Id>1211740182</Id>
<createDate>2014-12-18T13:38:48</createDate>
<dayOfWeek>2</dayOfWeek>
<endTime>2014 -12-12 03:00 pm</endTime>
<startTime>2014 -12-12 05:00 pm</startTime>
</IDList>

 

 

you are getting List<IDList> in xml format.. so ??

  • Author

so adi yela cheyyali ani ardam kaavadam ledu 

ltt

LTT......but XML vesi .NET adugutunnav endi bhayya  sCo_^Y  sCo_^Y

  • Author

you are getting List<IDList> in xml format.. so ??

 

 

ltt

already vachina list ki oka element add cheyyali and the value of that should increment if paina example lo dayOfWeek ane element is more than once

  • Author

LTT......but XML vesi .NET adugutunnav endi bhayya  sCo_^Y  sCo_^Y

database nunchi oka list object loki vastundi bhayya 

so aa list ikkada vesa

aa list ni C# lo update cheyyali 

adi yela ani  sCo_^Y  

if its a list enumertae thru that and use add method to add...for that dayofweek condition u can apply any logic inside the loop before adding

so adi yela cheyyali ani ardam kaavadam ledu 

 

XElement   and XDocument classes unnayi  .. dantlo you can add node.. vaadi gurinchi chaduvu.. will be easy..  

 

int sequenceCounter = 0 define chesi  foreach ( descendent node    )    add that node if dayoftheweek exists and increment counter

already vachina list ki oka element add cheyyali and the value of that should increment if paina example lo dayOfWeek ane element is more than once

 

lots of ways

 

 

as of now,

these 2 ways striked

 

1)better to get whole XML as string .... and ....do  XML DeSerialization first  and then Do XML Serialization adding your requirement

(or)

2) Manually Read XML either by XMLDocument class or some other and then add the node as per the requirement 

  • Author

XElement   and XDocument classes unnayi  .. dantlo you can add node.. vaadi gurinchi chaduvu.. will be easy..  

 

int sequenceCounter = 0 define chesi  foreach ( descendent node    )    add that node if dayoftheweek exists and increment counter

bhayya my bad 

nenu example ga ichhindi is from a list 

so list ni edit cheyyali

  • Author

if its a list enumertae thru that and use add method to add...for that dayofweek condition u can apply any logic inside the loop before adding

inka konchem elaborate chestava bhayya 

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.