|
Hi everyone,
I have some web services set up in IIS on Windows 2003 server. I am able to get to the test page by putting the servername in the URL but not if I use localhost. I have had the same problem with websites. Why would localhost not work? The ip address is listed correctly in the hosts file. The servers are always virtual machines (Virtual Server R2 or HyperV). Is there something different I have to do because it's a virtual machine?
Thanks for any ideas!
|
|
|
|
|
I have a gridview that row's cells contain textboxes. Currently, I highlite the row, in yellow using javascript, by changing the backgroundColor of each of the rows cell's textboxes. To set the backgroundColor I use the .childNode[0].style.backgroundColor = 'Yellow', see code below:
gridViewCtl.rows[index].cells[i].childNodes[0].style.backgroundColor = 'Yellow';
Now, I have a set of css files defined and would like to use a color defined in my css. Does anyone know how this can be done?
Thanks,
Steve
|
|
|
|
|
Don't cross-post - it's bad forum etiquette
|
|
|
|
|
Sorry, I thought I placed it in the wrong forum but will not do it again.
|
|
|
|
|
Specify a class in the css, and use the className attribute in Javascript to set the class of the rows or the class of an element containing the rows.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi you can make use of this piece of code
gridViewCtl.rows[index].cells[i].childNodes[0].className = 'your_class_name';
Hope this helps.
Regards,
Vengat P
|
|
|
|
|
I have been trying to add a javascript function to display information when there is a moveover a grid, and i want the message to disapear on its own after a (reasonably)short time, say a message that just say "use ctr + shift to select multi rows", but i cant seem to find this info, does anyone know how to do it or where to find info on how to do it.
|
|
|
|
|
i observe gmail,yahoomail.. these are same in any resolution
how to is possible using table tags.....
Best Regards
Rajesh Kumar Chekuri
www.rajeshchekuri.co.cc
|
|
|
|
|
Instead of specifying fixed widths in pixels, use percentages or ems.
|
|
|
|
|
But problem is with images...
Best Regards
Rajesh Kumar Chekuri
www.rajeshchekuri.co.cc
|
|
|
|
|
Gmail and yahoo don't resize images.
|
|
|
|
|
Hi all
Can you please tell me what is the default timeout period for session and db connection.
siri
|
|
|
|
|
Depends on your webserver/DB...
|
|
|
|
|
default timeout period for session 20 mint
if u want change
Session.Timeout = 60
Best Regards
Rajesh Kumar Chekuri
www.rajeshchekuri.co.cc
|
|
|
|
|
I am using VB.NET.
I am new to web services, and have been given the instruction that I am to send an XML document via HTTPS POST and receive a response XML document. The web service address I have been given has no ASMX file, WSDL file or DISCO, so from what I can gather I cannot use dot.NET's built in web service controls. The address I have been given to post these calls to, is in is the following format:
https://www.server.com/WebService
(I have replaced the real server name)
I swear I have read the entire internet on the topic.
I have a couple of questions
1) can it be done with a web service address formatted such as the above (no ASMX WSDL)?? (I presume it must)
2) Are any of the approaches I have attempted below valid / should work?
3) I keep receiving an error "unable to connect to the remote server", are my issues all their fault? (I doubt it) and if not, what am I doing wrong? How can I do this?
Approaches I have tried include:
(don't get too caught up with the fact some are incomplete or some of the data or calls look silly, I'm really trying to illustrate the techniques that have failed)
Dim oRequest As HttpWebRequest = WebRequest.Create("https://www.server.com/WebService")
Dim oStream As Stream = oRequest.GetRequestStream
Dim oXML As Xml.XmlTextWriter = New Xml.XmlTextWriter(oStream, Encoding.GetEncoding("UTF-8"))
address = New Uri("https://www.server.com/WebService")
request = DirectCast(WebRequest.Create(address), HttpWebRequest)
request.Method = "POST"
request.ContentType = "application/x-www-form-urlencoded"
<WebServiceBinding("SomeBindingName", "SomeBindingNS")> _
Public Class CustomProxy
Inherits SoapHttpClientProtocol
<SoapRpcMethod(Action:="urn:AstroIntf-IAstro#GetSunriseInfo", RequestNamespace:="run:AstroIntf-IAstro")> _
Public Function GetSunriseInfo(ByVal Latitude As Double, ByVal Longitude As Double, _
ByVal Year As Integer, ByVal Month As Integer, ByVal Day As Integer, _
ByVal TimeBiasMinutes As Integer) As String
Me.Url = "https://www.server.com/WebService"
Dim ret() As Object
ret = Me.Invoke("GetSunriseInfo", _
New Object() _
{Latitude, Longitude, Year, Month, Day, TimeBiasMinutes})
Return CType(ret(0), String)
End Function
End Class
Dim oClient As New WebClient
Dim oStream As Stream = oClient.OpenWrite("https://www.server.com/WebService", "POST")
Dim oWriter As StreamWriter = New StreamWriter(oStream)
oWriter.WriteLine("Hello world")
oWriter.Close()
and good old fashioned html:
<form target="_blank" action='http://www.server.com/WebService' method="POST">
<table>
<tr>
<td>Enter something:</td>
<td><input type="text" size="30" name="test1" /></td>
</tr>
<tr>
<td></td>
<td align="right"> <input type="submit" value="Submit" /></td>
</tr>
</table>
</form>
|
|
|
|
|
I have a gridview that rows cell's contain a textbox each. In javascript I am trying to set the backgroundColor of one of the textboxes. In the javascript I am able to access the cell itself, see below:
gridViewCtl.rows[1].cells[1]
However, I don't know how to access the textbox that cells[1] contains to set its backgroundColor. Can anyone help?
Thanks,
Steve
|
|
|
|
|
This may not be the best way of doing it; however, it is working for me. See below:
gridViewCtl.rows[1].cells[i].childNodes[0].style.backgroundColor = '#ff0022';
If anyone has a better technique or knows how to do it using css, please let me know.
Thanks,
Steve
|
|
|
|
|
I need to change the value declare in aspx.vb via javascript my code is like this
//// My Custom Image Class /////
Public Class imageClass Inherits System.Web.UI.WebControls.Image
Public imageLabel As String = ""
End Class
/////// Default.aspx.vb ////////
Protected Overrides Sub OnInit(ByVal e As EventArgs)
Dim picture As imageClass = New imageClass
pholder.Controls.Add(picture)
/// THIS SHOULD CHANGE VIA JAVASCRIPT///
picture.imageLabel = "LabelOne"
picture.Attributes.Add("onclick","javascript:click 1('" & picture.ClientID & "')")
End Sub
Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit.Click
Dim NewImage As imageClass = New imageClass
For Each con As Control In pholder.Controls
If TypeOf con Is imageClass Then
/// SHOW OLD VALUE DECLARE IN ASPX.VB ///
MsgBox(CType(con, imageClass).imageLabel)
end if
Next
End Sub
/////// Default.aspx ////////
<script type="text/javascript" >
function click1(id1){document.getElementById(id1).setAttrib ute("imageLabel","Click");}
</script>
<html>
<body>
<form id="form1" runat="server">
<asp : PlaceHolder ID="pholder" runat="server" ></asp : PlaceHolder>
<asp : Button ID="Submit" Text="Submit" runat="server" />
</form>
</body>
</html>
thanks in advance
|
|
|
|
|
Hey all
i am new with web services and as start i created a web service with small funcion and it was working fine, but when i try to practice it more by connecting it with DB i get the following Error
the XML element "enablethemeing" from namespace "http://tempuri.org/" is already present in the current scope. Use the XML attributes to specify another XML name or namespace for the elemnt
so what i did wrong
all what i do is open an SqlDataReader, return it to another function, then fill it in DataTable
can you help me guys?
PS: I tried to copy the code but i could not and i belive this is one of many problems with IE 8.
thank you in advance
|
|
|
|
|
Hi,
Please provide me code definition about how to include Style Sheets in ASP program
Regards,
Vidhya R
|
|
|
|
|
It's just the same as for an HTML page - you just need to include them in the HEAD part of your page.
|
|
|
|
|
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</link></head>
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
The topic says it all.
I wish to be able to resize an image using VBScript.
I have been googling for +- 3 hours now - My google dork is down to:
VBScript+Image+Resize -".NET" -"ImageMagick" -"OWC" -"CS3" -"PDFLib" -"imgsz.asp" -"software" -".exe" -"ReDim" -"Javascript" -"CSS" -"MajunX" -"Download"
And so far, all I've found are broken Scripts, broken code, "Visual Resizing" (img height = "250" - Which still has the same prob if it's a 3MB image, as it takes the same time to load...), working examples (With no working code), ActiveX Controls (Not an Option), etc, etc, etc...
I was wondering if anyone could offer any assistance?
Much Appreciated!
- Reelix
-= Reelix =-
modified on Monday, October 20, 2008 5:04 AM
|
|
|
|
|
Although it would be theoritically possible to resize an image using plain VBScript, it's not practically useful. It would simply take too long time for the code to run.
You need a third party component to resize images in VBScript.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|