- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我做了一个 3 下拉菜单 1) 国家 2) 城市 3)工厂
Country 和 City 下拉菜单正常工作(Country 选择显示的国家/地区以包含城市的)但city 未选择要包含的显示城市 >工厂的我该如何解决?你能给出解决方案吗?
GodownCls godownCls = new GodownCls();
CityCls ctyCls = new CityCls();
FactoryCls facCls = new FactoryCls();
LoadCountries();
private void LoadCountries()
{
CountryCls objCountry = new CountryCls();
DataTable dtCountry = objCountry.Country_SelectAll();
ddlCountry.DataSource = dtCountry;
ddlCountry.DataTextField = "Name";
ddlCountry.DataValueField = "ID";
ddlCountry.DataBind();
}
private void LoadFactories(int CityId)
{
FactoryCls objFactory = new FactoryCls();
DataTable dtFactory = objFactory.FactoriesByCity(CityId);
ddlFactory.DataSource = dtFactory;
ddlFactory.DataTextField = "Name";
ddlFactory.DataValueField = "ID";
ddlFactory.DataBind();
ddlFactory.SelectedIndex = 0;
}
private void LoadCities(int CountryId)
{
CityCls objCity = new CityCls();
DataTable dtCity = objCity.CitiesByCountry(CountryId);
ddlCity.DataSource = dtCity;
ddlCity.DataTextField = "Name";
ddlCity.DataValueField = "ID";
ddlCity.DataBind();
ddlCity.SelectedIndex = 0;
}
protected void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
{
int selectedCountryId = Convert.ToInt32(ddlCountry.SelectedValue);
LoadCities(selectedCountryId);
}
protected void ddlFactory_SelectedIndexChanged(object sender, EventArgs e)
{
int selectedFactoryId = Convert.ToInt32(ddlFactory.SelectedValue);
LoadCities(selectedFactoryId);
}
实际上现在所有工厂都显示在下拉菜单中
完整代码
public partial class Godown : System.Web.UI.Page
{
#region "---- Variables & ViewStates ----"
clsCommonMethods clsComMethods = new clsCommonMethods();
public DataTable dtGodownHelp
{
get { return (DataTable)ViewState["dtGodownHelp"]; }
set { ViewState["dtGodownHelp"] = value; }
}
public String CurrentMode
{
get { return (String)ViewState["CurrentMode"]; }
set { ViewState["CurrentMode"] = value; }
}
public int SelectedGodownId
{
get { return (int)ViewState["SelectedGodownId"]; }
set { ViewState["SelectedGodownId"] = value; }
}
public int SelectedUserId
{
get { return (int)ViewState["SelectedUserId"]; }
set { ViewState["SelectedUserId"] = value; }
}
public bool ViewRight
{
get { return (bool)ViewState["ViewRight"]; }
set { ViewState["ViewRight"] = value; }
}
public bool CreateRight
{
get { return (bool)ViewState["CreateRight"]; }
set { ViewState["CreateRight"] = value; }
}
public bool UpdateRight
{
get { return (bool)ViewState["UpdateRight"]; }
set { ViewState["UpdateRight"] = value; }
}
#endregion
GodownCls godownCls = new GodownCls();
CityCls ctyCls = new CityCls();
FactoryCls facCls = new FactoryCls();
#region Page Load
protected void Page_Load(object sender, EventArgs e)
{
this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;
if (!IsPostBack)
{
if ((Session["UserId"] == null))
{
FormsAuthentication.SignOut();
Response.Redirect("~/WebForms/Home/Login.aspx");
}
else
{
SelectedUserId = int.Parse(Session["UserId"].ToString());
string pageName = "godown";
DataTable dtUp = UserPermission(pageName);
if (dtUp.Rows.Count > 0)
{
ViewRight = Convert.ToBoolean(dtUp.Rows[0]["isViewable"]);
CreateRight = Convert.ToBoolean(dtUp.Rows[0]["isCreatable"]);
UpdateRight = Convert.ToBoolean(dtUp.Rows[0]["isEditable"]);
}
if (ViewRight != true)
{
Response.Redirect("~/WebForms/Home/AccessDenied.aspx");
}
else
{
SetSavePermission(CreateRight);
SetEditPermission(UpdateRight);
}
}
ClearControls();
EnableControls(false);
LoadCountries();
}
}
private void SetSavePermission(bool EnableStatus)
{
btnNew.Enabled = EnableStatus;
btnSave.Enabled = EnableStatus;
}
private void SetEditPermission(bool EnableStatus)
{
btnUpdate.Enabled = EnableStatus;
btnSave.Enabled = EnableStatus;
}
#endregion
private DataTable UserPermission(string mPageCode)
{
int UserId = int.Parse(Session["UserId"].ToString());
DataTable dtPermission = new DataTable();
dtPermission = clsComMethods.GetUserWisePermissions(UserId, mPageCode);
return dtPermission;
}
#region Enable Disable Controls
private void EnableControls(bool Status)
{
txtGodowncode.Enabled = Status;
txtGodownname.Enabled = Status;
ddlCountry.Enabled = Status;
//ddlCity.Enabled = Status;
//ddlFactory.Enabled = Status;
txtEmail.Enabled = Status;
txtFax.Enabled = Status;
txtGodown.Enabled = Status;
txtGodownAdd.Enabled = Status;
txtGodowncontact.Enabled = Status;
txtPhn1.Enabled = Status;
txtPhn2.Enabled = Status;
txtTelex.Enabled = Status;
txtWebSite.Enabled = Status;
txtTelex.Enabled = Status;
if (Status == true)
{
txtRemarks.Disabled = false;
}
else
{
txtRemarks.Disabled = true;
}
chkStatus.Enabled = Status;
btnGodownhelp.Enabled = Status;
}
#endregion
private void LoadCountries()
{
CountryCls objCountry = new CountryCls();
DataTable dtCountry = objCountry.Country_SelectAll();
ddlCountry.DataSource = dtCountry;
ddlCountry.DataTextField = "Name";
ddlCountry.DataValueField = "ID";
ddlCountry.DataBind();
}
private void LoadFactories(int CityId)
{
FactoryCls objFactory = new FactoryCls();
DataTable dtFactory = objFactory.FactoriesByCity(CityId);
ddlFactory.DataSource = dtFactory;
ddlFactory.DataTextField = "Name";
ddlFactory.DataValueField = "ID";
ddlFactory.DataBind();
ddlFactory.SelectedIndex = 0;
}
private void LoadCities(int CountryId)
{
CityCls objCity = new CityCls();
DataTable dtCity = objCity.CitiesByCountry(CountryId);
ddlCity.DataSource = dtCity;
ddlCity.DataTextField = "Name";
ddlCity.DataValueField = "ID";
ddlCity.DataBind();
ddlCity.SelectedIndex = 0;
}
#region Button Disable
private void DisableButtons()
{
btnSave.Enabled = false;
btnUpdate.Enabled = true;
btnInquiry.Enabled = true;
btnCancel.Enabled = false;
}
#endregion
#region Clear Controls
private void ClearControls()
{
txtGodowncode.Text = "";
txtGodownname.Text = "";
ddlCountry.SelectedIndex = 0;
//ddlCity.SelectedIndex = 0;
//ddlFactory.SelectedIndex = 0;
txtGodowncontact.Text = "";
txtWebSite.Text = "";
txtGodownAdd.Text = "";
txtPhn1.Text = "";
txtPhn2.Text = "";
txtEmail.Text = "";
txtFax.Text = "";
txtTelex.Text = "";
lblMsg.Text = "";
txtRemarks.Value = "";
chkStatus.Checked = false;
SelectedGodownId = -1;
if (CurrentMode == "Modify")
{
txtGodowncode.Enabled = true;
}
}
#endregion
#region New Button Click
protected void btnNew_Click(object sender, EventArgs e)
{
try
{
ClearControls();
CurrentMode = "Add";
lblMode.Text = "New Record";
lblMode.ForeColor = System.Drawing.Color.Yellow;
SelectedGodownId = -1;
btnUpdate.Enabled = false;
btnInquiry.Enabled = false;
btnCancel.Enabled = true;
EnableControls(true);
txtGodowncode.Enabled = false;
btnGodownhelp.Enabled = false;
btnSave.Enabled = true;
btnClear.Enabled = true;
chkStatus.Checked = true;
txtGodownname.Focus();
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region Update Button Click
protected void btnUpdate_Click(object sender, EventArgs e)
{
try
{
CurrentMode = "Modify";
lblMode.Text = "Modify Record";
lblMode.ForeColor = System.Drawing.Color.Yellow;
btnNew.Enabled = false;
btnInquiry.Enabled = false;
btnCancel.Enabled = true;
txtGodowncode.Enabled = true;
txtGodownname.Enabled = false;
ddlCountry.Enabled = false;
ddlCity.Enabled = false;
txtGodowncontact.Enabled = false;
txtWebSite.Enabled = false;
txtGodownAdd.Enabled = false;
ddlFactory.Enabled = true;
txtPhn1.Enabled = false;
txtPhn2.Enabled = false;
txtEmail.Enabled = false;
txtFax.Enabled = false;
txtTelex.Enabled = false;
txtRemarks.Disabled = true;
chkStatus.Enabled = false;
btnGodownhelp.Enabled = true;
btnSave.Enabled = false;
btnClear.Enabled = true;
txtGodowncode.Focus();
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region Inquiry Button Click
protected void btnInquiry_Click(object sender, EventArgs e)
{
try
{
CurrentMode = "Inquiry";
lblMode.Text = "Inquiry Record";
lblMode.ForeColor = System.Drawing.Color.Yellow;
btnNew.Enabled = false;
btnUpdate.Enabled = false;
txtGodowncode.Enabled = true;
btnGodownhelp.Enabled = true;
btnSave.Enabled = false;
btnClear.Enabled = true;
btnCancel.Enabled = true;
txtGodownname.Focus();
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region Clear Button Click
protected void btnClear_Click(object sender, EventArgs e)
{
ClearControls();
}
#endregion
#region Cancel Button Click
protected void btnCancel_Click(object sender, EventArgs e)
{
try
{
CurrentMode = "Cancel";
btnNew.Enabled = true;
btnInquiry.Enabled = true;
btnUpdate.Enabled = true;
btnCancel.Enabled = false;
btnSave.Enabled = false;
btnClear.Enabled = false;
EnableControls(false);
ClearControls();
SetSavePermission(CreateRight);
SetEditPermission(UpdateRight);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region Save Button Click
protected void btnSave_Click(object sender, EventArgs e)
{
try
{
string strGodownCode;
int statusId;
if (CurrentMode == "Add")
{
strGodownCode = "";
}
else
{
strGodownCode = txtGodowncode.Text.ToString();
}
if (chkStatus.Checked == true)
{
statusId = 8;
}
else
{
statusId = 9;
}
int output = godownCls.InsertGodown(SelectedGodownId, strGodownCode, txtGodownname.Text, int.Parse(ddlCountry.SelectedValue), int.Parse(ddlCity.SelectedValue), int.Parse(ddlFactory.SelectedValue), txtGodowncontact.Text, txtWebSite.Text, txtGodownAdd.Text, txtRemarks.Value.ToString(), txtPhn1.Text, txtPhn2.Text, txtEmail.Text, txtFax.Text, txtTelex.Text, statusId, SelectedUserId, CurrentMode.ToString());
if (output > 0)
{
if (CurrentMode == "Add")
{
txtGodowncode.Text = "GDN" + output.ToString("00000");
lblMsg.Text = "Successfully Saved!";
lblMsg.ForeColor = System.Drawing.Color.Green;
}
else if (CurrentMode == "Modify")
{
lblMsg.Text = "Successfully Updated!";
lblMsg.ForeColor = System.Drawing.Color.Green;
}
}
else if (output == -3)
{
lblMsg.Text = "Already Exists!";
lblMsg.ForeColor = System.Drawing.Color.Orange;
}
else if (output == -1)
{
lblMsg.Text = "Save Unsuccessful! Code Error!";
lblMsg.ForeColor = System.Drawing.Color.Red;
}
else if (output == -2)
{
lblMsg.Text = "Save Unsuccessful! SP Error!";
lblMsg.ForeColor = System.Drawing.Color.Red;
}
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region GDN Code help Button Click
protected void btnGodownhelp_Click(object sender, EventArgs e)
{
try
{
lblMsg.Text = "";
txtGodownname.Text = "";
txtRemarks.Value = "";
chkStatus.Checked = false;
DataTable dtGodown = godownCls.FGetGodown(txtGodowncode.Text.ToString());
if (dtGodown.Rows.Count > 0)
{
dtGodownHelp = dtGodown;
Session["Help"] = "Godown";
gvHelp.DataSource = dtGodown;
gvHelp.DataBind();
gvHelp.HeaderRow.Cells[3].Visible = false; //Godown Id
gvHelp.HeaderRow.Cells[4].Visible = false; //Status Id
gvHelp.HeaderRow.Cells[5].Visible = false; //Remarks
foreach (GridViewRow gvr in gvHelp.Rows)
{
gvr.Cells[3].Visible = false; //Godown Id
gvr.Cells[4].Visible = false; //Status Id
gvr.Cells[5].Visible = false; //Remarks
}
//rgData.DataSource = dtColour;
//rgData.DataBind();
mpConfirm.Show();
}
else
{
lblMsg.Text = "No Record Found";
lblMsg.ForeColor = System.Drawing.Color.Red;
}
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region Help Grid Row Command
protected void gvHelp_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Select")
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow selectedRow = gvHelp.Rows[index];
if (Session["Help"].ToString() == "Godown")
{
SelectedGodownId = Convert.ToInt32(selectedRow.Cells[3].Text);
DataRow[] dr = dtGodownHelp.Select("[Godown Id] = " + SelectedGodownId);
if (CurrentMode == "Modify")
{
txtGodowncode.Enabled = false;
txtGodownname.Enabled = true;
ddlCountry.Enabled = true;
chkStatus.Enabled = true;
txtRemarks.Disabled = false;
btnSave.Enabled = true;
}
else if (CurrentMode == "Inquiry")
{
txtGodowncode.Enabled = true;
txtGodownname.Enabled = false;
ddlCountry.Enabled = false;
chkStatus.Enabled = false;
txtRemarks.Disabled = true;
btnSave.Enabled = false;
}
int countryId = Convert.ToInt32((dr[0]["Country Id"]).ToString());
LoadFactories(countryId);
int factoryId = Convert.ToInt32((dr[0]["Factory Id"]).ToString());
LoadFactories(factoryId);
txtGodowncode.Text = dr[0]["Godown Code"].ToString();
txtGodownname.Text = dr[0]["Godown Name"].ToString();
ddlCountry.SelectedValue = (dr[0]["Country Id"]).ToString();
ddlFactory.SelectedValue = (dr[0]["Factory Id"]).ToString();
ddlCity.SelectedValue = (dr[0]["City Id"]).ToString();
txtGodowncontact.Text = dr[0]["GodownContactPerson"].ToString();
txtWebSite.Text = dr[0]["GodownWebsite"].ToString();
txtGodownAdd.Text = dr[0]["GodownAddress"].ToString();
txtPhn1.Text = dr[0]["PhoneNumber"].ToString();
txtPhn2.Text = dr[0]["Mobile"].ToString();
txtEmail.Text = dr[0]["Email"].ToString();
txtFax.Text = dr[0]["Fax"].ToString();
txtTelex.Text = dr[0]["Telex"].ToString();
if (Convert.ToInt32(dr[0]["Status Id"]) == 8)
{
chkStatus.Checked = true;
}
else
{
chkStatus.Checked = false;
}
txtRemarks.Value = dr[0]["Remarks"].ToString();
}
}
}
#endregion
#region Help Grid Page Index Changing
protected void gvHelp_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
// gvHelp.PageIndex = e.NewPageIndex;
// gvHelp.DataSource = dt;
// gvHelp.DataBind();
// mpConfirm.Show();
}
#endregion
protected void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
{
int selectedCountryId = Convert.ToInt32(ddlCountry.SelectedValue);
LoadCities(selectedCountryId);
}
protected void ddlFactory_SelectedIndexChanged(object sender, EventArgs e)
{
int selectedFactoryId = Convert.ToInt32(ddlFactory.SelectedValue);
LoadCities(selectedFactoryId);
}
}
}
FactoryCls
public class FactoryCls
{
DataManipulation clsDataMan = new DataManipulation();
public int InsertFactory
(
int FactoryId,
string FactoryCode,
string FactoryName,
int CountryId,
int CityId,
string FactoryContactPerson,
string FactoryWebsite,
string FactoryAddress,
string TQB_No,
string Remarks,
string PhoneNumber,
string Mobile,
string Email,
string Fax,
string DisplayNameForTQB,
string Declarant_SequenceNo,
string Telex,
int StatusId,
int UserId,
string sMode
)
{
int Output = 0;
SqlParameter[] sqlParam = new SqlParameter[21];
sqlParam[0] = new SqlParameter("@FactoryId", FactoryId);
sqlParam[1] = new SqlParameter("@FactoryCode", FactoryCode);
sqlParam[2] = new SqlParameter("@FactoryName", FactoryName);
sqlParam[3] = new SqlParameter("@CountryId", CountryId);
sqlParam[4] = new SqlParameter("@CityId", CityId);
sqlParam[5] = new SqlParameter("@FactoryContactPerson", FactoryContactPerson);
sqlParam[6] = new SqlParameter("@FactoryWebsite", FactoryWebsite);
sqlParam[7] = new SqlParameter("@FactoryAddress", FactoryAddress);
sqlParam[8] = new SqlParameter("@TQB_No", TQB_No);
sqlParam[9] = new SqlParameter("@Remarks", Remarks);
sqlParam[10] = new SqlParameter("@PhoneNumber", PhoneNumber);
sqlParam[11] = new SqlParameter("@Mobile", Mobile);
sqlParam[12] = new SqlParameter("@Email", Email);
sqlParam[13] = new SqlParameter("@Fax", Fax);
sqlParam[14] = new SqlParameter("@DisplayNameForTQB", DisplayNameForTQB);
sqlParam[15] = new SqlParameter("@Declarant_SequenceNo", Declarant_SequenceNo);
sqlParam[16] = new SqlParameter("@Telex", Telex);
sqlParam[17] = new SqlParameter("@StatusId", StatusId);
sqlParam[18] = new SqlParameter("@CreateId", UserId);
sqlParam[19] = new SqlParameter("@Mode", sMode);
sqlParam[20] = new SqlParameter("@iOutput", 0);
sqlParam[20].Direction = ParameterDirection.Output;
try
{
Output = clsDataMan.InsertData("Factory_InsertUpdate", sqlParam);
}
catch (Exception ex)
{
Output = -1;
}
return Output;
}
public DataTable Factory_SelectAll()
{
DataTable dtResults = new DataTable();
dtResults = clsDataMan.RetrieveToDataSet("Factory_SelectAll").Tables[0];
return dtResults;
}
#region Get Factory For Help
public DataTable FGetFactory(string strFactoryCode)
{
DataTable rsResult = new DataTable();
SqlParameter[] sqlParam = new SqlParameter[1];
sqlParam[0] = new SqlParameter("@inFactory", strFactoryCode);
rsResult = clsDataMan.RetrieveToDataSet("Factory_GetFactories", sqlParam).Tables[0];
return rsResult;
}
#endregion
//public DataTable LoadFactory()
//{
// DataTable dtResults = new DataTable();
// SqlParameter[] sqlParam = new SqlParameter[0];
// dtResults = clsDataMan.RetrieveToDataSet("Factory_Select", sqlParam).Tables[0];
// return dtResults;
//}
public DataTable FactoriesByCity(int FactoryId)
{
DataTable rsResult = new DataTable();
SqlParameter[] sqlParam = new SqlParameter[1];
sqlParam[0] = new SqlParameter("@FactoryId", FactoryId);
rsResult = clsDataMan.RetrieveToDataSet("Factory_FactoriesByCity", sqlParam).Tables[0];
return rsResult;
}
}
}
最佳答案
您需要将 ddlCity_SelectedIndexChanged
添加到 asp 标记和您的
CS 代码:
protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
{
int selectedCityId = Convert.ToInt32(ddlCity.SelectedValue);
LoadFactories(selectedCityId);
}
我假设您的 Load Factory 方法如下所示。您需要验证文本和值字段名称是否正确来自数据集。
private void LoadFactories(int CityId)
{
FactoryCls objFactory = new FactoryCls();
DataTable dtFactory = objFactory.FactoriesByCity(CityId);
ddlFactory.DataSource = dtFactory;
ddlFactory.DataTextField = "Name";
ddlFactory.DataValueField = "ID";
ddlFactory.DataBind();
ddlFactory.SelectedIndex = 0;
}
最后检查您的 aspx 标记并查看
关于c# - Asp.Net 下拉菜单无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36003947/
我试图让我的 jQuery 脚本从单击的链接中提取 url,然后将其插入到我的视频标签中。有什么建议吗? 我试过拼接我从 .html() 中得到的内容,但引号总是搞砸了。
我遇到了 docker 的问题。 场景是这样的:我们使用Codebuild+Packer+docker创建AMI,用于deploy。在这一步中,我们从 Artifactory 中提取图像,并且除了提取
我目前正在学习 RxJS。 在文档中,我找到了这个数组。 我尝试在谷歌上搜索“pull and push javascript”,但我什至不知道如何调用这些实体/概念。我不明白那是什么意思?我假设 S
Title 在小屏幕上,我首先需要标题,然后是文本字段,但在中等以上的屏幕上,我需要相反的方式 - 我已经尝试过推和拉,但它们无法工作 - 有什么想法吗? 最佳答案 根据 Swa
zmq 的某些部分未以可预测的方式运行。 我正在使用 VS2013 和 zmq 3.2.4。为了不在我的 pubsub 框架中“丢失”消息 [旁白:我认为这是一个设计缺陷。我应该能够首先启动我的订阅者
我正在编写一个使用嵌套 Bootstrap 列的页面。我正在使用推/拉让列在移动设备上切换位置,而且效果很好。但是,在桌面上我遇到了一些奇怪的间距问题。嵌套列偏移到父列的右侧。 我设置了一个 fidd
在拉取一些 docker 镜像(但不是全部)时出现此错误: failed to register layer: Error processing tar file(exit status 1): op
我创建了一个 Kubernetes 集群,并为每个节点安装了 docker。 当我尝试使用 docker push local_registry_addr:port/image_id 将图像拉取或推送
没有明确地推/拉单个书签,书签何时从 repo 复制/更新到 repo? 在我对两个本地存储库的测试中,我无法推断出一致的行为。有时从 A 到 B 或 B 到 A 的推/拉会复制/更新书签,有时不会。
在 Bootstrap 3 文档中,他们给出了以下使用 push 和 pull 类更改列顺序 (http://getbootstrap.com/css/#grid-column-ordering) 的
从这个问题开始Three column Bootstrap layout with left sidebar at bottom我了解了 Bootstrap 列推拉。 下面的代码片段几乎可以得到我想要
许多 Repo 函数的签名包括 **kwargs,其中文档说,您可以将参数传递给底层包装的 git 命令。但是,*args 没有位置。为了传递类似标志的参数,如 --all。我原以为它们会像 my_r
如果您将大文件推送/拉到设备上,这真的很烦人,现在无法知道它有多远。是否可以运行 adb push 或 adb pull 并使用“bar”实用程序获取进度条? 这里的主要问题是我认为 adb 需要两个
当我尝试使用 Gitkrakent 向/从 Heroku 推/拉时,GitKraken 告诉我: "Please log in to continue" 请求的“用户/登录”是什么? (我个人 Her
我在 docker 容器中有一个 Jenkins 2.150.1。要安装这个 Jenkins,我只需使用 jenkinsci/blueocean:1.9.0图片。 我创建了一个管道,然后尝试使用我的
我想使用 Jenkins 做下一步: 1- docker pull 2- docker run -i -t 我已经在jenkins上安装了docker插件,但是这可行吗? docker plugi
如果我正在处理一些我不想提交的文件,我只需保存它们。然后我有其他文件想要推送到服务器,但是如果其他人对存储库进行了更改,并且我将它们拉下来,它会要求我 merge 或 rebase ..但是这些选项中
无论出于何种原因,我在 FB 上共享链接时尝试使用的图像都无法加载。给出的确切错误是: 提供了og:image,无法下载。发生这种情况的原因有多种,例如您的服务器使用不受支持的内容编码。爬虫接受 de
今天我买了三星 Galaxy Note 3,它配备了 Android 4.3。由于它太新了,我找不到根植我设备的方法,所以我尝试使用 adb 连接……我失败了。 所以,我用了这个 D:\android
我尝试通过 airflow cli test 命令测试 2 个任务` 第一个任务运行,自动将最后一个控制台推送到 xcom,我按预期在 Airflow GUI 中看到了值 some value 当我通
我是一名优秀的程序员,十分优秀!