|
There are two options of doing that.
1. You can access it via our normal ADO.Net by creating the connection to that server and doing what you want on that server.
2. If your database server is MS SQL Server then you can create what is called a linked server... in this case you have to connect to you own server and fire select and insert queries on the remote server.
Hope this helps..
Maharishi
Nothing is Impossible. Even impossible spells "i m possible"
|
|
|
|
|
Hi, i have a requirement of online exam. Just all the question and answers are in Database and retriving them and showing on the webpage.
Suppose if the question contains a code snippent, how to store it in database and how to show the same format in webpage?
Ex: How to store the below code in database as it is?
public static void main()
{
MessageBox.show("code snippent");
}
|
|
|
|
|
you have to append new line (\n) character in your string
|
|
|
|
|
yes, it is correct to store data using "/n".
But, suppose user posting a codesnippent in discussion forum like(Ex: posting message with code snippent in codeproject). User types message in textarea and submit the post. When i am reading the whole data will get in one string. How can i separate it for new line?
Ex: string strmsg = txtArea.text.Tostring();
now the strmsg contains whole text. How can split the strmsg for newline. How i know where the new line occurs
|
|
|
|
|
hi,
My aim is to print the form n have code for that .....
...my problems
1. How to make the form of A4 size
2. Is there any proc to print the form ...zooming a form can solve this ........prob ?
if any is having any clue abt this then plz let me know..
regards
sindhu tiwari
always innovative
|
|
|
|
|
|
sir ... i would like to tell the whole scenario behind this problem
i have developed a software in which the user will drag and drop labels and picture boxes then bind to a database.. now whenever the print button is clicked the form gets printed(""" i can save the form as a picture n can print it directly""") my problem is that i cant create a form of A4 size so how to make the form size to a4 so that the printing can be done ...i strongly feel that u will help me ...n i hope that the above given info gives u a glimpse of what i wanna do
regards
sindhu tiwari
its me sid
|
|
|
|
|
|
Hi,
I presume that, you will get more response if you communicate your query precisely along with complete sentence.
If the post/article served your purpose then, please assist me in keeping it up by donating a small amount of money to my Paypal account. Email: sreejithssnair@hotmail.com
|
|
|
|
|
Hi,
I had problem with windows service and crystal report ,
I need to invoke a crystal report with windows service ,
pls give example with these two.
Thanks n Advance
|
|
|
|
|
Hi,
Might help this link to you.
http://www.arunmicrosystems.netfirms.com/CrystalReports.html
Thank you.
"Good Thing Goes With Good People..."
|
|
|
|
|
hi guys
i have a class named abc_voucher and another class
derived from abc_voucher named def_voucher,
but in my application i have a function and its return type is
generic list of abc_voucher and i am returning from this function the generic list
of class def_voucher which is derived from abc_voucher , but it gives an comlite time error ,,
though my return object is derived from the type which i am returning in function's signature ,
why is that ?
thanks in advance
hello
|
|
|
|
|
ghumman63 wrote: comlite time error
What is this??
ghumman63 wrote: but in my application i have a function and its return type is generic list of abc_voucher and i am returning from this function the generic list of class def_voucher which is derived from abc_voucher , but it gives an comlite time error
Are you extracting the def_voucher list from the list that you retrieved that has the abc_voucher list? Is that what you're doing?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
no i am not extracting
def_voucher is derived from abc_voucher , but it gives compile time error
public function abc as list(of abc_voucher)
dim list as new list(of def)voucher)
'
function body
'
return list
end function
hello
|
|
|
|
|
Hi,
Sorry to tell you that, i am not getting what you are trying to achive appart from some class relation.
namespace CS<br />
{<br />
class Program<br />
{<br />
static void Main(string[] args)<br />
{<br />
B Obj = new B();<br />
List<A> _list =Obj.GetList();<br />
}<br />
}<br />
class A<br />
{<br />
protected int Age=0;<br />
public A() { }<br />
public A(int age)<br />
{<br />
this.Age = age;<br />
}<br />
}<br />
class B : A<br />
{<br />
<br />
public List<A> GetList()<br />
{<br />
List<A> GList = new List<A>();<br />
GList.Add(new A(21));<br />
GList.Add(new A(22));<br />
GList.Add(new A(23));<br />
return GList;<br />
<br />
}<br />
}<br />
}
Presumably, the above lines of code will give an idea on the route map.
If the post/article served your purpose then, please assist me in keeping it up by donating a small amount of money to my Paypal account. Email: sreejithssnair@hotmail.com
|
|
|
|
|
leave it assume i want to to the following
def_voucher is derived from abc_voucher
but it says that cant convert type of abc_voucher t0 def_coucher ,,
why ?
though def_voucher is derived from abc_voucher ..
public function abc as abc_voucher
dim vc as new def_voucher ();
return vc;
end function
-- modified at 4:06 Thursday 29th November, 2007
hello
|
|
|
|
|
ghumman63 wrote: but it says that cant convert type of abc_voucher t0 def_coucher
That's because you can't upcast, only downcast.
So while you can add a def_voucher object to a collection of abc_voucher s, you can only interpret the contents of the list as abc_voucher objects.
/ravi
|
|
|
|
|
That's because inheritance is a form of specialization of abstractions. Student is a special form of Person etc. You cannot specialize something general, but you can generalize something specialized.
This is analogous to saying "Every Student is a Person" [Generalization] But you cannot say that "Every Person is a Student"
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
i am sorry i cant get,
when i do the following
function abc as ilist
dim xyz as new list(of def_coucher)
return xyx
end function
here it works fine , why ?
the same i am doing in my previous case ..
thanks in advance
hello
|
|
|
|
|
Hi,
I have to read too many data from a web site using SOAP. For that I create a button and read the data.
I have to read the data in background (Automatically) which option is better...?
I use timer say after every 15 min that makes my app slower.
I also use background worker but it will give cross threading error because I have to update the content of the win form.
And one big issue is their are too many problems to connect with the web site like server unreachable, Connection failed, Invalid query, too big response from SOAP etc.... So I also have to handle that, So how can I resolve this..? please help me...
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Pankaj - Joshi wrote: I also use background worker but it will give cross threading error because I have to update the content of the win form.
Not if you implement it correctly. See this[^] article.
/ravi
|
|
|
|
|
Thanks for your reply any more suggestions...?
And I'm surprised the link is not opening properly in Mozilla...
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Pankaj - Joshi wrote: I'm surprised the link is not opening properly in Mozilla...
Here's the vanilla[^] version of the link.
/ravi
|
|
|
|
|
Any other idea to get big data over the web in batches...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Hi,
I am writing a Pocket-PC application in C#. This application requires data synchronisation, so I thought... nothing easier than that.. and developed a webservice.
But then, I thought it would be very nice to give the user a visual feedback what the pocket-pc application is actually doing... and I thought about a progressbar to display the progress of the synchronisation process.
so far so good....
I wrote a SoapExtension for my webservice and tested it in a win-form application.. works great BUT
i have to provide a little snippet to my app.config file like:
< system.web >
< webServices >
< soapExtensionTypes>
< add type="TimeSheetApplication_FORM_test.ProgressExtension, TimeSheetApplication_FORM_test" priority="1" group="0" / >
< /soapExtensionTypes >
< /webServices >
< /system.web >
but a pocket-pc application doesnt have an app.config. okay, fair enough I thought..
I wanna get this soapextension-sh*t into its own project anyway. So I created a new class project and moved the soap-extension over.
but then I got the following errormessage when compiling:
The type 'System.Web.Services.Protocols.SoapHttpClientProtocol' is defined
in an assembly that is not referenced. You must add a reference to assembly
'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.......
....
The system.web.services assembly is already referenced in both project.....
has anybody consumed a webservice on a pocket-pc application via soapextension yet? and if yes, how did you tell the pocket-pc application to use the soapextension without providing this information in the app.config?
any help or suggestions are very appreciated!!!!
cheers
piratenwichtl
|
|
|
|