473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

problem in displaying datatablein mobileform

Hi all,

I am working with mobileforms. The problem is after having the datatable in hand how can i display on mobile form. I tried with data gridview but it is not available in mobile parts. I tried with objectlist but it did not do my job..

Expand|Select|Wrap|Line Numbers
  1. protected void btnOk_Click(object sender, EventArgs e)
  2.     {
  3.         ActiveForm = Form2;
  4.     }
  5. protected void Form2_Activate(object sender, EventArgs e)
  6.     {
  7.         getmarks();
  8.     }
  9. protected void getmarks()
  10.     {
  11.         string query;
  12.         query = "select tblStudentDetails1.AdmissionNumber,RegisterNumber,StudentName,tblMarks.Marks from tblStudentDetails1,tblMarks where tblMarks.CourseId='" + ddlCourse.Selection + "' and ";
  13.         query += " tblMarks.Semester='" + ddlSemester.Selection + "' and tblMarks.SectionName='" + ddlSection.Selection + "' and tblMarks.SubjectId='" + ddlSubject.Selection + "' and tblMarks.ExamType='" + ddlExamType.Selection + "' and tblMarks.AdmissionNumber=tblStudentDetails1.AdmissionNumber";
  14.         SqlConnection objCon = new SqlConnection(con);
  15.         SqlDataAdapter objDa = new SqlDataAdapter(query, objCon);
  16.         DataTable objDt = new DataTable();
  17.         objDa.Fill(objDt);
  18.         objList.DataSource = objDt.DefaultView;
  19.         objList.DataBind();
  20.         objList.Visible = true;
  21.     }
My task is to simply display datatable on the mobile form, nothing else to do anything with it( no any operations on it). Can any body suggest a good way..


Thanking you all,
Apr 17 '09 #1
0 913

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: euang | last post by:
Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003, and I am having major problems displaying...
8
by: Ramesh | last post by:
hi, My C# application displaying correctly in IE, But in netscape all input controls (text box, dblist, drop down list and etc.,) disappered. Only lables are displaying. The value inside the drop...
2
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
2
by: Fedor G via DotNetMonster.com | last post by:
Pls help me manage the data displaying on the webform aspx c# page. I used Dreamweaver to manage data displaying in the repeat table, ie simply dragged the fields to the table cells, where I need...
4
by: MrL8Knight | last post by:
Hello, I am trying to build a simple php form based shopping cart using a cookie with arrays. I need to use 1 cookie because each order will have over 20 items. With that said, I realize I need to...
1
by: johnVarma | last post by:
Hi All, Iam facing a problem with bar chart using coldFusion. if there is only one <cfchartseries> tag then the seriesLabel attribute is not displaying instead of that the items of the...
0
by: paragguptaiiita | last post by:
I have one problem regarding displaying text from XML file. I have a XSL variable named $p = (0 0 0) (0.82 0 0) (1.63 -0.01 0) (2.63 -0.01 0) (3.63 -0.01 0) (4.63 -0.01 0) (5.63 -0.02 0) (6.63 -0.02...
1
by: Maanav Jackson | last post by:
Hi I am displaying a third party webpage into a variable using curl library. When i am displaying the variable in the browser using echo command as shown below. echo $pagecopy; Browser is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.