|
hi..i'm doing my project and i am new to asp.net
my teacher just issued me a webservice project and the method in the webservice
i need somebody to convert SOAP to ASP.NET 2003.
POST /CinemaTikectingWS/webServices.asmx HTTP/1.1
Host: 172.17.168.115
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "CHASSASIA/fnEnquireFilmRecords"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<fnEnquireFilmRecords xmlns="CHASSASIA">
<strFilmCode>string</strFilmCode>
<strFilmTitle>string</strFilmTitle>
<strFilmFormat>string</strFilmFormat>
<strFilmRating>string</strFilmRating>
<intReleaseMonth>int</intReleaseMonth>
<intReleaseYear>int</intReleaseYear>
<intReturnEntry>int</intReturnEntry>
<strReturnSort>string</strReturnSort>
</fnEnquireFilmRecords>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/>"
<soap:Body>
<fnEnquireFilmRecordsResponse xmlns="CHASSASIA">
<fnEnquireFilmRecordsResult>>xml</nEnquireFilmRecordsResult>
</fnEnquireFilmRecordsResponse>
</soap:Body>
</soap:Envelope></pre>
|
|
|
|
|
Hi Frds,
Please tell me good books for .Net
1.For Webservices
2.windows Application
3.Asp.Net other than (Unleashed and wrox)
4.JavaScript
Thanks.
|
|
|
|
|
Hi,
Kindly go through this link hope it will help u.
http://www.sql-server-vb-asp.net/
http://www.asp.net/learn/videos/default.aspx?tabid=63
All The Best...
|
|
|
|
|
How can I get all SessionID from server? Thanks a lot.
|
|
|
|
|
|
Server keep all SessionID in memory? I would know, if client sign out from web-site. Sorry for my english. Dmitriy. Thanks a lot
|
|
|
|
|
Hi all,
i have one doubt regarding exception handling statements sequence.
we have various exceptions like..
System.ApplicationException
System.ArgumentException
System.ArgumentNullException
System.ArithmeticException
System.IO.FileNotFoundException
System.IO.IOException
.....................
....................
if we want to catch IO errors and some general errors in the same code ....then is there any sequence that we have to follow.
i mean first catch block should handle only geneal exceptions, next catch block for IO errors...
or we can use any order??
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Rahithi wrote: if we want to catch IO errors and some general errors in the same code ....then is there any sequence that we have to follow
You should start with the most specific exceptions first and move to the more general. You can work out which are specific and which are general by looking at the base class of each exception. The most general (and therefore last) exception is Exception .
|
|
|
|
|
In my code below I'm trying to have the user click on an image. Then pass that associated ID of that image (through XML it is associated).
Any help is welcomed:
<%@Page Language="VB" Debug="True" %>
<script runat="server">
Protected Sub Formview1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewPageEventArgs)
MsgBox(sender.ToString)
End Sub
Sub Get_Shape(ByVal Src As Object, ByVal Args As ImageMapEventArgs)
Response.Write("<b>'" & Args.PostBackValue & "'</b> was clicked")
Response.Write((Me.Formview1.FindControl("lblID").ToString() & " Label Value"))
End Sub
</script>
<html>
<body>
<form id="Form1" runat="server" method ="get">
<asp:FormView ID="Formview1" runat="server" DataSourceID="XmlDataSource1" AllowPaging="True"
OnPageIndexChanging="Formview1_PageIndexChanging">
<ItemTemplate>
ID:<b>
<asp:Label ID="lblID" Runat="server"
Text='<%# XPath("@ID") %>' /></b><br />
<asp:Image ID="img" runat ="server"
AlternateText ="Alt Text" ImageUrl ='<%# XPath("@Path") %>' />
<asp:ImageMap ID="ImageMap1" Runat="Server"
ImageUrl='<%# XPath("@Path") %>'
AlternateText="Subprogram call image map"
HotSpotMode="PostBack"
OnClick="Get_Shape">
<asp:RectangleHotSpot
AlternateText="Pass 'Rectangle'"
Left="49"
Top="36"
Right="216"
Bottom="148"
PostBackValue= "t"/>
</asp:ImageMap>
</ItemTemplate>
</asp:FormView>
<asp:XmlDataSource id="XmlDataSource1" runat="server" DataFile="~/XML/d2.xml" />
</form>
</body>
</html>
XML file
<?xml version='1.0'?>
<Dogs>
<dog ID="1" Name="Bella.jpg" Path="Images\Gang\Pictures\Thumb\Bella.JPG"/>
<dog ID="2" Name="BellaChristmas.jpg" Path="Images\Gang\Pictures\Thumb\BellaChristmas.JPG"/>
<dog ID="3" Name="DSCF7099.jpg" Path="Images\Gang\Pictures\Thumb\DSCF7099.JPG"/>
</Dogs>
Thanks
|
|
|
|
|
I am working with an image similar to a watermark. This is what I am doing
Bitmap bmp = new Bitmap(Server.MapPath("Images\\image.jpg"));
bmp.SetResolution(120, 30);
Graphics g = Graphics.FromImage(bmp);
Color customBlue= Color.FromArgb(18, 82, 125);
//Create Font
Font fn= new Font("Tahoma", 7);
//Write
g.DrawString("Phone :" + this.txtPhone.Text, fn, SystemBrushes.WindowText, 340, 15);
my questions are How do I write the font in my customBlue color? and When i use the font in a smal
size th font gets distorted?
any insight?
thanks
|
|
|
|
|
I am using the FormView control to create a form with a number of different type of form elements.
I'm adding the form elements one at a time and testing my insert so that if something doesn't work, I can identify the form element causing trouble.
My first two form elements were drop down lists and work fine. Now I've added a ListBox where the user can select multiple items from the list. This form element is optional, so in my stored procedure I have set the parameters value to default to null in case the user skips this form element. It is expected that the user will select 0-3 itmes from this list, so I wrote 3 parameters in the stored proc to handle incoming choices from the list.
Now when I submit the form, no matter whether I choose any items or not from the listbox, I get this error message:
'Procedure or function sp_GPRA_InsertActivity has too many arguments specified.'
At this point I have 6 parameters declared in my stored proc and 6 <asp:parameter> items in the source code of my aspx page.
I am wondering how the asp engine handles the submital for items from a list box? Since I am using FormView there is no code behind for me to look at to see how things are being processed for me. As a classic .asp programmer this is frustrating for me because I feel like I don't know what's going on behind the scenes.I have searched the internet high and low for anything on how ListBox selections are sent as parameters and I can't find a thing.
Any ideas are greatly appreciated.
|
|
|
|
|
Try adding an event handler to the FormViews ItemInserting event and add a break point in the handler method. Then when you run it in debug mode you can see exactly what parameters are being passed (should be somewhere in the even argument object)
|
|
|
|
|
I have been coding .net and using VWD for less than a week. i don't know how to do any of that, though in concept I understand what you are saying.
|
|
|
|
|
Hopefully this helps:
Add this attribute to your FormView tag:
OnItemInserting="FormView1_ItemInserting"
(it got removed - should read On Item Inserting all one word)
And then in your code behind:
protected void FormView1_ItemInserting(object sender, FormViewInsertingEventArgs args) {
}
(that was off the top of my head, the args type might be a bit wrong)
Now run the application in debug mode (just hit F5) and open the page. VS will pause the process at the break point and you'll be able to inspect the args object which I think contains the parameters.
|
|
|
|
|
Hi Everyone
I have created 4 5 webpages in ASP.net using VB.net.
They were all working fine.
But recently i have found that none of the buttons on the webpage is visible at runtime!!
all the other controll (including third party controlls) are visible and working.
Can anyone help me out on this.
Best Wishes,Asgher
|
|
|
|
|
Asgher Mansoor wrote: But recently i have found that none of the buttons on the webpage is visible at runtime!!
Check the visible property of the controls. It should be true. If it is false then asp server doesn't create the html control for same. so it will not visible in any case.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
If they are set as visible also check whether the HTML is being sent to the client, in which case it could be a CSS related problem.
|
|
|
|
|
Hi
Anybody know where I can get my hands on a simple to follow asp.net tutorial. I need to setup a site were a user can enter search criteria on current members of the site and there details are displayed.
I’ve seen a tutorial somewhere along these line before but just can remember were. I know a little asp but not much .net, so it’ll have to be simple.
Thanks in advance
|
|
|
|
|
starfox_2100 wrote:
Anybody know where I can get my hands on a simple to follow asp.net tutorial
QuickStart[ ^] for asp.net 2.0
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
hi friends,
i have been developing an asp.net application.
on one of its page, i have a button for which i have defined both events OnClientClick() & OnClick().
OnClientClick() event opens a web page which needs some information passed into session object by OnClick() event of the same button.
when i run the application, OnClientClick() event fires before OnClick() event and thus it results in an error.
i want to change the order of the events here. i want OnClick() event must fire before OnClientClick() event fires.
how can i do this ?
plz help me in this matter.
Varun
|
|
|
|
|
Can you not pass the required data in the JS call in onClientClick?
|
|
|
|
|
varun_789 wrote: i want OnClick() event must fire before OnClientClick() event fires.
how can i do this ?
AFAIK, you can't....you can stop the Click handler executing by returning false from the function, but I don't think you can change the order.
Guess you're going to have to call the onclick handler, then register some client script afterwards...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I want to use an ActiveX in my ASPX/HTML page. Everything is fine except for the following requirement.
I want to display the context menu which is shown by browser in Information Bar (Install ActiveX Control...) on the right click of the html page where the ActiveX component is used.
Please see the screen shot from the given URL for clear requirement.
http://63.134.215.155/OpMem/sshot.jpg[^]
Thanks
-Gurdev
|
|
|
|
|
I don't think you can, its the browser that handles that theres not much you can do about it.
|
|
|
|
|
I have alredy added a DataSet name Publications where I have add three tables.
Table(0) is Query_Volume_VolumeLessons
Table(1) is Query_Volume_Sectos
Table(2) is Query_Volume_Themes
Also put data on Table(0) from SQL SERVER DataBase
Now How can I put data to Table(1) From Table(0) , using a sqlQuery
Thanks
Sarfarj Ahmed
|
|
|
|