|
Yeah, I'll have to try that.
It's just funny how this worked without a problem on my other machine running Ultimate.
Damn computers, I knew I should have been a carpenter.
|
|
|
|
|
Hello all,
I am displaying a calender in pop window. I am having a form which is in user control and that form having calender control. I am using the user control on another page and the form get displayed.When user click on calender image a pop open and i am displaying calender control in pop up window.When user select a date then selected date will get displayed in text box. The problem is that when i click on a date in calender control then date will not get displayed in calender control and it gives following error.
Error: window.opener.document.forms[0].txtdelivdate has no properties<br />
Source File: http:
Line: 48
when i find out the cause then i found that user control dosenot have form tag so it gives the error. when i add the form tag in user control then it shows error.
a page can have only one form tag
because the page on which i am displaying user control having form tag. I cant remove the form tag on my aspx page. So how can i solve the error.
i am adding folowing code for adding on calendr selected index changed event to add calender selected value to text box.
Dim strScript As String = "<script>window.opener.document.forms[0]." + control.Value + ".value = '"<br />
strScript += calDate.SelectedDate.ToString("MM/dd/yyyy")<br />
strScript += "';self.close()"<br />
strScript += "<br />
RegisterClientScriptBlock("anything", strScript)</script>
Please help me.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Does the View Source show txtdelivdate as it is or is the name mangled?
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
|
|
|
|
|
No is shows as it is? if i put the textbox and image on the same page it running properly. But it is in user control so at that time it gives above error in javascript console.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Hi, in my application i have 3 master pages, in the child page, i need to am call one javascript function on page load, for intialize some values, i have used "Register client script", but there is no use, can one pull me out?
Thanks & regards
Murty
|
|
|
|
|
dwadasi wrote: but there is no use
Can you quantify the situation? Are you getting any errors? Do you see the script emitted as part of the HTML?
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
|
|
|
|
|
Use RegisterStartupScript rather than RegisterClientScript.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
currently i m using ASP.NET with C# (.net 2005, 2.0 framework).
Please find the below coding.........
string[] color = new string[] {a,b,c};
foreach (string i in color_parameters)
bg_color(i);
The bg_color() is of.....
public void bg_color(TextBox txtbox_name)
{
................
...............
}
here, when i m trying to pass value to bg_color() "cannot convert from 'string' to 'System.Web.UI.WebControls.TextBox'" error is occuring. how to resolve it?
thanks in advance........
modified on Wednesday, April 30, 2008 5:41 AM
|
|
|
|
|
try
<br />
public void bg_color(TextBox txtbox_name)<br />
{ <br />
txtbox_name.Text = stringvalue;<br />
}
I Love T-SQL
|
|
|
|
|
i would like to convert the "i" value to TEXTBOX.. how to achieve it?
as i mentioned the bg_color() function will receive only TEXTBOX. but the parameter we passing is STRING. so , how to convert STRING to TEXTBOX?
|
|
|
|
|
Are you looking for something like this:
<br />
public void bg_color(TextBox txtbox_name)<br />
{ <br />
string stringvalue = txtbox_name.Text;<br />
<br />
}<br />
<br />
string[] color = new string[] { "a", "b", "c" };<br />
foreach (string i in color)<br />
{<br />
TextBox txt = new TextBox();<br />
txt.Name = i;<br />
txt.Text = i;<br />
bg_color(txt);<br />
}<br />
<code> <br />
<br />
<div class="ForumSig"><hr><small> <font color="Green">I Love T-SQL</font></small></hr></div><br />
<div class="ForumMod">modified on Wednesday, April 30, 2008 5:09 AM</div>
|
|
|
|
|
Something like .ToString() or Convert.ToString(textbox i )
maybe something like that
|
|
|
|
|
no .netman..... i tried many.. but i cant get the answer.. help me.... thanks for ur understanding
|
|
|
|
|
You ought to be more clear in your query. Why do you want to convert string to a Textbox or are you trying to map the string to a specific property of a textbox?
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
|
|
|
|
|
hello friends
i am having two aspx pages ..one is login.aspx present in rootdirectory and admin.aspx in admin folder
so what i want to do is redirect user from admin.aspx to login.aspx
Example
booking/admin/admin.aspx to booking/login.aspx
Response.Redirect is redirecting it to booking/admin/login.aspx
how to solve this
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
modified on Wednesday, April 30, 2008 4:12 AM
|
|
|
|
|
response.redirect("page.aspx")
|
|
|
|
|
oh...i have said in the post that its not working fine ..
read the last line ...i need to jump back to one folder and give the login.aspx
its like admin/admin.aspx to login.aspx
when i write this ..its doing something like admin/admin.aspx
Please read the post completely
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
"Response.write is redirecting it to booking/admin/login.aspx"
Is different to response.redirect.
Please dont ask me to read the post completely
|
|
|
|
|
Change it to Response.Redirect ..sorry got mess up with codes
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
You need to specify all of the file location not just ~/login.aspx but the entire file location
|
|
|
|
|
Did you try resolving to the parent folder using a .. notation?
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
|
|
|
|
|
It will be much helpful ...if it is explained with an example
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
well at the moment you might have ~/page.aspx where as you need the whole address
e.g
foldername/website/login.aspx
|
|
|
|
|
System.Net.WebException: Unable to connect to the remote server ---> 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 66.135.197.141:443 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at com.paypal.soap.api.PayPalAPIAASoapBinding.DoDirectPayment(DoDirectPaymentReq DoDirectPaymentReq) at DoDirectPayment.Page_Load(Object sender, EventArgs e) in f:\sample\We\Default.aspx.cs:line 161
i cannot identify this error pls help me
|
|
|
|
|
Also make your subjects a bit more descriptive rather then question, we know you are asking a question, thats why you are posting!
|
|
|
|