|
In my script i set a variable called impath="whatever.jpg";
ex: <% string impath;
impath="wallpaper/" + idvalue + " /thumbs/" + cnt1 + ".jpg";%>
I want to be able to use this variable in a href command such as:- src=impath
runat="server" >
but of course this syntax is wrong.. How would I define the img src line to use the variable?
if u know ans plz let me know ASAP
Haritha
|
|
|
|
|
Set it up as a public variable in your code behind. Then you can access it with the <% %> You just need to make sure you do some sort of Page.Bind so that the <% %> gets translated to your value.
Hope that helps.
Ben
|
|
|
|
|
A proper design would be to use properties rather than public fields.
only two letters away from being an asset
|
|
|
|
|
True enough. I guess I wasn't sure if I wanted to go into the detail of creating a property.
Ben
|
|
|
|
|
Urgent is not a acceptable message title. Read the how to get answers post at the top of this forum. You may get more/better responses that way.
only two letters away from being an asset
|
|
|
|
|
This is correct however you can add single Quotes or double quotes
Nobody is perfect i'm Nobody
|
|
|
|
|
Our application is hosted in win 2003 server, iis6.0
ASP.NET 1.1 with vb.net
After several requests(not a huge number) by the user, the worker process zooms up to 500 mb and it stops responding. It was tested from multiple machines. If the same application is tested from a single machine opening multiple instances, it increases the size somewhat by 2MB but doesn't reach 500 MB. We are checking for any memory leaks. The form that has been tested has got huge functionality of creating multiple contrls, mainly (input type=text) and it is assigned to the text of a ASP:literal control. The processing involves going through multiple functions in loops. Each loop having some string builders and it is assigned to main string builder. We are searching google also to find out ways of solving this. I request your help on this as this is a urgent one
Thanks,
K.P.Kannan
|
|
|
|
|
I am guessing you aren't properly disposing of your string builders. You also are probably storing too many large objects in your Session variable.
Just some guesses.
Ben
|
|
|
|
|
You are absolutely right. We were not clearing a session object properly and it was also huge. Thanks for the help
|
|
|
|
|
Hi,
I am implementing 3 tier architecture in my project.I am using asp.net 1.1.
Can Anyone help me out in writing code for a data access layer.
Bhanu
|
|
|
|
|
|
Thanks Nilish,
I would like to ask you one more question.
What you have mentioned is for VS 2005.
But I am working on VS 2003
So, can you please tell me how to do it in 2003
Bhanu
|
|
|
|
|
|
Hi
i am using the drop down in the grid view and i firstly bind it with the database and after changing filling the grid view with data table after making changes but i am not able to change the value of drop down with the data table can any body tell the solution
thanks
kanwal
|
|
|
|
|
kanwal2k6 wrote: not able to change the value of drop down
What's that mean?
|
|
|
|
|
hi kanwal,
why dont you use object data source control to fill up dropdown, its very easy to use. all you need to do is select the class name and method name.
|
|
|
|
|
i guess you are talking about this thing
dropdownlist.dataitem=datatable.columns[index of column you want to define].tostring()
dropdownlist.datavalue=datatable.columns[index of column you want to define].tostring()
droptdownlist.databind();
|
|
|
|
|
i was able to bind the dropdown but how can i retain the selected value while adding a new row in grid view having same drop down
|
|
|
|
|
hi
I want to use the crystal report in my application on the basis of dataset.
I have done it with dataset having single table but having this error with more than one table :
"Query Engine Error"
Here is the Code:
Dim DS As New DataSet
Dim Cnn As New SqlClient.SqlConnection
Dim DA As New SqlClient.SqlDataAdapter
Cnn.ConnectionString = "data source=sofsrv02\development;" _
& "initial catalog=Northwind;persist security info=False;" _
& "user id=sawd=;workstation id=alirazaooling=false;packet size=4096"
Cnn.Open()
DA.SelectCommand = New SqlClient.SqlCommand("Select A.PRODUCTID,A.PRODUCTNAME,B.SUPPLIERID,B.COMPANYNAME from SUPPLIERS B,PRODUCTS A WHERE A.SUPPLIERID=B.SUPPLIERID", Cnn)
DA.Fill(DS)
Dim oRpt As CrystalReport1 ' create new report object
oRpt = New CrystalReport1 ' create new instance of the report object
oRpt.SetDataSource(DS) ' set the reports data source
CrystalReportViewer1.ReportSource = oRpt ' set the viewers report source
It executes all the code but finally give me error.
Kindly Solve this Problem
Regards
Ali
|
|
|
|
|
This is the complete error.
Error in File C:\DOCUME~1\ALIRAZ~1\ASPNET\LOCALS~1\Temp\temp_2d2350fe-39ee-4e43-a51c-2503df13defd.rpt: Query Engine Error
Regards;
ALI
|
|
|
|
|
i was trying to run a website (language vb.net 2005).i got the following error.There is no coding work or designing work done in the web site.
I was trying to execute it and got the error.
Unable to connect to Visual Studio Local Host Web Server.
|
|
|
|
|
To use the web server built into Visual Studio, you have to start the site from within Visual Studio.
If you don't want to use the built in web server, you need to set up the site in IIS instead.
---
single minded; short sighted; long gone;
|
|
|
|
|
Did you change any of the project properties? e.g. To start in IIS as opposed to using the built in web server?
Do you have IIS installed on the current machine?
|
|
|
|
|
Gday everyone,
I have a critical problem that I really someone help
I need to get the a cell(this is not shown on Gridview) according to which row that user click on in a Gridview populated from a method in runtime.
Please help me. Thanks in advance.
Eric
eric
|
|
|
|
|
well i wanted to do the same thing but didn't find any solution.
you must have made the column invisible, when the column is invisible we can't access it contents
dont know how to do that
|
|
|
|