|
Hi everybody
I create a web application in asp.net. When i brows this application from my computer then it runs.
But when i browse this application from other computer by giving my IP address then it gives message DNS error;
I Browse from my computer http://192.168.3.53/webcrm/login.aspx"
But unable to browse By giving this address
please help me.
Raghvendra Kumar Roy
|
|
|
|
|
What error are u getting???
First of all have u deployed your app in IIS as a virtual directory? If yes then check your site properties in IIS, if u have a default document, add it to the list in IIS.
When you fail to plan, you are planning to fail.
|
|
|
|
|
I have already create a virtual directory on server.
but unable to browse from client computer.
it shows PGE can not be display
DNS ERROR.
Thanks Raghvendra
Raghvendra Kumar Roy
|
|
|
|
|
Check whether ur server`s firewall is on. Switch it Off and try again. If u don`t wish to compromise on security, create a port in firewall to allow access.
When you fail to plan, you are planning to fail.
|
|
|
|
|
how to convert image of jpeg format to bitmap format in asp.net 2.0
and
how to convert image of one format to another format by asp.net 2.0
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Load the image into System.Drawing.Imaging.Image instance. It has a Save() method which allows to specify the image format.
|
|
|
|
|
System.Drawing.Image imgInFile = System.Drawing.Image.FromFile("C:\\caravan_sign.jpg");
imgInFile.Save("new", ImageFormat.Bmp);
This is how i m creating image as bitmap but i m not getting where it is created. I specify path like c:\\new but it is not taking so i just specify new but where this file created i m not getting.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: imgInFile.Save("new", ImageFormat.Bmp);
This is how i m creating image as bitmap but i m not getting where it is created. I specify path like c:\\new but it is not taking so i just specify new but where this file created i m not getting.
The first parameter is string path
imgInFile.Save(Server.MapPath("new.bmp"), ImageFormat.Bmp);
save on application root directory.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks it is working fine.
|
|
|
|
|
Hi,
I have created one web page. If I browse from the virtual directory of IIS, I am getting the following error. I am using VS 2005 and Framework 2.0
========================
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
=============================
I tried by running the command "aspnet_regiis -ga ASPNET" and aspnet_regiis -ga <windows user="" name="">. It is granting the permissions. But still my problem is not solved. Pls help.
I can able to create setup and deploy successfully from other system. In my system, I am unable to do this.
Thanks in advance.
Balasubramanian K
|
|
|
|
|
Well i also suffered from the wierd error. But executing foll command rectified it
aspnet_regiis -i
ie reinstall framework.
When you fail to plan, you are planning to fail.
|
|
|
|
|
Thank you very much. Now it is working.
Balasubramanian K.
|
|
|
|
|
Hi all,
I am facing problems in date sorting in gridview with date displayed in "dd/MM/yyyy" format. I googled for the prob and came up with some solutions such as DataFormatString="{0:dd/MM/yyyy}", having a template field as label and during binding converting it to "dd/MM/yyyy" format by using Convert.ToDateTime(mydata).ToString("dd/MM/yyyy").
None of the above method works. So to solve this problem, i have to change the date in sql itself as
select a,b,Convert(varchar(10),mydate,103) from table1
but this returns date in a string format, and thus while sorting it sorts it as a string. I guess the above code might work if i change my regional settings, but every where i can`t control it.
Is there any other viable solution to this.
When you fail to plan, you are planning to fail.
|
|
|
|
|
www.Developerof.NET wrote: converting it to "dd/MM/yyyy" format by using Convert.ToDateTime(mydata).ToString("dd/MM/yyyy").
In ItemTemplate, you can use format string
i.e <%# Eval("MydateField","0:dd/MM/yyyy") %>
or in codebehind side
string myDate=String.Format("{0:dd/MM/yyyy}",myDateField);
please don't forget to vote on the post that helped you.
|
|
|
|
|
I have used the same code but , its dependent on the regional settings of the client machine. Is there any other way round????
When you fail to plan, you are planning to fail.
|
|
|
|
|
|
you given wrong condtion..
document.form1.txt1.disabled=true;
put
document.form1.txt1.enabled=true;
function select()
{
if(document.getElementById("RadioButton1").checked==true)
{
document.form1.txt1.enabled=true;
}
else
{
document.form1.txt1.disabled=true;
}
}
Rajendran.AL
|
|
|
|
|
i put alert(1) in that javascript function.But that function is not working .
|
|
|
|
|
is there onclick event in radiobutton...check it
Rajendran.AL
|
|
|
|
|
If the radio button is checked i want to set the visiblility of that text box false.but its not working
|
|
|
|
|
I think server radiobutton should not contain onclick event...
otherwise you will take html radio button instead of server radiobutton...
Rajendran.AL
|
|
|
|
|
i use the following code to hide text boxes
function select1()
{
if(document.form1.RadioButton1.checked==true)
{
document.getElementById("TextBox1").style.visibility='hidden';
document.getElementById("TextBox2").style.display='visible';
}
else
{
document.getElementById("TextBox1").style.visibility='visible';
document.getElementById("TextBox2").style.visibility='hidden';
}
}
<script>
<sp:radiobutton id="RadioButton1" runat="server" onclick="javascript:select1();" xmlns:sp="#unknown">
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown"></asp:textbox>
<asp:textbox id="TextBox2" runat="server" xmlns:asp="#unknown"></asp:textbox>
its working correctly
but when i set texbox visibility false it display an error.
On page load i want to set the visibility of text boxes false .It will visible only radio button click.i think u can understand my problem.pls help me. </sp:radiobutton>
|
|
|
|
|
better you can try with checkbox...
Rajendran.AL
|
|
|
|
|
First of all, radio button does not work like as checkbox. I mean that when you check radio button on first click,you can not able to uncheck it on second click.so you can not disabled or enabled textbox by checking radio button is check or uncheck.
Que : why have you taken radio button? you could also take checkbox.
please don't forget to vote on the post that helped you.
|
|
|
|
|
i want to create hyperlink field at dynamic time along with other types field(boundfield, etc..).
but there is problem with hyperlinkfield.
please help me as soon as possible.
thanks in advance.......
|
|
|
|