|
sindhutiwari wrote: Monitoring my inbox ..
In which in box you want to monitor, you want to create own mail client.
|
|
|
|
|
hi .....
yes i wanna create own mail client...........
now if i want to monitor my hotmail id ...then what shld i do for that........thanks for ur concern.....
regards
sindhu tiwari
its me sid
|
|
|
|
|
sindhutiwari wrote: if i want to monitor my hotmail id
You need their web services
|
|
|
|
|
sindhutiwari wrote: now if i want to monitor my hotmail id
I am not sure about hotmail's free POP3 support. Search for some articles explaining how to create a POP3 client. Look at the Post office protocol's RFC for getting an idea on how it works.
|
|
|
|
|
Google turned up this[^] for the hotmail issue as they disallowed POP3 and normal IMAP access quite a while ago.
|
|
|
|
|
is there any way by which voice.speak method once begun ended even before completing the reading of the whole document. I ve tried with the SVSFlagsAsync as the second parameter of the speak method and to stop the speech between i have used pause function, but later it cannot resume from the beginning...can i get any ways by which once i stop a speech in between ,i can start again from the beginning...
|
|
|
|
|
Maybe google can help you?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Member 4756709 wrote: is there any way by which voice.speak method once begun ended even before completing the reading of the whole document.
Yes. See this[^] article.
/ravi
|
|
|
|
|
I have a nested repeater that I am trying to sum totals entered by a user, the code behind and repeater code is below. I get a null reference exception: an object reference not set to an instance of an object. the error is at: (((TextBox)parent.FindControl("TextBox2")).Text) = Convert.ToString(compPercent);
How can I get to this control to update, or add a label here?
public void AddComponent(object sender, EventArgs e)
{
int compPercent = 0;
foreach (RepeaterItem repItm in parent.Items)
{
foreach (Control childControl in repItm.Controls)
{
Repeater childRepeater = childControl as Repeater;
if (childRepeater != null)
{
foreach (RepeaterItem child in childRepeater.Items)
{
foreach (Control childControl2 in child.Controls)
{
CheckBox chk = childControl2 as CheckBox;
if (chk != null)
{
if (chk.Checked)
{
//get percent entered
compPercent = compPercent + Convert.ToInt32(((TextBox)child.FindControl("capabilitiesPercentEntered")).Text);
(((TextBox)parent.FindControl("TextBox2")).Text) = Convert.ToString(compPercent);
}
}
}
}
}
}
}
}
ASP Page:
<asp:repeater id="parent" runat="server">
<itemtemplate>
<tr>
<td width="50px"><b>Select</b></td>
<td width="350px"><b><%# DataBinder.Eval(Container.DataItem,"PSO") %></b></td>
<td><b>Enter %</b></td>
</tr>
<asp:repeater id="child" datasource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>' runat="server">
<itemtemplate>
<tr>
<td><asp:CheckBox ID="CheckBox2" runat="server" />
<asp:HiddenField ID="hidden" runat="server" Value=<%# DataBinder.Eval(Container.DataItem, "[\"PSOComponent_id\"]" )%> /></td>
<td><%# DataBinder.Eval(Container.DataItem, "[\"PSOComponentName\"]")%> </td>
<td><asp:TextBox ID="capabilitiesPercentEntered" Width="40px" runat="server" OnTextChanged= "AddComponent" AutoPostBack="true" /></td>
</tr>
</itemtemplate>
</asp:repeater> <br />
<tr>
<td></td>
<td>Percent Total: </td>
<td><asp:TextBox ID="TextBox2" runat="server" Width="40px" Text="test text"></asp:TextBox></td>
</tr>
</itemtemplate>
<SeparatorTemplate>
<tr><td colspan=3><hr /></td></tr>
<SeparatorTemplate>
</asp:repeater>
</table>
|
|
|
|
|
Try putting your code in <code></code> blocks, and it will be easier for people to read.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
How does one issue an MS-DOS command from a C# program? I want to write a program that issues a command in every sub-directory from a specified directory.
This is written as a Windows application, not a console application.
Thank you,
Glenn
|
|
|
|
|
|
Look at System.Diagnostic and Process...
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Given the following class hierarchy:
public class A
{
public virtual void func();
}
public class B : A
{
public override void func();
}
public class C : B
{
public override void func()
{
base.func();
}
}
How can my class C , call the func() implementation in the base class A .
In C++ this could be done by simply specifying the name of the base class, A::func() , but how can I do this in C#?
Thanks for your help.
|
|
|
|
|
this.func(); will always call the "highest" function it can
|
|
|
|
|
Which is very naughty and therefore not allowed in C#.
Hmmm... will ((A)this).func() do it? I'd better go check.
Nope.
modified on Friday, January 18, 2008 9:09:34 PM
|
|
|
|
|
PIEBALDconsult wrote: Hmmm... will ((A)this).func() do it?
No, it will just recurse.
|
|
|
|
|
So I see. Good. I even tried
public class C : B
{
public override string
func
(
)
{
return ( (string) typeof(A).GetMethod
(
"func"
,
System.Type.EmptyTypes
).Invoke ( this , null ) ) ;
}
}
and it still recursed (as it should).
|
|
|
|
|
PIEBALDconsult wrote: Which is very naughty and therefore not allowed in C#.
Yeah, that's kind of what I thought...
I was beginning to think things were getting a little out of hand, and you've just confirmed it. Time to refactor this particular section, before one of my co-workers posts it to Coding Horrors!
|
|
|
|
|
Hello everyone.
I'm back, and that means... yes, in my ongoing attempts to self-learn C# and .NET, I have once again painted (or coded) myself into a corner.
I managed to write a bunch of code and now find that it needs to be able to do an invalid casting in order for me to proceed. Basically, I have created a class (let's say "Automobile") and other classes ("Truck" and "Van") that are derived from it.
Unfortunately I find my self in the situation where I created
Automobile rentedCar = new Automobile();
but now I need to use rentedCar as a Van. However
Van myWheels = (Van)rentedCar;
is illegal.
I have to create rentedCar first [so that I can rentedCar.DriveHome() ], but I do not know ahead of time whether I will be trying to use rentedCar as a Van or a Truck - depends on whether the kids have a soccer game [myWheels.PlayDisneyDVD() ] or if a friend is moving [myWheels.DropTailgate() ] .
Could someone point me in the right direction for solving this please? Is this what generics are for?
I know, in your world you determine the type of vehicle you want and then rent it. But in my world, we rent it first, drive it home and then decide what kind of vehicle we want it to be - and we like it that way!
Clive Pottinger
Victoria, BC
|
|
|
|
|
You cannot cast it because you've create the "basic" automobile definition which knows nothing about how a van operates.
The easiest way would be to create a new van accepting an Automobile in it's contructor through which you can "copy" stuff across.
|
|
|
|
|
Have your kids and friends decide before you go and rent a car, then rent the
appropriate vehicle.
You can't transform a general-purpose car into a specialized one, but you can ignore
the specialization of a vehicle and concentrate on its general-purpose characteristics.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
It seems to me that your Automobile class should have a DriveHome() method. Since the classes Truck and Van are derived from Automobile, they would be able to use the DriveHome method declared in Automobile.
If the outcome of DriveHome() is going to be different depending on whether your object is a Truck or if it is a Van, then in your Automobile class, when you declare your DriveHome() method, declare it as virtual
public virtual void DriveHome()<br />
{<br />
}
Then, in your Truck class for example you could override the DriveHome() method to customize it specifically for the Truck's situation
public override void DriveHome()<br />
{<br />
if (IAmHelpingFriendMove)<br />
{<br />
}<br />
<br />
base.DriveHome()<br />
}
Hope that helps you out a bit...
|
|
|
|
|
cpotting wrote: I know, in your world you determine the type of vehicle you want and then rent it. But in my world, we rent it first, drive it home and then decide what kind of vehicle we want it to be - and we like it that way!
Well maybe you need to wrap your basic auto in a van or pickup envelope,
Auto auto = new Auto() ;
auto.DriveHome() ;
switch ( typeofvehicleneeded )
{
case VehicleType.Van : return new Van ( auto ) ; break ;
...
}
van.CommitDriveByShooting() ;
auto = van.Auto ;
van.Dispose() ;
auto.Getaway();
auto.Return();
Either way you should read up on interfaces.
|
|
|
|
|
Thanks everyone. It would appear that the general consensus is "You're screwed, pal!".
That's okay. I think I have a way out of this akin to Ed.Poore's suggestion that the Van and Truck construction methods should accept an Automobile object and derive the required information from that.
Thanks again.
If I can't get it to work, I'll be back.
Clive Pottinger
Victoria, BC
|
|
|
|