|
i am a learner in asp.net. i want to know about web service in asp.net.
why we user web service?
how to use?
if any category in web service?
Thanks
|
|
|
|
|
Any_India wrote: why we user web service?
To call methods on servers across a network, commonly the Internet or a Corporate Intranet.
Any_India wrote: how to use?
In general the web service publishes which methods are available and a tool is used to generate a set of client classes. The class used to communicate with the service is called a proxy.
Any_India wrote: if any category in web service?
I'm not 100% clear about this question. SOAP is the main technology this[^] explains the basics of a SOAP service for beginners to the subject. WCF is a Microsoft technology that is an enhancement over plain SOAP services. If you are going to implement a webservice in .net I'd start with WCF, it is easier IMO, and you can expose a plain SOAP endpoint if you need it.
|
|
|
|
|
Thanks for your reply.
now i will study your link details.if i got any help to implement web service plz help me.
|
|
|
|
|
Any_India wrote: got any help to implement web service plz help me.
I suggest you try and implement a web service first ! If you get stuck, ask questions in this forum and someone (me if I am online and able) will help if they can. Good luck!
|
|
|
|
|
Hi,
what's the web way to develop a multi language website? what's your advise?
Thanks...
|
|
|
|
|
That's a really broad topic, and the strategies for coping with this are numerous. At the very least - don't fix your layout; remember that some people use RTL and others use LTR; don't hardcode any strings - at the least, they should come from a resource file; don't hardcode references to images - certain images mean different things in different countries, and always respect the culture settings.
|
|
|
|
|
I started work in Jordan, and I've very recently had to ford this stream myself.
Everything Pete says in his post is sound: Extract Strings and Image references to Resx files. For your Default.aspx page you'll have Default.aspx.resx for the Invariant culture (This should be English: the browsers default to US-English, but you can select Arabic as the culture in some browsers.) You can then add Default.aspx.ar.resx for generic Arabic and add regional variations e.g. Default.aspx.ar-JO.resx. Note that the where the value isn't available in the most specific resx file, .net applies the next most specific then the invariant. So Jordanian --> Generic Arabic --> Invariant. If the user's browser is set to Arabic culture, the framework will attempt to get the Arabic version of the page.
I also found it useful to remove any styling from the ASPX page, and put it into a theme / css. file. Additionally I try to avoid css styling involving the words "left" or "right" though these are needed occasionally. Luckily pretty much any asp.net property can be set through the meta:resourcekey attribute, which includes the CssClass attribute, overriding the default style .
I found these very helpful:
http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx[^]
and this if working with master pages:
Developing an ASP.NET page with MasterPage and Localization[^]
|
|
|
|
|
I have a dataGrid. Inside that gird i have text box. And there is textbox for search in outside the grid. once i enter searching criteria and press search button(outside the grid) it will search and focus to the first text box which inside the grid. it will work fine. but i hit enter key it will search but it does not focus to the datagrid first text box. please help me to focus the cursor to the first text box of datagrid when press enter
Note : All the controls are inside one updatepanel.
Dushan Perera
|
|
|
|
|
how to select design patterns according to project
|
|
|
|
|
It is mostly about experience. Design patterns get their name from their repetitive nature. When you have seen one type of problem often enough you can tell when a similar solution would apply. Patterns can be at very different levels of the software architecture though. A pattern like the Party pattern is pretty high level and implies data models. A pattern like Observer can be much lower level and might only apply to an event on a single control like a button click or it could be very high level and be applied to a message queue in an enterprise service bus.
Be careful about patterns. They can be a lot like fads. When Microsoft released the MVC framework tons of people decided that they had to shove all their projects into that pattern. But if you only ever have one view and that view has to re-implement a lot of the business rules that would also go in the model (client side validators in the view and further validation in the domain objects), you aren't buying yourself much.
|
|
|
|
|
anoop_m83 wrote: how to select design patterns according to project
Obiously, its is based on the requirement. At the time of design, one should decide, what pattern best suits for the requirement. At some point, tailoring of an existing pattern ,might be required also.
|
|
|
|
|
Find a design patterns book/website, implement them, and understand why and when they are used. Then decide if any are applicable to your project given your requirements. Each design pattern is a solution to a problem, not a solution looking for a problem.
The original Gang of Four (GoF) patterns each had a specific use in mind. The idea behind the book was that if you had a problem there is probably some commonly used solution which can be applied without needing to re-invent the wheel. A second advantage is that the patterns were given names which developers can use as a kind of shorthand e.g. "I'll us a singleton class" as opposed to "I'll need to write a class to make sure that only one instance of it exists".
The problem is design patterns have become the latest thing, so everyone wants to say they use design patterns. Additionally there has been a design pattern explosion too (negating the "shorthand" effect). That's not to say there is anything wrong with the original research, just the way it has been taken up by the dev community.
|
|
|
|
|
Start off by working out what you actually want your project to do, and how you want it to work. Once you know that, you need to break the application down into smaller areas and start thinking about how to compartmentalize the different aspects of the app. Don't get hung up on designing for patterns; let it come naturally.
|
|
|
|
|
Hi all,
in my datatable i have 2 columns 1.email 2. fax(retrieving from database)
that datatable i am storing in arrylist.
i am doing like this:
for (int i = 0; i < dt.Columns.Count; i++)
{
a1.Add(dt.Rows[0][i].ToString());
}
wht i have to do is store arrylist inside string.
after storing the values in string , i have to identify the email with "@" symbol if value contains @ symbol then i have to bind that values to array2
if anybody knows please let me know.
Regards
Rama
|
|
|
|
|
I have some suggestion for you
1. Why are you using ArrayList you can use Generic List instead.
2. You can use Regular Express to validate email.
3. you can fire Linq query to filter out your list
I know this is not answer but you should have to improve your programming using upgrade techniques
Thanks
Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim
So Smile Please
|
|
|
|
|
5'd - everything you said here makes sense. Occasionally it is good to step back and look at the problem being solved and all your points are valid. I don't know why you have been downvoted.
|
|
|
|
|
Thanks
Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim
So Smile Please
|
|
|
|
|
Make sure you have rows. Do like:
if(dt.Rows.Count > 0 )
{
ar.Add(dt.Rows[0]["EmailColumnName" OR Index no].ToString());
ar.Add(dt.Rows[0]["FaxColumnName" OR Index no].ToString());
if( ar[0].Contains("@") )
}
If you are looking something else then let me know.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
Hi,
I have installed VS 2008 and SQL Server 2008 Enterprise edition. I basically want to add my database to my website. in the App_Data folder right click and find my database(.mdf). the problem is after hitting enter I got this error.(Access Denied)
does any one has any solution,pleas.
|
|
|
|
|
SQL Server Enterprise? You're running a server OS on your development machine?
All you need is SQLExpress. If you look at the machine.config you will see the default connection string is to a SQLExpress instance.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Assuming that you have to attach the mdf as a static file in your project due to licensing on the SQL Server or for some other reason can't deploy the MSSQL server to your deployment environment, you should perhaps look into using SQLLite and not MSSQL. Clickey
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
thanks for your reply, guys.
i have done the following steps:
I installed VS2008 and MSSQL2008;
I design database and its table in SQLServer2008.
I don't installed SQLExpress.
now, I am developing an MVC Web Application;
the problem is when right click in App_Data folder and choose existing item to add the created database in SQLServer2008, get this error: Access Denied.
Could you please tell me what is the problem? is there any solution to remove fix this error without installing SQLExpress?
|
|
|
|
|
SQl Express is not an answer. Your problem is that you cannot connect a db the way your are trying to. You have to create objects that connect with the SQL Server. You are getting Access Denied because SQL Server owns and controls the file.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Hi,
I create an ODBC Driver and find my databse; in VS2008, in Server Explorer I add my database(ODBC.Dell.Test)
I just get confuse; in MVC I have to add my database in App_data(is it true?)if yes, how?
because, again when I add that object get the same problem(Access Denied)
|
|
|
|
|
Hi All,
I have XML string as below. I am trying to deserialize this xml string in to a Request Object or NewHire Object. I have designed the Request class as it holds
the instance of NewHire class as a public property. I did in two ways
1. First time when I tried for the Request type it was giving exception like error in identifying property NewHire.
2. Then I deleted the Request element from the xml and kept from NewHire to /NewHire part only and then tried to deserialize the object for the NewHire type.
Then its not giving the exception but all the values in the NewHire instance it is giving null. Its not reading the values.
XML File :
----------
string strXML = "" + "<Request>" + "<NewHire>"
+ "<CompanyCandidateCode>CandCode</CompanyCandidateCode>"+ "<SSN>SSS</SSN>"
+ "<LastName>6456</LastName>"+ "<FirstName>3434</FirstName>"
+ "<MiddleName>676</MiddleName>"+ "<EthnicGroup>546456</EthnicGroup>"
+ "<Address>tuituiu</Address>"+ "<City>dfgfd</City>"
+ "<State>ghjgjg</State>"+ "<Zip>345345</Zip>"
+ "<HomePhone>bvnbvn</HomePhone>"+ "<OtherPhone>234234</OtherPhone>"+ "</NewHire>"+ "</Request>";
Deserialize Code:
----------------
try
{
System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(Request));
System.IO.TextReader reader =
new System.IO.StreamReader(new MemoryStream(ASCIIEncoding.Default.GetBytes(strXML)));
Request ObjItems;
ObjItems = (Request)serializer.Deserialize(reader);
reader.Close();
string str = Convert.ToString(ObjItems.NewHire.Address);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
I want to read this in to my Request or NewHire objects any of the above two methods ok. I prefer for the first one to fill the Request ojbect but if it can fill only NewHire
object and cant fill an object containing another object, I will adjust with NewHire only.
Can anybody please help me in this regard as I have to deserialize it in anyway.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|