|
Stop spamming.
Apurva Kaushal
|
|
|
|
|
Repeating the same question over and over again won't help you get an answer
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
You have also been asked not to use the subject "question". Every single one of yourposts on CP have used this subject 
|
|
|
|
|
Your website runs on a webserver. So if the website is running and asks for the System.DateTime it asks the time of the server the webserver is running on.
|
|
|
|
|
nithydurai wrote: server date and system is same are not...
Absurd or incorrectly phrased question.
nithydurai wrote: how to find the server date in .net with c#
DateTime.Now.ToString()
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi
I have created a webservice,am trying to call that in client side of my application.
I am unable to connect webservice with my application..
Can anyone help me out in solving this issue.
Thanks in advance..
|
|
|
|
|
If you want to call the web service through javascript then you can take help from this[^] article:
Apurva Kaushal
|
|
|
|
|
i created webservice and i failing in calling that webservice in client side...
please can you help me out in detail
|
|
|
|
|
shru_09 wrote: i created webservice and i failing in calling that webservice in client side...
Are to trying to consume the web service in client side.
Apurva Kaushal
|
|
|
|
|
|
Have you gone through the article whose link I have given you earlier?
Apurva Kaushal
|
|
|
|
|
problem with this code snippet
init(){
service.useService("http://localhost/CursoAspNetWebService/Service1.asmx?WSDL",_
"Service1");
}
|
|
|
|
|
What is the problem you are getting on this? Any error message?
Apurva Kaushal
|
|
|
|
|
while invoking web service in application
function callService()
{
Samples.AspNet.Service.sum();
}
Here Service is my webservice and sum is the function in it..
while running am getting error like "Sample" is undifined..
|
|
|
|
|
shru_09 wrote: i failing in calling that webservice in client side...
What is the error? What difficulty are you running into?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
Hey
I have the following code
for (int x = 0; x < GridView4.Rows.Count; x++)
{
GridViewRow row = GridView4.Rows[x];
bool isCheckedIgnore = ((CheckBox)row.FindControl("chkIgnoreItem")).Checked;
if (isCheckedIgnore == true)
<b>now what it should do is perform an action when isCheckedComponentIgnore is false</b>
but it doesnt do that, the interesting thing is, is that the chkIgnoreitem is a column in a gridview which was ticked or unticked depending on a field in a database, I recently changed the field from format 1 or 0 to Y or N
does anyone know why this wouldn't work?
thanks! 
|
|
|
|
|
Make the field in the database a bit-field
or
((CheckBox)row.Cells[x].Controls[0]).Checked
where x is the 0-based columnnumber
|
|
|
|
|
digimanus wrote: or
((CheckBox)row.Cells[x].Controls[0]).Checked
where x is the 0-based columnnumber
Yeah but I need to find all checkboxes which are ticked in order to perform the users request, a user can tick and untick a box
thanks anyway
|
|
|
|
|
if you lookad at you own code then you see your run a for-loop
place my code in your for loop!
|
|
|
|
|
bool isCheckedIgnore = ((CheckBox)row.FindControl("chkIgnoreItem")).Checked;
this will always return true coz u r by default giving value as checked
i think this is the reason for that if not please let me know
|
|
|
|
|
I can't change the field to bit, it needs to stay as nvarchar.
rajkumar.3 wrote: this will always return true coz u r by default giving value as checked
Im not sure on that because its finding the control and setting isCheckedIgnore to the result of that, therefore if the textbox is not ticked it should skip the first statement below and do the second
if (isCheckedComponentIgnore == true)
{
}
else
{
}
|
|
|
|
|
ok slightly seperate problem but related
ive got the following code which is binding data which is not a bit field but a varchar and contains Y or N in the column. The code below produces the error:
"Specified cast is not valid."
stringvalue = (bool)DataBinder.Eval(e.Row.DataItem, "fieldname");
however if I change the column to bit i.e. 1 and 0 it works.
Is there a way I can change the code so that it works without changing the column to 1 and 0 i.e. bit!
cheers
|
|
|
|
|
for (i=1;i=5;i++)
{
int a=i;
sqlinsert="update tbl_name set loop_no=a where rollnumber=a";
cmd = new SqlCommand(sqlinsert, conn);
try
{
cmd.ExecuteNonQuery();
}
catch(Exception ex)
{
FileStream fs;
StreamWriter sw;
fs=new Filestream("logfile.txt",FileMode.open);
sw=new StreamWriter(fs);
string newline="Roll No:"+a+"was not updated";
sw.close();
fs.close();
}
}
once if its go for "CATCH" block, how it can proceed others?
i.e, if record 2 fails, will it proceed other records and complete the whole FOR loop????
i tried.. but getting error...
how to achieve it?
thanks in advance and understanding....
|
|
|
|
|
Since this is not VB6 and you cannot Resume Next On Error, I guess you better validate what you're updating before trying to update it, and if it doesn't validate, not try to update. Simply. Thus, you get no exceptions and the for loops for as long as you want it to loop
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
|
|
|
|