|
Hey Guys,
Sorry for posting this in the wrong section, don't really know where else to post this.
My website sends a confirmation email to registered delegates with a navy blue background color,
Is there a way to change the reply font color to white when they reply on the email?
Thanks in advance.
|
|
|
|
|
Not possible from other side when anyone replying because you don't have control over other aps.
Parwej Ahamad
|
|
|
|
|
hi,i have a Grid view with 3 textbox in it and put iy in a Update Panel.When User Pressed Tab Key In current Text Box Of Grid View,Onblur Event Runs And In this Case According to my Java Script Function,Page Get Refresh,hence,GridView Lose Its textbox Focus.I Want When User Pressed Tab Key And Page Get Refreshed,Next TextBox In Gridview Get Focus.Can Help Me whats The Easiest Way To DO It?
thanks in advance
|
|
|
|
|
Hello,
I'm necessary need to create a project that only display CCTV in a webPage, please help me that i must what to do and need it and if you have any article about this i will happy for give me.
Thank you for all.
|
|
|
|
|
|
I have a C# 2010 web forms application that uses master pages, themes, and cascading styles sheets on the same web pages. Since I am new to master pages, can you tell me how I would know what part of the web pages uses css and what part uses master pages, and the base master page, and what part uses themes? If there some kind of a rule on what takes precedence if the same part of the master page is access? Does css, theme,and or master page precendence. If there is no precendence, can you tell me how I would knowwhat part uses css, what part uses themes, and what part uses themes?
|
|
|
|
|
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;
public partial class Admin_NhanVien_Admin : System.Web.UI.Page
{
CTH51Cls.NhanVien nv = new CTH51Cls.NhanVien();
CTH51Cls.PhongBan ph = new CTH51Cls.PhongBan();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
griNhanVien.DataSource = nv.DS();
griNhanVien.DataBind();
droPhongBan.DataSource = ph.DS();
droPhongBan.DataBind();
}
}
protected void btnThem_Click(object sender, EventArgs e)
{
CTH51Cls.NhanVien nv = new CTH51Cls.NhanVien();
txtHoTen.Text = txtHoTen.Text.Trim();
while (txtHoTen.Text.IndexOf(" ") >= 0)
{
txtHoTen.Text = txtHoTen.Text.Replace(" ", " ");
}
nv.HoNV = txtHoTen.Text.Substring(0, txtHoTen.Text.LastIndexOf(" "));
nv.TenNV = txtHoTen.Text.Substring(txtHoTen.Text.LastIndexOf(" ") + 1);
nv.DienThoai = txtDienThoai.Text;
nv.GioiTinh = chkGioiTinh.Checked;
nv.DiaChi = txtDiaChi.Text;
if (fileAnhNV.HasFile)
if (System.IO.File.Exists(Server.MapPath("~/Resource/Staff/") + fileAnhNV.FileName))
nv.AnhNV = "";
else
{
nv.AnhNV = fileAnhNV.FileName;
string duongdan = Server.MapPath("~/Resource/Staff/");
fileAnhNV.SaveAs(duongdan + fileAnhNV.FileName);
}
else
nv.AnhNV = "";
nv.Email = txtEmail.Text;
nv.MatKhau = txtEmail.Text;
nv.MaPB = int.Parse(droPhongBan.SelectedValue);
nv.Them();
griNhanVien.DataSource = nv.DS();
griNhanVien.DataBind();
txtMaNV.Text = "";
txtHoTen.Text = "";
txtDienThoai.Text = "";
txtDiaChi.Text = "";
txtEmail.Text = "";
imgAnhNV.ImageUrl = "";
chkGioiTinh.Checked = false;
}
protected void griNhanVien_SelectedIndexChanged(object sender, EventArgs e)
{
nv.MaNV = int.Parse(griNhanVien.SelectedValue.ToString());
nv.CT();
txtMaNV.Text = nv.MaNV.ToString();
txtHoTen.Text = nv.HoNV + " " + nv.TenNV;
txtDienThoai.Text = nv.DienThoai;
chkGioiTinh.Checked = nv.GioiTinh;
txtDiaChi.Text = nv.DiaChi;
if (nv.AnhNV != "")
imgAnhNV.ImageUrl = "~/Resource/Staff/" + nv.AnhNV;
else imgAnhNV.ImageUrl = "";
txtEmail.Text = nv.Email;
droPhongBan.SelectedValue = nv.MaPB.ToString();
imgAnhNV.ToolTip = imgAnhNV.ImageUrl.Substring(imgAnhNV.ImageUrl.LastIndexOf("/") + 1);
}
protected void btnXoa_Click(object sender, EventArgs e)
{
CTH51Cls.NhanVien nv = new CTH51Cls.NhanVien();
nv.MaNV = int.Parse(txtMaNV.Text);
nv.Xoa();
griNhanVien.DataSource = nv.DS();
griNhanVien.DataBind();
if (System.IO.File.Exists(Server.MapPath(imgAnhNV.ImageUrl)))
System.IO.File.Delete(Server.MapPath(imgAnhNV.ImageUrl));
txtMaNV.Text = "";
txtHoTen.Text = "";
txtDienThoai.Text = "";
txtDiaChi.Text = "";
txtEmail.Text = "";
chkGioiTinh.Checked = false;
}
protected void btnSua_Click(object sender, EventArgs e)
{
CTH51Cls.NhanVien nv = new CTH51Cls.NhanVien();
nv.MaNV = int.Parse(txtMaNV.Text);
nv.HoNV = txtHoTen.Text.Substring(0, txtHoTen.Text.LastIndexOf(" "));
nv.TenNV = txtHoTen.Text.Substring(txtHoTen.Text.LastIndexOf(" ") + 1);
nv.DienThoai = txtDienThoai.Text;
nv.GioiTinh = chkGioiTinh.Checked;
nv.DiaChi = txtDiaChi.Text;
if (fileAnhNV.HasFile)
{
if (System.IO.File.Exists(Server.MapPath(imgAnhNV.ImageUrl)))
System.IO.File.Delete(Server.MapPath(imgAnhNV.ImageUrl));
if (System.IO.File.Exists(Server.MapPath("~/Resource/Staff/") + fileAnhNV.FileName))
nv.AnhNV = "";
else
{
nv.AnhNV = fileAnhNV.FileName;
string duongdan = Server.MapPath("~/Resource/Staff/");
fileAnhNV.SaveAs(duongdan + fileAnhNV.FileName);
}
}
else
nv.AnhNV = imgAnhNV.ImageUrl.Substring(imgAnhNV.ImageUrl.LastIndexOf("/") + 1);
nv.Email = txtEmail.Text;
nv.MatKhau = txtEmail.Text;
nv.MaPB = int.Parse(droPhongBan.SelectedValue);
nv.Sua();
griNhanVien.DataSource = nv.DS();
griNhanVien.DataBind();
txtMaNV.Text = "";
txtHoTen.Text = "";
txtDienThoai.Text = "";
txtDiaChi.Text = "";
txtEmail.Text = "";
imgAnhNV.ImageUrl = "";
chkGioiTinh.Checked = false;
}
}
modified 3-Oct-11 19:15pm.
|
|
|
|
|
This is an English Speaking Site.
Please Translate otherwise no help can be given.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
|
How to fetch records as
OTH
IA
LE
from table using Like query without using OR.as
select *from Issue where ReqControlNo like '%i%' or ReqControlNo like '%h%' or ReqControlNo like '%l%'
query should be as
select *from Issue where ReqControlNo like 'condition'
the condition should be in one string.
is there any solution please?
|
|
|
|
|
This has nothing to do with ASP.NET, please use a forum more appropriate to your subject.
|
|
|
|
|
I have submitted this in database forum.
thanks.
|
|
|
|
|
i have in @page directive assign master page . how do I override this at run time?
|
|
|
|
|
Page object raised event called "PreInit" and this event call the method "OnPreInit()", so in any places you can set it.
protected void Page_PreInit(object sender, EventArgs e)
{
}
protected void Page_PreInit(object sender, EventArgs e)
{
this.MasterPageFile = "/Site.master";
}
Parwej Ahamad
|
|
|
|
|
I try that... but in case where @page directive master page is not found it's throw ex prior to do preIn event
|
|
|
|
|
|
i m getting below error when increase the row in the table and insert the new data by dot net application
Procedure 'InsertData' expects parameter '@Addresss', which was not supplied.
rizvan sivally
|
|
|
|
|
By the looks of it, I would say that you are trying to execute InsertData stored procedure from your application, but failed to supply(as the error indicates) a value for @Address parameter. It would be better if you edit your question and post the relevant code so we can provide a better answer, in case this does not help.
Edit: To the bronze univoters, it would be better if you state your reasons of downvoting the answer.
Signature construction in progress. Sorry for the inconvenience.
modified 4-Oct-11 2:46am.
|
|
|
|
|
Hello, I'm trying to use the Telerik grid control. I've followed the demo listed here. I've implemented the code in a very similar fashion with a few changes due to some "quirks". The ID of my checkbox header column is "checkAllMovies"
I've spent most of the day getting it working. I'm now stuck on the part where I want it to select all check boxes. There's a bit of code at the bottom of my "view" file within my form:
@Html.Telerik().ScriptRegistrar().OnDocumentReady(
@<text>
$('#checkAllMovies').click(function checkAll()
{
$("#Grid tbody input:checkbox").attr("checked", this.checked);
});
</text>);
This doesn't seem to work/do anything. I'm new to the Telerik MVC controls (Open source).
Thanks in advance for any assistance.
-
jboyd
|
|
|
|
|
I am new to working with a C#.asp.net web forms applications. I have expereince stepping through code in C#.net 2008 desktop application. Thus I would like to be able to step through all the code in this application. Thus far I have been able to step through code in aspx.cs and aspx files
However, would like to know how to step through code in .js, html, css, and other types of files. If this is not possible, can you tell me or point me to references (urls) that will tell me how to debug these other types of files?
|
|
|
|
|
You can surely debug the code from .js file. But for that you need to enable the script debugging option from the browser. Follow these steps to enable the script debugging.
IE
Tools->Internet Options…->Advanced->Disable Script Debugging : Uncheck this box
Hope this helps.
All the best.
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|
|
for java script you can use the debugger keyword.
i.e. debugger:
for CSS and HTML you can check with number of add on from IE and FF (Mozilla). they are very help full to check the CSS and HTML of your page. if you don't know about add on, just search in google. you will get everything.
Regards
Keyur Satyadev
|
|
|
|
|
I have a page in ASP.
when the user clicks the ie back button i want to redirect it to another page via JAvascript. but the url is saved in a variable in ASP.
Can anyone help me on this?
Cheers
|
|
|
|
|
|
I have a standards/best practices question for ASP.NET webforms.
I'm making a new website that may draw tables onto the page showing reports (depending on user inputs). The style for these tables is in my CSS file.
I want to have the header row of a table that I create in the code-behind have a special style, and I can do that by putting style information in the code-behind (with the TableRow.Style.Add() method), but I'd rather pull the information from the CSS file so I only have one place to maintain style elements at.
Is there a standard way of doing this?
|
|
|
|