|
I want to show a piping diagram on the webpage with the movement of fluid in it. The piping should stay as such with only the fluid movement getting refreshed every 30 secs. Is it possible to have a fixed image and a moving point superimposed on the webpage ? Only the moving point should be loaded everytime ?
anuj
|
|
|
|
|
I'm using V.Studio 2005 to program ASP.NET 2.0 pages.
For every first debug run of my app, a dialog box
titled "Debugging Not Enabled" will show. It always
has two options:
1. Modify the Web.config file to enable debugging
2. Run without debugging. (Equivalent to Ctrl+F5)
I always have to select one of the option to continue
with. Is there any setting I can adjust to eliminate
this message box for all subsequent new ASP.NET pages?
Thanks for your reply...
Pedestrian, Penang.
|
|
|
|
|
First you may have to read this:
from msdn.
However VS automatically adds the debug=false to the compilation property in the web site project's web.config file.
Hence you may have to change the VS template - to assign the value "true".
Recall that you should set debug=false before deploying in order to remove all debugging information.
VS template reference could be found in:
Visual Studio Template Reference
and you can find more articles on the web.
Finally, there may be a very simple way to acomplish this - nothing that I know about.
Best regards,
elaj
|
|
|
|
|
Elaj, thanks a lot for your valuable answer.
Pedestrian, Penang.
|
|
|
|
|
Hi,
I am trying to put picture in GridView from SQL Server 2000 Database using Employees Table.
I am using ASP.NET 2.0.. I created typed dataSet selecting all columns. Among all columns, one of them is picture column......
I tried with ImageBound column, it did not work......
Can anyone help please..
Thanks
Sanjeev
|
|
|
|
|
You use the ImageField when you have the url of the image and specify it in the field. This question is common and asked many times already, so you can search for articles, sample code posted here using the search functionality or Google[^]
|
|
|
|
|
Hi All
I am building an small page in asp.net by using vb.net. The page is having 10 different controls from which one is UserName. I have two button one is Submit and other one is check user availability. Check user avaibality will be use by user to see if entered user name is available or not.
Now I am doing below tasks
1)On page load - Adding Javascript function
Me.CmdCheckAvl.Attributes.Add("onClick", "return bValidateUserName(" & icount & ");")
2)Public Sub CmdCheckAvl_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdCheckAvl.Click
'To Check user name already exists in db or not. This will be check by using Session("UserNameList") which is build from serNameVw
Dim UserNameVw As New DataView
UserNameVw = Session("UserNameList")
UserNameVw.RowFilter = "UserName=" & "'" & Me.TxtUserName.Text & "'"
hdnCount.Value = UserNameVw.Count
icount = hdnCount.Value
End Sub
But by this icount in step one is always zero….
how i can pass server end value to client site code or any other workaround by which i can acheive the functionality.....
Amit
|
|
|
|
|
You assign the value to the icount variable after you use it. That's why it's always zero.
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
I have a page class and inside it I have a ITemplate class to create
the item template of a repeater:
Partial Class Contacts
Inherits System.Web.UI.Page
Private Class myTemplate
Implements ITemplate
...
Private Sub()
MyLabel.Text =
Me.GetLocalResourceObject("MyLabel.Text").ToString() *****
End Sub
...
End Class
End Class
My problem is that in line ***** I get an error when trying to access a
local resource:
"GetLocalResourceObject is not a member of Page.myTemplate"
So basically I can use my local resources in my page class but not in a
class inside it.
How can I solve this problem?
Thanks,
Miguel
|
|
|
|
|
|
Hello,
How can I make the first letter of a string to be upper case?
Thanks,
Miguel
|
|
|
|
|
Use the SubString method to get the separate parts of the string and the ToUpper method to turn the first part to upper case.
---
b { font-weight: normal; }
|
|
|
|
|
string uppercase = "hello world";<br />
uppercase = uppercase.Subtring(0,1).ToUpper();
|
|
|
|
|
Use the below user defined function......
Select dbo..INITCAP('amit')
output --> Amit
Cheers
Amit
CREATE function INITCAP (@inString varchar(4000) )
/* INITCAP returns char, with the first letter of each word in uppercase, all other letters in lowercase. Words are delimited by white space or characters that are not alphanumeric */
returns varchar(4000)
as
BEGIN
DECLARE @i int, @c char(1),@result varchar(255)
SET @result=LOWER(@inString)
SET @i=2
SET @result=STUFF(@result,1,1,UPPER(SUBSTRING(@inString,1,1)))
WHILE @i<=LEN(@inString)
BEGIN
SET @c=SUBSTRING(@inString,@i,1)
IF (@c=' ') OR (@c=';') OR (@c=':') OR (@c='!') OR (@c='?') OR (@c=',')OR (@c='.')OR (@c='_')
IF @i<LEN(@inString)
BEGIN
SET @i=@i+1
SET @result=STUFF(@result,@i,1,UPPER(SUBSTRING(@inString,@i,1)))
END
SET @i=@i+1
END
RETURN @result
END
|
|
|
|
|
Hi..
Could any one explain to me How could I make Business Entity and Business Entity Set and how to bind them to controls?I found an article in that subject but I couldn't understand these issues...
I am too late but i will never give up
|
|
|
|
|
Hi there,
You can see many examples from the stater kits[^].
|
|
|
|
|
|
If you open the starter kit for example the Time Tracker, you will see the way the Business Entity and Business Entity Set objects such as Project and the generic collection List< Project> . In the old days with the .Net framework 1.x, you'd normally use the ArrayList or a custom Collection class to define the entity set object. But with the appearance of the Generic concept, it's much easier to do this stuff.
|
|
|
|
|
I am using asp.net 1.1 so for example if I have a table :
CountryID,CityID,CityCode,NameEN,NameAR
What the BusinessEntity will look like?
and how the BusinessEntitySet will look like?
I am too late but i will never give up
|
|
|
|
|
You should have mentioned that you are using the .Net framework 1.1. The sample code for the BusinessEntity and BusinessEntitySet objects looks something like:
public class Location
{
private int m_CountryID;
public int CountryID
{
get { return m_CountryID; }
set { m_CountryID = value; }
}
private int m_CityID;
public int CityID
{
get { return m_CityID; }
set { m_CityID = value; }
}
private string m_CityCode;
public string CityCode
{
get { return m_CityCode; }
set { m_CityCode = value; }
}
private string m_NameEN;
public string EnglishName
{
get { return m_NameEN; }
set { m_NameEN = value; }
}
private string m_NameAR;
public string ArabicName
{
get { return m_NameAR; }
set { m_NameAR = value; }
}
}
public class Locations : CollectionBase
{
public Locations(): base(){ }
internal Locations(ICollection c) : base()
{
base.InnerList.AddRange(c);
}
public Location this[int index]
{
get
{
return base.InnerList[index] as Location;
}
set
{
base.InnerList[index] = value;
}
}
public int Add(Location location)
{
return base.InnerList.Add(location);
}
public void Remove(Location location)
{
base.InnerList.Remove(location);
}
} In the Location object, I define the CountryID, CityID properties with the primitive types, but you can also use the custom type if you have the Country, City objects.
|
|
|
|
|
Thanks for the code
Sorry for asking alot of questions but how could I use these classes:
location and locations?
I am too late but i will never give up
|
|
|
|
|
|
Thank you very much for helping me for along time and answering my several questions.
I won't forget your help.
I am too late but i will never give up
|
|
|
|
|
Hello,
If you make a search in Google for "CNN" you will get the result as follows:
CNN.com - Breaking News, US, World, Weather, Entertainment & Video ...
CNN.com delivers the latest breaking news and information on the latest top stories, weather, business, entertainment, politics, and more.
www.cnn.com/ - 99k - Cached - Similar pages
SI.com - News and Scores from ... - sportsillustrated.cnn.com/
International Edition - edition.cnn.com/
CNNMoney.com - money.cnn.com/
Entertainment - www.cnn.com/SHOWBIZ/
More results from www.cnn.com »
Instead of:
String.Split Method (System)
Returns a String array containing the substrings in this instance that are delimited by elements of a specified Char or String array.
msdn2.microsoft.com/en-us/library/system.string.split.aspx - 15k - Cached - Similar pages
when I do a search for "string.split". This is the tratidional format of Google search results.
How does google see those links inside a web site?
Should I implement something in Asp.Net web site?
Thanks,
Miguel
|
|
|
|
|
hi,
i need to submit several challenging project titles to my boss. the complex of the projects doesnt matter. need the title a basic descritpion of the project. it should be web project. can anyone help me out. i have already sumitted a big list. it seems he wants more complex ones. just help me guys. ok.
thanks in advance,
lavanya
|
|
|
|