|
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.......
|
|
|
|
|
sanjeev_1501 wrote: 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.
On RowCreated event of gridview, Create object of HyperLink control and add it into Gridview's row where you want it.
If you want to add this control based on other values then you can use RowDataBound event gridview.
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi friends,
i am using installshield X express to create a setup my application. now i want to add crystal mearge module. please tell me how to add mearge module in installshield x express.
|
|
|
|
|
Hi,
How do i hide my querystring value which is passed from one page to another page through link?
|
|
|
|
|
Hi,
Best is to encrypt the Query String and pass it along.
Have a look at this tutorial.
http://www.dotnetjunkies.com/HowTo/99201486-ACFD-4607-A0CC-99E75836DC72.dcik
Thx,
Gayani
|
|
|
|
|
hi to all
i write some simple webservice in below and put into http://bundi.com/webser.asmx
i take a web refence and created object and it is working fine, plase follow the code and finally please answer my questions
webser.asmx file conetent in which i have in http://bundi.com/webser.asmx
***************
]]>
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Namespace mysimpleWebService
<webservice(namespace:> _
<webservicebinding(conformsto:> _
<global.microsoft.visualbasic.compilerservices.designergenerated()> _
Public Class webser
Inherits System.Web.Services.WebService
<webmethod()> _
Public Function sum(ByVal a As Double, ByVal b As Double) As Double
Return a + b
End Function
End Class
End Namespace
default.aspx page content
*************
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim objweb As New summethod.webser
objweb.sum(19.1, 30.9)
Response.Write("sum result is " & objweb.sum(19.1, 30.9))
End Sub
End Class
here my problem are
**********************
1) this webservice accessign directly how i protect this with password the perticular webservice
2) is anything more need to learn about webservice,what other uses , can u explain any thing more to learn web service
This is haneef.............................................................
|
|
|
|
|
Hi,
I'm trying to get the key of the GridView into the DetailsView and using Session doesn't seem to work.
The GridView (Parent page) has summaries of the data. I'm using a <select> to get the ID and redirect to the DetailsView page (Child page). 2 different pages.
What I'm currently doing is this
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
Session["ID"] = GridView1.Rows[0].ToString();
Response.Redirect("DetailsPage.aspx");
}
And the DetailsPage has this for getting the parameter
<SelectParameters>
<asp:SessionParameter Name="id" SessionField="ID" Type="Int32" />
</SelectParameters>
I know the problem is that the data types are incompatible but how can I cast the data? Or is the problem more than that.
If this is the wrong way, how can I pass the ID from the parent to the child (different pages)? And I don't want to put the data in the URL.
Thanks.
Desmond
|
|
|
|