الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

How To Get A Control Value Of Detailsview In Insert Template ?

بدأه صاحب همة في 5 يوليو 2008 · 2 رد · 1,306 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله..

i am using detailsview for search where i'm initializing the details view in insert mode . my idea is to provide a button in the form , when this button is pressed it's getting the values from controls and pass it string where a qurey is performed against db and the result is displayed in gridview. my question is that how can i get the value of controls when i press the mentioned button. please remember that althogh deteailsview is in insert mode ,i'm not using it to insert records at all. also the controls i would like to get their values are found in insert template.

could you help please ??

thanks in advance...

.

من لمح فجر الأجر هان عليه ظلام التكليف

#2

TO GET CONTROL VALUES FROM DETAILS VIEW

1-INSERT MODE

CTYPE(DETAILSVIEW1.FINDCONTROLS("TEXTBOX1"),TEXTbox).TEXT VB.NET

CTYPE((TEXTBOX)DETAILSVIEW1.FINDCONTROLS("TEXTBOX1")).TEXT ; c#.net

2- temlate mode

CTYPE(DETAILSVIEW1.FINDCONTROLS("label1"),label).TEXT VB.NET

CTYPE((label)DETAILSVIEW1.FINDCONTROLS("label1")).TEXT ; c#.net

this links help me also in this sitution may help u

http://forums.asp.net/t/1224780.aspx

http://forums.asp.net/t/1150732.aspx

this link to display empty details view

http://p2p.wrox.com/topic.asp?TOPIC_ID=52439

#3

السلام عليكم

الطريقة هي كما ذكرت الاخت ولاء .

وللتوضيح FINDCONTROLS تجد الادوات حسب الوضع الحالي فاذا كنت في وضع الادخال تجد ادوات الادخال واذا في العرض او التعديل تجد ادوات العرض اوالتعديل .

ولا اعرف سبب استخدامك لهذه الاداة دون الحاجة الى التعامل مع قواعد البيانات

مواضيع مشابهة