|
|
Create a TemplateManager Page which create templtes for body and Subjects of an email save it in to .txt format. You can do this using fckeditor control. Search google for this.
Then in Email Page for subject select a Template from Combo box and for body select a Template from body Combo.
This is the logic. If u need code just reply me...I hope this will help u..
|
|
|
|
|
I inserted a table in my Web Site using visual studios. But the outline of the table is not shown when it is debugged. May i know how is it possible to make the outline appear? And also is it possible to change the bacground colour of the table and all?
|
|
|
|
|
If something this simple is giving you problems then you need to get a decent book to learn from. Its a basic of web page design (tip search for CSS). There are loads of books and tutorials available, just try google.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
set border = 1
use the 'Style' property to set the background color
|
|
|
|
|
Check this post to know different ways of creating tables in asp.net website
http://opexsolution.com/forum/viewtopic.php?f=15&t=31
Tej Aj,
http://opexsolution.com/forum
|
|
|
|
|
<table id="tb" border="1" style="background-color:Red"><br />
<tr><br />
</tr><br />
</table>
|
|
|
|
|
Hi all,
I am trying to migrate classic ASP application to ASP.Net 2.0 or above.
While Googling I have found Asp to Aspnet migration Assistant which will migrate to 1.1 framework.
Is there any tool which will help me to directly migrate classic ASP application to framework 2.0 or above?
Or is it the process like
1) ASP to ASP.Net 1.1 using the 'ASP to ASP.NET Migration Assistant'
2)Then ASP.Net 1.1 to ASP.Net 2.0 or above using the Visual studio upgradation Wizard.
Kindly advice.
Regards,
Rijz
|
|
|
|
|
I think you need to rewrite your application. ASP classic is very very different from asp.net
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Thanks Mr.Maseko for your suggestion.
|
|
|
|
|
|
Take the help of the Migration Assistant to Migrate to framework 1.1
You can then change the property of the application to use .Net framework 2.0
Doing this will make features from .Net framework 2.0 available to you. You can then make changes in your code to use the new features wherever feasible.
I think this would the best way to migrate.
If it's a very big application, writing the whole application again, as suggested by other responder would not be feasible.
Hope it helps!
..Go Green..
|
|
|
|
|
Thanks all for the suggestions
|
|
|
|
|
Hope you have decided the best way to do it.
..Go Green..
|
|
|
|
|
respected
I am creating sms application when it is LocalHost
SMS send successfully but when it online we do not send SMS
My code is :
public string mobile(string strcontactno, string strmesg)
{
try
{
myPage.Text = readHtmlPage(strcontactno, strmesg, "?");
return myPage.Text;
}
catch (Exception ex)
{
return myPage.Text;
}
}
public string readHtmlPage(string strcontactno, string strmesg, string url)
{
string result = null;
string strPost = null;
string contactno = strcontactno;
string message = strmesg;
try
{
strPost = "&msisdn=" + strcontactno + "&msg=" + strmesg + "&sid=TEST&mt=0";
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";
myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(strPost);
}
catch (Exception e)
{
return e.Message;
result = "-200";
}
finally
{
if (myWriter != null)
{
myWriter.Close();
}
}
return result;
}
Thanks
modified on Monday, April 26, 2010 3:31 AM
|
|
|
|
|
I voted to remove this message, because it supplies IP addresses, usernames and passwords of public websites (I just connected to it, it works fine). Please reformulate your question, omitting private information.
|
|
|
|
|
You'd be better off deleting your question and reposting it completely afresh. It has been downvoted a couple of times, so it will fall below the 'noise treshold' of some members (and it's grayed out anyway).
So answers are unlikely...
Oh, and when you repost, try enclosing code blocks with </pre>, and indent your code...
Cheers,
|
|
|
|
|
Hi Coders,
Hope you are having great day. I am stucked in something and expects help for you great people.
I have created a webform where i have put 2 serverside controls - Listboxes. One of the listbox is filled at runtime using database values.
Now, I want to drag one/multiple item from that listbox to another listbox.
For some of the reasons, I can not use silverlight in my application.
Can anyone please help me to achive this???
Thank You.
Regards,
Anand Desai
|
|
|
|
|
|
All aspx controls rendred to normal HTML in client browser. So when you are doing drag and dro, it means you need to check how to drag and drop that html control. So, Java Script is the best option for that.
I found one article, it may help you.
Finding Curosr Position Using JavaScript and Drag and Drop from WebControls[^]
Thanks !
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I have searched the internet and can't find out what my final problem is. What I have is a RadGrid that I am adding a bound sub-column to a parent bound column. Now, the relation field's bound column appearing but even though I am binding a List<> to it I get the message: No child records to display. Below is the code so if anyone can help with my final problem that would be great!
public partial class _Default : System.Web.UI.Page
{
protected RadGrid grid;
protected static List<testlistitem> list = new List<testlistitem>();
protected static List<testlistitem2> list2 = new List<testlistitem2>();
override protected void OnInit(EventArgs e)
{
DefineGridStructure();
base.OnInit(e);
}
private void DefineGridStructure()
{
this.grid = new RadGrid();
this.grid.AutoGenerateColumns = false;
this.grid.NeedDataSource += new GridNeedDataSourceEventHandler(OnNeedDataSource);
this.grid.ItemDataBound += new GridItemEventHandler(grid_ItemDataBound);
this.grid.DetailTableDataBind += new GridDetailTableDataBindEventHandler(grid_DetailTableDataBind);
this.grid.AllowMultiRowEdit = true;
this.grid.AllowPaging = true;
this.grid.AllowSorting = true;
this.grid.Width = 700;
//other columns definitions ----------------------------
string gridEditColumnLinkName = "Action Column";
GridEditCommandColumn gridEditColumn = new GridEditCommandColumn();
gridEditColumn.ButtonType = GridButtonColumnType.LinkButton;
gridEditColumn.EditText = "Edit";
gridEditColumn.UpdateText = "Save";
gridEditColumn.CancelText = "Cancel";
gridEditColumn.UniqueName = "ActionButton";
gridEditColumn.HeaderText = gridEditColumnLinkName;
gridEditColumn.HeaderStyle.Width = 50;
string boundColumnName1 = "Column 1";
GridBoundColumn boundColumn1 = new GridBoundColumn();
boundColumn1.DataField = "A";
boundColumn1.UniqueName = "Column1";
boundColumn1.HeaderText = boundColumnName1;
boundColumn1.HeaderStyle.Width = 300;
string boundColumnName2 = "Column 2";
GridBoundColumn boundColumn2 = new GridBoundColumn();
boundColumn2.DataField = "B";
boundColumn2.UniqueName = "Column2";
boundColumn2.HeaderText = boundColumnName2;
boundColumn2.HeaderStyle.Width = 300;
string boundColumnName3 = "Column 3";
GridBoundColumn boundColumn3 = new GridBoundColumn();
boundColumn3.DataField = "C";
boundColumn3.UniqueName = "Column3";
boundColumn3.HeaderText = boundColumnName3;
boundColumn3.HeaderStyle.Width = 300;
string dropdownColumnName = "Dropdown Column2";
GridBoundColumn dropdownColumn = new GridBoundColumn();
dropdownColumn.UniqueName = "Column4";
dropdownColumn.DataField = "D";
dropdownColumn.HeaderText = dropdownColumnName;
dropdownColumn.HeaderStyle.Width = 300;
//Detail table - (II in hierarchy level)
GridTableView tableView = new GridTableView(this.grid);
tableView.Width = Unit.Percentage(100);
tableView.DataKeyNames = new string[1] { "A1" };
GridRelationFields relationFields = new GridRelationFields();
relationFields.MasterKeyField = "A";
relationFields.DetailKeyField = "A1";
tableView.ParentTableRelation.Add(relationFields);
grid.MasterTableView.DetailTables.Add(tableView);
//Add columns
GridBoundColumn boundColumnr = new GridBoundColumn();
boundColumnr.DataField = "A1";
boundColumnr.HeaderText = "A1";
tableView.Columns.Add(boundColumnr);
this.grid.MasterTableView.DataKeyNames = new string[] { "A" };
this.grid.MasterTableView.Columns.Add(gridEditColumn);
this.grid.MasterTableView.Columns.Add(boundColumn1);
this.grid.MasterTableView.Columns.Add(boundColumn2);
this.grid.MasterTableView.Columns.Add(boundColumn3);
this.grid.MasterTableView.Columns.Add(dropdownColumn);
this.grid.MasterTableView.EditMode = GridEditMode.InPlace;
grid.PageSize = 5;
grid.ClientSettings.Scrolling.ScrollHeight = 230;
grid.ClientSettings.Scrolling.ScrollWidth = 750;
grid.ClientSettings.EnableClientKeyValues = true;
this.PlaceHolder1.Controls.Add(grid);
}
void grid_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
{
e.DetailTableView.DataSource = list2;
}
void grid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = e.Item as GridDataItem;
if (e.Item.IsInEditMode)
{
}
}
}
protected void Page_Load(object sender, EventArgs e)
{
List<string> alist = new List<string>();
list = new List<testlistitem>();
list2 = new List<testlistitem2>();
alist.Add("1");
alist.Add("2");
alist.Add("3");
alist.Add("4");
alist.Add("5");
alist.Add("5");
list.Add( new TestListItem( "ItemA 0", "ItemB a", "ItemC a", "ItemD a", alist ));
list.Add( new TestListItem( "ItemA 1", "ItemB b", "ItemC b", "ItemD b", alist ));
list.Add( new TestListItem( "ItemA 2", "ItemB c", "ItemC c", "ItemD c", alist ));
list.Add( new TestListItem( "ItemA 3", "ItemB d", "ItemC d", "ItemD d", alist ));
list.Add( new TestListItem( "ItemA 4", "ItemB e", "ItemC e", "ItemD e", alist ));
list.Add( new TestListItem( "ItemA 5", "ItemB f", "ItemC f", "ItemD f", alist ));
list2.Add (new TestListItem2("SubItem A"));
list2.Add(new TestListItem2("SubItem B"));
list2.Add(new TestListItem2("SubItem C"));
list2.Add(new TestListItem2("SubItem D"));
list2.Add(new TestListItem2("SubItem E"));
list2.Add(new TestListItem2("SubItem F"));
}
void OnNeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
if (!e.IsFromDetailTable)
{
grid.DataSource = list;
}
else
{
//grid.MasterTableView.DataSource = list2;
}
}
public class TestListItem
{
private string _a;
private string _b;
private string _c;
private string _d;
List<string> _aList;
public TestListItem( string a, string b, string c, string d,List<string> aList )
{
this._a = a;
this._b = b;
this._c = c;
this._d = d;
this._aList = aList;
}
public string A
{
get
{
return this._a;
}
set
{
this._a = value;
}
}
public string B
{
get
{
return this._b;
}
set
{
this._b = value;
}
}
public string C
{
get
{
return this._c;
}
set
{
this._c = value;
}
}
public string D
{
get
{
return this._d;
}
set
{
this._d = value;
}
}
public List<string> AList
{
get
{
return this._aList;
}
set
{
this._aList = value;
}
}
}
public class TestListItem2
{
private string _a1;
public TestListItem2(string a1)
{
this._a1 = a1;
}
public string A1
{
get
{
return this._a1;
}
set
{
this._a1 = value;
}
}
}
}
|
|
|
|
|
Hi,
RadGrid provider is having forum for supporting their product ( in your case it is RadGrid). Their forum would be best place for any of your query related RadGrid control. Please find the below link of Telerik forum which supports grid related query.
http://www.telerik.com/community/forums/aspnet/grid.aspx[]
Thanks,
Arindam D Tewary
|
|
|
|
|
hi, iam using asp.net with c#,
iam having images in page .when i click on image the image size should be increase in the same window.then when i click again it should go to another page for edit .
can you give me example which helps me.
|
|
|
|
|
You question is not clear. Are you looking for some image zoomer? if yes then you can use jquery one. have a look for example
|
|
|
|
|
Why repost it? You already asked the same thing just below...
|
|
|
|