|
sheemap wrote: how make existing roll number result project where enter roll number and see result on other page. You really need to give a lot more detail than that if you want a sensible answer.
sheemap wrote: its urgent Not to anyone here.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I think for that project you have work or self coz it is little bite big to post on web.
what you have to work
Create a database and table
Input all data then make search box where people will enter roll no then send the data to other page using post or get. in that page verify the roll no and if exist then get the data and print
Kislay Kumar
Trustcity
|
|
|
|
|
I wrote a program in VB.Net some time ago which includes a text box for input associated with a key press event routine that converts lower case alphabetic chars to upper case, accepts upper case alphabetic chars and one other special character, and discards any other key presses. I would like to provide a web version of the application but am yet to find any programming language which provides the ability to intercept and change key presses in this way.
Neither ASP or WPF has any obvious way to do this so I've reconciled myself to needing to learn a new language but obviously would like to make sure I'm not stumbling along in those that won't actually let me do this ultimately. So is there any one language in which you can guarantee I will be able to reproduce the required behaviour or should I just abandon the project now?
|
|
|
|
|
The answer is Javascript (or one of the 'packages' that is based on it, like jQuery). It runs in the browser, so it can catch events like user keyboard/mouse operations. Look at http://www.w3schools.com/jsref/event_onkeypress.asp[^] for a start, and stroll around that neighbourhood for examples.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thanks for the suggestions. I guess it's Javascript learning time then.
|
|
|
|
|
JavaScript for ASP.NET and WPF supports this though the PreviewTextInput event.
|
|
|
|
|
hi
i have different list in accordion format
i want to highlight the list item according to the page
<ul class="accordion" id="accordion-4">
<li ><a href="#">Hollywood</a>
<ul>
<li><a href="#">POP</a></li>
<li><a href="#">Rock</a></li>
<li><a href="#">Folk</a></li>
<li><a href="#">Jazz</a></li>
<li><a href="#">Country</a></li>
<li><a href="#">Blues</a></li>
</ul>
</li>
<li><a href="#">Bollywood</a>
<ul>
<li><a href="#">POP</a></li>
<li><a href="#">Rock</a></li>
<li><a href="#">Folk</a></li>
<li><a href="#">Jazz</a></li>
<li><a href="#">Country</a></li>
<li><a href="#">Hindu Stani</a></li>
<li><a href="#">Film Songs</a></li>
</ul>
</li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</li>
</ul>
the above list is the sample list
and i am using bellow code
<script type="text/javascript">
$(document).ready(function($){
$('#accordion-4').dcAccordion({
eventType: 'hover',
autoClose: true,
saveState: true,
disableLink: true,
menuClose: false,
speedIn:10,
speedOut:10,
showCount: false,
})
});
</script>
can any one help to me.
|
|
|
|
|
You could do this several way such as sending a numeric ID to a javascript function that corresponds to a link in your list. When clicked, and/or the page has done a round trip read that numeric ID back into a function that highlights that link.
This is just a crude example of javascript that take an element's ID and turns its background bright Yellow.
function highlight(linkID)
{
var link = document.getElementById(linkID);
link.style.backgroundColor = "#FFFF00";
}
If you want to go about it in a STATIC way you could set up each page where the link itself has not only a CSS class definition but an ID as well, for example:
<ul class="sub-menu">
<li id="CURRENT_PAGE"><a href="#">POP</a></li>
<li><a href="#">Rock</a></li>
<li><a href="#">Folk</a></li>
<li><a href="#">Jazz</a></li>
<li><a href="#">Country</a></li>
<li><a href="#">Blues</a></li>
</ul>
Now define your CSS
.sub-menu { ..... }
#CURRENT_PAGE { background-color:#FFFF00; }
The choice is up to you, good luck!
I once knew a man with a wooden leg named Smith, I never asked what he named his other leg.
|
|
|
|
|
can any one please help me in writing
A raw soap xml packet to be posted to WCF and to retrieve the response
Here we are not using either the service reference or the proxy.
|
|
|
|
|
I want the code for advanced search for a dating site.I was unable to write it correctly.
"Lookingfor(Male,Female),Age(18,19,20,21,22...etc),Occupation(Teacher,Engineer....etc),Education[B.Sc(Science),B.A(Arts)....etc]" are the features in the Advanced Search option.I want the correct code in php.Please hekp me.
Thankyou verymuch
|
|
|
|
|
udara1985 wrote: I want Please read the guidelines[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
It does not work like this here.
Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.
Try them and tell if you face issues.
Members will be more than happy to help you.
|
|
|
|
|
Countered 2-vote
C# has already designed away most of the tedium of C++.
|
|
|
|
|
Hi All,
I'm accessing the inetpub folder from a share (mapped drive) of our development web server. When I try running the application from Visual Studio on my machine I receive the below error message. However, when I run the application from the web server, browse through IIS, the application shows up with no issues.
Error message: “Could not load file or assembly 'DataWindowInterop, Version=2.5.0.0, Culture=neutral, PublicKeyToken=cc0f66dd9541b3da' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)”.
Could anyone point me in the right direction as to how to solve this DataWindowInterop error? Does it have something to do with the DataWindow not being accessible from the web server? When I bypass the error message in Visual Studio all that is shown in the browser is the directories, as expected being that the Data Window isn't accessible.
Any help would be really appreciated.
Thank you
|
|
|
|
|
Try it from a local drive. Running an application from a network drive is more restricted than from a local drive.
Philippe Mori
|
|
|
|
|
I was hoping to get it working on the local machine. Working on the server would be my last resort.
I located a reference to the DataWindowInterop in the project file and the actual .dll file is in the bin folder.
Any ideas as to why this error is being received?
Thank you
|
|
|
|
|
using System.Security.Permissions
The problem is that the webserver is running everything locally through its own IIS user and your code on the local machine is accessing through a "remote" connection. I once ran into a similar problem using a mapped folder.
You only need to set up the permissions for your development machine, NOT the development SERVER, just the machine you are actually writing code on.
You'll need to figure out just which permissions you need to set but here is the MSDN link for the above namespace.
System.Security.Permissions Namespace
I once knew a man with a wooden leg named Smith, I never asked what he named his other leg.
|
|
|
|
|
Double click that error it will shows some line in design page...Delete it
|
|
|
|
|
Hi I hope somone can help with my dilema I am using this code to load an external page (contact form ) into an ajax panel I have tried several (contact forms) some from this website however when I submit the form I get errors either saying it cannot find the page or it just refreshed to the main default page
<pre lang="java"><script type="text/javascript">
$(document).ready(function () {
$('#panel1').slidePanel({
triggerName: '#trigger1',
position: 'fixed',
triggerTopPos: '475px',
panelTopPos: '495px',
ajax: true,
panelOpacity: 0.8,
speed: 'slow',
clickOutsideToClose: true,
ajaxSource: '/ContactUs/Default.aspx'
});
});
</script>
this is the contact form I am trying to use
<pre lang="HTML"><html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Contact Us</title>
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.blockUI.js" type="text/javascript"></script>
<script type="text/javascript">
$.validator.setDefaults({
submitHandler: function() {
$.blockUI({
message: "<div style='color:White;'><h1>Thank you!</h1><br/><span style='font-size:12px;'>We'll get in touch with you asap.</span></div>",
fadeIn: 500,
fadeOut: 500,
timeout: 3000,
showOverlay: false,
centerX: true,
centerY: true,
css: {
width: '350px',
right: '10px',
border: 'none',
padding: '5px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
opacity: .6,
color: '#fff'
}
});
this.document.form.submit();
}
});
$().ready(function() {
$("#contactForm").validate({
rules: {
email: {
required: true,
email: true
}
}
});
});
</script>
</head>
<body>
<h1>Contact Us</h1>
<form id="contactForm" action="contact.ashx">
<table>
<tr>
<td>
<label for="name">Name*</label>
</td>
<td>
<input id="name" name="name" class="txtField required"/>
</td>
</tr>
<tr>
<td><label for="email">E-mail*</label></td>
<td>
<input id="email" name="email" class="txtField required" />
</td>
</tr>
<tr>
<td><label for="Phone">Phone</label></td>
<td><input id="phone" name="phone" class="txtField" /></td>
</tr>
<tr>
<td><label for="Message">Message*</label></td>
<td><textarea name="message" rows="5" cols="20" class="txtField required" id="Textarea1"></textarea></td>
</tr>
<tr>
<td style="text-align:right;"><input name="submit" type="submit" value="submit" /></td>
</tr>
</table>
</form>
</body>
</html>
and the code behind
using System;
using System.Web;
using System.Net.Mail;
public class contact : IHttpHandler {
public void ProcessRequest (HttpContext context) {
MailMessage message = new MailMessage();
message.From = new MailAddress("contact@southlabs.com");
message.IsBodyHtml = false;
System.Net.NetworkCredential mailAuthentication = new
System.Net.NetworkCredential("test@gmail.com", "passwords");
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com", 587);
mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
message.To.Add(new MailAddress("test@gmail.com"));
string name = context.Request.Params["name"];
string email = context.Request.Params["email"];
string phone = context.Request.Params["phone"];
string msg = context.Request.Params["message"];
message.Subject = "[New Web Contact]: Message from "+ name;
System.Text.StringBuilder builder = new System.Text.StringBuilder();
builder.AppendLine("Name:"+ name);
builder.AppendLine("email: "+ email);
builder.AppendLine("phone: " + phone);
builder.AppendLine("Message: " + msg);
message.Body = builder.ToString();
mailClient.Send(message);
context.Response.Redirect("default.aspx");
}
public bool IsReusable {
get {
return false;
}
}
}
|
|
|
|
|
Remember that the file which loads the contactform has to be in the same folder as your Contacts.ashx. Or else it won't work (404, file not found)
If it's not in the same path/folder you have to change the action-attribute in the form-tag.
--------------------
When Chuck Norris' dreams come true, your worst nightmares begin.
|
|
|
|
|
Hi All,
I have my first SOAP project coming up soon and really need some clarification on how the communication part works. More specifically, I need to consume data from a web service using SOAP. So, maybe it's more of a web service question than SOAP, I am not really sure. Here is what I have gathered so far about the communication aspect from reading and looking at code examples.
All SOAP web services provide a WSDL file. Using this file you can generate client side code by using wsdl.exe or SvcUtil.exe. You can also add a pointer or URL to the WSDL file as a service reference and access the methods that way. I have tinkered a bot with these things and produced the files. This part makes sense to me. The part I don't understand is how as a developer are we to know HOW to use the code produced ? An example would be this. In my upcoming project the 3rd party who owns the SOAP based web service provided a couple of very small code examples. In these examples a couple of the methods take string values as parameters. In the example, there is no way on earth I could know what values goes into these parameters. They appear to be things the their developer has a switch statement in the server code or something where he/she decides to do something based on what he/she receives as a parameter value but how the heck am I suppose to know what to send ? I am not talking about something intuitive like "yes" or "no", these are parameter values like "EU ROHS|REACH SVHC (46)". And I have to assume if you miss the pipe, it doesn't return the right result. So how on earth could I know the format without any documentation ? So, my first instinct was that they MUST PROVIDE documentation on how to use it. That makes sense. Well, while I am waiting for the project to ramp up I thought I better start getting more familiar with this topic. I started reading and looking at code snippets and from what I can tell, this seems to be pretty typical. Someone writes a web service and you, as the consumer, should just know how to use it. No documentation is provided like you would typically receive with a proprietary API. So this makes me think I am missing something. Is there something that I have not read about where you can figure out how to use a service without the need for any documentation ? Some way to figure out that (in SOAP anyhow) this tag accept these 5 values, and this tag accepts these 3 values. I don't understand how as a consumer I can know what to send in any particular tag. Is there something available to determine this like the way that the SOAP WSDL files can be used to produce client side code maybe ? I am very confused about this aspect of SOAP and web services.
Any insight would be greatly appreciated.
|
|
|
|
|
I not sure if this helps you.
But a Web Service is a way to get or post data to a web server, without using a page or form, in other words, you don't have to type the data in.
A Web Service can accept many different types of input, the most basic being JSON, and the most complex in my opinion is SOAP. XML is the basic foundation for packaging data to be sent or received.
Overall, to learn how to send and receive data to a web service, you start with learning how to create XML on the fly, and how to read back the XML, allowing for any element and value that may arise. Parsing the response elements is the hardest part.
SOAP is pretty interesting. I've seen some really huge WSDL files from FedEx, In which every possibility you can think of is built-in the file.
Some fields or elements are just populated with text, like a address, and others are enumerated, in which it can only be one of the defined values.
It's been awhile since I've work with SOAP, but You have to drop the SOAP file in your project somewhere, and make a reference to it, and load it as an object. And then goes through the object elements and populate them with your data.
Sometimes, a SOAP file can be hard to read, so you load it up in a viewer like Liquid XML, and it will give you a picture of the structure.
MrAurora wrote: values like "EU ROHS|REACH SVHC (46)"
I'm not sure what to make of that, looks like 2 choices, or several choices listed as parameters, seperated by |, split
MrAurora wrote: <layer>this tag accept these 5 values
Enumerated, only accepts those 5 possible anwsers, like multiple choice question on test.
MrAurora wrote: SOAP WSDL files can be used to produce client side code maybe
It's all server side code, designed to transmit from one server to another.
|
|
|
|
|
Thanks for replying ! Unfortunately, I am stuck with SOAP as this is what they offer for communicating with their service. I am familiar with the XML bit too. I've done plenty of that. I just don't get the enumerated bit.
jkirkerx wrote:
Enumerated, only accepts those 5 possible anwsers, like multiple choice question on test.
I understand that the value can be only one of 5 pre-determined values but how do I know what the 5 acceptable values are ? That's the problem I am having.
In your FedEx example, are you saying that when there are 5 acceptable values for a field, they should be defined in the WSDL file ? If so, that is the part I am missing. I do not remember seeing anything like that in the WSDL file provided to us but I will have to dig thru it again and see if I just missed it.
Also, after digging into the sample code (which is VERY small - just a few lines of code) provided to us by this 3rd party company I also see that in one line of code where he grabs a value from the returned data he parses an array and returns the 2nd element. Again, without any documentation how are we, as developers, suppose to know which element is the correct one ? It's one thing if you can see the source code or have documentation but seems to be impossible to just start coding away and when you come across an array just go "Yup, I'll use element 1". I don't understand how we could posible know that. Yet this lack of documentation appears to be the norm when it comes to these soap webservices. No documentation, just the WSDL.
Thanks again for replying. It's very frustrating for me not understanding how this works when I am so comfortable with coding in general...
|
|
|
|
|
It's been a while since I have done SOAP. This is a small sample from a vendor of mine, that I wrote to. SOAP is sort of an XSD format, this sample has the enumerators in it. Perhaps it just a better written SOAP file than what you have. I can't post the whole thing due to my contract with them.
You can see the enumerated values, in which it can only be those choices. Like I said, SOAP is sort of like XSD,but is called a WSDL file.
<xs:simpleType name="NotificationSeverityType">
<xs:annotation>
<xs:documentation>Identifies the set of severity values.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="ERROR"/>
<xs:enumeration value="FAILURE"/>
<xs:enumeration value="NOTE"/>
<xs:enumeration value="SUCCESS"/>
<xs:enumeration value="WARNING"/>
</xs:restriction>
</xs:simpleType>
I can write XSD off the top of my head, it took me years of practice to understand XSD, and soap is pretty similiar. I used Liquid XML Light when I started, in which they have a great GUI for designing and viewing XSD and SOAP files, plus you can run then, and create sample XML for testing to make sure you get the correct results.
MrAurora wrote: I also see that in one line of code where he grabs a value from the returned data he parses an array and returns the 2nd element.
The file could be globalized, and for your use, he grabs the 2nd value. Or it could be conditional, in which 2 sets of data exist. I do the same thing, in XSD, you have to define all data fields or elements.
My answer is generic, because I don't know what your using, PHP, ASP.net, Sun Java, I write in ASP.Net, and have never done XSD or SOAP in PHP.
I just know that in ASP.Net, I can load the WSDL file as a reference object, and can write out my XML in the proper format, and send it to a test server, that will respond with error messages, telling me what is missing, or is malformed.
MrAurora wrote: but seems to be impossible to just start coding away
Yes SOAP is frustrating, the first thing to learn is how to place the WSDL file in your project, turn it into an object,
Example:
In asp.net, you import the WSDL as a Web Service first, now you have a source
now you load the webservice as an object
Dim register As RegistrationService_V1.RegisterCSPUserRequest = New RegistrationService_V1.RegisterCSPUserRequest ' Build a Register CSP User object
Now you type register. and look for your first element, then you create a new instance of that element, and program the child elements of that element
register.WebAuthenticationDetail = New RegistrationService_V1.WebAuthenticationDetail()
register.WebAuthenticationDetail.CspCredential = New RegistrationService_V1.WebAuthenticationCredential
register.WebAuthenticationDetail.CspCredential.Key = Product_CredentialKey
register.WebAuthenticationDetail.CspCredential.Password = Product_CredentialPassword
When done packaging, you can transmit it, and your response will be the reply object. The transmission coordinates is built into the WSDL file. Regsiter is the SOAP WSDL file you built, reply is the response from the server, that is build into the SOAP file
Dim reply As RegistrationService_V1.RegisterCSPUserReply = registerUser.registerCSPUser(register)
response_writer = New StreamWriter(Context.Server.MapPath("RegisterCSPUser_Response.xml"))
response_serializer.Serialize(response_writer, reply)
response_writer.Close()
Now you parse out the reply object
Select Case reply.HighestSeverity
Case RegistrationService_V1.NotificationSeverityType.SUCCESS
Success = True
Credential_WebAuthenticationCredential_Key = reply.Credential.Key
Credential_WebAuthenticationCredential_Password = reply.Credential.Password
For Each notification As RegistrationService_V1.Notification In reply.Notifications
NotificationMessage = notification.Message
Next
It should be pretty close for PHP, same concept. Don't worry about the data, just get the framework going first, you can always call them or email them with your code, for help in the data part, or the response will say what's wrong.
|
|
|
|
|
Wow, you are the man. I really appreciate the response. Actually, I am using ASP as well so this is a perfect answer for me. I did figure out the bit about referencing the WSDL file as a service reference on my own before ever posting this question but I would not have known anything about registering it. I aprpeciate the tip about Liquid XML light too. This information should be very helpful. Thanks alot (thought I still do not see the enumeration values in the WSDL file !)
|
|
|
|
|