|
In our organization we have xp_sendmail stored procedure in MS SQL Server.
Details of this are in MSDN
http://msdn.microsoft.com/en-us/library/ms189505.aspx
|
|
|
|
|
Thanks
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Not possible..
when install IIS on your server there is option of SMTP server that is fully responsible for mail transfer.
even if you are able to third party tool for the SMTP server then is is possible..
Anshuman Singh
|
|
|
|
|
Anshumas wrote: Not possible..
that's why I asked that personthat how he will install SMTP with out IIS ?
|
|
|
|
|
|
If you don't have IIS installed, then you can't run ASP.NET, so why are you asking here ?
Sending mail does not require IIS, it requires a mail server to send through, which IIS by default, is not. I don't know what these other people are telling you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi...Guys Thanks For your timly reply i got the solution....
|
|
|
|
|
Hi
There are 7 records in my table.
I want to get the one by one record when each client made a request
e.g.
Records in my table
1 A
2 B
3 C
4 D
5 E
6 F
7 G
If I click on index.aspx 1 A will be called.
If Other Customer click on index.aspx then 2 B record should be fetch and so on
for 8th customer again 1 A should be called.
How can I do?
Thanks
sjs
|
|
|
|
|
You'll need to persist the index in some fashion so that it is available to all requests to your site. Use an application level variable.
only two letters away from being an asset
|
|
|
|
|
Thanks for reply.
How can I use Use an application level variable. I have no idea about that.
Thanks
sjs
|
|
|
|
|
Application["MyKey"], just like Session
only two letters away from being an asset
|
|
|
|
|
Hello All,
I am using the gridview in which one column is set visible=false.But while deleting a particular row how to take the value of that column which is invisible ???
Thanks in advance......
|
|
|
|
|
In general you don't really need to care about the actual contents of the row. If you have the index of the row being deleted you can look it up in the datasource.
only two letters away from being an asset
|
|
|
|
|
Better you do column width=0px other than doing visible=false
ARINDAM
|
|
|
|
|
Why would that be better? Visible = false doesn't render the column at all. Width = 0px does render the column thus transmitting unnecessary or unneeded data.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Visible = false doesn't render the column at all. Width = 0px does render the column thus transmitting unnecessary or unneeded data.
That's perfect mark !!
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
you may put that data in hidden field under templetefield
Anshuman Singh
|
|
|
|
|
Instead of visible=false, I use this CSS:
.HiddenColumn
{
display:none;
}
Then set styles of the column in the gridview like so:
<asp:BoundField DataField="AccrualRegisterID" HeaderText="AccrualRegisterID">
<HeaderStyle CssClass="HiddenColumn" />
<ItemStyle CssClass="HiddenColumn" />
</asp:BoundField>
The data is then available in codebehind.
Someone's gotta be the last to know, but why is it always me?
|
|
|
|
|
I have an web application and want to write urdu in a textbox.
I have achieved it in desktop but want to achieve it in asp.net
The code which i used in desktop is:
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(Application.CurrentCulture);
InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(new CultureInfo("ur-PK"));
Please help.
Bye
modified on Sunday, January 11, 2009 2:20 PM
|
|
|
|
|
It seems you have absolutely not idea about ASP.NET. If you did, you'd know there is no way that any C# code you may happen to write, can do anything to a client's machine, apart from send it HTML. Therefore, you can't change the windows language with ASP.NET. that you think you may be able to, means you're in desperate need of doing a very basic course before attempting anything remotely serious ( you sure should not be doing paid work, or expecting that you're writing useful code in ASP.NET at this point )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
but he did say please. Would it have helped if he said URGENT or homework
only two letters away from being an asset
|
|
|
|
|
God, I can't handle this forum now. It's a breeding place for ignorance, with just a few brave souls trying to maintain some standard of knowledge. It depresses me.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear friends,
I am trying to create two dropdown list user controls and these are dependent on each other like state is dependent on country. When I select county then I am unable to fill state dropdown. How can I fill state dropdown on selection of country?
I have followed steps like this
Country.ascx:-
]]>
<asp:dropdownlist id="ddlCountry" runat="server" xmlns:asp="#unknown">
Code behind:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Country : System.Web.UI.UserControl
{
public event EventHandler SelectedIndexChanged;
public string SelectedValue
{
get
{
return Convert.ToString(ViewState["Value"]);
}
set
{
ViewState["Value"] = value;
}
}
public bool AutoPostBack
{
get { return Convert.ToBoolean(ViewState["AutopostBack"]); }
set { ViewState["AutopostBack"] = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ddlCountry.Items.Insert(0, new ListItem ( "India","0"));
ddlCountry.Items.Insert(1, new ListItem ("South Korea","1"));
}
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
ddlCountry.AutoPostBack = true;
ddlCountry.SelectedIndexChanged += new EventHandler(ddlCountry_SelectedIndexChanged);
}
void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
{
OnSelectedIndexChanged(e);
}
protected void OnSelectedIndexChanged(EventArgs e)
{
if (SelectedIndexChanged != null)
{
SelectedValue = ddlCountry.SelectedValue.ToString();
SelectedIndexChanged(this, e);
}
}
}
State.ascx
<asp:dropdownlist id="ddlState" runat="server" xmlns:asp="#unknown">
public partial class State : System.Web.UI.UserControl
{
public string CountrySelectedValue
{
get { return Convert.ToString(ViewState["Id"]); }
set { ViewState["Id"] = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
switch (CountrySelectedValue)
{
case "0":
ddlState.Items.Add("Delhi");
ddlState.Items.Add("MP");
break;
case "1":
ddlState.Items.Add("Sunae");
ddlState.Items.Add("Seoul");
break;
default:
ddlState.Items.Add("Select");
break;
}
}
}
Default.aspx
<uc1:country id="Country1" runat="server" xmlns:uc1="#unknown">
<uc2:state id="State1" runat="server" xmlns:uc2="#unknown">
protected void Page_Load(object sender, EventArgs e)
{
Country1.SelectedIndexChanged +=new EventHandler(Country1_SelectedIndexChanged);
}
void Country1_SelectedIndexChanged(object sender, EventArgs e)
{
//throw new NotImplementedException();
State1.CountrySelectedValue = Country1.SelectedValue;
}
I want to fill state dropdwon on selction on country. How can I do this?
Please help me.
Regrads
Rajesh
rajesh
|
|
|
|
|
I suggest you to make one user control for Country/state selection
In that case you can accomlpish the task as
void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
{
switch (ddlCountry.SelectedValue)
{
case "0":
ddlState.Items.Add("Delhi");
ddlState.Items.Add("MP");
break;
case "1":
ddlState.Items.Add("Sunae");
ddlState.Items.Add("Seoul");
break;
default:
ddlState.Items.Add("Select");
break;
}
}
In case you want to continue in the same manner as you are doing then try out the following
1. Create a public variable in state.ascx.cs as
public int CountryId = 0;
2. In your function
void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
{
//Add lines
State objState = (State)FindControl("State1");
objState.intCountryId = ddlCountry.selectedvalue
}
3. In Page load event of state.ascx, check the value of
intCountryid and fill the dropdown accordingly.
|
|
|
|
|
1) Not a very good design to expose member variables directly
2) Not a good design either as you are tying these two controls together, one can't used without the other.
A decoupled, and more extensible and reliable design for this situation would use events to communicate between the two user controls.
only two letters away from being an asset
|
|
|
|