| ASP connect to dot net SOAP webserivce |
|
 |
Index ‹ Web Programming ‹ ASP/Active Server Pages
|
- Previous
- 1
- 2
- ASP.Net >> how to not to show progressive content in browserDoes anyone know how i can control/configure a webform in a way that its
content is showed up to the client only when the entire content had been
processed by the server?
I mean .... the client will see the entire page when it has been loaded
completely. Not in a way the the user see each part of the page being loaded
until the finish of loading page.
Any help will be wellcome.
- 3
- ASP.Net >> TRUE IF-statement gets ignoredHi Folks,
If got a piece of code in which a IF-statement is true, but still the ELSE
code is excecuted. (While debuging it constantly jumps to the ELSE, while
the expression, according to the Command Window & Watch is true)
Code:
if (Request.QueryString["Id"] != null)
{
if (ViewState["action"] == "editing")
{
(..)
}
else
{
(..)
}
}
Any help would be appriciated!
Greets,
Gab
- 4
- 5
- ASP.Net >> Caching a datasetThis is a multi-part message in MIME format.
------=_NextPart_000_0008_01C520D3.D9916560
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
im having my first play about with caching a dataset but seem to be =
having some problems in doing so!!
basically i have a dataset which i add to the cache as follows
Cache.Insert("myDS", dsResults, Nothing, DateTime.Now.AddMinutes(5), =
TimeSpan.Zero)
i then have a select button which i click so that the page is reloaded. =
so that i can only get the dataset from the cache
but when i do the following
dsResults =3D New DataSet
dsResults =3D Cache.Item("myDS")
i get Referenced object has a value of 'Nothing'.
what am i doing wrong??
Cheers,
Craig
------=_NextPart_000_0008_01C520D3.D9916560
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>im having my first play about with =
caching a=20
dataset but seem to be having some problems in doing so!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>basically i have a dataset which i add =
to the cache=20
as follows</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<P><FONT face=3DArial size=3D2>Cache.Insert("myDS", dsResults, Nothing,=20
DateTime.Now.AddMinutes(5), TimeSpan.Zero)</FONT></P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<DIV><FONT face=3DArial size=3D2>i then have a select button which i =
click so that=20
the page is reloaded. so that i can only get the dataset from the=20
cache</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>but when i do the =
following</FONT></DIV>
<DIV>
<P><FONT face=3DArial size=3D2>dsResults =3D New DataSet</FONT></P>
<P><FONT face=3DArial size=3D2>dsResults =3D =
Cache.Item("myDS")</FONT></P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<P><FONT face=3DArial size=3D2>i get Referenced object has a value of=20
'Nothing'.<BR><BR>what am i doing =
wrong??<BR>Cheers,<BR>Craig</FONT></P></DIV>
<P><FONT face=3DArial size=3D2></FONT> </P></BODY></HTML>
------=_NextPart_000_0008_01C520D3.D9916560--
- 6
- ASP.Net >> RegularExpressionValidator help please!Using a RegularexpressionValidator to control that a user types in correct
in a textbox:
The expression I have is this: \d{2},\d{4}
This means the user shall type in something like this "10,2004", This is
supposed to be a weeknumer comma year.
Since there are a maximum of 53 weeks in a year.. how do I check so that the
user do not type in a value exceeding 53 on the first two numers?
Please help
/Lars Netzel
- 7
- Frontpage Programming >> When to use a sub-web?Hi,
Appreciate if anyone can provide for when will be a good time to use a
sub-web?
For example, we recently added a blog software (developed with PHP scripts
and using MySQL) to our FrontPage (using Win 2003) web, and it has its own
index.php and so on.
We have done all the necessary customizations and now is ready to launch.
However, it just came to my mind that should we set up a sub web for the
blog (since we also open it for users to post articles in addition to reply)
or we can retain as what we are doing now, just putting it in a folder and
activate it from there.
Should have been asked this question earlier, but in any case, appreciate
your kind advise.
- 8
- ASP.Net >> Custom Repeater ClassI'm trying to create my own extended repeater class containing a
PagedDatasource instead of the normal datasource.
I'd then create a custom template and insert it at the bottom of the
repeater.
I'm not really sure where to start though..
Anyone help?
- 9
- ASP.Net >> sorting in data grid run-time error: Cannot find table 0.I am trying to implement the sort event in data grid. I set the data grid's
AllowSorting property = True. I implement the following code that should be
the event will fire when the user click any of the columns in the table:
Private Sub dgReport1_SortCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridSortCommandEventArgs) Handles
dgReport1.SortCommand
Dim sortOrder As String = e.SortExpression.ToString()
Response.Write(sortOrder)
Dim ds As New DataSet
Dim dt As DataTable = ds.Tables(0)
dt.DefaultView.Sort = sortOrder
dgReport1.DataSource = ds.Tables(0).DefaultView
dgReport1.DataBind()
End Sub
When I click any of the columns in the table, it throw the following run
time error on line: Dim dt As DataTable = ds.Tables(0).
Run-time error
============
Cannot find table 0.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Cannot find table 0.
I have no idea why table 0 has problem. Because I am able to get the table
as folows:
Dim dt As DataTable = ds.Tables(0)
dgReport1.DataSource = dt
dgReport1.DataBind()
Please advise! Thanks !!
- 10
- ASP.Net >> Displaying Stored Procedures using Grid ViewHi,
using .net 2
sql server 2005
Here is my situation:
I'm passing a variable in the url from a selection on Page A and need
to display the results on the Results page be based on that variable
in the url. I would like that variable to trigger a stored and
display information in formView or Grid View. Whats the best way to
accomplish this?
Page A
This is passing var from grid view:
<asp:HyperLinkField DataTextField="Open Issues"
DataNavigateUrlFields="Ticket Number"
DataNavigateUrlFormatString="results2.aspx?{0}" Target="_blank"
HeaderText="Open Issues" />
Results Page
<asp:FormView ID="FormView1" runat="server" DataKeyNames="Ticket
Number"
DataSourceID="SqlDataSource1"
OnPageIndexChanging="FormView1_PageIndexChanging">
<EditItemTemplate>
Ticket Number:
<asp:Label ID="Ticket_NumberLabel1" runat="server"
Text='<%# Eval("[Ticket Number]") %>'>
</asp:Label><br />
Technician Assigned:
<asp:TextBox ID="Technician_AssignedTextBox"
runat="server" Text='<%# Bind("[Technician Assigned]") %>'>
</asp:TextBox><br />
Issue Description:
<asp:TextBox ID="Issue_DescriptionTextBox"
runat="server" Text='<%# Bind("[Issue Description]") %>'>
</asp:TextBox><br />
Open Date:
<asp:TextBox ID="Open_DateTextBox" runat="server"
Text='<%# Bind("[Open Date]") %>'>
</asp:TextBox><br />
Work Notes:
<asp:TextBox ID="Work_NotesTextBox" runat="server"
Text='<%# Bind("[Work Notes]") %>'>
</asp:TextBox><br />
<asp:LinkButton ID="UpdateButton" runat="server"
CausesValidation="True" CommandName="Update"
Text="Update">
</asp:LinkButton>
<asp:LinkButton ID="UpdateCancelButton"
runat="server" CausesValidation="False" CommandName="Cancel"
Text="Cancel">
</asp:LinkButton>
</EditItemTemplate>
<InsertItemTemplate>
Ticket Number:
<asp:TextBox ID="Ticket_NumberTextBox"
runat="server" Text='<%# Bind("[Ticket Number]") %>'>
</asp:TextBox><br />
Technician Assigned:
<asp:TextBox ID="Technician_AssignedTextBox"
runat="server" Text='<%# Bind("[Technician Assigned]") %>'>
</asp:TextBox><br />
Issue Description:
<asp:TextBox ID="Issue_DescriptionTextBox"
runat="server" Text='<%# Bind("[Issue Description]") %>'>
</asp:TextBox><br />
Open Date:
<asp:TextBox ID="Open_DateTextBox" runat="server"
Text='<%# Bind("[Open Date]") %>'>
</asp:TextBox><br />
Work Notes:
<asp:TextBox ID="Work_NotesTextBox" runat="server"
Text='<%# Bind("[Work Notes]") %>'>
</asp:TextBox><br />
<asp:LinkButton ID="InsertButton" runat="server"
CausesValidation="True" CommandName="Insert"
Text="Insert">
</asp:LinkButton>
<asp:LinkButton ID="InsertCancelButton"
runat="server" CausesValidation="False" CommandName="Cancel"
Text="Cancel">
</asp:LinkButton>
</InsertItemTemplate>
<ItemTemplate>
Ticket Number:
<asp:Label ID="Ticket_NumberLabel" runat="server"
Text='<%# Eval("[Ticket Number]") %>'>
</asp:Label><br />
Technician Assigned:
<asp:Label ID="Technician_AssignedLabel"
runat="server" Text='<%# Bind("[Technician Assigned]") %>'>
</asp:Label><br />
Issue Description:
<asp:Label ID="Issue_DescriptionLabel"
runat="server" Text='<%# Bind("[Issue Description]") %>'>
</asp:Label><br />
Open Date:
<asp:Label ID="Open_DateLabel" runat="server"
Text='<%# Bind("[Open Date]") %>'>
</asp:Label><br />
Work Notes:
<asp:Label ID="Work_NotesLabel" runat="server"
Text='<%# Bind("[Work Notes]") %>'>
</asp:Label><br />
</ItemTemplate>
</asp:FormView>
- 11
- IIS >> Host Multiple SSL Websites on NLB Web ClusterHi,
I have a Web cluster built on Windows 2003 Network Load balancing service
with 2 cluster nodes - IIS 6.0 Web Servers.
I hosted a SSL Website and everything works fine.
Now I want to host another SSL website on the same Web Cluster. How can I do
that?
In a standalone environment, we assign an additional IP to the Web Server
and map that to the new website with SSL [as SSL site wont support Host
headers]
How can I do that in NLB environment?
When I add an additional IP to the Web Server it is getting configured as
additional Cluster IP and second SSL Website is stopping.
Any information or article on this problem will be helpful.
Thanks,
--
Ramesh medidi
- 12
- IIS >> win95 cant access IIS5 site (ntfs)Hi,
I have a user with an old machine running windows 95 trying to access the
wwwroot dir running in IIS5 (+ sharepoint team services). The dirs are
protected using NTFS permissions. Windows 2000, XP (and i think NT4) clients
access the site no problem.
Win95 machine connects direct from internet dialup connection to ISP. IIS5
is on port 8080.
Win95 machine gets stuck when attempting USER+PASS entry i.e it can
authenticate.
Thanks for any information.
Scott.
- 13
- Frontpage Client >> Pulling my hair out -GmailDoes anyone know how to access the Gmail Team? I have tried on 6
occasions to follow the lost password instructions to no avail. I've
also emailed google/gmail support 5 times but infuriatingly get an
automated response every time. For some reason my password for my and
since i have moved companies I don't have the original gmail invite.
I'm hoping this posting is seen by a member of the gmail/google support
team, if there is such a person employed by Google. Please help, I'm
going crazy.
lance@afrikings.com
- 14
- ASP.Net >> Setting SelectedIndex problemsHi all,
I am having a problem with the DropDownList control
consider the following code :
<script language="VB" runat="server">
Sub Page_Load(S As Object, E As EventArgs)
ddl.Items.Add("")
ddl.Items.Add("item1")
ddl.Items.Add("item2")
ddl.Items.Add("item3")
ddl.SelectedIndex = ddl.Items.IndexOf
(ddl.Items.FindByText("item3"))
SelIndex.Text = ddl.SelectedIndex
SelText.Text = ddl.SelectedItem.Text
End Sub
</script>
<html><head></head><body>
<form runat="server">
<asp:DropDownList ID="ddl" Runat="server"/>
<asp:Label ID="SelIndex" Runat="server"/>
<asp:Label ID="SelText" Runat="server"/>
</form></body></html>
In the Labels SelIndex and SelText, the correct values are
displayed (index = 3, text = item3)
But the visual text in the DropDownList control itself does
not change (it displays "item1")
I am probably missing something elementary here (I am new
to ASP.Net, so sorry if I am asking stupid or evident things)
Can someone help me with this? Thanks.
Filip.
- 15
|
| Author |
Message |
dripdrop

