|
How did you call the refresh method in parent page. Have you used that metohd in any page event such us click event of a button in the page where the user control is used?.
|
|
|
|
|
Good morning Ramesh
This is what i did
i made sure that the name is Unique and called it "Refresh_Control" and in the Host page,am refreshing from a Button like this
MyControl.Refresh_Contro();
And nothing Happens
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I just want to confirm that the user control's Refresh_Control() is reached when it called in the button click event. Put a break point in the first line of Refresh_Control method and see whether the grid is bound.
|
|
|
|
|
Yes it get called. More info is that the usercontrol has a Gridview that is binded with a SQldatasource Control
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
So the refresh method in user control is get called in parent page but nothing happens.
Can you post the code in the user control and the parent page including code in Page_load and binding your grid.
Becuase it is working good in my applications.
|
|
|
|
|
Thanks for your Help
and this is the code Behind
for the Usercontrol
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Drawing;
public partial class ActivityCtrl : System.Web.UI.UserControl
{
public static int MinimumActvWidth = 80;
public System.Web.UI.WebControls.Button SaveButton()
{
return btnSaveStructure;
}
public Boolean Enabled
{
set
{
btnSaveStructure.Enabled = value;
gridviewContacts.Enabled = value;
}
}
public int SubjectID
{
set
{
hfmodlID.Value = value.ToString();
LoadSubjectStructure(SubjectID);
}
get
{
if (hfmodlID.Value == "")
{
hfmodlID.Value = "0";
}
return Convert.ToInt32(hfmodlID.Value);
}
}
public string ActivityViewMode
{
set
{
lblViewMode.Text = value;
switch (value)
{
case "Activity": hfViewMode.Value = "0";
break;
case "Streams": hfViewMode.Value = "2";
break;
default: hfViewMode.Value = "1";
break;
}
if (ActivityViewMode == "Activity")
{
menuActivityNameViewMode.Visible = true;
}
else
{
menuActivityNameViewMode.Visible = false;
}
}
get
{
return lblViewMode.Text;
}
}
public string ActivityNameViewMode
{
set
{
menuActivityNameViewMode.SelectedItem.Selected = false;
menuActivityNameViewMode.FindItem(value).Selected = true;
}
get
{
return menuActivityNameViewMode.SelectedValue;
}
}
public Boolean KeepApart
{
set { hfKeepApart.Value = value.ToString(); }
get { return Convert.ToBoolean(hfKeepApart.Value); }
}
public string ActivityBoxViewMode
{
get { return menuActivityNameViewMode.SelectedValue; }
}
public string SelectedContactsXml
{
get
{
string xml = "";
xml = CommonFunctions.ReturnIdsInXmlForGridView(gridviewContacts);
return xml;
}
}
public string SelectedActvs
{
get { return BuildXMLforSelectedActvs(); }
set
{
txtbxActvs.Text = value;
HighlightSelectedActvs();
}
}
public string SubjectTags
{
get
{
return lblSubjTags.Text;
}
set
{
lblSubjTags.Text = value;
}
}
protected void Page_Init(object sender, EventArgs e)
{
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref SqlDataSourceContacts);
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref SqlDataSourceMaxActvs);
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref SqlDataSourceActvDuration);
if (!Page.IsPostBack)
{
if (Session["TTBL_TYPE"].ToString() != "CLASS")
{
gridviewContacts.Columns[1].HeaderText = "Paper Type";
menuActivityNameViewMode.FindItem("Name").Selected = true;
menuActivityNameViewMode.Enabled = false;
}
}
}
protected void Page_Load(object sender, EventArgs e)
{
string clientscript = "";
clientscript = "var txtbxActvClientID = '" + txtbxActvs.ClientID.ToString() + "'; ";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterClientScriptBlock(this.GetType(), "txtbxlookupid", clientscript, true);
if (!Page.IsPostBack)
{
}
HighlightSelectedActvs();
}
public void LoadSubjectStructure(int subjectID)
{
SubjectStructure Subj = new SubjectStructure();
Subj = Subj.GetSubjectStructure(subjectID);
lblSubjectDescription.Text = Subj.Descr;
PopulateSubjectTags();
}
public void RefreshUC()
{
string clientscript = "";
clientscript = "var txtbxActvClientID = '" + txtbxActvs.ClientID.ToString() + "'; ";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterClientScriptBlock(this.GetType(), "txtbxlookupid", clientscript, true);
if (!Page.IsPostBack)
{
}
HighlightSelectedActvs();
LoadSubjectStructure(SubjectID);
}
public void DisplaySubjectStructure()
{
gridviewContacts.DataBind();
}
public void SetContactRowColors()
{
double hue;
int TypID = 0;
string colorstr = "";
foreach (GridViewRow row in gridviewContacts.Rows)
{
DropDownList drplstCntcTyp = (DropDownList)row.FindControl("drplstCntcTyp");
if (drplstCntcTyp.SelectedValue != null && drplstCntcTyp.SelectedValue != "")
{
TypID = Convert.ToInt32(drplstCntcTyp.SelectedValue);
hue = (TypID - 1) * 50 % 360;
colorstr = CommonFunctions.HSVtoRGB(hue, 0.3, 1.0);
row.BackColor = System.Drawing.ColorTranslator.FromHtml(colorstr);
}
drplstCntcTyp.BackColor = System.Drawing.ColorTranslator.FromHtml(colorstr);
DropDownList drplstDuration = (DropDownList)row.FindControl("drplstDuration");
drplstDuration.BackColor = System.Drawing.ColorTranslator.FromHtml(colorstr);
drplstDuration.BorderColor = System.Drawing.ColorTranslator.FromHtml(colorstr);
}
}
public void HighlightSelectedActvs()
{
string actvstr = "";
int actvID = 0;
bool selected = false;
foreach (GridViewRow row in gridviewContacts.Rows)
{
DataList datalistActvs = (DataList)row.FindControl("datalistActvs");
if (datalistActvs != null)
{
foreach (DataListItem dlitem in datalistActvs.Items)
{
switch (ActivityViewMode)
{
case "Activity":
ActivityBox actvbox = (ActivityBox)dlitem.FindControl("ActivityBox1");
actvID = actvbox.ActvID;
actvstr = "=" + actvID.ToString() + ";";
selected = txtbxActvs.Text.Contains(actvstr);
actvbox.Selected = selected;
break;
case "Streams":
ActvStreams actvstrm = (ActvStreams)dlitem.FindControl("ActvStreams1");
actvID = actvstrm.ActvID;
actvstr = "=" + actvID.ToString() + ";";
selected = txtbxActvs.Text.Contains(actvstr);
actvstrm.Selected = selected;
break;
case "Staff":
ActivityResource actvstaff = (ActivityResource)dlitem.FindControl("ActivityResource1");
actvID = actvstaff.ActvID;
actvstr = "=" + actvID.ToString() + ";";
selected = txtbxActvs.Text.Contains(actvstr);
actvstaff.Selected = selected;
break;
case "Venues":
ActivityResource actvres = (ActivityResource)dlitem.FindControl("ActivityResource1");
actvID = actvres.ActvID;
actvstr = "=" + actvID.ToString() + ";";
selected = txtbxActvs.Text.Contains(actvstr);
actvres.Selected = selected;
break;
}
}
}
}
}
public string BuildXMLforSelectedActvs()
{
string xmlSelActvs = "";
string xmlactvs = "";
xmlSelActvs = "<Root>";
xmlactvs = txtbxActvs.Text;
xmlactvs = xmlactvs.Replace("=", "<Actvs><ID>");
xmlactvs = xmlactvs.Replace(";", "</ID></Actvs>");
xmlSelActvs += xmlactvs;
xmlSelActvs += "</Root>";
return xmlSelActvs;
}
protected void btnSelectNone_Click(object sender, EventArgs e)
{
txtbxActvs.Text = "";
HighlightSelectedActvs();
}
protected void menuActivityBoxViewMode_MenuItemClick(object sender, MenuEventArgs e)
{
gridviewContacts.DataBind();
}
public void PopulateSubjectTags()
{
PopulateLabelWithTags(ref lblSubjTags, SubjectID, "Subject");
}
public void PopulateLabelWithTags(ref Label lbl, int objid, string TagType)
{
lbl.Text = "";
lbl.ToolTip = "";
string sql = "";
DataSet ds = new DataSet();
sql = sql + " select tbl_tag.id, tbl_tag.descr ";
sql = sql + " from tbl_tag ";
sql = sql + " inner join mtm_obj_tag mot on mot.tag = tbl_tag.id ";
sql = sql + " inner join tbl_tag_typ tagtyp on tagtyp.id = tbl_tag.typ ";
sql = sql + " where mot.objID = " + SubjectID.ToString() + " and ltrim(rtrim(tagtyp.descr)) = '" + TagType + "' ";
sql = sql + " order by tbl_tag.descr ";
ds = CommonFunctions.ReturnResultSet(sql);
if (ds.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
if (i < 2)
{
lbl.Text += ds.Tables[0].Rows[i]["descr"].ToString() + "\n";
}
else
{
if (i == 2)
{
lbl.Text += "more...";
}
}
lbl.ToolTip += ds.Tables[0].Rows[i]["descr"].ToString() + "\n";
}
}
}
protected void drplstActvViewMode_SelectedIndexChanged(object sender, EventArgs e)
{
ActivityViewMode = lblViewMode.Text;
gridviewContacts.DataBind();
}
protected void gridviewContacts_DataBound(object sender, EventArgs e)
{
SetContactRowColors();
HighlightSelectedActvs();
}
protected void btnSaveStructure_Click(object sender, EventArgs e)
{
string sql = "", CntcXml = "", ActvXml = "";
SubjectStructure Subj = new SubjectStructure();
Subj = Subj.GetSubjectStructure(SubjectID);
Subj.contact = null;
int CntcID = 0, actvID = 0, students = 0;
int CntcTyp = 0, DurationCntc = 1, DurationActv = 1;
string grpname = "";
foreach (GridViewRow row in gridviewContacts.Rows)
{
CntcID = Convert.ToInt32(gridviewContacts.DataKeys[row.DataItemIndex].Value.ToString());
CntcTyp = Convert.ToInt32(((DropDownList)row.FindControl("drplstCntcTyp")).SelectedValue);
DurationCntc = Convert.ToInt32(((DropDownList)row.FindControl("drplstDuration")).SelectedValue);
CntcXml += "<Contact><ID>" + CntcID.ToString() + "</ID><CntcTyp>" + CntcTyp.ToString() + "</CntcTyp><Duration>" + DurationCntc.ToString() + "</Duration></Contact>";
DataList datalistActvs = (DataList)row.FindControl("datalistActvs");
if (datalistActvs != null)
{
foreach (DataListItem dlitem in datalistActvs.Items)
{
ActivityBox actvbox = (ActivityBox)dlitem.FindControl("ActivityBox1");
actvID = actvbox.ActvID;
students = actvbox.Students;
DurationActv = actvbox.Duration;
grpname = actvbox.GrpName;
if ((DurationCntc > 1) && !(DurationActv > 1))
{
DurationActv = DurationCntc;
}
ActvXml += "<Actv><ID>" + actvID.ToString() + "</ID><Students>" + students.ToString() + "</Students><Duration>" + DurationActv.ToString() + "</Duration><GrpName>" + grpname + "</GrpName></Actv>";
}
}
}
sql = "sp_Contacts_Update '<Root>" + CntcXml + "</Root>', " + SubjectID.ToString() + " ";
CommonFunctions.ExecuteStoredProc(sql);
string xm = "class";
if (Session["TTBL_TYPE"].ToString() != "CLASS")
{
xm = "XM";
}
sql = "sp_Activities_Update '<Root>" + ActvXml + "</Root>', '" + ActivityNameViewMode + "', '" + xm + "' ";
CommonFunctions.ExecuteStoredProc(sql);
DisplaySubjectStructure();
CommonFunctions.setDataModifiedTime();
}
public event EventHandler SubjectChange;
protected void OnSubjectChange(EventArgs e)
{
if (SubjectChange != null)
{
SubjectChange(this, e);
}
}
private void StructureChanged(object sender, EventArgs e)
{
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
protected void btnSelectAll_Click(object sender, EventArgs e)
{
SelectAllActvs();
}
public void SelectAllActvs()
{
txtbxActvs.Text = "";
string actvstr = "";
int actvID = 0;
bool selected = false;
foreach (GridViewRow row in gridviewContacts.Rows)
{
DataList datalistActvs = (DataList)row.FindControl("datalistActvs");
if (datalistActvs != null)
{
foreach (DataListItem dlitem in datalistActvs.Items)
{
switch (ActivityViewMode)
{
case "Activity":
ActivityBox actvbox = (ActivityBox)dlitem.FindControl("ActivityBox1");
actvID = actvbox.ActvID;
actvstr = "=" + actvID.ToString() + ";";
txtbxActvs.Text += actvstr;
selected = txtbxActvs.Text.Contains(actvstr);
actvbox.Selected = selected;
break;
case "Streams":
ActvStreams actvstrm = (ActvStreams)dlitem.FindControl("ActvStreams1");
actvID = actvstrm.ActvID;
actvstr = "=" + actvID.ToString() + ";";
txtbxActvs.Text += actvstr;
selected = txtbxActvs.Text.Contains(actvstr);
actvstrm.Selected = selected;
break;
case "Staff":
ActivityResource actvstaff = (ActivityResource)dlitem.FindControl("ActivityResource1");
actvID = actvstaff.ActvID;
actvstr = "=" + actvID.ToString() + ";";
txtbxActvs.Text += actvstr;
actvstaff.Selected = true;
break;
case "Venues":
ActivityResource actvres = (ActivityResource)dlitem.FindControl("ActivityResource1");
actvID = actvres.ActvID;
actvstr = "=" + actvID.ToString() + ";";
txtbxActvs.Text += actvstr;
selected = txtbxActvs.Text.Contains(actvstr);
actvres.Selected = selected;
break;
}
}
}
}
}
protected void gridviewContacts_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void SqlDataSourceActvs_DataBinding(object sender, EventArgs e)
{
if (sender.GetType().ToString() == "System.Web.UI.WebControls.SqlDataSource")
{
SqlDataSource sqlDatSrc = (SqlDataSource)sender;
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref sqlDatSrc);
}
}
protected void SqlDataSourceActvs_Init(object sender, EventArgs e)
{
if (sender.GetType().ToString() == "System.Web.UI.WebControls.SqlDataSource")
{
SqlDataSource sqlDatSrc = (SqlDataSource)sender;
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref sqlDatSrc);
}
}
protected void SqlDataSourceActvs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
if (sender.GetType().ToString() == "System.Web.UI.WebControls.SqlDataSource")
{
SqlDataSource sqlDatSrc = (SqlDataSource)sender;
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref sqlDatSrc);
}
}
protected void SqlDataSourceCntcTypes_DataBinding(object sender, EventArgs e)
{
if (sender.GetType().ToString() == "System.Web.UI.WebControls.SqlDataSource")
{
SqlDataSource sqlDatSrc = (SqlDataSource)sender;
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref sqlDatSrc);
}
}
protected void SqlDataSourceCntcTypes_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
if (sender.GetType().ToString() == "System.Web.UI.WebControls.SqlDataSource")
{
SqlDataSource sqlDatSrc = (SqlDataSource)sender;
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref sqlDatSrc);
}
}
protected void SqlDataSourceCntcTypes_Init(object sender, EventArgs e)
{
if (sender.GetType().ToString() == "System.Web.UI.WebControls.SqlDataSource")
{
SqlDataSource sqlDatSrc = (SqlDataSource)sender;
CommonFunctions.SetActiveConnectionStringForSqlDataSource(ref sqlDatSrc);
}
}
protected void txtbxActvs_TextChanged(object sender, EventArgs e)
{
Session["Activity_id"] = txtbxActvs.Text;
Session["Selected_ID_Bind"] = txtbxActvs.Text;
Session["Multi_Activity_ID"] = txtbxActvs.Text;
}
protected void txtActivity_TextChanged(object sender, EventArgs e)
{
}
protected void gridviewContacts_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
}
}
And in my Host page and calling it like this
if (e.Item.Text == "Remove Selected" && Session["Array_To_Be_Replaced"] != null && Convert.ToString(Session["Array_To_Be_Replaced"]) != "")
{
ArrayList Activity_IDS = (ArrayList)Session["Activity_IDS"];
ArrayList Array_To_Be_Replaced = (ArrayList)Session["Array_To_Be_Replaced"];
obj.Remove_Cycles(Activity_IDS, Array_To_Be_Replaced, Convert.ToString(Session["ActiveDatabase"]));
Bind_Grid_For_Staff();
<pre> ActivityCtrl1.RefreshUC();
lblAdminStatus.Visible = true;
lblAdminStatus.Text = "Staff Member Removed";
lblAdminStatus.ForeColor = System.Drawing.Color.Green;
Session["Array_To_Be_Replaced"] = null;
}
else
{
lblAdminStatus.Text = "Please Select the Staff Member to be Removed";
lblAdminStatus.ForeColor = System.Drawing.Color.Red;
lblAdminStatus.Visible = true;
}<
RefreshUC is the refreshing method of the UserControl
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
First thing, the gridviewContacts is not assigned with any datasource in your code.
Before calling the DataBind() method for gridviewContacts, you need to set the DataSource for that.
Also the RefreshUC does not have the code to bind gridviewContacts with data.
So address this thins. Hope this will solve your problem.
|
|
|
|
|
The grid is Binded from a SQlDataSource control defined like this
<asp:SqlDataSource ID="SqlDataSourceContacts" runat="server" ConnectionString="< %$ ConnectionStrings:DBConnectionString % >"
SelectCommand="select distinct tbl_cntc.ID, tbl_cntc.CntcTyp, tbl_cntc.Number, tbl_cntc.Duration, count( distinct tbl_Actv.id ) [NumberOfActivities]&#13;&#10;from tbl_cntc&#13;&#10;left outer join tbl_actv on tbl_actv.cntcId = tbl_cntc.ID&#13;&#10;where tbl_cntc.modlID = @ModlID&#13;&#10;group by tbl_cntc.ID, tbl_cntc.CntcTyp, tbl_cntc.Number, tbl_cntc.Duration&#13;&#10;order by CntcTyp, tbl_cntc.Number" UpdateCommand="Update tbl_cntc &#13;&#10; set CntcTyp = @CntcTyp,&#13;&#10; Duration = @Duration&#13;&#10; where ID = @CntcID" >
< SelectParameters>
< asp:ControlParameter ControlID="hfmodlID" Name="ModlID" PropertyName="Value" / >;
< /SelectParameters >
< UpdateParameters >
< asp:Parameter Name="CntcTyp" />
< asp:Parameter Name="Duration" / >
< asp:Parameter Name="CntcID" / >
< /UpdateParameters >
and as Shown above the Page load in the UserControl is like this
protected void Page_Load(object sender, EventArgs e)
{
string clientscript = "";
clientscript = "var txtbxActvClientID = '" + txtbxActvs.ClientID.ToString() + "'; ";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterClientScriptBlock(this.GetType(), "txtbxlookupid", clientscript, true);
if (!Page.IsPostBack)
{
}
HighlightSelectedActvs();
}
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hiii
i m using asp.net and i m sending a mail using gmail account,everything is fine in sending mail
but in body part code is
msg.Body = "Status is : '" + DropDownList3.SelectedValue.ToString() + "', for the Request of RMA No:'" + DropDownList1.SelectedValue.ToString() + "'";
its give out put in a single line without space, i want result like this
Status is: ******
for the request of RMA no. is: ******
while result is coming like status no: ****** for the request of rma no: *******
please suggest me
thanks
|
|
|
|
|
Environment.NewLine
Change your code like this
msg.Body = "Status is : '" + DropDownList3.SelectedValue.ToString + "<br>', for the Request of RMA No:'" + DropDownList1.SelectedValue.ToString() + "'";
|
|
|
|
|
hi all
How to get MAC address of client system or NIC card in asp.net
|
|
|
|
|
You can get the MAC address of the client using ActiveX object in javascript.
But the security settings of the client browser may prevent you from getting the information. Therefore the client browser security settins needs to be changed manually to allow ActiveX controls which may lead to security threats.
Hope this article[^] will help you to get MAC address of the client using JavaScript.
|
|
|
|
|
hi thanks for ur answer but is it possible in asp.net or in c#?
|
|
|
|
|
I seem to recall earlier versions of Visual Studio offerred the option of opening a web project locally, or on a remote server. Maybe I was imagining it, but I'm fairly sure I screwed up more than once and selected the wrong choice. Whatever... In VS2008 I can't find a way to do this, and I'm not really sure it's possible. I've searched MSDN and Help with the usual results.
Anyway, I've got the bare bones of an app hosted in a subdomain and I'd really like to continue developing it there, rather than ftp-ing back and forth every time I work on it. Not only would this be more convenient now, it will be handy later for site maintenance when I move it to its home domain.
Is this possible? If so, how do I accomplish it?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Yes. VS 2008 will allow you to create web sites in IIS in the remote server.
Look into this article[^]
|
|
|
|
|
Good article, Thanks!
Though it is specific to IIS7.0 and Vista, the technique works fine with XP and whatever version of IIS my host is using. I had to connect to the host and install FrontPage2000/2003 extensions first, and it gave me a warning when I connected that I'm connecting to a pre-compiled site which may stop working if I change anything, but we'll see what happens.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Whether it is VS 2005 or VS 2008, the remote computer should have Front Page Extension installed and you must have FrontPage administration or author permissions to create new folders and files on the remote computer under the root where you want to create the new site.
Also check whether you will be allowed to happen the above things.
Otherwise you cannot create/open web sites in remote server.
Check this link:
http://msdn.microsoft.com/en-us/library/h17hytcs.aspx[^]
|
|
|
|
|
Previously everything was working just fine but today when I opened Visual Web Developer and then opened the Web Form in design view it gives me this ever lasting dialog box "Windows Installer - Preparing to Install". Please Help!
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
This error might be occured if you install a program but the installation failed.Or, maybe you have problems trying to remove an old program because the installation files are corrupted.
Uninstall the visual developer and re-install again.
Or you can use Windows Windows Installer CleanUp Utility[^] to
resolve installation problems for programs that use Microsoft Windows Installer.
|
|
|
|
|
I'm making multi-upload file board.
and I'm done about uploading multi-files.
when I click "Edit" button, shows up the files that I uploaded on ListBox.
But when I would like to change the files that I uploaded, I don't know how to make it.
foreach (System.Web.UI.HtmlControls.HtmlInputFile HIF in hif)
{
try
{
string fn = System.IO.Path.GetFileName(HIF.PostedFile.FileName);
string fileName = Pds.SaveFile(fn, upDir);
HIF.PostedFile.SaveAs(upDir + fileName);
filename = fileName;
string userId = Session["memberID"].ToString();
string pathname = Session["pathname1"].ToString();
Pds.Insert(userId, User.Identity.Name, txtTitle.Text, txtContent.Text,filename, pathname);
This codes are about uploading.
are there sample sources for editing files that I uploaded.??
|
|
|
|
|
|
Hi,
I am working on a migration project, where we are converting from classic ASP to ASP.Net 2.0. We want to run both ASP and ASP.Net parallel. We want to update the site with new .net pages what ever we develop, instead of waiting complete site development. So here I am struggling with session variables passing between ASP and ASP.Net. I searched thru the internet and found couple of ways to do it.
http://msdn.microsoft.com/en-us/library/aa479313.aspx#converttoaspnet_topic6
http://www.eggheadcafe.com/articles/20041017.asp
http://www.eggheadcafe.com/articles/20021207.asp
But I dont understand which approach is the best way to do. Mine is a financial application, so looking for secured with little/noo changes in existing ASP.
Please help me in finding the solution.
Thanks,
Satheesh M
|
|
|
|
|
You can't do it with no changes at all, you need a proxy to store your session data, and both apps need to call the proxy in order to share the data.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Yes, that's why I mentioned I am looking for little/no changes. you mentioned we have to use proxy, means some database or some thing else. Can you please guide me.
Thanks,
Satheesh
|
|
|
|
|
I have a database in sql server named as "stock" in which "custdetails" is a table which has various fields.
I have connection string as-
ConString = "Data Source=localhost;Initial Catalog=stock;Integrated Security=true";
and two method selecct and update as-
public DataTable select(String query)
{
DataSet ds = new DataSet();
SqlDataAdapter adp = new SqlDataAdapter(query, ConString);
adp.Fill(ds);
return (ds.Tables[0]);
}
public void update(String query)
{
DataSet ds = new DataSet();
SqlDataAdapter adp = new SqlDataAdapter(query, ConString);
adp.Fill(ds);
Now I have a button.when buton is clicked i want to take data from database.But it is not retrieved. I have cheked it by printing it in a textbox.the code is as follow-
DataTable dt=new DataTable();
common obj=new common();
dt = obj.select("select * from custdetails");
TextBox2.Text = dt.Rows.Count.ToString();
TextBox1.Text = dt.Rows[1][1].ToString();
It is not working.what problem can be????
plz help me.......
|
|
|
|
|