vuyiswamb 17 Posting Whiz
in which country as you ? There are some other webservices that are exposed and they are avaiable in certain countries not all and they have limited credit because everyone uses them, so i will conclude by saying you can send an sms for free , you need a gateway , and a gateway can only be provided by Service Providers like your web hosting company, Mobile Company and other Sms gateway Service Provider like
i have looking for a way to attract uses to send free sms's for my site, since i am in South Africa , that was not possible , the only way is to but Sms bundles.
Hope i helped
try this
exec dbo.usp_GetPropertyData(1,15,'',1)
if you have a Category then you can do something like this
DropDownList1.SelectedItem = "I am a Default Selection";
What you need to do is to add triggers in your update panel and select the textbox and select the correct event.
You need a SMS gateway, they are not free, the is clickatell.com , they will expose a web service and you will consume a webservice that has methods to send an sms, but you need to buy the sms bundles
You wrote : The Problem is I can't run Application without installing Vs?
I don't believe this , is this a Question because i see a question mark.
You wrote:is there any solution?
can I run setup without install visual studio?
yes you can, it should be like that. if i designed my website with asp.net and visual studio 2010 it does not mean i have to install vs on the server.
can i see your code Behind?
use this
in your the head of your page use this and again inside add an Updateprogress and add some nice gif animation for your users and an update panel and test it
function pageLoad()
{
var manager = Sys.WebForms.PageRequestManager.getInstance();
manager.add_endRequest(endRequest);
manager.add_beginRequest(OnBeginRequest);
}
function OnBeginRequest(sender, args)
{
$get('ParentDiv').className ='Background';
}
function endRequest(sender, args)
{
$get('ParentDiv').className ='';
}
add a div that covers whole contents of the page and name it ParentDiv
<div id ="ParentDiv">
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
<div id="IMGDIV" align="center" valign="middle" runat="server" style=" position: absolute;left: 46%;top: 40%;visibility:visible;vertical-align:middle;border-style:inset;border-color:black;background-color:White;z-index:40;">
<asp:Image ID="Progress" runat="server" ImageUrl="~/Images/progress.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
//your Update Panel here
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
.....Contents
</ContentTemplate>
</asp:UpdatePanel>
</div>
and tell me if you still have a problem
use this
in your the head of your page use this and again inside add an Updateprogress and add some nice gif animation for your users and an update panel and test it
function pageLoad()
{
var manager = Sys.WebForms.PageRequestManager.getInstance();
manager.add_endRequest(endRequest);
manager.add_beginRequest(OnBeginRequest);
}
function OnBeginRequest(sender, args)
{
$get('ParentDiv').className ='Background';
}
function endRequest(sender, args)
{
$get('ParentDiv').className ='';
}
add a div that covers whole contents of the page and name it ParentDiv
<div id ="ParentDiv">
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
<ProgressTemplate>
<div id="IMGDIV" align="center" valign="middle" runat="server" style=" position: absolute;left: 46%;top: 40%;visibility:visible;vertical-align:middle;border-style:inset;border-color:black;background-color:White;z-index:40;">
<asp:Image ID="Progress" runat="server" ImageUrl="~/Images/progress.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
//your Update Panel here
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
.....Contents
</ContentTemplate>
</asp:UpdatePanel>
</div>
and tell me if you still have a problem
i wrote an article about this , look at the following
http://www.dotnetfunda.com/articles/article733-how-to-use-updateprogress-control-aspnet-ajax-.aspx
i have once written an article about this look at this
http://www.dotnetfunda.com/articles/article733-how-to-use-updateprogress-control-aspnet-ajax-.aspx
Good Day All
i have Successfully binded the Telerik Schedular from Objects and its looking Good. Now i have to Bind the same results but in hierachial form. Please note that i am using Telerik Grid and the implementation is the same as asp.net Gridview. i need someone to Guide me to do a hierachy grid from objects , please if you send an example code , add comments so that i can understand the logic
private void BindViewer()
{
VS.ViewerService obj = new VS.ViewerService();
String SessionKey = obj.newSession();
DateTime Date1 = Convert.ToDateTime("1980-01-01");
DateTime Date2 = Convert.ToDateTime("2012-12-31");
VS.extract extract = obj.getObjects(SessionKey, "Butt", Date1, false, Date2, false, "", "");
try
{
RadPanelBar1.Items.Clear();
RadScheduler1.Appointments.Clear();
int Len = extract.set.Length;
for (int i = 0; i < Len; i++)
{
VS.vertex value = extract.set[i];
String PanelClass = value.meta;
PanelClass = PanelClass.Replace(Remstr, "");
PanelClass = PanelClass.Replace(Remstr2, "");
Appointment app = null;
if (value.atom != null)
{
RadPanelItem pane = RadPanelBar1.Items.FindItemByText(PanelClass);
if (pane == null)
{
RadPanelItem nwpane = new Telerik.Web.UI.RadPanelItem(PanelClass);
RadPanelItem nwpaneSpliter = new Telerik.Web.UI.RadPanelItem(PanelClass);
nwpaneSpliter.IsSeparator = true;
RadPanelBar1.Items.Add(nwpane);
pane = nwpane;
}
if (value.meta == "za.co.abacus.C_EVENT")
{
app = new Appointment();
}
int atomLen = value.atom.Length;
for (int j = 0; j < atomLen; j++)
{
VS.atom atm = value.atom[j];
if (atm.meta.Contains("za.co.reactor.A_LABEL"))
{
RadPanelItem NewItem = new RadPanelItem(atm.content);
pane.Items.Add(NewItem);
if (app != null)
{
app.Subject = atm.content;
app.Description = atm.content;
app.ID = value.key;
}
}
if (app != null && atm.meta.Contains("za.co.abacus.C_EVENT"))
{
app.ID = atm.content;
}
if (app != null && …
Good Day All
I have a Method that i have defined that i will access in JavaScript(Page Method) and its defined like this
[WebMethod, System.Web.Script.Services.ScriptMethod]
public static void Getadata(String StrSearch)
{
View obj = new View();
obj.Bind_SearchBox(StrSearch);
// return Scriptt;
}
And the Bind_SearchBox() method is a non static method that is defined in this code behind of this page and View is the class name of the Page. Now i debugged this and i see the results are passed to the method and the Method is Defined like this
public void Bind_SearchBox(String Search)
{
ViewerService.ViewerService obj = new ViewerService.ViewerService();
String SessionKey = obj.newSession();
DateTime Date1 = Convert.ToDateTime("1980-01-01");
DateTime Date2 = Convert.ToDateTime("2012-12-31");
ViewerService.extract extract = obj.getObjects(SessionKey, Search, Date1, false, Date2, false, "", "");
try
{
RadPanelBar1.Items.Clear();
RadScheduler1.Appointments.Clear();
int Len = extract.set.Length;
for (int i = 0; i < Len; i++)
{
ViewerService.vertex value = extract.set[i];
String PanelClass = value.meta;
PanelClass = PanelClass.Replace(Remstr, "");
PanelClass = PanelClass.Replace(Remstr2, "");
Appointment app = null;
if (value.atom != null)
{
RadPanelItem pane = RadPanelBar1.Items.FindItemByText(PanelClass);
if (pane == null)
{
RadPanelItem nwpane = new Telerik.Web.UI.RadPanelItem(PanelClass);
RadPanelItem nwpaneSpliter = new Telerik.Web.UI.RadPanelItem(PanelClass);
nwpaneSpliter.IsSeparator = true;
RadPanelBar1.Items.Add(nwpane);
pane = nwpane;
}
if (value.meta == "za.co.abacus.C_EVENT")
{
app = new Appointment();
}
int atomLen = value.atom.Length;
for (int j = 0; j < atomLen; j++)
{
ViewerService.atom atm = value.atom[j];
if (atm.meta.Contains("za.co.reactor.A_LABEL"))
{
RadPanelItem NewItem = new RadPanelItem(atm.content);
pane.Items.Add(NewItem);
if (app != null)
{
app.Subject = atm.content;
app.Description = atm.content;
app.ID = value.key;
}
}
if (app != …
Good Day All
i have a Function e.g
public String Getdata(String mystr)
{
//Do what ever
//return a String
}
and i want to call this function and pass data in Javascript like this
function KeyPress() {
var TExtbox1 = document.getElementById('Text1');
if (TExtbox1.value.length == 2) {
//call the function here and pass the textbox1 value.
return false;
}
}
Thanks
No Problem, i will be here
Good Day john
I am Glad you like them. Please give me more details about your project and i will advice. You can even reach me at Vuyiswamb@gmail.com if you don't find me here or at www.dotnetfunda.com i work there.
if that is the case you need to use Sessions like this
Page1
Session["MySessionVar"] = Textbox3.Text;
and if you want to access your session created on Page1 on the other page lets say Page2 then you will have to do it this way
String ValueFromPage1 = Convert.ToString(Session["MySessionVar"]);
Hope this is what you want
What is your Problem?
First this is wrong
[B]Sesssion[/B]["name"] = "lam";
infact in ASP.NET you would have gotten an Error. If want to create a Session from page1 and Access it in Page2 you have to do this
Page1
Session["MySessionName"] = "Hello World";
and on Page2 you can access the Session that you have created like this
if(Session["MySessionName"] != null)
{
String ValueFromPage1 = Convert.ToString(Session["MySessionName"]);
}
That is how Sessions work in ASP.NET
I think you need a Scheduler, Someone asked this Yesterday. I have the Same Answer for you too, there are Schedulers that you can use. I am doing the timetabling and Resource Management System use Telerik Schedular its Good , look at this
http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx
Good Day iamchamith
The First thing you need to Do is give them a backup of your Database and they will create it for you on the other side and give you the Connectionstring or most hosting Companies give you an option in the Control panel of the Domain to restore Backups and from there you will see the connectionstring that you will need to change in your web config.
Hope this helps
ooh ok i see.
So you want to use a Value from one page in another page ?
i think with R999 at Telerik you get a lot more Controls and there is support and Updates. There is Infragistics but its more expansive that Telerik , but they have training, look at this
http://store.infragistics.com/Default.aspx?Category=NetAdvantage+For+ASP.NET
after all if you want the best ,you need to pay.
as i said above and as you have showed below
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'HOME\ASPNET'.
The user HOME\ASPNET does not have permissions to access the database and these might be a domain user and remember that the user that you have locally on your development machine, might not necessarily have the same permission on the deployed server.
The Problem still lies on the connection string and other parts that you did not mansion in your explanation of your problem.
i am a little bit confused by your explanation.
Are you saying , you have created a Windows application that has a TextBox named TextBox3 and you created a Web Application and you want to use the Value of a Windows application the Web Application ?
Doing this is not an easy thing to do, especially if you are new. i suggest you use a third party control called Schedular. Look at this link, they are doing exactly what you want.
http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx
i have been designing this kind of systems for a long time. Timetabling and Resource Management. If you need anything you are free to contact me.
The Error means that your connection string is not Correct. The Username aka user id has an invalid user. i see in your web config
<add name="Adv" connectionString="Data Source=.;Initial Catalog=model;Integrated Security=True;User ID=sa;password = password123;"/>
You still have a "." that indicates the default sql instance. the best Way to resolve your problem.
1) Go to SQl management Studio and Connect to the sql server with the credentials you supplied in the web config, if they don't work , then that's the problem. Sort that out.
2) After you have sorted the login problem on the Sql management studio , then go to your web config and change the Data Source value to something don't use a "." there, change the username and password to what you used when you logged into SQL management Studio.
3) Make sure the Database is Correct and save your web config and try again.
Hope it Helps
Yes the textbox will always be clear. there is only one Solution to this , is to use Ajax.if the flickering of the page causes this, what you need to do, is to add a scriptmanager to your page and add an updatepanel and add the textbox inside the Update panel. This solution will only work for a asp.net Textbox , but if its a html textbox then after the calculation you need to reassign the session value to the textbox as reach_yousuf demostrated.use the alerts to check the contents of the session.
i want to know how to configure iis in order to access a remote microsoft access database
in asp.net.permission how should it be,anonymous iis usrs,...
any exact information pls
thanks
well anonymous should be selected. i think accessing the mdb database is not a problem , all you need to do is to make sure that the connection string is correct. Try to access the db and get errors and we will tell you what is the problem. atleast attempt
Step 1 Ask them for FTP credentials
Step 2 Download FileZilla , its Free
Step 3 Log in with your Filezilla to the ftp, select port 21
Step 4 The Website Files normally stay in http folder copy them and you will find the default files like index
Step 5: After you have copied the files. Go to the Control Panel they gave you access to. Look for IIS or ASP.NET setup, the Control Panels are not the same, and look for a part where they will give you an option to change the Home page
Step:6 :) Test it
Does the onselectedindexchanged gets Fired ?
Place a BreakPoint on it and add a value so that the Javascript test can be true.
eish, i am 28 years old going to tuen 29 on the 14 of September this year and my beard is has some white hair , i am not sure what is this i ma worried that i might be getting older. I dont want to look like Sean Connery at the age of 28
Yes i need Help. i want to pause my age , for 5 years :). i am Glad that i am not 30. Eish i wonder how will i look when i grow old
i haven't touched Windows app for some time now. But tell me what is the start-up object for the project. Is it a Window or a Class library ?
I think you are not doing this correctly. i haven't touched ole for long now, but change your code to look like this
string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\Catherine\\Documents\\LearningCSharp.accdb";
OleDbConnection myConnection = new OleDbConnection(connectionString);
myConnection.Open();
int employeeNumber = int.Parse(textBox1.Text);
string name = textBox2.Text;
string address = textBox3.Text;
string query = "update EMPLOYEE set EmployeeName=[B] ?[/B] , Address=[B]?[/B] where EmployeeID = [B]?[/B]";
OleDbCommand myCommand = new OleDbCommand();
myCommand.Parameters.Add("@name").value = name;
myCommand.Parameters.Add("@employeeNumber").value = address;
myCommand.Parameters.Add("@employeeNumber").value = employeeNumber;
myCommand.CommandText = query;
myCommand.Connection = myConnection;
myCommand.ExecuteNonQuery();
myConnection.Close();[/CODE]
The Sequence of the parameters must be the same. That means the first "?" must correspond to the first definition of the parameter. you got that error because your sql statement tells ado.net that there is a parameter and when it look it does not find any definition of a parameter.
Thanks in advance.
try this
if (ds.Tables[0].Rows.Count > 0)
{
//bind the Data
}
else
{
lblMessage.Text = "No Data to Display";
}
a gridview is not visible when there no data, so you need to add a label that will display the message.
Am not sure if you can make a control defined on fly a trigger.
http://msdn.microsoft.com/en-us/library/bb386454.aspx
well i created my login system and i manage it myself. on that part every time a user logs in i change the status in the profile in the database as online, and if another user tries to log in with a username that is online, i will just display a message that the user is currently logged in in another place. but if you go this route , you need to make sure that when the user idle you log the user out or if the user uses the closes button of the browser you need to check that and change the status appropriately.
That is not correct , you need to create a parameter. and assign the value of the textbox to that parameter. First you need create a StoredProcedure that will do the inserts like this
Create proc sp_Add_Record
(
@email_id int
)
AS
INSERT INTO Sample
VALUES(@email_id)
and in your C# Code you can do this
SqlCommand comm = new SqlCommand();
comm .CommandType = CommandType.StoredProcedure;
comm.CommandText = "sp_Add_Record"
comm.Parameters.Add("@email_id", SqlDbType.Int,4).Value = TextBox1.Text;
Now as you can see i have passed the textbox value to the parameter and it will be used in the stored procedure to do the insert
Are you Sure that in the ShippingCost Field there are values ?
let me see the Structure of the table Shipping
when you say it does not work do you still receive incorrect value form the variable ?
Change your Sp to look like this
ALTER PROCEDURE CommerceLibShippingCost
(@ShippingID int,
@Results int OUTPUT
)
AS
SET @Results = ( SELECT ShippingCost
FROM Shipping
WHERE ShippingID = @ShippingID)
and in your C# add the parameter and set the direction like this
comm.Parameters["@Results"].Direction = ParameterDirection.Output;
and after you execute the
Comm.ExecuteNonQuery();
then get the value like this
int Results= (int) comm.Parameters["@Results"].Value;
understand ?
First i dont trust that this brings the correct value
return Decimal.Parse(GenericDataAccess.ExecuteScalar(comm));
i suggest you use the output variable in your storedprocedure and in your c# code accept it. understand?