|
You need to add a parameterless constructer to serialize the object for the web service. You don't have to put any code in the constructor but it has to exist. You also will not be able to have any read only properties for they can't be set when the object is serialized.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks for answering. I am wondering is there any particular reason for adding a default parameter less constructor and the readonly properties. Is there any place I can depend on or lookinto to get further detailed idea.
Thank you
|
|
|
|
|
If i have a site with name abc.com and i want to use this site contents with other domain names like add.com, subtract.com using the database of abc.com. The add.com and subtract.com is my partners domains but i don't want they know the username and password of my database. How i can do that using ajax?
|
|
|
|
|
Your database connection string need to be stored somewhere, whether it be hard coded it your data access layer (a poor choose) or in a configuration file. The config file can be encrypted, thus preventing unwanted discovery.
Ajax is not the tools for this. Please do yourself a favor and research before throwing about names.
only two letters away from being an asset
|
|
|
|
|
A while ago I posted a message regarding an ASP.NET (.NET 2.0) webstie I am working on for a client, which utilizes the Membership API. The problem was that a seemingly random contingent of the 400+ users are having password change/reset problems. Apparently the users change their passwords, and then after a period of time their login magically stops working.
The obvious answer is that the users making typos. Since I was using asymmetric encryption (and it's way too late to back out of that) in the Membership API, I added a mid-level plain-text data capture that captures all users' login/password-related data input into a table with the user's unique ID, timestamp, and summary of the action being performed -- essentially an audit log.
Through that log I have been able to verify the users are NOT making typos. In the most recent instance, I used the audit log to attempt to log in as the user myself using all passwords that had been associated with the account. NONE of the passwords seem to be valid.
Has anybody ever heard of the Membership API magically losing and/or corrupting passwords? Does anyone have any idea what could be causing this?
Thanks for your help.
|
|
|
|
|
The aspnet_membership table has several counters in it. Things like failed login attempts etc. What are you seeing there? One thing I have experienced, is some case sensitivity issues. Anyway, that is my only thoughts, what do the counters say and the passwords are case sensitive so that might be part of the issue.
Hope that helps.
Ben
|
|
|
|
|
Well I know it's not a case sensitivity problem. When I say the users are not making typos, I'm including case matching in that.
I'll get back to you on the aspnet_Membership table. Now that I need to get to the live database, the client's server isn't letting me RDP in....
|
|
|
|
|
Hi
How can i get the html content of a grid control in my client side(javascript) function.
Thanks in advance
Sebastian
|
|
|
|
|
There are a couple of different ways you can do it. It somewhat depends on what you want to do. If you want to take a look at the data you can ususally figure out the name of the html table, by checking your view source of your page then you can do something like:
var thisTable = document.getElementById('tablenamehere');
var lineNbr = "";
for (var i=0;i<thisTable.rows.length;i++)
{
lineNbr = thisTable.rows[i].cells[3].innerText;
}
My example assues that the line number was in column 4.
Hope that helps.
Ben
|
|
|
|
|
|
Hi, I need help to post form data into database and also retrieve those data from database to table.I am using vs2005. Thanks in advance.
|
|
|
|
|
Do a Google search for ADO.NET.
Paul Marfleet
|
|
|
|
|
Hi,
I want to learn how the .net is used in Finanace like Fixed Income, Hedge Funds, Banking. Can any one provide links to any site which will give understanding about this concepts.
Thanks in advance
|
|
|
|
|
Please use Google to answer broad questions such as this.
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
Hi,
Before Posting I searched in Google, it is always giving the jobs list.
Thnaks
|
|
|
|
|
There's a good montecarlo webservice here on cp
Montecarlo[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
You need two links
1 - a link that teaches ASP.NET ( I assume you realise this is not a language, but a web platform )
2 - a link that tells you how to calculate fixed income, etc.
There's really not any direct correlation between the two. Banking is banking, and .NET is a programming platform which can be used to impliment algorithms and solutions for banking, amongst other thngs.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello All,
I have developed a webpage template with number of image placeholders and the image links for each webpage is stored in a mySQL table. Here's the link http:/www.abeyweb.com.au[^]. When the menu selections are changed the code behind executes a dynamic query based on the page ID and return a different set of image links applicable to the new page.
I used DreamWeaver for the template and Visual Studio 2003 for the code behind to access mySQL table. I am attempting to convert this project on to Visual Studio 2005 environment with SQL Server Express as the DB environment. I am not a professional programmer and I have now spent three whole days without any success attempting to convert this template on to the new VS 2005 environment.
Under VS2003, all what I did was,
1 To create a Connection to MYSQL
2.Create a Data Adapter
3. Create a Dataset
then refer to data elements like shown below (code snippet from the existing HTML source)
<td width="63"><img src=<%=Dest3.tables(0).rows(0).item(1)%> name="Pic1" width="50" height="46"></td><br />
<td width="63"><img src=<%=Dest3.tables(0).rows(0).item(2)%> name="Pic2" width="50" height="46"> </td><br />
<td width="63"><img src=<%=Dest3.tables(0).rows(0).item(3)%> name="Pic3" width="50" height="46"></td><br />
<td width="63"><img src=<%=Dest3.tables(0).rows(0).item(4)%> name="Pic4" width="50" height="46"></td><br />
<td width="80"><img src=<%=Dest3.tables(0).rows(0).item(5)%> name="Pic5" width="50" height="46"></td>
Under the image Src the term "Dest3" refers to the name of my "Dataset".
Now that VS 2005 has completely changed the whole dataset concept I am completely lost on how to refer to data elements this way. I have tried the TableAdapter method, DataBinder.Eval method but obviously I am missing something here.
Any help you can give on this is very much appreciated.
Thanks a million in advance.
Srimal
|
|
|
|
|
Can anyone help me how we can play a video clip or movie in the web page.anybody can get the code.
|
|
|
|
|
Hi all,
I am working with Visual studio Macros.
I created one macro.and i assigned one keyboard shortcut to run that macro in VS 2005 Applications.its wrkng fine.
But my problem is when i taken new application when i wrk wth this shortcut macro is not firing.
So,to make macros global to all applications what to do?
krishna Prasad
Nothing lose by helping to others
|
|
|
|
|
hello all
I have a column in my DB such as vcAlternateNotes. It is a nvarchar type.
Now my question is that
how can I check this value is string or integer?
For example in this particular column I can insert a alternatenotes or "Yes" or "no" or other string or numeric such as 255,80.
now i want to check if this is a string value then i want to return 0
or if this is integer value then i want return the actual value .
so help me about this.....
I am handling this situation by try and catch
so is it ok or not??????
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
You kan use the VisualBasic component.
using VB = Microsoft.VisualBasic;
namespace My.Tools
{
public class NumericTools
{
public static int ReturnNumericValue(string strText)
{
if(VB.Information.IsNumeric(strText))
{
return int.Parse(strText);
}
else
{
return 0;
}
}
}
}
And remeber to add refferens to the Microsoft.VisualBasic.dll
Hope it helps
Thomas
-- modified at 10:18 Monday 1st October, 2007
|
|
|
|
|
|
I am a newbie to the ASP world. So with that being said, is it possible to output an asp variable in html tags?...i.e.
<%string intranet_name = "My Variable";%>
<title><%=intranet_name%>
|
|
|
|
|
Hi,
I am having two file in some other system. So if i copy and paste that both files in my local system and set the .htm file a desktop wallpaper. In that case it's coming fine, but if i'll not copy and paste these two files in local system and accessing just the file path, then in that case When i am trying to set that .htm file as desktop wallpaper that time, i am Getting Some Error Like "Access is denied to file: http://199.63.23.57/Share/WebService.htc".
So please help me and give me some needful suggestion to solve to comeup with this problem.
Reg,
Narayan Choudhary
|
|
|
|