|
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
|
|
|
|
|
is it possible to detect when an user closed browser manually?
samir
|
|
|
|
|
Where do you want to detect it? On the client-side, handle the unload event. On server-sside you can't get a direct notification.
only two letters away from being an asset
|
|
|
|
|
HI every1
I have developed on window service.I want to display messagebox after every 30sec?Is it possible?if not possible,what is another alternative option to display message in window service in asp.net?Pls reply me,i am in deadline.
Thanx
monika
|
|
|
|
|
Hello pls reffer below link,
http://www.codeproject.com/csharp/winservicemanage.asp
Parwej Ahamad
|
|
|
|
|
Hello All,
i would like set property ( ScrollToCaret() ) of TextBox in javascript.
or please tell me if other method to scroll the textbox still last line of the text box.
Softy Boy
|
|
|
|
|
how can i perform scheduler for performing
some task on given time periods?
|
|
|
|
|
There are many ways to do that:
+ You can use javascript to periodically send a request to the server to perform the scheduled task.
+ You can use the task scheduler at the server side to configure a scheduled job.
+ You can configure a window service at the server side.
+ You can use the Cache object as the scheduler, for example you can save an item in the Cache with the configured time, when it is kicked out due to the timeout, you can cach up this event and perform the task.
|
|
|
|
|
Hello,
I'm trying to use a class I've built in an ASP.NET page, but I can't seem to make it work. When compiling the project, everything is fine, but when I try to run it, I get an error saying that the class cannot be found.
The code behind the page is in VB.NET, and I'm trying to instantiate the class there.
For example:
--- Custom Class File ---<br />
Imports System.Web.UI.WebControls<br />
<br />
Public Class CustomButton : Inherits Button<br />
Public Sub New(Name As String)<br />
MyBase.New()<br />
MyBase.Text = Name<br />
End Sub<br />
End Class<br />
--- End of Custom Class File ---<br />
<br />
<br />
--- Main Page File ---<br />
Imports System<br />
Imports System.Web.UI<br />
<br />
Public Class MyPage : Inherits Page<br />
Protected Sub Page_Load(sender As Object, e As EventArgs)<br />
Dim b As CustomButton<br />
<br />
b = New CustomButton("Button!!")<br />
End Sub<br />
End Class<br />
--- End of Main Page File ---<br />
What am I doing wrong?
--
Nicola
|
|
|
|
|
Hi there,
Where do you define the CustomButton class? in a seperate class file in the same web project or in a seperate project?
|
|
|
|
|
Same project, separate class file.
<div class='ForumSig'>Nicola</div>
|
|
|
|
|
I guess you are using VS 2003? Can you post the code line causing the error and the error description?
|
|
|
|
|
im developing a online dictionary system for my project at college... but i cant find the database for it... im looking database for dictionary using SAL server 2005... if anyone had that database.. pls reply.. and givw your download url.. i really appretiate your help....
pls... help me....
|
|
|
|
|
HI,
I am facing the following issue,
I couldn't debug my project and getting access denied error.
When I was a memeber in Admin group I could debug.But when it is removed from admin and added to the following groups it is not working.
1)VS Developer
2)debugger User
3)IIS_WPG
But when we add a new user in the above groups and don't have admin rights,still he can work.
I found situation only when once the member has admin rights and later if it is removed the debugger stops working..
How to solve this issue without having added in the administrator group
Any idea is much appreciated.
Thanks,
RPM.
|
|
|
|
|
hi i have a text box that gets its text vlaue after a postback. However, if the text is of a long string, my textbox too growing with text. how to fix it static but with a "%" unit.
----
<asp:textbox id="txtCommitteeNameMYS" runat="server" width="100%" cssclass="TextBox">
-----
Initial display is fine. But after a round trip it changes based on the size of the text assinged.
txtCommitteeNameMYS.Text = e.Item.Cells[3].Text;
It is perfect when the textbox Text is having a small string value like "ABC COMMITTEE". But if the text is bit long like "COMMITTEE FOR HUMAN RIGHTS VIOLATION TOWARDS WOMEN & CHILDERN", text box also grows with no wrap to the text.
I want my textbox width to have a 100% fit in the 22% td of its container table.
Strange -- noticed that the problem is not available if direction is RTL..
any idea ??
Sreekumar PP
-- modified at 10:57 Saturday 30th September, 2006
|
|
|
|
|
Please check whether all other TDs have their width specified.If all TDs have proper width summing up to 100 then this problem will not exist.
|
|
|
|
|
When i am using panel it is not allow for mouseclick in a textbox,i need to use TAB key.How to use panel for entering values throgh mousclick.On mouseclick the cursor will go to that textbox.
in HTML part what changes i need to give,For the whole form i am useing 2 panels,PAnel1 is for editable entries,Panel2 is for buttons like Add,Modify,Save.
|
|
|
|
|
Can you provide some code snippets?
|
|
|
|
|
Using C# how do I access another page within the project and call a function that is
public to it? Do I simply declare a variable as that page name and invoke the function
on the variable? Does that work even if the page has already been loaded?
I guess I'm wondering if I have to use a FindPage() or something in order to get the
instance of the page that has already been displayed...
I suppose I could just check in the Page_Load for a QueryString and if it's there have
the page call the function on it's own but that seems to be harder than it should be...
|
|
|
|
|
it is simple class call. Forget that it is a page and access the function as in a seperate class.
Page 1
namespace TEST
{
public class PAGE1 : System.Web.UI.Page
{
--------------------
private void Page_Load(object sender, System.EventArgs e)
{
PAGE2 obj = new PAGE2();
Response.Write(obj.test());
--------------------------
-------------------
-----------------
Page 2
namespace TEST
{
public class PAGE2 : System.Web.UI.Page
{
------------------------
---------------------------
public string test ()
{
return "SREE";
}
------------------------
---------------------
Sreekumar PP
|
|
|
|