Configuration :: Domain Name For Ip Address?
Feb 10, 2011I want to give a domain name(DNS) to my application which have public ip address. How can i give this in asp.net 3.5 using c#.
View 1 RepliesI want to give a domain name(DNS) to my application which have public ip address. How can i give this in asp.net 3.5 using c#.
View 1 RepliesI am getting destination ip address from packets, now i want to get domain name from ip addess. i have use whois, to get domain name, but it works only for few sites i.e google,microsoft. its not working for rediff or yahoo, Is there another way to get domain name from ip address?
View 2 RepliesI'm trying to extract the domain name from an email address. For example if an email address is info@mydomain.com i want to extract 'mydomain' from the string.
I have some C# code which does this:
[Code]....
This works fine - except if a user has an email address which contains a dot '.' (e.g. fname.lname@mydomain.com) then it throws the following error:
Length cannot be less than zero.Parameter name: length
Line 29: int startIndex = strEmail.IndexOf("@");Line 30: int endIndex = strEmail.IndexOf(".") - startIndex;Line 31: string domain = strEmail.Substring(startIndex + 1, endIndex - 1);
The problem is the first '.' in the email address is causing it to calculate the string from the incorrect position.
Is there a way to retify this - or does anyone know of another solution to extract the domain name from an email address?
how to check the domain name of an email address...
i.e
in 4@4.com
validating 4(second one-domain) should return false if the domain is not exist again
if 4(first one) is not a valid user then also return false
how do I write a regular expression to filter out email adresses in asp.net mvc? I would like in example to allow users registering email adresses only if coming from [URL] domain.
View 1 RepliesJust transitioned servers, in Chrome the domain name works fine, but in IE I get an error:
This page can’t be displayed
•Make sure the web address http://50.58.231.78 is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.
And in Safari I just get a blank page. If I enter http://50.58.231.78 it comes up fine.
Chrome works fine.
This is an .aspx page using IIS.
i have an requirment where an user can enter multiple email address.
The validation should ensure that he should enter address in the format "something@abc.com".
my existing validation ensures that some text is entered before "@" symbol and "abc.com" is the domain.
@"w+([-+.']w+)*@abc.com$";
I would need my regex to check for the delimiter ";" between two mail id's .
valid: a@abc.com |
a@abc.com;b@abc.com|
invalid: a@abc.comm | a@abc.com,b@abc.com | @abc.com |
a@abc.comb@abc.com|
I've tried many links but ther were of no use and i'd be grateful if someone could help me modify the current one to suit my requirments
able to validate any email address based on the domain. For example, the system says anybody with a microsoft.com email address can create an account. Here is my code so far, it doesn't appear to work.
If Not Regex.IsMatch(tbEmailAddress.Text.Trim, "^([0-9a-zA-Z]([-.w]*[0-9a-zA-Z])*@" + mySetting.EmailDomain)
Does anyone know how I can authenticate users based on their Email Address and Password as oppose to Domain, Username and then Password?
View 1 RepliesIn my registration form, there is field to enter email-id of member, i want to restrict user, so that he would not able to enter gmail, yahoo, radiff.... emailids is this possible.., Only company email id eg: priyanka@juncturetech.net must be allowed?
View 1 Replieswhat is doffrence between http://domain.com & http://www.domain.com where domain is the same name in both of this.e.g. http://mycompany.com & http://www.mycompany.comi
View 2 RepliesI have developed web application using asp.net 3.5 ,c# 3.0 and visual studio 2008,sql server 2005. i have created .msi file to deploy application on server.. now for testing purpose running in lan for that i want give url name eg.now i'm accessing from LAN like this
http://192.168.1.1/xyz/abc.aspx
htt://compname/xyz/abc.aspx
instead of this i want to access like this
http://www.xyz.com/abc.aspx
How to use Sub domain to Sub folder like
sample.mydomain.com -----> mydomain.com/sample.
am created sub domain in sample i am uploaded all the files in sub domain its working fine when am using link like
sample.mydomain.com
but am using sub folder means its display the server Error / in Application
sub folder link
mydomain.com/sample.
IT created domain accounts for my code to be able to access the database using integrated authentication. Where do I configure this? Currently it shows as if it is me attempting to access the db.
View 1 RepliesI want to stop search engines showing the non www. url in search results. I found the following code, will it do what I want?
[Code]....
i am developing a website that sends emails out to customers. on my pc it works fine i depoyed to the production server and find out that does not send emails outside the domain.
i have 2 boxes one is windows server 2003 that hosting te website and the other is exchange 2003
i have this on my web.config
[Code]....
defaulttur.aspx (if user entered www.mysite.com, default.aspx page will redirect to the defaulttur.aspx)
View 3 RepliesI have a application name "PrototypeDemo" and hosted on Intranet on server "ServerName123.eng.abc.com/"
But if some user wanted to view the website he has to type full servername and allication name like "http:///ServerName123.eng.abc.com/PrototypeDemo/"
can i give some useful/shorter name to servername so the uRl can look like
"http:///Scheduling/PrototypeDemo/"
At my pc, i developed one asp.net application that can be used by my other family members too. Lets say application name is XYZApplication. I have put this appl in virtual directory with same name. So now it can be accessed by the link [URL]. Is it possible by any way to make it accessible by link
1. [URL] OR
2. [URL]
I doubt on second one but atleast 1st one?
I need to make my IIS6 to handle sub domain request to the main website so that i can handle it by using HTTPHandler
But i don't know what modifications should be done on IIS to accept unlimited subdomain name requests
I have one web application that manages 20-30 websites (one asp.net engine loading different templates based on httphost)Im redirecting non-www requests to its www equivalent in my web.config using UrlRewrite.
<rules>
<rule name="301 Example Lazy Domain" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example.com$" />
</conditions>
[code]...
What is the difference between IIS Worker process, Application pool and application domain? Do we have more than one application domains in one application pool?Does one application domain means one virtual directory?
If we have 2 virtual directories pointing to same physical folder. Will they share the same memory or different when there instances are opened in the browser? Will they be in 2 different application domains?
We are having a project which is for various online application systems for an educational institute. (Asp.Net 2.0 Web Site)
initially we developed all applications in single project with proper folder structure. but now we want to make each application as separate product.
all applications share single authentication(Obviusly this is single project) want to keep that way only.
I want to split project in smaller projects but want to keep shared authentication so how should i orgnise this project in IDE.
Also i need guidence on hosting such project
i should make small projects within single solution file. and at the time of publish amke single virtual directory to host the root project(login.aspx etc) and in subdirectories i should host other projects. so this way SSO(single sign on) across applications is possible ..
actually I have deployed the website .and some user is able to acess the same site from one location but some user is not able to acess the same site from other location .there is time out problem users get access and after some time there is time out ,but it is working fine in other locationsall the system configuration setting is the same .
View 2 RepliesI have read several articles to send emails in Asp.net C# major are by using Gmail, I want to send email from a email id from mydomain name.The code that I am using is:
The code works properly would like to know whether the code is correct as I have have tested it by sending mails to gmail and rediffmail, it works properly, would also like to know the reason for using client.Port = 25;
MailMessage Msg = new MailMessage();
Msg.From = new MailAddress("sales@mydomain.com", "Testing");
Msg.To.Add(TxtEmail.Text);
Msg.Subject = "Send Mail with HTML File";
Msg.Body = "Checking";
[Code] .....