|
Posted: Sat Dec 16 13:07:59 CST 2006 |
Top |
ASP/Active Server Pages >> ASP connect to dot net SOAP webserivce
Hi All,
Can any one point me how I can use classic ASP to connect to a dot net SOAP
webserice?
The other company has set up dot net webserivce with web address like this:
http://domain_name/webservice/service.asmx
with method Login, that can take userid and password, then sends back an
authentication header (soapheader).
Thanks for help.
--
Ray
Web Programming92
|
| |
|
| |
 |
Jon

|
Posted: Sat Dec 16 13:07:59 CST 2006 |
Top |
ASP/Active Server Pages >> ASP connect to dot net SOAP webserivce
google "consuming a web service in ASP"
"Raymond" <EMail@HideDomain.com> wrote in message news:EMail@HideDomain.com...
> Hi All,
>
> Can any one point me how I can use classic ASP to connect to a dot net SOAP
> webserice?
>
> The other company has set up dot net webserivce with web address like this:
>
> http://domain_name/webservice/service.asmx
>
> with method Login, that can take userid and password, then sends back an
> authentication header (soapheader).
>
> Thanks for help.
>
> --
>
> Ray
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP/Active Server Pages |
- Next
- 1
- IIS >> SSL--Worked for 8 months, now 403 errors...We host multiple sites on the same IIS 5 box, each with its own ip.
Sometime yesterday the only site on this box that uses ssl (with
verisign cert) has started providing the generic error page when you
try to access anything in the site (dynamic, static html or even gif
files). If we remove the requirement for SSL (not acceptable as a
solution) we can view items just fine. This process has worked without
flaw for 8 months. No changes were made to the server.
We have:
verrified the SSL port is still 443.
verrified the IP resolves
verrified the code in the site works properly
verrified the certificate is still valid
verrified there is no virus on the machine
restarted the server multiple times
Any suggestions?
- 2
- ASP.Net >> Getting file permissionsHello.
I've been wondering for quite a while now if this even is without trying to open the file or something like that?
I'm trying to list all the files in a directory (with subdirectories) to which the logged in user has permissions. I'm using forms authentication and the permissions are specified in web.config files. Everything's fine as long as the listing of files goes, but I would only like to show the files to the user to which the user has permissions.
Does anyone know how to do this? Thanks alot..
- 3
- ASP.Net >> Outlook Web Access- Push TechnologyI'd like to replicate the push technology of Microsoft OutLook Web where when
a new email is sent to the logged in user a temporary window pops up with the
text 'You have new mail'. The same text also appears in the bottom left bar
of the application.
I'm more interested in the actual technology behind this. How is the 'Push'
implemented? Script Callbacks, XMLHTTP, or is it a true 'Push' with
Subsriber/Publisher functionality?
Seems like Java has the technology for implementing Push's, but looking
through the MSDN newsgroups, that does not seem possible(or feasible) in .NET.
Thanks for your help
Paul
- 4
- Frontpage Client >> Hotspots on an OnMouseover ImageHi there
I know enough html to get myself in trouble, but not enough to help myself, so I'm hoping someone can help me! I'd like to do the following
I have an image (IMAGE1.GIF) that I've applied the "Swap Image" behavior to - a new image appearsonmouseover (IMAGE2.GIF) and then it restores onmouseout (BACK TO IMAGE1.GIF). What I'd like to do is apply hotspots to parts of the image that appears onmouseover (IMAGE2.GIF) to take to separate pages in the site
So, in my site, here's an example
The original gif says
ABOUT SLAT
Onmouseover gif appears as same size and says
ABOUT SLAT
- EXECUTIVE SUMMAR
- MISSION & STRATEG
- WHY "SLATE?
I want the sub-menu to appear ONLY when you've mousedover the original gif (ABOUT SLATE). Then, I want the visitor to be able to scroll down to click on a submenu links - can be a hotspot or a table with another onmouseover - whatever you recommend. The key is that I DON'T want the submenu to appear UNLESS you've scrolled down from the original
Are you following? You can go to the site and see the onmouseover image now - it's not activated. I'd like each of the items below to be a hotspot or highlight and provide a hyperlink to a new page. If that can be accomplished a different way - e.g. a table, etc. - I'm happy to do that too
I *really* need your help! thanks
Alexa
- 5
- ASP.Net >> ASP.NET version 2.0, quick questionsHi all, I am going to be building a huge application in the coming year and
I am trying to decide whether I should go with framework 2.0 or stick with
1.1.
So, first off, what are the server requirements for hosting ASP.NET 2.0
applications, googling only brought up the system requirements for
installing the beta of visual express/ visual studio 2005..
Secondly, if I create an object in 1.1 can I reference and use this object
via 2.0 much like the current COM interop??
TIA
Mark
- 6
- ASP.Net >> Problems with aspnet_wp.exeSystem: Windows 2000 SP4
.NET Frameworks Installed: 1.0, 1.1 SP1
.NET Framework In Question: 1.1 SP1
Web Server: IIS 5
Process Model User: machine
Development Environment: VS.NET 2003
Development System: WinXP
The wednesday before Thanksgiving our web server started exhibiting some
incredibly strange behavior. On every hit of the a page it loads and
subsequently unloads the aspnet_wp.exe. I can watch it happen in Task
Manager when I load a page in the browser.
The web app is relatively involved so I removed the references, excluded
nearly everything and created a simple "hello world" type ASPX page w/ a
codebehind class. Even with this super simplified assembly the behaviour
occurs.
I have uninstalled all .NET frameworks along w/ IIS, deleted the contents of
\winnt\system32\intesrv and then reinstalled IIS followed by both frameworks
in order by version and the problem persists.
To may dismay, the event logs show nothing!
If anyone can offer any suggestions on how to proceed I would really
appreciate it.
Thanks!
- 7
- Frontpage Client >> Can I open a Microsoft Access file on my web site with Front Page.I would like use FP 2003 to open and edit tables in a database that is on my
web site. I get the message "the file is outside your entranet or on an
untrusted site. Microsoft Access will not open the file due to potential
security problems. Download the database..." I want to keep the database
online, so I don't want to download it. I am told by the tech support of the
web service provider that I need Enterprise Manager to to open and edit the
Access database online. Is this true? If not, how do I do it? Thanks-
- 8
- 9
- Frontpage Client >> Query a DatabaseI followed FP article 278613 How to Query a Database by
Using Multiple Criteria with a Drop Down Menu and it
worked fine. Now, I want to use my own access database.
I've tried to create the database connection instead of
using the Northwind sample. The mdb is located on the
server, and it appears to be connecting, but then I get
an error that says it can't find the Record Source list.
Any help would be appreciated.
- 10
- ASP/Active Server Pages >> Problem in creating folderHi
I'm trying to create a folder under D:\temp with new
folder name xyz
I have given permission to temp folder full control and
also added users iwam_machinename and iusr_bhavin.
I have also set up read and write access in my
application.
When I try to execute script, it doesnt show any error
but nothing comes up on the screen and Server gets hanged.
Thanx at advanced.
-bhavin :(
- 11
- 12
- ASP.Net >> UserControl event never runsHi...
I have an User Control that is loaded with Page.LoadControl(). It works
fine, but the code in the .ascx file never runs. an example:
control.ascx
------------
void Page_Load(object sender, EventArgs e)
{
myDiv.InnerText = DateTime.Now.ToString("d");
}
<div id="myDiv" runat="server"></div>
page.aspx (code behind)
---------
void OnInit(EventArgs e)
{
Control c = LoadControl("control.ascx");
Controls.Add(c);
}
The control is added, but the Page_Load event of the user control is
never called. Is it right? Or it has some kind of "UserControl_Load"
instead of Page_Load?
Or should i propagate the event manually in my code?
Thanks!
- 13
- IIS >> IIS and Win OSI am a newbie and I am confusing to use IIS and Win OS. I learn that Win 2000
goes with IIS 5, how about Win XP?
Also, the ways to configure (i.e., installing IIS, virtual directory,
ODBC...) are changed from the previous version to the newer version. Can you
please show me how to configure these stuff on Win XP. I have tried those
books that are old now and still not able to get it through. Or if you have
web links to help to configure these things, I would appreciate it.
Thank you for your help.
tim
- 14
- 15
- ASP.Net >> Cache ThumbnailsHi,
I've got 10 image thumbnails generated with GetThumbnailImage down the side
of each page of a site. However it seems the thumbnails are being
re-generated with every page request rather than cached in the browser. Is
there a way to cache the thumbnails or would I be better saving them to a
file? The thumbs change every hour so I really wanted to avoid having to
create a file for each one
Site is www.bookhead.co.uk right hand side
Jon
|
|
|