|
can i know some famous service providers
|
|
|
|
|
I used this service provider in my last project. If you want you can use this also.
Try some 5 free sms on this site
http://www.intellisms.co.uk/[^]
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
i need to know the functionality and coding for the process.
|
|
|
|
|
No, Its a dll, You can give reference to that dll, then call a particular method to send SMS. Its very simple to use.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
for my company i need to send and receive sms to and from our clients.
how can i develop an application for that in asp.net.
|
|
|
|
|
Client has to buy that service from service provider. You can buy some 50 or 100 SMS for testing then you can force the client to buy to enable the service.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi,
i have a createUserwizard control in which i also collect some Personalisation information stored using Profile.
Profile.FirstName = Firstname.Text;
Profile.LastName = Lastname.Text;
Profile.Age = Age.Text;
Profile.Save();
then later in my profile page after user has been authenticated i am trying to show the profile properties
FN.Text = Profile.FirstName;
LN.Text = Profile.LastName;
ageIs.Text = Profile.Age;
Now the problem is the profile properties are being stored in database(which i can see in sqlserver2005)
but when i try to diplay profile properties in my Profile page data is not being retrieved from the database .
I can not understand why??
yojimbo
|
|
|
|
|
|
This is nice. Will you please tell me more usability of this control and how will you manage the channels.
|
|
|
|
|
Hi
I want to display webparts based on a users role (or login status). If I put a webpart inside a LoginView, I lose the titles. So...I want multiple webparts on a page, some displayed whether the user is not in (anonymous login view) , some for all logged in users (loggedInView) and some dependant on role (RoleViews). Should I place the webpart zone inside the login view, or the loginviews inside the webpartzone.
I can't find any links anywhere which shows webparts being used with login views.
Cheers
Malc
|
|
|
|
|
Has anyone ever deployed to a IIS Cluster? I have a cluster of two machines. I assume you deploy to each machine but I was wodering If I could deploy to the virtual IP.
|
|
|
|
|
How do you call a javascript function when a button is clicked? I know you can use the OnClick event, but that will fire up everytime the button is clicked. I need to call the function only when certain criteria are met.
For example
private void btnSave_Click(object sender, System.EventArgs e)
{
if (flag == true)
{
//Call Javascript function
}
}
Thanks.
|
|
|
|
|
You can't call a javascript function from the server, all you can do is rerender the page and insert script that calls it. Is flag calculated based on client side state ? If so, use a custom validator. If it isn't, then just insert client side variables that have these values, so you can validate them on the client, and still avoid a postback.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
You can call javascript by just printing the script on page
as below
private void btnSave_Click(object sender, System.EventArgs e)
{
if (flag == true)
{
<br />
reposne.write("javascript:alert('hi');")<br />
}
}
|
|
|
|
|
Hi all.
Is there any who know how I can disable Saturdays and Sunday in the ASP.NET Web Calendar control?
Cheers,
Marker
|
|
|
|
|
Here it is ..
In Calendar1_DayRender event just use the following code.
if(e.Day.IsWeekend)
e.Day.IsSelectable=false;
|
|
|
|
|
When designing classes is it a best practice to do exception handling within class or should it be taken care of at the UI level?
In other words if my class is in ClassLibrary project should I check and throw exceptions there like this:
public MyClass
{
public MyClass(){...}
GetSomeDataById(string id)
{
try
{
...
}
Catch
{ }
finallay
{
}
}
}
--------------------------------------------------------------
MyClass myClass = new MyClass("whatever");
string someData = myClass.GetSomeDataGyId("10");
if(String.IsNullOrEmply(someData)
{
}
or should I do something like this:
public MyClass
{
public MyClass(){...}
GetSomeDataById(string id)
{
....
}
}
-------------------------------------------------
try
{
MyClass myClass = new MyClass("whatever");
string someData = myClass.GetSomeDataGyId("10");
if(String.IsNullOrEmply(someData)
{
}
}
catch Exception(e)
{
}
|
|
|
|
|
If you are using the class from more than one location and the messages might be different for different locations then you should throw the exception from the class.
You should log the exact location of exception in log file so that you must know the origin of the exception.
I hope it will solve your problem.
Good luck.
|
|
|
|
|
I am looking for some good reference material, sample code for GridView/Sqldatasource with CODE BEHIND model. I need to do SELECT, INSERT,UPDATE and Delete operations on DataGridView.
I am comfortable with inline GrdidataView/SQLDatasource.
I would appreciate your help/inputs
Thanks
Amit
|
|
|
|
|
|
I recently upgrade to .Net 2005 and am utilizing the CrystalReportViewer control in my asp.net web application. I am able to run the report and display it, however the icons to print and export do not appear. They simply get the "red x" when it can't find the image? When I click on the export or print area, it does not work and returns "error on page".
Could anybody help me with this?
Thanks
|
|
|
|
|
Create a virtual directory "CrystalReportWebFormViewer2" under your web site and point it out to "C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\" or corresponding path of VS 2005
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
I ran into some problems on a particular page in an application. Only on that page, for the same control that worked in other pages, the RaisePostbackEvent was not being called, even if the “__EVENTTARGET” value from the post collection was the same as the UniqueID of my control.
After a while i discovered that the event was raised but for another control in the page.
I read the msdn documentation on the event but it was kind of blurry about was really going on with the RaisePostbackEvent.
My general idea was:
-a control implements IPostBackEventHandler
-it makes sure there is a key in the posted date equal to it's UniqueID (msdn documentation)
-the postback is performed with the “__EVENTTARGET” = UniqueID
( Page.ClientScript.GetPostBackEventReference(Me, ""))
So, i thought, that in the case the conditions described above were met the control would have it's RaisePostbackEvent called. This doesn't seem to be the case in my case. So i have tried to find the problem.
I got confused reading some articles that suggested that: “Your control needs the call to RegisterRequiresRaiseEvent when it implements both IPostBackDataHandler and IpostBackEventHandler. Otherwise, the page will not invoke the RaisePostBackEvent method of your control in the Raise Postback Event phase” - Developing ASP.NEt Server Controls and Components (MSDN press) http://www.thescripts.com/forum/thread306546.html.
This still didn't seam right, from my experiences this worked (in ASP.NET 1.1 and 2.0) you could implement both interfaces and the RaisePostbackEvent will still be called. In the book the example was for button control (a sumbit button) and i belive that was a different case (“__EVENTTARGET” empty at postback) due to the fact that the postback was generated by a simple submit.
Also : “implementing IPostBackDataHandler goes over IPostBackEventhandler when control's implementation is checked (postback data checked and determined what interface implementation to call) so when control implements both interfaces, IPostBackEventHandler implementation must be manually called since framework deals then only with IPostBackDataHandler “ http://www.cetix.de/DotNetNews/Thread8197-About_the_PageRegisterRequiresRaiseEvent_and_PageRequiresPostBa.aspx . This did not sound quite right either but it got me thinking about some possible connections between the two interfaces.
Still i didn't understand the behavior in my case. I found this rather cryptic phrase in a MSDN article:
“How does ASP.NET recognize the control responsible for handling the postback? When no controls referenced in the request body implement the IPostBackEventHandler interface, the page class looks for the __EVENTTARGET hidden field, if any. The contents of the field is assumed to be the ID of the control that caused the postback. If this control implements the IPostBackEventHandler interface, the RaisePostbackEvent method is invoked.“
http://msdn.microsoft.com/msdnmag/issues/06/12/CuttingEdge/
At first i thought it was a mistake because it didn't sound like anything else i read before about the RaisePostbackEvent. So what it actually says as i understand:
-if no controls, that have their UniqueID in the post collection, implement the IPostBackEventHandler interface
- ASP.NET “looks for the __EVENTTARGET hidden field, if any” (it might be empty in the case of a simple sumbit, not through __dopostback), if the control with this UniqueID implements the IPostBackEventHandler interface, the RaisePostbackEvent method is invoked
-if there are controls that have their UniqueID in the post collection and implement the IpostBackEventHandler ???????????? THIS IS NOT ANSWERED BY THE ABOVE PHRASE.
Upon further inspection this seemed to be my case: “there are controls that have their UniqueID in the post collection and implement the IpostBackEventHandler“ (besides the control that i was expecting the RaisePostbackEvent to be called for).
Another important fact is that “the framework will only call RaisePostBackEvent on one control.” as is expected, only one control can be responsible for the postback.
But it seems that, in my case, ASP.NET considered that it was not the control with the UniqueID contained in the “__EVENTTARGET” but it was another control that implemented IpostBackEventHandler and had it's UniqueID in the post collection.
So in my case i had two solutions:
-remove the other controls UniqueID's from the post collection (the controls were rendering hidden fields with the same name as their UniqueID, so i changed the name). The controls were only implementing the IpostBackEventHandler interface.
-for the other controls that had their UniqueID's in the post collection also implement the IPostbackDataHandler interface. This seemed to help the ASP.NET know that the UniqueID's in the post collection were in order to call the methods of the IpostbackDataHandler and it din not register the other controls for a RaisePostBackEvent (if the “__EVENTTARGET” was not = to the UniqueID of the control). So it seemed, after all, to be a subtle connection between the two interfaces. It seemed that the IpostbackDataHandler had priority in some way.
So i have tried to fully understand the mechanism in which ASP.NET decides to call the RaisePostbackEvent for a control:
-if no controls, that have their UniqueID in the post collection, implement the IPostBackEventHandler interface
-ASP.NET “looks for the __EVENTTARGET hidden field, if any” (it might be empty in the case of a simple sumbit, not through __dopostback), if the control with this UniqueID implements the IPostBackEventHandler interface, the RaisePostbackEvent method is invoked for it.
-if there are controls that have their UniqueID in the post collection and implement the IpostBackEventHandler
-if the controls also implement the IpostbackDataHandler (the UniqueID is considered to be in the post collection in order for the IpostbackDataHandler methods to be called)
ASP.NET “looks for the __EVENTTARGET hidden field, if any” (it might be empty in the case of a simple sumbit, not through __dopostback), if the control with this UniqueID implements the IPostBackEventHandler interface, the RaisePostbackEvent method is invoked for it.
-if the controls don't implement the IpostbackDataHandler
ASP.NET considers that the UniqueID's are there in order for the IpostBackEventHandler methods to be called, and it goes on registering the controls for a RaisePostbackEvent, so multiple controls are registered for a RaisePostbackEvent. But because RaisePostbackEvent is called only for a single control per request, the RaisePostbackEvent is called for a control that isn't necessarily the control that has the UniqueID equalt to the value in the “__EVENTTARGET”. ASP.NET seems to call the RaisePostbackEvent for the last registered control.
This mechanism seems to explain the behavior in my case. If some of you could confirm or infirm this scenario i would appreciate it.
|
|
|
|
|
Hi All
Can someone help me with getting a format datetime function which returns like this
1) 2/1/2007 - 2/28/2007 -------- current month range
2) 1 Jan 2007 - 31 Dec 2007 --- current year range
IS there any function available for this or not?
Thanks
|
|
|
|