|
But It's still working for me. Please try again. Try in different browsers.
|
|
|
|
|
Hi
I am using a ajax auto complete feature in my web application. There are 3 textboxes in a page and added AutoCompleteExtender to each one.. when user start typing letters in first text box it gets list from database and displays as a list. like that when user type some thing in second text box it should display a list by sending the first text box value as parameter to webservice method to get values from database. How can we pass the first text box value as a parameter to the webservice when user is in 2nd textbox.. am using C# and asp.net..
Advanced thanks
|
|
|
|
|
After logging into the screen using the login controls, how can I make sure that the user always gets redirected to page1 after a successfull login?
Thanks
|
|
|
|
|
Hi
try to use DestinationPageUrl property of login control.
Cheers
Prosanta Kundu
|
|
|
|
|
hello ,
i create text boxes dynamically.i can't get text box value in another button.iam sending my code
this is iam developing
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If textbox1.Text <> "" Then
CreateControl()
End If
End Sub
Private Sub CreateControl()
Dim i As Integer = 0
For i = 1 To 10
Dim txt As TextBox = New TextBox
' txt.ID = "txt" & i
txt.ID = "txt_" & i
txt.text="hello"
Session("text") = txt.ID
Panel1.Controls.Add(txt)
Next
End Sub
Protected Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
Dim i As Integer
For i = 1 To 10
Dim txtCtrl As TextBox = DirectCast(Panel1.FindControl("txt_" & i), TextBox)
If txtCtrl.Text <> Nothing Then
MsgBox(txtCtrl.Text)
End If
Next
End Sub
here i can get text box values one by one.but i dont wont that.
here 10 text boxes are there,in which,i want one textbox value which is selected in number of text boxes.
urgently i want solution plz send reply to me
|
|
|
|
|
Hi
Could you please give more information. "Textbox is selected" ...
Thanks
Prosanta
|
|
|
|
|
Hello friends,
I have made a webservice in my solution file and accessing that server from my solution's test pages. Everything works fine..until i deployed it on the production server.
I have updated the references in the web.config and .disco files to point to the production servers webservice url.
But it is giving me error
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond [Ip adderss]
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond [Ip adderss].
what could be the cause of this problem and how can i overcome from it?
Thanks.
Amit
|
|
|
|
|
Hi,
the request seems to timeout. This can have several reasons. I would suggest the following:
1. Check if you can reach the server by using a browser etc...
2. Check if the webservice itself crashed. To do this connect to the production server and take a look into the logfiles (you are writing a log, do you?). Check the system events of the production server.
3. Use a tcp-Monitor to monitor the messages exchanged by service and client. Maybe the response is not in the way the client expects.
Regards
Sebastian
|
|
|
|
|
Thanks SeMartens,
i got the solution. i have made changes to the hosts file.
It is working now
Amit
|
|
|
|
|
am not sure what am missing something.
i have a page where i hide Panels and show them. So i have this javascript function
function HideFilter()
{
document.getElementById("<%= Panel1.ClientID %>").style.display = "none";
document.getElementById("<%= Panel2.ClientID %>").style.display = "none";
document.getElementById("<%= ImageButton3.ClientID %>").style.display = "none";
document.getElementById("<%= ImageButton2.ClientID %>").style.display = "";
return false
}
function ShowFilter()
{
document.getElementById("<%= Panel1.ClientID %>").style.display = "";
document.getElementById("<%= Panel2.ClientID %>").style.display = "";
document.getElementById("<%= ImageButton2.ClientID %>").style.display = "none";
return false
}
they hide Hide and show Buttons. The Problem here is that ImageButton2 does not appear. The problem is in the function HideFilter() it does not want to show the ImageButton2 and it gives me a JavaScript error.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Check if "ImageButton2.ClientID" generates the client id. May be ImageButton2 is not a server control, so the client ID generation is failing and giving you javascript error.
Check the generated Javascript to get a clear idea.
|
|
|
|
|
In your code behind, you might have written
ImageButton2.Visible = false;
If so, ImageButton2 will not render to HTML and hence will throw javascript error.
For first time load also, hide your ImageButton2 using javascript.
Hope this will solve your problem.
|
|
|
|
|
Today is one of those Days. I did not see it. Thanks for pointing it out.
Problem Solved.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
i will reply to you there way you did. but i hope the site Admin will take care of you.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hello Friends,
Can anybody let me know how to set Text-Align="Right" in theme.
|
|
|
|
|
Just add a .css file in your theme folder and
add whichever style you wish to add.
It would be better if you would clearly speak which controls/tags'
alignment you want to make right.
|
|
|
|
|
Hi
Here is your answer.
1. Create a css file in your Theme folder
2. Declare a class in css file say ".customAlign", like
.customAlign { text-align:right; }
3. In aspx page use CssClass="customAlign" in your control
Cheers
Prosanta Kundu
|
|
|
|
|
<asp:hiddenfield id="h1" runat="server" value="hidden">
in javascript it is
document.getElementById(<%=h1.ClientID%>).value;
it is giving me error.
Can anyone please let me know how to access this .
|
|
|
|
|
try this
http://forums.asp.net/p/1017379/1370211.aspx[^]
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Dont put the scriplet in document.getElementById.Use global variable to get the clientid of hidden variable as
var hiddenClientID = "<%=h1.ClientID%>";.
Put the above script in masterpage itself.
Now access the hidden field using hiddenClientID in usercontrol as
document.getElementById(hiddenClientID).value
Let me know if still face problem
Cheers!!
Brij
|
|
|
|
|
try below code
document.getElementById(<%=Page.Master.FindControl("h1").ClientID%>).value;
|
|
|
|
|
document.getElementById("<%=Page.Master.FindControl("h1").ClientID%>").value="dirty";
not working on usercontrol
|
|
|
|
|
did you try what I suggested?
Cheers!!
Brij
|
|
|
|
|
hi,
i need to show multiple selected items in Dropdown List
i wrote like this
foreach (string _arr in _strIt)
{
string sitem = _arr.Trim().TrimEnd();
ddl_Resources.Items.FindByText(sitem).Selected=true;
//ddl_Resources.SelectedValue= //ddl_Resources.Items.FindByText(sitem).Value;
}
it is not working ,i'm getting error ,and ddl_Resources.autopostback=true.
|
|
|
|