|
First thing to noticed about that your 127.0.0.1 is a sms server or your mobile device connected machine's IP. I think Your mobile device not connected to given IP machine.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
The code in general is correct, except for the URL part. 127.0.0.1 refers to local host and is used here as a reference. You need to replace it with the URL of some service that can process this request.
|
|
|
|
|
|
I don't know any such services, but I assume a Google search should give you a lot of options. But, most services would require you to become a member before you can use their service.
But, there should be other ways to do it than doing it via HTTP Web request/response. Just think of other means as well.
|
|
|
|
|
I have a ASP.Net Page that resides on a web-hosting server and it can be accessed by adding it as a link to a webpart on some other sharepoint server.
I want to display the IP address of Sharepoint server on the ASP.Net Page that can be viewed in the web part.
Is it Possible?
I tried Request.ServerVariables("HTTP_REFERER") but this gives the entire path which I don't want
i.e. http://<Sharepointservername>/tryout/default.aspx
I don't want this, I want the IP Address of the SharePoint Server alone.
I also tried Request.ServerVariables("remote_host") but it gives me the IP Address of the web-hosting server where the ASP.Net Page resides which is not what I want.
I hope all this is not confusing.
I am a .Net developer and Sharepoint is pretty new to me, so plz. help.
|
|
|
|
|
Hi,
I am implementing Asp.Net AJAX, in this in one .aspx page i am having 10 server side controls, now i want to pass all the controls values to my .JS page, from there i can call server side method using pagemethods.
The best way to send the control values to js page.........
|
|
|
|
|
You don't need to pass the values to your Javascript. You can retrieve them from the JavaScript:
document.GetElementById("MyControl").Value
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi
Is there any processor or code to traslate my Web page Contant to other language contant.
Example
[English Contant To Hindi Contant]
|
|
|
|
|
|
you can use Google Translate API
Cheers,
Nitin
===================
ANNET TECHNOLOGIES
===================
|
|
|
|
|
Search For Asp.Net Globlazation Concept for dynamic language change. If you dont know another language then the translator API can create some problem into some words.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hello to All Forum members.
I want to use a Tree view with multiple check boxes in Asp.net with c#.
I used "ShowCheckBoxes" properties of tree view to display node, these node are actually modules name of the project.
But I have to add two more checkboxes in each node to giving Edit and Delete Permissions of the modules.
Please visit the Url for more clear of the picture.
http://picasaweb.google.com/lh/photo/yfojhqq0dTeYi9oxRKcRAw?authkey=Gv1sRgCLnG4-v31czmLw&feat=directlink[^]
How can I achieve this ?
Please any one tell me the complete solution.
Thanks in Advance.
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
Do like this :
<asp:TreeView ID="myTreeView" runat="server" ImageSet="Arrows" PathSeparator="|"
ShowCheckBoxes="All">
</asp:TreeView>
ShowCheckBoxes="All"
This is what you are looking for.
|
|
|
|
|
Hi
I already told that I did implemented this.
But I have to add two more check boxes.
Please visit the Url (Image) given in my post before giving me the answer.
This will clear you the picture what I exactly want?
Vishnu Narayan Mishra
Software Engineer
modified on Monday, January 4, 2010 7:57 AM
|
|
|
|
|
We incorporate a treeview like this in our Internet Filtering product. What we have done in this case is to use a third party ActiveX control. So you might want to consider searching the web for third party controls, and testing them out for your purpose. It's easier than trying to code it all yourself.
Web Filtering Guy
|
|
|
|
|
a.aspx
function btnLogin_onclick() {
var NumRandom = document.getElementById("lblRandom").value;
if (compare()) {
var str = '<%=WebEncrypt("' + NumRandom + '")%>';
document.write(str);
}
a.aspx.cs
public string WebEncrypt(string Text)
{
return Text;
}
it returns '+NumRandom+',Whyyyyyyyyyyyyy.....
|
|
|
|
|
Yaa... I think you dont know the basics of Web programming right.
Let me explain you.
In case of Web Applications, if you write server tag like <% %> it will get replaced in response.
Therefore, anything in the server tag is evaluated when the actual page is rendered.
But as javascript runs in the browser, it will run after all the page processing is done and the response in the browser.
You cant call a server method this way using server tag. You need to use AJAX to call server methods. You might use ICallbackEventHandler or PageMethods or your custom AJAX to do this job. But seriously, you cant pass value of javascript variable this way..
|
|
|
|
|
thanks
|
|
|
|
|
hi all,
when i am giving a mail-id in text box it has to check that the mail id is valid or not. Ex:if i give basha@gmail.com then it have to check the mail id is valid in gmail or not.
Thanks & Regards,
S.Inayat Basha.
|
|
|
|
|
Hi there,
Just use a regular expression validator control with the appropriate regex.
\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* should do the trick.
Cheers
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
I think he wants to validate the existence of an email id in gmail. In this case even though the email format is valid but the check can still fail if it does not actually exists under gmail.
|
|
|
|
|
Not very sure but you can check the google APIs for validating an email account. This is only way it can be done.
|
|
|
|
|
Did you tried searching google ?
In the first search itself, I found what you needed.
Even you would have been able to see this[^], if you had tried.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Try something like this ...
1) have the user enter an email account
2) your application generates a link with a random number and sends it to the person for them to click on
3) when the user clicks on this link it will validate that the email account is valid.
4) put an expiration date for the link so that if they don't respond in 3 days the link becomes invalid.
Just a thought.
david
|
|
|
|
|
Hi, you can use this class:
class email_validation_class
{
//var $email_regular_expression="^([a-z0-9_] |\\- |\\.)+@(([a-z0-9_] |\\-)+\\.)+[a-z]{2,4}$";
var $timeout=0;
var $localhost="";
var $localuser="";
Function GetLine($connection)
{
for($line="";;)
{
if(feof($connection))
return(0);
$line.=fgets($connection,100);
$length=strlen($line);
if($length>=2 && substr($line,$length-2,2)=="\r\n")
return(substr($line,0,$length-2));
}
}
Function PutLine($connection,$line)
{
return(fputs($connection,"$line\r\n"));
}
Function ValidateEmailAddress($email)
{
//return(eregi($this->email_regular_expression,$email)!=0);
return(eregi("^([a-z0-9_] |\\- |\\.)+@(([a-z0-9_] |\\-)+\\.)+[a-z]{2,4}$",$email)!=0);
}
Function ValidateEmailHost($email,$hosts=0)
{
if(!$this->ValidateEmailAddress($email))
return(0);
$user=strtok($email,"@");
$domain=strtok("");
if(GetMXRR($domain,&$hosts,&$weights))
{
$mxhosts=array();
for($host=0;$host<count($hosts);$host++)
$mxhosts[$weights[$host]]=$hosts[$host];
KSort($mxhosts);
for(Reset($mxhosts),$host=0;$host<count($mxhosts);Next($mxhosts),$host++)
$hosts[$host]=$mxhosts[Key($mxhosts)];
}
else
{
$hosts=array();
if(strcmp(@gethostbyname($domain),$domain)!=0)
$hosts[]=$domain;
}
return(count($hosts)!=0);
}
Function VerifyResultLines($connection,$code)
{
while(($line=$this->GetLine($connection)))
{
if(!strcmp(strtok($line," "),$code))
return(1);
if(strcmp(strtok($line,"-"),$code))
return(0);
}
return(-1);
}
Function ValidateEmailBox($email)
{
if(!$this->ValidateEmailHost($email,&$hosts))
return(0);
if(!strcmp($localhost=$this->localhost,"") && !strcmp($localhost=getenv("SERVER_NAME"),"") && !strcmp($localhost=getenv("HOST"),""))
$localhost="localhost";
if(!strcmp($localuser=$this->localuser,"") && !strcmp($localuser=getenv("USERNAME"),"") && !strcmp($localuser=getenv("USER"),""))
$localuser="root";
for($host=0;$host<count($hosts);$host++)
{
if(($connection=($this->timeout ? fsockopen($hosts[$host],25,&$errno,&$error,$this->timeout) : fsockopen($hosts[$host],25))))
{
if($this->VerifyResultLines($connection,"220")>0 && $this->PutLine($connection,"HELO $localhost") && $this->VerifyResultLines($connection,"250")>0 && $this->PutLine($connection,"MAIL FROM: <$localuser@$localhost>") && $this->VerifyResultLines($connection,"250")>0 && $this->PutLine($connection,"RCPT TO: <$email>") && ($result=$this->VerifyResultLines($connection,"250"))>=0)
{
fclose($connection);
return($result);
}
fclose($connection);
}
}
return(-1);
}
};
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:46pm.
|
|
|
|