|
Obviously using javascript. The main thing is, you need to put some ids in the tags for the table, so you can use getDocumentById to find the table. Then you can iterate over it's children.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
|
I'm using HttpWebRequest and HttpWebResponse to query a remote server. I plan to load the returned xml into an XMLDocument, but the HttpWebRequest.GetResponse() method fails with a 403 "Forbidden" error.
I am able to get a response when I put my domain username and password as plain text into the request's Credentials member, but of course I'd like to avoid having that information in the application.
I thought that code along these lines (found at http://claytonj.wordpress.com/2006/09/04/run-code-under-the-iis-authenticated-user-context/)
would solve my problem:
using System.Security.Principal;
if (User.GetType() == typeof(WindowsPrincipal))
{
WindowsIdentity id = (WindowsIdentity) User.Identity;
WindowsImpersonationContext impersonate = id.Impersonate();
//perform tasks under the impersonated user
//*** ***//
//revert back to local ASPNET account
impersonate.Undo();
}
else
{
//user isn’t authenticated
}
But, I still get the 403 error. I think the impersonation is failing because the WindowsIdentity.ImpersonationLevel property is always "Impersonation." I think this needs to be "Delegation" to reach the remote server (I'm behind a firewall and corporate proxy), but the property is read-only so I can't set it.
My Question: What do I need to configure in order to get the ImpersonationLevel property to be of the TokenImpersonationLevel.Delegation type?
Let me know if this requires clarification.
|
|
|
|
|
Hello everyone, I've searched forums, articles, msdn, and google [which I bet many people who post here don't do often] and after hour and a half I'm still stuck. See if you can give me a hand.
Thing is I have a site with a web.sitemap, in my MasterPage I've got a Menu and a SiteMapNavigation control to act as breadcrumb. Here it is:
<code><siteMapNode title="Peticiones" url="" description="Gestión de Peticiones de Documentación">
<siteMapNode url="~/Peticiones/PeticionDocumentacion.aspx" title="Nueva Petición a GADSA" description="Nueva Petición a GADSA" />
<siteMapNode url="~/Peticiones/RecepcionDocumentacion.aspx" title="Recepción de Documentación" description="Recepción de Documentación">
<siteMapNode url="~/Peticiones/InformarIncidencias.aspx" title="Informar Incidencias" description ="Informar Incidencias"/>
</siteMapNode>
<siteMapNode url="~/Peticiones/UbicacionPeticiones.aspx" title="Ubicación de Peticiones" description="Ubicación de la Documentación que se ha solicitado." />
</siteMapNode></code>
My problem is that SitemapNode "Informar Incidencias". I delete this node from the menu once it is databound so users cannot click on it. It links to a form used to report erros, which is only accessed when needed so I don't want it to appear on the menu. Well, whenever I do <code>Server.Transfer("~/Peticiones/InformarIncidencias.aspx")</code> I'd like the breadcrumb SiteMapPath control to update to my current site location, but I haven't found any way to this, so my breadcrumb only updates when I click on some menu item.
Does anyone know a way so I can set the web application current location programatically?
Thanks in advance
Kazz
"Users are there to click on things, not think. Let the archs do the damn thinking."
|
|
|
|
|
hi
when i go to copy the website to ftp host ,,
I studied how to deploy ,, but when i try to copy to my new web site
I found that it's contail two dirctories ( data - wwwroot ),
I copid all my project files after that i go to test my amazing web loooooool ,, i founded nothing ,,,,
then i delete all files and try to copy all to wwwroot , i can't do it ,,
jooooo
|
|
|
|
|
hmm so have you uploaded to the server but no files are actually appearing? is that right?
|
|
|
|
|
thanks for you quick reply ,,,
it's appear , but when going to explorer to navigate ,, nothing ,,,
only the page coming soon
, i think that the folder wwwroot all files must be copied to it ,,
i use copy web site on dotnet 2005
when to open the wwwroot of the ftp host
it told me on another side that you haven't root dir
jooooo
|
|
|
|
|
Hi,
I tried to use:
string.Format("mailto:{0}?subject={1}&body={2}",to, subject, body);
in order to send mail from the default email client.
This is working excellent in local machine only...but when this application is hosted in a web server or IIS this is not working...
any suggestion??
Thanks.
|
|
|
|
|
Of course, u hav to definetly give mail-server Port in order to send mail form hosted server
|
|
|
|
|
This just should launch the local mail program. I don't see why it should not work when deployed on a server, b/c the client does the work, you're not actually sending any mail. Of course, you're not setting an address to mail to, that seems odd ???
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Maybe I should configure something in the server??
Does anyone use something like that?
I thought it should be trivial to send a mail from a web application !!?
I would appreciate more help,
thanks,
|
|
|
|
|
lune12 wrote: thought it should be trivial to send a mail from a web application !!?
The way you're doing it, it is. Why don't you specify who to mail it to ? What does 'does not work' mean ? We're being left in the dark here, as to what the problem is.
If you think the server needs to be configured, you're obviously missing what your code does. A mailto: tag simply opens a new email on the client PC, the server has no idea what is going on, nor does it contribute to the process.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Of course I specify to who I mail (to is a variable that hold a mail address)
And I think that the syntax is OK as it work fine when the application runs on the localhost, but when I run it from the server it doesn't (is just do nothing!).
Is my problem clear now?
Any Idea?
Do you have a working examle.
Thanks,
Levana
|
|
|
|
|
Oh - I see. Sorry, I am trying to find a problem, but there plainly isn't one.
Have you looked at the HTML of the page to make sure it's being rendered as expected ? Where does 'to' come from ? Again, putting it on the server, makes no difference to a mailto tag. Something must be mangling it, for example, if 'to' comes from a setting that has not been properly deployed.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello frnds,
i have face session Timeout problem.
This problem occurs when i redirecting from a page to another page.
i used session timeout = 20 in web.config
but still facing a problem much...
what can i do ??? can i use server.transfer() instead of Response.redirect()
any other suggesation...
Thankx in advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: This problem occurs when i redirecting from a page to another page.
Make sure both pages are in same domain. Also there many other setting for controlling session timeout. You need to make sure everything is correct.
|
|
|
|
|
What is the problem? Does the timeout occur when it shouldn't, or doesn't it occur when it should?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
... or does it occurr when it should?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
hi
I have a drop downlist with the titles of my documents. I cut the titles if their length is more than 25 but when I hover my mouse on the values of the drop down list, I want to display the full titles as tooltip(I dont know whats the exact name to say, I think its tooltip). for example: If I hover the mouse on links if we set the title of the link it displays the links with yellow box and title. Like that I want to display the titles with in the drop downlist.
Is it possible. How can this be done?
Any one give me Ideas!!
thanks
|
|
|
|
|
Set the tooltip property of control to the text you want to display.
Arun Singh
Noida.
|
|
|
|
|
Hi Arun
thanks for the reply. I set the tooltip property of the drop downlist to the text but in the front end its always showing me the last drop down list value in the tool tip. how can I get the tool tip for all of the values in the drop down list.
thanks
|
|
|
|
|
Hi all,
How to embed a external vbscript file in asp.net application.
Thanks in advance
Dana
|
|
|
|
|
the same way you do a javasript file, with a script tag. You shouldn't use vbscript tho, it means only IE can open your page. Plus, it sucks.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
GridView1.EditIndex = e.NewEditIndex
fillgrid()
End Sub
hey with above code i am editing one complete row but i need only one particular column in selected row.. can any one help in this
|
|
|
|