|
Hello,
Please am in need to how to implement a simple webservice to transfer the database from a client computer to a central computer.
Nana
|
|
|
|
|
You can use Web service by cread Webservice (If you dont have any webservise in your locahost)
Then in your project you must add WebReferen, choise Brown to your Webservice to this project; You can cornect to difirent server and use server's Webservise for using;
<br />
(WebService web = new WebService();<br />
Label1.Text=web.HelloWorld()
Please test again and reply if can't
|
|
|
|
|
Really easy
Make a Web service with a method that accepts a dataset and any other parameter that you need like client id...
The dataset should contain the whole datatabase or any info you need (i hope you are not trying to send to many records)
Once you have the dataset in the server side, you can just save those changes in the database in the server as you would with any other dataset
Im asumming you know how to make a webservice and i hope you do
Alexei Rodriguez
|
|
|
|
|
In my application I have a admin control panel where I can see the list of all the companies registerd with our system. We need to provide the option to login to any company from admin panel of the application. But at the same time I need to maintain a new session for each company i login to. For example If I login to company1 and i set the value of a session variable =1 and then i login to company2 and i set the value of a session variable = 2 then both of these values should be available in their respective sessions.
Please help me out!
Thanks in advance.
|
|
|
|
|
If i can understand your idear i dier; Please Post again your idear and tell me more about that. Examplete databese you using, application, what do you want, what about secsion... more and more details...???????/
|
|
|
|
|
Sessions are kept automatically for each client connected, you only need to set a variable like session("VarName")=1
If someone else connects a new session willl be started
Alexei Rodriguez
|
|
|
|
|
Hi,
I need to set the value of my hidden control. Up to this point I had just played around, have not created the full value of the hidden control. I just want to add the current local date, but that I will do. I just need to know how to set the value parameter from a value returned from a function.
My hidden control:
<input
id="hdnLocalDate"
type="hidden"
value="javascript:GetDateTime();"
runat="server" />
My javascript function:
<script type="text/javascript">
function GetDateTime()
{
var date = new Date();
// Year
var year = date.getFullYear();
// Month
var month = date.getMonth();
}
</script>
Please can someone help me?
Regards
ma se
|
|
|
|
|
Try the following
window.opener.document.forms("formname").elements("id (Example:hdnLocalDate) or name ").Value
Regards,
Vimal
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
I want to set the value of the hidden control. When I do the following:
Response.Write("hdnLocalDate = " + hdnLocalDate.Value);
I get the value to be something like GetDateTime().
regards
|
|
|
|
|
simply add a return statement to your function, that should work no?
<script type="text/javascript">
function GetDateTime()
{
var date = new Date();
return date.toString("DD/MM/YYYY");
}
</script>
|
|
|
|
|
When I do a Response.Write on the hidden controls value like:
Response.Write("hdnLocalDate = " + hdnLocalDate.Value);
..then it displays:
hdnLocalDate = javascript:GetDateTime();
What now?? If I do a view code, must it display the value property's value as the date returned?
|
|
|
|
|
Hmm, good point, of course the value field will never run the javascript, just take it as a string literal....how silly of me
You'd have to run some function when the page loads to populate the hidden field.
<br />
window.onload = function() {<br />
hdnLocalDate.value = new Date().toString("DD/MM/YYYY");<br />
}<br />
Of course with runat="server" on the hidden form field its ID could easily change if its inside an INamingContainer.
|
|
|
|
|
Does onload exist?? I typed in window. and then there was no onload option. I am using VS 2005.
It's still not working:
<script type="text/javascript">
<!-- // Hide from old browsers
window.onload = function()
{
hdnLocalDate.value = new Date().toString("DD/MM/YYYY");
}
//-->
</script>
<input
id="hdnLocalDate"
type="hidden"
runat="server" />
|
|
|
|
|
ma se wrote: Does onload exist?? I typed in window. and then there was no onload option. I am using VS 2005.
Javascript intellisense in practically non-existent in visual studio, personally I use Aptana for all my JS/CSS development.
My fault again that it doesn't work, using ID.attribute won't work you need a reference to the DOM element via getElementById. Try this:
<script type="text/javascript"><br />
<br />
<!--
window.onload = function()<br />
{<br />
document.getElementById('<%= hdnLocalDate.ClientID %>').value = new Date().toString("DD/MM/YYYY");<br />
}<br />
<br />
</script>
|
|
|
|
|
/// this is the code final, i have just test;
<title>Untitled Page
}
<asp:label id="Label1" runat="server" text="Label">
|
|
|
|
|
|
Unfortunately most of us are lacking in psychic ability today, so maybe if we could see the code it would be better...
|
|
|
|
|
The Code for the Above:
<title>Untitled Document
function frmSubmit() {
if( (document.get_quote.query.value).replace(/^\s+/g,'').replace(/\s+$/g,'')!="" && (document.get_quote.query.value).replace('Company name / code, MF name','')!="")
document.get_quote.submit();
}
|
|
|
|
|
That my friend is what we call Tag Soup. Try seperating out style from content, using more semantic markup (ditch the tables) with better use of CSS. Then I might be able to tell head from tail whats going on there. Oh and while your at it, why not use some progressive enhancement techniques to add the onclick handlers.
|
|
|
|
|
hi
how to use popup celander in asp.
Haresh Bogani
|
|
|
|
|
What popup calendar would you be referring to?
|
|
|
|
|
Hi,
Try the following Link : http://www.softcomplex.com/products/tigra_calendar/
Regards,
Vimal
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
|
How to handle bookmarks while using Ajax?
|
|
|
|
|
What do the two have to do with each other ? IF you mean, how to bookmark the state of a page after it's been changed by AJAX, you can't, unless it's possible to store a URL using javascript, and you use query string parameters to store/restore that state.
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 )
|
|
|
|