|
Hi guys,
I am very glad to be here. I have a doubt.I have used
window.close(); in javacsript to close a web page. It works fine but it asks for a confirmation/ it displays a message box. But i don't want this message box to be poped up. Is there any way to exclude this message box?
Or can we close a webpage in any other way?
waiting for your valid reply...
thanks in advance
Sebastian
|
|
|
|
|
This is being asked for security reasons. You can avoid this by workarounds.
Before calling close(), get the window in a variable and close. HTH.
|
|
|
|
|
Thanks for your reply. I got the answer by placing
window.opener=self;
just before the close command.
once again Thanks
Sebastian
|
|
|
|
|
Assign some value to window.opener. That way IE would get to think that the window is created by you and it would obey the master without any demur.
|
|
|
|
|
hi,
in my application i have given facility to upload a zip file on server.
but when uploading file it's giving me error that "d://temp/temp1.zip" access denied.
and i am saving file in outside the application folder.
Why this error is coming ? any idea ?
Thanks,
Sun Rays
|
|
|
|
|
If you are accessing this zip file from your application, check that application (ASP.NET, IIS in case of Web application) as enough rights to access it
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Two issues:
(*) IIS Write Access to folder.
(*) NTFS permissions to ASP.NET
|
|
|
|
|
ok..thanks fro your reply.
actually I have set rights of write in IIS.
but what about NTFS ? how to give right for that.
Please descibe.
Thanks,
Sun Rays
|
|
|
|
|
Hi i displayed, a month all dates in datagrid.....,
Now in that datagrid, i want to find the sunday dates only,
how to do that plz help me...........,
Regards,
Magi
|
|
|
|
|
u can check it as below.
for a perticular date u can check that
if YrDate.DayOfWeek = DayOfWeek.Sunday then
'''' It's SUNDAY.........
end if
Thanks,
Sun Rays
|
|
|
|
|
<br />
strXmlNames = "<?xml version=""1.0"" ?><users>" & strXmlNames & "</users>"<br />
Dim xDoc As New XmlDocument<br />
Dim xPathNav As XPathNavigator<br />
Dim xslt As XslTransform<br />
xDoc.LoadXml(strXmlNames)<br />
xPathNav = xDoc.CreateNavigator<br />
xslt = New XslTransform<br />
xslt.Load(Server.MapPath("Names.xsl"))<br />
<br />
xslt.Transform(xPathNav, Nothing, Response.OutputStream)<br />
The above code works well on .NET 2005 but when I write the same on 2003 it shows the following error with blue underline on the last line
xslt.Transform(xPathNav, Nothing, Response.OutputStream)
Error:Public Sub Transform(System.Xml.XPath.XPathNavigator, args as System.Xml.Xsl.XsltArgumentList, output as System.IO.Stream) is obsolete. You should pass XmlResolver to Transform() method.
Can anybody suggest how this line should be changed for 2003?
Thankyou.
|
|
|
|
|
What is .NET 2005? Do you mean Visual Studio? I think you have different settings for VS2003 and VS2005.
tonymathewt wrote: Error:Public Sub Transform(System.Xml.XPath.XPathNavigator, args as System.Xml.Xsl.XsltArgumentList, output as System.IO.Stream) is obsolete. You should pass XmlResolver to Transform() method.
If I am not mistaken this is only warning. You have set "treat warnings as errors" in project properties. Now how to fix it: well, if you work with .NET framework 2.0, don't use XslTransform , use XslCompiledTransform . If you don't, use XslTransform.Transform Method (XPathNavigator, XsltArgumentList, Stream, XmlResolver) [^] overload of Transform().
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
hi guys
actually i am very much new web applications,
i want to use a repeater controll i have bounded this controll with a list of my custom defined type.
in this object there are three attributes id,name,description,every thing works fine ,i use eval("id") while filling this repeater , and works fine also when i use query string an another page upon selecting any value in repeater , but the thing i want i dont want to show the id attribute in the repeater to client , i just want to show title, description but not id , although i must have to use id attribute also because i have to search some thing on the base of this id unique attribute , there must be a way ,
thanks in advance
hello
|
|
|
|
|
there are lots of ways for that.
u can use one label in repeater control make it visible=false. and bind ID to text of label.
another way is directly bind Id to link..
<asp:hyperlink id="testhlnk" runat="server" navigateurl="<%# "test.aspx?MYID=" & DataBinder.Eval(Container.DataItem, "ID")%>" text="It's MY" target="_self">
Thanks,
Sun Rays
|
|
|
|
|
Hey,
Hope i understood you question!! If not, correct me.
Infact, you need to display the ID value in repeater control for some reasons (to be captured in javascript or so). For that, you have to apply CSS.
Thanks,
Ziyad
|
|
|
|
|
Hi guys,
I'm developing a small site for someone who made the mistake of hosting with GoDaddy. I am unable to make any outbound connections for WebRequest and stuff from Godaddy.
<br />
<br />
String strResult;<br />
<br />
WebResponse objResponse;<br />
<br />
WebRequest objRequest =<br />
System.Net.HttpWebRequest.Create("http://www.google.com");<br />
<br />
objRequest.Proxy = new<br />
WebProxy("https://64.202.165.130:3128");<br />
<br />
WebProxy("https://64.202.165.130:3128");<br />
<br />
WebProxy("http://wc-v01.inet.mesa1.gdg:3128");<br />
<br />
WebProxy("https://wc-v01.inet.mesa1.gdg:3128");<br />
<br />
objResponse = objRequest.GetResponse();<br />
<br />
dispose the object <br />
<br />
<br />
using (StreamReader sr = new<br />
StreamReader(objResponse.GetResponseStream()))<br />
<br />
{<br />
<br />
strResult = sr.ReadToEnd();<br />
<br />
StreamReader<br />
<br />
sr.Close();<br />
<br />
}<br />
<br />
Response.Write(strResult);<br />
<br />
I used that code to test f I could make outbound connections. On my IIS it worked fine but when I uploaded it gave "Could not connect kind of error". I did comment out all the Proxy code when I ran it on my IIS. GoDaddy has a Proxy server. I've tried all combinations to make it work but it doesn't. GoDaddy claims its a coding error. Is there a simpler code to test whether I ca n make outbound connections froma particular server or something.
|
|
|
|
|
Hi
I have an image control and i try to draw a slice.Could you tell me what's wrong?
Bitmap bmp = new Bitmap(100,100);
Graphics g = Graphics.FromImage(bmp);
g.FillPie(Brushes.Azure, 10, 10, 10, 10, 0, 20);
bmp.Save("imagine.gif");
Image1.ImageUrl = "imagine.gif";
Thanks
|
|
|
|
|
What makes you think that there's something wrong?
---
single minded; short sighted; long gone;
|
|
|
|
|
hmm..because it doesn't work? :-P
|
|
|
|
|
What do you mean by "doesn't work" exactly? What happens? Doesn't it draw the way that you expected? Do you get an error message? Does the computer crash and burn?
---
single minded; short sighted; long gone;
|
|
|
|
|
it just shows there is an image control but that's it.Doesn't draw anything.Just like when you can't see the picture and you have tou right-click it and choose show picture which in this case doesn't work.
|
|
|
|
|
Use Server.MapPath to get the physical address from your virtual address, so that the image is saved in the web folder. Otherwise it's saved in the work directory of the ASP.NET enginge, which probably is something like "c:\Windows\System32\".
---
single minded; short sighted; long gone;
|
|
|
|
|
Dear all,
i have created an xml file on my server to help me work offline, now i need to upload this file to the client machine
how could i do this???
|
|
|
|
|
What do you mean? You could Xcopy?
|
|
|
|
|
Public Shared vas As String
the code shar val in all setion
i want shar in one setion not all
Plz help me
Ahmed El-Badry
|
|
|
|