|
Hi all , I am trying to call a webservice i deployed on local machine. When i make a call , it gives me the error
Login Failed for User Intagleo\ASPNET (where "Intagleo" is my PC name)
Please suggest where is problem. I have created weservice project in Inetpub ...
Kaliem
If you treat people well, they will treat you well ..90% of the time ..
|
|
|
|
|
My guess is that your ASPNET user (in this case ASPNET) does not have rights to the folder your webservice is sitting in.
|
|
|
|
|
I'm looking for a code the will do the following....
It will refresh the page depending on the selection from a drop down menu...
Like..
Don't reload automatically
Reload page every minute
Reload page every 2 minutes
Reload page every 5 minutes
Reload page every 10 minutes
Reload page every 15 minutes
please any one help me its very urgent
Pradeep Reddy
|
|
|
|
|
If you use an ASP.NET dropdown control, you can set AutoPostback=true
|
|
|
|
|
Enable "AutoPostBack" for the Combo Box you made. can be done through its properties box. By default, this is not enabled ...
btw, what would happen if it was enabled by default ... what were going in their minds .. can someone suggest ...
kaliem
|
|
|
|
|
It defaults to false because most combox choices do not require a postback.
|
|
|
|
|
if you want to get page is refresh on click & select the value of the combo box of html, then Right click on the html control and make it server type control (Run at Server) and set the property "AutoPostBack=Ture".
Cheer
Pavan Pareta
|
|
|
|
|
hi Pradeep,
If i understand correctly u want acc. to selected option ur page should behave if selected 2 min then page should get refreshed after 2 mins.
I did the same for a child window, below is the code:
window.setTimeout("window.location.reload(true)", 50000);
Hope it helps you
Regards,
Akhilesh Yadav
|
|
|
|
|
I think u should do it with javascript.
var temptime;
var curtime;
var disp;
function valuecheck(t)
{
eval(document.formname.TN_check.value=t);
doRewrite();
}
function beginrefresh()
{
curtime-=1;
disp=curtime+" seconds left until page refresh!";
window.status=disp;
setTimeout("beginrefresh()",1000);
}
function doRewrite()
{
window.status=""
curtime=(document.formname.TN_check.value/1000)+3;
if (document.formname.TN_check.value!="")
{
beginrefresh();
setTimeout('document.forms[0].submit()' , document.formname.TN_check.value);
return;
}
}
No Refresh
5 Mins
10 Mins
|
|
|
|
|
Hi,
I just switched from .Net 1.1 to .Net 2.0. I want to attach Javascript onto Delete button in GridView so that the user will be able to confirm if he really wants to delete the record.
However, I couldn't find ItemCreated event, which is presented in Datagrid. Here is my code used in Datagrid:
Private Sub dgContainer_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgContainer.ItemCreated
If e.Item.ItemIndex > -1 And Not e.Item.ItemType = ListItemType.EditItem Then
Dim DeleteButton As LinkButton = e.Item.Cells(6).Controls(0)
'Attach javascript onto OnClick event
DeleteButton.Attributes("OnClick") = "javascript:return confirm('Deleting this client will delete all the information related the client. Do you really want to delete " & _
Chr(34) & Trim(dgContainer.DataKeys(e.Item.ItemIndex)) & Chr(34) & "?')"
End If
End Sub
Does anyone know how to do this in GridView?
Thank you in advance!
|
|
|
|
|
Check this article:
http://aspnet.4guysfromrolla.com/articles/021104-1.aspx
|
|
|
|
|
Enable "AutoPostBack" for the Combo Box you made. can be done through its properties box. By default, this is not enabled ...
btw, what would happen if it was enabled by default ... what were going in their minds .. can someone suggest ...
kaliem
|
|
|
|
|
sorry, posted at wrong place .. pardon ...
|
|
|
|
|
|
Hello there,
Is ther i can know whether or not the a button in a form submitted the form in the page load event of the page.
Any help would be greatly appreciated.
|
|
|
|
|
On the button's click event you can add code to set a flag that can be read after the postback.
|
|
|
|
|
I dont understand could you please give me an example
|
|
|
|
|
Hi..
Referring to a DropDownList which is populated by a table, is it possible to select a default option whenever it is bound. For instance.. if I bind the DDL with Forenames from a user table, will I be able to tell the DLL to have a certain Forename selected as a default??
Thanks
The Magnitude of flaws in Democracy at least equals that of Dictatorship, Communism and Monarchy.
|
|
|
|
|
There is a property for DropDownList like
ddl.selectedValue="value you want to select by default"
But always remember to use this property after you bind your DDL ie DropDownList.
Regards
Tayyab
Lets work it Out.........!
|
|
|
|
|
Thanks man,
I'll try it out
The Magnitude of flaws in Democracy at least equals that of Dictatorship, Communism and Monarchy.
|
|
|
|
|
It didn't work.
The following error was thrown out :
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: PM System
The dropdown is currently populated with 4 entries from a table. I simply did this..
.<br />
.<br />
.<br />
Me.ddlDropDownList.Databind()<br />
Me.ddlDropDownList.SelectedValue = "PM System"<br />
.<br />
.
The magnitude of flaws present in Democracy at least equals that of ones present in Dictatorship, Communism and Monarchy.
|
|
|
|
|
Is there anything like Try/Catch in ASP?
I have a database query that may call on non-existant objects (It's like this for a reason, trust me ) and I need for it to throw up an "Invalid Argument, Choose another query" message at the bottom of the query page if an error does occur.
This is a webpage based interface.
- Munty
|
|
|
|
|
Absolutely..
Try [some code]<br />
Catch e As [TypeOf]Exception {e.g. SqlException}<br />
Return 0<br />
End Try
Just look up online what type of exeptions will suit your situation.
|
|
|
|
|
|
You're Welcome
|
|
|
|