|
My web page has an image control with an image url defined. The control seems to resize the picture to make it fit inside its boundaries. How can I turn off the image resizing so that it displays the picture actual size while clipping any part of the image that does not fit inside its boundaries? I was trying to use the Bitmap class to accomplish this without success.
|
|
|
|
|
Try to clear the width and the height property of the image control.
Regards,
Arun Kumar.A
|
|
|
|
|
My image control height and width is 400px X 300px. The picture is 800px x 400px. When the image control displays the picture I would like it to display the picture without resizing it. So you would only see the part of the picture that fits inside the 400px x 300px boundary of the image control. The rest of the picture will be clipped.
|
|
|
|
|
Hi..
I have a textbox that was firing Text_changed event when the user press Enter.but now it is not firing any more.But the handler for this event is executed when a postback occur(for example when I click a button).
The only change I made it was putting the asp:textbox in a <DIV> instead of a <table><tr><td>.
I observed when I press enter in the textbox I hear a sound(one of the windows usual sounds).
Could any one tell me how to solve this problem and make it working as before(when the user press Enter)?
-- modified at 12:40 Friday 4th May, 2007
I am too late but i will never give up
|
|
|
|
|
I think U can set AutopostBack Property to true.
Regards,
Arun Kumar.A
|
|
|
|
|
Thank you for your respond...
It was working without using Autopostback.But currently I tried setting AutoPostBack to true but it doesn't solve the problem.
I am too late but i will never give up
|
|
|
|
|
Which version of framework are you using ?
Did you changed the nam of text box ?
Have you writtent the code in javascript or code bhind file ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I have built the web application using VS2003.I have installed Framework 1.1 and 2.
I didn't change the name of the textbox.
I have written the code in the code behind file(C#).
The only change I made it was putting the asp:textbox in a <DIV> instead of a <table><tr><td>.
I observed when I press enter in the textbox I hear a sound(one of the windows usual sounds).
-- modified at 12:39 Friday 4th May, 2007
I am too late but i will never give up
|
|
|
|
|
My users need to be able to covert an .vox file to a .wav file via my .net web app. Any ideas where to start?
|
|
|
|
|
hello
thansk for the time
in my aspx i have then next code
rsweb:ReportViewer ID="rvReportes" ProcessingMode="Remote" OnDrillthrough="rptPublic_Drillthrough"
runat="server" Font-Names="Verdana" Font-Size="8pt" AsyncRendering="true" SizeToReportContent="true"
i load my reportviewer in the server side
rvReportes.Visible = True<br />
Dim oReportesBL As New ReportesBL<br />
Dim oReportesBEReportesDataTable As ReportesBE.ReportesDataTable<br />
Dim rdlc As String<br />
Dim RootReport As String<br />
Dim Pais As String<br />
Dim parametros(6) As ReportParameter<br />
<br />
rvReportes.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote<br />
rvReportes.ServerReport.ReportServerUrl = New Uri(ConfigurationManager.AppSettings("SeverReport"))<br />
oReportesBEReportesDataTable = oReportesBL.GetReporteByID(ReporteID)<br />
rdlc = oReportesBEReportesDataTable.Rows(0).Item("rdlc")<br />
RootReport = ConfigurationManager.AppSettings("RootReport")<br />
Pais = ConfigurationManager.AppSettings("Pais")<br />
rvReportes.ServerReport.ReportPath = RootReport + rdlc<br />
<br />
parametros(0) = New ReportParameter("iAplicacionid", Convert.ToString(Trim(AplicacionID)), False)<br />
parametros(1) = New ReportParameter("iUsuarioid", Convert.ToString(Trim(UsuarioID)), False)<br />
parametros(2) = New ReportParameter("sIdPais", Convert.ToString(Trim(Pais)), False)<br />
parametros(3) = New ReportParameter("iIdProcod", Convert.ToString(Trim(EmpresaID)), False)<br />
parametros(4) = New ReportParameter("sIdCanal", Convert.ToString(Trim(CanalID)), False)<br />
parametros(5) = New ReportParameter("dFechainicial", Trim(FechaInicial), False)<br />
parametros(6) = New ReportParameter("dFechafinal", Trim(FechaFinal), False)<br />
<br />
<br />
<br />
rvReportes.ServerReport.SetParameters(parametros)<br />
rvReportes.ServerReport.Refresh()<br />
but the property SizeToReportContent dont work i try the article the part of xhtml but i dont have my reportviewer inside of table.
how can i sizeto reportcontent to size of the report
thanks
sorry for my english
|
|
|
|
|
I am trying to keep the user from shrinking the browser (IE 6 and IE7) window lower than 800 by 600. I have tried using window.open() in JavaScript but this only seems to let me set the size initially and freeze the browser window to what ever size that I start with. I have also tried some JavaScript code and I get an "Access Denied" message when I hit the window.resizeBy() call.
Brent
|
|
|
|
|
Why would you want to do this?
|
|
|
|
|
Eggs,
It is just something that my manager wanted.
I don't usually want or not want anything, they say what they want and I make it happen.
Nuck, nuck, nuck.
Brent
|
|
|
|
|
i voted 5 points
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
HI All
how can we write code for SelectionChange Event of the DropDownlist control in ItemTemplate of a GridView ( for Editing Purpose of GridView) So that Text of other Dependent Text box of that row can be changed according to that combo's selected text.
I added a DropDownlist but unable to write it SelectionChange Event.
Hope to get a solution
Thanks in advance.
axn
Using ASP.NET 2.0 (VS2005)
|
|
|
|
|
In HTML section add this to the drop down list OnSelectedIndexChanged=ddlSelectedIndexChanged and then in code behind create a this sub e.g protected virtual void ddlSelectedIndexChanged and in this sub do whatever you want to do..
-----
|
|
|
|
|
Thanks Bhati
I did the same but in code behind following errors comes:
CS0103: The name 'DDLMaterialCode2' does not exist in the current context
I wrote this code:
protected virtual void DDLMaterialCode2SelectedIndexChanged()<br />
{<br />
Response.Write(DDLMaterialCode2.Text);<br />
Response.End();<br />
}
Should I pass these parameters (object sender, EventArgs e) to this function.
and Is it Correct OnSelectedIndexChanged="DDLMaterialCode2SelectedIndexChanged"
Hope to get fast reply
Thanks
Bajrang
Using .net 2.0 (VS2005)
|
|
|
|
|
Hi,
Yes you should pass parameters (object sender, EventArgs e) to the function and also you should set "AutoPostBack" property of dropdown list to "true".
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
yes do have to pass the parameters, all event handlers need two parameters, object and event argumaents, in you case you have to send EventArgs as arguments. The html syntax is right.
If DDLMaterialCode2 is a drop down list then the following line is wrong
Response.Write(DDLMaterialCode2.Text);
instead of the above you need
Response.Write(DDLMaterialCode2.SelectedValue or SelectedText);
-----
|
|
|
|
|
i have this code:
pdfdocument[] pdf = new pdfdocument[2000];
reportDocument[] rpt = new reportDocument[2000];
for(int i=0;i<2000;i++)
{
rpt[i] = loadReport("anycrystalreport.rpt");
pdf[i] = convertcrystalreporttopdf(rpt[i]);
}
showpreviewpdf(merge(pdf));
this codes make the error:
the maximum report processing jobs limit configured by your system administrator has been reached.
please help me.
if my codes isn't good method for this action please give me any ideas for show multiple reports in one pdf file.
i know that how to marge 2000 pdf file to one pdf file.
We Can Do Anything, If We Want It
|
|
|
|
|
hi friends
Is this possible to refresh the data in datagrid automatically?
regards
saravanan
|
|
|
|
|
just re-bind datagrid...
<< >>
|
|
|
|
|
Hello Friends,
I am getting an error on the pages i am trying to access database.
PLease have a look to the error and help me our with all the possibilities.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br />
Deepak Surana
|
|
|
|
|
I'm not sure I can help...but can you debug your app to see which line of code causes this exception?
<< >>
|
|
|
|
|
There is no error coming up on my local machine, but only when i upload it to a server.
Deepak Surana
|
|
|
|