|
|
In ie we can fire the event from popup window to opener as
opener.document.all('b1').fireEvent("onclick");
b1 - is button in parent.
how to implement this in firefox?
|
|
|
|
|
In Firefox (or anything else but IE for that fact) you cannot use document.all which is a good reason to try to avoid it.
Therefore instead of document.all you should use getElementById such as:
document.getElementById("b1")
Also, in Firefox you don't have fireEvent. You could instead either dispatchEvent (as described here: http://developer.mozilla.org/en/docs/DOM:element.dispatchEvent) or you could retrieve the handler yourself and call it explicitly
|
|
|
|
|
Hi dears,
We know after installing atlas framework , we can develope atlas website projects. Now if I develope a .Net WebSite project(not a atlas website project) how can I use atlas technology in my website ?
|
|
|
|
|
Hi,
Is there another way of directing a user to a new page, when he clicks a button, that is on a different server?
I use reponse.redirect, but I heard that is not the best way.
Here is an example: The user is on http://intranet/pages/page1.aspx, and when he clicks a button, he loads another page http://server02/pages/page2.aspx in the browser...
|
|
|
|
|
There is nothing wrong with Response.Redirect but do you really need to do this in code?
Can't you do it on client-side? Such as using a link button? in that case after click the browser is being redirected straight to the other page as opposed to posting back to your application therefore saving an entire postback.
|
|
|
|
|
Dani: that's "what's wrong with Response.Redirect()"
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
That is wrong with missusing Response.Redirect() (or at least one of them, as we could consider some scenarios where Server.Transfer would be better as well) but not with the feature itself. There are plenty scenarios where it is needed and there is no better alternative.
|
|
|
|
|
Hi,
The problem I have is that I build up the URL string via code behind functions and variables, and then sending the user to a page in a window with no toolbar, directory, etc. The user should also not see to which page he is being redirected. If he goes "view source" on the new page or check the properties, that is ok... but he should not see the page URL in the status bar or in the location URL field.
Will this still work if I use the link button?
|
|
|
|
|
You can still use your mehtods to create a dynamic URL and still keep it on client side. For example you could use inline code to output the dynamic string built by your methods.
something like:
">My Link
where instead of the hardcoded string you would call your method (make sure it is protected if you use ASP.NET 2.0 or public if ytou use 1.1).
In order to open a window with certain options I think you will need to use window.open
|
|
|
|
|
Ok, I am not to sure what you mean. Can you maybe give me an example.
Yes, for the new window, I use a window.open to open the window.
|
|
|
|
|
Sorry, I pasted an example but it was rendered as HTML.
Let me try again:
<a href="<%=MyFunctionCallHere()%>">My Link</a>
hope this works.
|
|
|
|
|
Hi,
I am including textboxes dynamically based no the selection of the no. in drop down list. Its working. But now i want to get the values entered in that control. How to retrieve values from dynamically created controls.
Please Help.
Thanks in Advance.
Regards,
Prya
|
|
|
|
|
guess u should loop through the controls of type TextBox and get the text property of them
Best Regards
3ala2
|
|
|
|
|
Hi,
Thanks for your immediate reply.
I tried in this way. But its not giving any value.
((TextBox)(PlaceHolder1.FindControl("tb1")))
Prya
|
|
|
|
|
try to loop through the this.controls(index)
check the type, if it's textbox then get the text
hope this would help
Best Regards
3ala2
|
|
|
|
|
hi
how to get the text from textbox if it is textbox. Because i could not find any specific property like text to get its value.
Prya
|
|
|
|
|
OK...
i did a sample code (vb script) for what u want but u need to convert it to C#
first add a panel and add the dynamic text boxes to that panel
then do this
<br />
Dim ctl As Control<br />
For Each ctl In Me.Panel1.Controls<br />
If TypeOf ctl Is TextBox Then<br />
<br />
'Whatever code u like <br />
Dim str As String<br />
str = CType(ctl, TextBox).Text()<br />
lblTest.Text &= str<br />
<br />
End If<br />
Next ctl<br />
Guess this should solve ur problem
Best Regards
3ala2
|
|
|
|
|
Hi just3ala2,
Thanks
I tried. My C# coding is :
foreach (Control ctl in this.PlaceHolder1.Controls)
{
string strr = ctl.
Response.Write(strr);
}
In the bold part there is no specific (.Text) to get its value. But there is .ID propety which gives its name. Any idea reg. this.
Regards,
Prya
|
|
|
|
|
can't u use the typeOf keyword in C#?
Best Regards
3ala2
|
|
|
|
|
Dear Friends,
How can i drag and drop files in asp.net for uploading?. like yahoo photo upload.
Please help me....
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
I don't know yahoo upload. But considering how the web works and all, I would say that they are using Java there...
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
You need to do this with javascript.....basically, (and without giving the game away too much ) you need to manipulate the object's .style.left / .style.top properties (so the usual way to do it is to use a DIV with POSITION:Absolute)...
You'll also need to hook up some onmousedown, onmouseup handlers, and an onmousemove handler...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
hw r u all, i have a prblm in datagrid,i have three dataset from different queries and assign to one datagrid.the problm is that whn i assing a one dataset to the grid the data in the grid is not shown properly.
i mean the first dataset data is come in the first row,secnd dataset data is come in the second row and the third dataset data is come in the third row.(all dataset have one row record)
Bt i wnt to show the whole data in one row.
ds.merge(ds1)
ds.merge(ds2)
datagrid.datasource=ds
databind()
waiting
|
|
|
|
|
I think you have to join your tables. So that you can use only one dataset.
Hope this will help you.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|