Already Existing User in MVC3 razor [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am doing project MVC3 razor whaen I was inserting the data that would be saved in database.If the user is already in database that username should't be saved in database and one error msg has to be displayed how can I write the code for this?

You open up your favourite code editor and type away. Unless you don't have fingers - in which case I don't know.
(Anticipating -1's)
In all seriousness, though (and this should be a comment but because I've added an answer I'm going to put it here) - how can you expect anybody here to give you a straight answer to this question. You have not supplied any code, no information about your database schema, you haven't shown what you've tried (so we're assuming you've tried nothing). Ultimately this is a type of question repeated many many times here on SO and it always gets treated the same way - occasionally sarcastic comments - and I really do try not to do that any more, so sorry on this occasion - and closed within approximately 5 minutes.

Related

Multiple Applications access one single xml file at same time using c# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am facing problem with "Access one xml file from 2 different applications at same time".
But it shows error code is "access denied, because another process using the file".
I applied all lock methods, but no use (same error).
Setting the correct FileShare enumeration value when instantiating the underlying FileStream allows you to control this.
Ref.: http://msdn.microsoft.com/en-us/library/system.io.fileshare.aspx
Even if it would be possible for two applications to write to the same file at the same time, the file would be corrupted. I recommend you to use a database instead.

Check Sql Spell Programmatically [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a .NET program which Get Query And Check Spll it.
this Query maybe very large and run it require so much time.
So I need run Check Splling without run it.
thanks.
EDIT
Because
My Query maybe very large and run it require so much time.
my program have two mode:
1- test mode : for test input query
2- this query will run later and when i want execute this.
Rather than spell checker i guess you mean Syntax checking, in this case you should take a look at the SQL parser library .
That among others things allow to :
Offline SQL syntax check Validates syntax without connecting to a
database

403 forbidden resource error [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am seeing this error after I merged some changes from some one else's code. I was able to browse to the directory fine before.
Now, Basically my localserver is throwing this error. and that is all it is saying. I did try running the project as admin and I tried giving iis full permission the folder and everything but no luck yet. Any suggestions?
Try running the page on the web server - it may then give you the actual 403 error - e.g. 403.11 - then you can look up that error here
If you are not talking about a huge amount of merged changes applied to your repository, most probably, you will loose less time by
undoing merge
and checking one-by-one changes available on the server.
From my experience this often is a easiest way.
Hope this helps.

extract meaning of a word in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I m doing a project which invoves extracting the semantics of a word. While doing some resaerch I found out it's better to get Synonyms of a word rather than trying to extract semantics.
What is the best way of doing this. I only need to get the synonym of a word.
Please help.
Find a thesaurus. Pay attention to its licensing. E.g., Roget's Thesaurus. There may be one that is better-suited to being parsed programmatically.
Parse the thesaurus. For example, you could might store it in a Dictionary<string,List<string>>.
Look up entries as needed. How this is done depends on what data structure you stored it in. It's pretty easy in a Dictionary.
If you have trouble with a specific step in this process, feel free to ask. Your question is a bit too open-ending for me to know exactly what part to focus on.

How to read a specific number from a HTML page [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
for example , if I wanted to set the Index value from this page:
http://ca.finance.yahoo.com/q;_ylt=Agfc5O8HHTlOLgX.q6V4HEtyzJpG;_ylu=X3oDMTFkdnZqMHBkBHBvcwMyBHNlYwN5ZmlNYXJrZXRTdW1tYXJ5RnJvbnRwYWdlBHNsawNzcHRzeA--?s=^GSPTSE
to a variable, how can I do that??
I am VERY NEW to programming, I would really appreciate if you explained every line.
My point isnt to get it done, I want to understand it.
Thank you very much in advance!
If you look at the source code of the web page, you find that the index number is within a span tag which has a unique id: <span id="yfs_l10_^gsptse">13,702.33</span>.
This means that you can scrape the page and then single out that individual tag.
You need to start by connecting to the host and downloading the page. The way in which you do this depends on which language you're using. There are plenty of tutorials around - just search for "[language] web scraping".
Then you need to create a Document Object Model from the html source code - again, this depends on the language, it's easy in some and difficult in others. Once you've done that, simply search for the tag with an id of yfs_l10_^gsptse and grab the content.
Hope that helps - obviously there's a lot I haven't said, but it depends what language you want to use.

Categories