|
This is my first web service deployment and something has me confused. Actually a lot of things have me confused but that is another discussion):
I am attempting to return a Linq XDocument from the call but apparently XDocuments are not serializable. I found a small C# class which serializes the document but now my questiions are:
1. What type is returned after serialization?
2. How do I put it back into XML form
3. Why would an XDocument not be serializable (Rhetorical question)?
Michael
|
|
|
|
|
Hi,
<b>I am trying to open a new jsf page with following code</b>
<code>FacesContext context = FacesContext.getCurrentInstance();
ViewHandler vh = context.getApplication().getViewHandler();
UIViewRoot dialog = vh.createView(context, "/pages/report1.xhtml");
AdfFacesContext a = AdfFacesContext.getCurrentInstance();
HashMap props = new HashMap();
HashMap params = new HashMap();
System.out.println("--here---");
// just a try, component is nothing by a CoreCommandLink of adf
component.getAttributes().put("target", "_new");
params.put("str", str);
props.put("width", 500);
props.put("height", 700);
a.launchDialog(dialog, params, component, true, props);</code>
above code opens page in new window, but the parent window is now not accessible unless you close the newly opened window
please help if I am missing anything
Thank you,
san_sim
|
|
|
|
|
Hello Friends,
I am new to web development and developing a website Dreamweaver (HTML) i want to add a video (FLV) to one of my web page i have use flash video from dreamweaver it runs files on local system but when i upload it it does not run not even i have seen flash player on my page...
i have searched a lot on net but does not find any solution
Please help me
Thanks
Signature preview salil_k_singh
|
|
|
|
|
You can't play an FLV file in a web browser - you must load it and play it from within a flash (SWF) file.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
salil_k_singh wrote: i want to add a video (FLV) to one of my web page
You can not. It has to be tranformed into a .swf file.
Btw, you can add a swf like this.
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</param></object>
|
|
|
|
|
Hi Folks
I have an asp.NET page with a fairly interactive user interface. At one stage I programatically add textboxes to the cells an asp table control which is in a panel control. None of that matters though. The textboxes are added programatically.
How do I retrieve the TextBox.Text property values after a server button click? Naturally, after the postback, the textboxes are no longer available to be referenced.
Am I doing or missing something really dumb? It wouldn't be the first time.
Thanks to any one who can help.
Regards,
Kiefie
The man with a plan...now where'd that plan go?
|
|
|
|
|
Kiefie wrote: Am I doing or missing something
Yes, this: ASP.NET forum[^].
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
in depends on how you are entering your control inside that table cell.
try this
foreach(TableRow tr in YourTable.Rows)<br />
{<br />
foreach( TableCell cell in tr.Cells;)<br />
{<br />
foreach (Control control in cell.Controls )<br />
{<br />
TextBox txt = control as TextBox;<br />
if (txt != null)<br />
string someStr=txt.Text<br />
}<br />
<br />
}<br />
}<br />
<br />
hope that will help
|
|
|
|
|
|
alter validation when we focus on dropdownlistbox it on get focus ...
i want to open that menu using java script
any one help me....
|
|
|
|
|
I assume for security's sake, I don't believe that you can simulate key presses in Javascript.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
|
|
|
|
|
Hi,
I had written a webservice..which is working fine. This webservice will reside in server.
Now if I have make this webservice work for multiple servers.
Right now Iam adding a webrefernce to my application which is consuming webservice.
if this webservice has to be utilised globally..then what I have to do?
If I have to host the same webservice on different servers that leads to waste memory..since in all web methods in all the webservices have same logic and same datatype.
1.To make the same webservcie work on mutiple servers....
2. How add web refernce globally through programatically
3. If to make the webservcie work globally what are the paarameters I have to pass for them?.
4. what is best mechanism to check whether server running or down?
Kindly help me in achieving above
So kindly tell me wat is the best way..
|
|
|
|
|
Hi to All!
IE6.0 & IE7.0 generates the error message "Internet cannot open this site http://www.abc.com/ Operation Aborted". This error is occuring randomly, not very frequently.
I am looking for the right fixture of this issue. I implement the following fixes, but all in vain yet
Fix1: I checked the code and verify the java script that wouldn't be calling in any child tag of html, and move the script code on the top or bottom of aspx page, if found any, but no result.
Fix2: I ran the SP1 for IE6.0 but no fruitful result as well.
Fix3: Tried to implement property of DEFER in the script tag, no result.
Is there any other possible way to fix that issue? As Microsoft officials already said that they fix this issue in IE8.0 beta, which will now generate the proper script error message rather than wipping out the .aspx page in a half way.
Thanks in advance
|
|
|
|
|
Since i don't know what your script looks like, or what it's doing, this answer is just a stab in the dark: ensure that any script which modifies the DOM is triggered from an onload handler.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
I seem to get the same thing on Micrsofts MSDN Library from time to time, but ussually clearing the temp internet files sorts it, but not always, which is annoying.
|
|
|
|
|
Hi,
I have to Show a popup, for that i am using ModalPopupExtender Control.
The TargetControlID for ModalPopupExtender i gave 'Button1'.
I have an event in that Button1.(Button1_Click)
By Clicking on Button ,First i have run that ButtonClick event then the result i should display in PopupExtender.
I can't give TargetControlID for ModalPopupExtender other than 'Button1'
How to do this with out using any ConfirmButtonExtender.
Please Sugeest me,
Thanks in advance,
sekhar
|
|
|
|
|
Don't confuse "AJAX" with "ASP.NET AJAX" - the former is a handy cleaning powder and useful technique for creating interactive web pages; the latter belongs in The ASP.NET Forum[^].
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Hi , Does anyone know a good online Perl Learning resourse
Thanks,
Happy Programming!
Regards,
ctrlnick !
|
|
|
|
|
this is my code
function onDigittxtkeypress(e)
{
var ie = true;
if(!e)
e = window.event;
else
ie = false;
var code;
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
if(code<48||code>57)
if(ie)
e.keyCode = 0;
else
return false;
else;
}
it works is ie but does not in ff.
please help me.
|
|
|
|
|
Install FireBug and check the error console.
Poor formatting aside, I'm curious as to why there is an else as the last statement in the function?
It's also not going to help having an accented character in the HTML:
<input type="text" önkeypress="return onDigittxtkeypress(event)" />
|
|
|
|
|
Johnny ² wrote: It's also not going to help having an accented character in the HTML:
That's actually the fault of the CP forum software - it subtly corrupts JS event handler names to prevent them from being used in the actual post HTML.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
mostafarastgar wrote: onkeypress="return onDigittxtkeypress(event)"
Change this to:
onkeypress="onDigittxtkeypress"
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
You can catch keycode only in keydown/up.
|
|
|
|
|
|
You may find that users will be rather surprised if you start sending their usernames and passwords to another domain (and with good reason). The fact that the other site doesn't give a mechanism to do this also suggests that it may not be a good idea. If you have control over the koko site, you'd probably be better off implementing a robust authentication system (or hosting the application on that domain/machine).
If you do that request from the client, what you'd be doing is handing off authentication control to the client, which means it's very insecure (ie. you trust the client to send the request to the right place, and you trust that the "Yes" answer isn't just made up by modifying the client script). Really don't do this.
To do it on the server side would allow some control over the authentication, but the method to do it would depend on what languages and technologies you use on the server side. Essentially all you'd be doing is a GET request with the parameters as sent from the user, and checking the response for Yes/No.
|
|
|
|