|
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...
|
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><script type="text/javascript">
</script>
</head><body>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
</body></html>
|
|
|
|
|
Check if this post helps you,
http://opexsolution.com/forum/viewtopic.php?f=15&t=30&p=89#p89
|
|
|
|
|
hi iam using asp.net with c#
i have the images displayed in the page
when any image is click then the image size should be big
in the same page
can you give me example which helps me
|
|
|
|
|
developerit wrote: when any image is click then the image size should be big
in the same page
You need to write a javascript method to show the image in a overlayed div tag. You can use that javascript either on Mousehover on image or click - depends on your choice!
developerit wrote: can you give me example which helps me
Google for it, quite common thing.
|
|
|
|
|
hi, iam using this code
protected void Button1_Click(object sender, EventArgs e)
{
string fn=FileUpload1.PostedFile.FileName;
string[]fi=fn.Split('\\');
string name=fi[fi.Length-1];
FileUpload1.PostedFile.SaveAs(Server.MapPath("images\\"+name));
ImageButton1.ImageUrl = "..images" + fn.ToString();
}
but image is not displaying in image button at run time
can you correct the code where iam going wrong
|
|
|
|
|
developerit wrote: ImageButton1.ImageUrl = "..images" + fn.ToString();
Image path needs to be corrected. "..images" is wrong (also you asre missing a forward slash after images folder!). Either a forwardslash or a tilda(for root directory) needs to be there. You have to check what path it has to be to fix it.
Probably it should be:
ImageButton1.ImageUrl = "~/images/" + fn.ToString();
ImageButton1.ImageUrl = "../images/" + fn.ToString();
|
|
|
|
|
Dear All,
I have very simple statements which popsup a menu
as bellow
<script language="javascript" type="text/javascript">
var ie5=document.all && !window.opera
var ns6=document.getElementById
if (ie5||ns6)
document.write('<div id="popitmenu"></div>')
function showmenu(e, which, optWidth)
{
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.visibility="visible";
return false
}
function hidemenu()
{
var div = document.getElementById('popitmenu');
if (div)
div.style.visibility="hidden";
}
if (ie5||ns6)
document.onclick=hidemenu;
</script>
<body style="width:100%; height:100%">
<form id="form1" runat="server">
<div>
<a id="a" onclick="return showmenu(event,linkset[1], '180px');">Click here</a>
</div>
</form>
</body>
every time i click on "Click here" which displays popupmenu it suddenly hides, I debugged the statements and I got that every time the function hidemenu() is executed. as I am assigning hidemenu function to body click event which means, If i click at body the popupmenu should hide, but the question is here, If i am clicking at "Click here" why the hidemenu is called, or how I can hide the popupmenu.
simply, when I click at click here the popup should appear but when i am clicking at other places the popup should hide, how to achive it in above?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Abdul Rahman Hamidy wrote: If i am clicking at "Click here" why the hidemenu is called, or how I can hide the popupmenu.
Because, Click here is a part of the page body (its in it!)
Abdul Rahman Hamidy wrote: simply, when I click at click here the popup should appear but when i am clicking at other places the popup should hide, how to achive it in above?
On body click, call a javascript method where you can check if the click was on 'Click Here' div tag, if so, dont do anything or else hide it.
|
|
|
|