|
Make a class to use as data container, which has properties for the different data values you want to return.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
Thanks for the reply, I guess this is the most common way.
I know I might sound stupid but I'm not very good with object oriented, I wanted to know if I would declare a public variable in my class, once I got the data from the database, I assign it to this public variable so that I can access it from another page, is that alright to do it like this?
|
|
|
|
|
One way is instead of returning Array or ArrayList create one class suppose UserProfile that will have all private varaibles with public property
return object of this class like this
<br />
int _age;<br />
string _FirstName;<br />
string _LastName;<br />
string _Address;<br />
char _Gender;<br />
<br />
public int Age<br />
{<br />
set { _age = value; }<br />
get { return _age; }<br />
}<br />
<br />
<br />
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
Thanks, will try it out
|
|
|
|
|
Im using dreamweaver for my site.
So, how do I connect to the MS access database.
I only knw how to do this in vb.net and vb6. :->
kagiso
|
|
|
|
|
matjame wrote: Im using dreamweaver for my site.
So, how do I connect to the MS access database.
Connecting Database From DreamWeaver ???
|
|
|
|
|
Hi,
I am working on web application using C# which send htmlwebrequest at every 5 second to communicator web access server. After some request that communicator web access server is going slow down. So it reply comes slow and my system going to be hang.
Can anybody tell me why that server is going to down?
I userd following code:
requestOutstanding = (HttpWebRequest)WebRequest.Create(m_server + "/cwa/AsyncDataChannel.ashx?AckID=" + ackID + "&Ck=" + userCookieRandomName + "&UA=true");
requestOutstanding.Method = "GET";
requestOutstanding.KeepAlive = false;
requestOutstanding.ConnectionGroupName = m_Uri + "OutstandingGet";
requestOutstanding.UserAgent = userAgent;
requestOutstanding.Accept = "text/json";
requestOutstanding.ContentType = "text/json";
requestOutstanding.CookieContainer = ccContainer;
responseOutstanding = (HttpWebResponse)requestOutstanding.GetResponse();
Please help me.......
Thanks,
Regards,
Hardik Patel
Analyst Programmer
|
|
|
|
|
How to retrive blob data type from oracle10G table and show image in data grid useing asp.net and vb.net
Mukesh
|
|
|
|
|
What will the blob data type holds?? Binary data??
If it holds binary data, just get the binary data and write it as a file and load in using SortedList Collection class.
|
|
|
|
|
I have taken a gridview in which i have edit , cancel,delete images in place of text .
how do we write codes for it.
thanks
|
|
|
|
|
You must have used Templatefield and putted an Image button for delete/ Edit. Note that you have to make CommandName property of these ImageButton as
"Delete" for delete ImageButton, "Edit" for edit ImageButton etc
Nobody is perfect i'm Nobody
|
|
|
|
|
yes i did and finished off with delete functionality. with commandname and commandargument property through which i send the id of the row . But what to do to get the on click of edit empty textboxes come and update and cancel also appears .
|
|
|
|
|
how to access database using xml?
thank you
vijaya
vijaya
|
|
|
|
|
What do you want to do ? I don't think Access supports XML, you'd have to just store it as a string. Is that what you mean ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have data stored in oracle. Is it possible to access oracle data using XML? How to do it?
Currently I am accessing oracle data through DAL + BLL method.
vijaya
vijaya
|
|
|
|
|
Hi,
What do u mean by using XML?
Do u want to convert oracle data to XML or u want to use classes in System.XML Namespace?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
To display data in DataGrid.
I have created DAL for oracle database
Ex: Getdata
Which has query
Ex: select * from countrymst
Then I have created a BAL for that method Getdata
Then I will map BAL to dataGrid
Ex:
Datagrid.datasource = Businesslogic.method();
We I do same thing using XML. So how do same functionality using XML.
What are the procedures / step I should do?
vijaya
|
|
|
|
|
Hi,
"Using XML" term is really confusing.
Can u tell me what "Businesslogic.method()" method returns?
From my experience I can tell u following.
We had created our whole database in xml files and we read those files using DataSet and bind datatables in to datasets to datagrid/gridview.
We also used classes of System.XML namespace to retrieve from and to save data to the xml files.
You please specify your requirement clearly.
1. Do u want to convert your data coming from oracle into XML before binding to the datagrid?
2. Do u want to know how to develope database using xml files?
3. Do u want to know how to use classes of System.XML namespace.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I want to convert data coming from oracle into XML before binding to the datagrid?
Thank you
vijaya
vijaya
|
|
|
|
|
|
I have a detail view like this
feild1 *****
feild2 *****
feild3 ******
feild4 *******
can i make like this
feild1 ********* feild2 **********
feild3 ******** feild4 ********
can i do this and how?
|
|
|
|
|
Hi
You can display like that using DataList control and use properties like
RepeatLayout="Table"
RepeatColumns="2"
Harini
|
|
|
|
|
Thanks for the reply. But details view is binding from the selected row from datagrid. using repeater control can we bind the data from the selected row of datagrid
|
|
|
|
|
Nope. You can't do that .. You need to format details view like table format .. Try to add table tag inside details view using templatefield or ItemTemplate.
Harini
|
|
|
|
|
HI
In pageLoad of asp.net app i am getting the variables as
string m=strPart ; (m="1" getting this)
string k ;
k=Convert.ToString(Session["impath"]); (k="pg/photo")
now i want to take string ppath as "pg/photo/sample(this is folder name)/1.jpg"
my code is
string ppath=" ' + k + ' "/"sample"/" ' + m + ' ".jpg;
but i am getting the erroe as operator " / " can't be applied for operands of type string and string
plz help me
thanks in advance
Haritha
Haritha
|
|
|
|