|
Hi,
I am using a Master page in my project which is displayed with each webpage i open on clicking respective hyperlink.
Now what i want is... i want to display the Title of the webpage which i have clicked to open, to be displayed in a label which is placed on the Master Page.
And the name of the lable shuold change every time a webpage is opened depending upon its Title.
how to do this?
|
|
|
|
|
Hi
for that you have to find label control of master page from content page,
and then you can change text of label there.
lbl=(Label)Page.Master.FindControl("MyLabel");<br />
lbl.Text = "My Test Page";
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
|
|
Instead of finding the label control, I'd recomend you to put a public property on master page and set it from the content page like Page.Master.LabelProperty = YourValue
Why I suggested this than finding control is, if your label control got renamed, then you need to change in all the content pages. But if you are exposing this through a property, it is enough to change only in one place.
|
|
|
|
|
Im a learner in ASP.NET.
as on the sites like mail.yahoo.com , there are 2 textboxes
1 is for user n another is for password.
Im making 1 simple project in ASP.Net which includes..........
usernameTextbox &
passwprdTextbox
now here how can i make passwordTextbox as protected means when anyone will enter their password it will go like *********
if password is codepro then it will show *******
there is no option for this in textbox properties.
|
|
|
|
|
hi,
if you re using VS2005 you can cheack the textmode property of textbox.
just put the value to pssword.plz let me know wheather it help out u or not
Thanks
AS
|
|
|
|
|
Hi,
u must have to check property.
There is one property named as TextMode in that select Password
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
The Input Type Password would mask the characters bieng typed. However, ensure that the password still goes unencrypted over the wire.
http://msdn2.microsoft.com/en-us/library/ms535837.aspx[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi All,
I am using two types of reports in my project
One is crystal report
and another is Excel File
it is running on localhost very easly
but when i published my website and run it into web browser and IIS this is showing some error in web.config.
I think my crystal Repaort assemblies tag generate this error.when I closed the crystal reports tags from assemblies tags then web site run proper way but report are not working..
so anyone give me Idea what I can do for my crystal reports and my excel sheet than it'll run easly into web server...
thanks in advance
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Deepak the Cool wrote: showing some error in web.config
What error?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
when I am trying to access my websites it shows
Configuration Error
and suggest to make a custom error page
I think u can understand tht error
Bcoz each and every developer face in his/her life to many times
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Deepak the Cool wrote: Configuration Error
That is the title of the page. There should be some message like 'Unrecognized', Assembly missing or like that. Get that error message.
Deepak the Cool wrote: I think u can understand tht error
It is a simple plain vanilla English error message that gets displayed. Any kinder garten kid can also understand that.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
No there is not that type of message
it is showing me a yellow page for configuration error
I add reference from com component for crystal reports
the following are the elements of my web.config...
<assemblies>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692FBEA5521E1304"/></assemblies></compilation>
and i am using followin DLL for Excel
Interop.Excel.dll
Interop.Microsoft.Office.Core.dll
Interop.VBIDE.dll
stdole.dll
can u help me for that particular
u can check my page by
http://test.paymentsindia.com/
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
I am using temporary gridview. when I delete row in gridview then create a error (There in no position 0) . I am using this code.
Protected void GridView2_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataTable mydt = new DataTable();
Session["dt"] = mydt;
mydt.Rows.RemoveAt(e.RowIndex);
GridView2.DataSource = ((DataTable)Session["dt"]).DefaultView;
GridView2.DataBind();
}
please help me
|
|
|
|
|
Gagan Deep Garg wrote: DataTable mydt = new DataTable();
Session["dt"] = mydt;
mydt.Rows.RemoveAt(e.RowIndex);
GridView2.DataSource = ((DataTable)Session["dt"]).DefaultView;
GridView2.DataBind();
Hi,
here u are creating new Datatable object. And then trying to delete from that. So how it will work ?
You must have data in datatable.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
I can't seem to get this to work. I just doesn't do anything at all. I've been working on it for about a week and I think I'm doing something fundamentally wrong here. I know I'm executing my Calendar1_DayRender event because when I just make it draw peachpuff for a background color it does it. However I can't get the access to my document to go right. I'm not really sure if it's accessing my document correctly, and the debugger isn't communicating to me. Is there a better way to do this? (such as putting the data-access in a different method and calling it from the event?)
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
XDocument eventsXML = XDocument.Load(Server.MapPath("Events.xml"));
var events = from theevent in eventsXML.Descendants("event")
where theevent.Element("event") != null
select new
{
Organization = theevent.Element("organization").Value,
Creator = theevent.Element("creator").Value,
Name = theevent.Element("name").Value,
Description = theevent.Element("description").Value,
Location = theevent.Element("location").Value,
EventDate = DateTime.Parse(theevent.Element("Date").Element("Day").Value)
};
var thismonth = from item in events
where item.EventDate.Month == DateTime.Now.Month
select item;
foreach (var item in thismonth)
{
if (item.EventDate.Date == e.Day.Date)
e.Cell.BackColor = System.Drawing.Color.PaleVioletRed;
}
}
Example of XML:
"1.0" encoding="utf-8" ?>
<event>
JET
Marti
Mid-Year Conference
Mid-Year Conference
Hachinohe
2007/11/21
8am
event>
<event>
JET
Marti
Mid-Year Conference
Mid-Year Conference
Hachinohe
2007/11/22
8am
event>
<event>
JET
Marti
Mid-Year Conference
Mid-Year Conference
Hachinohe
2007/11/23
8am
event>
|
|
|
|
|
|
Hi,
go to MyArticles. It can help you.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
the main problem for me is select a row anyway i have done some thing like this
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{string alertBox = "alert(" + e.Row.RowIndex + ")";<br />
e.Row.Attributes.Add("Onclick", alertBox);}
and i got the index of the row but i want the id of the row how can i get the id of the row can you please tell me in detail if possible with example
regards
sunilwise
|
|
|
|
|
Hi,
to get SelectedRow you have to Create an event of TestGridView_SelectedIndexChanged.
Here in this event you can get selected rowindex as well as any cell's value from selected row.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
thank u ray for u r replies it helped me some what by the way i used javescript function and some code
<script language="javascript" type="text/javascript">
var gridViewCtlId = '<%=gvAuditErrors.ClientID%>';
var gridViewCtl = null;
var curSelRow = null;
function getGridViewControl()
{
if (null == gridViewCtl)
{
gridViewCtl = document.getElementById(gridViewCtlId);
}
}
function onGridViewRowSelected(rowIdx)
{
var selRow = getSelectedRow(rowIdx);
if (curSelRow != null)
{
curSelRow.style.backgroundColor = '#ffffff';
}
if (null != selRow)
{
curSelRow = selRow;
curSelRow.style.backgroundColor = '#99cccc';
alert(rowIdx);
}
}
function getSelectedRow(rowIdx)
{
getGridViewControl();
if (null != gridViewCtl)
{
return gridViewCtl.rows[rowIdx];
alert(rowIdx);
}
return null;
}
</script>
private Int32 m_iRowIdx;<br />
protected void gvAuditErrors_RowCreated(object sender, GridViewRowEventArgs e)<br />
{<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
e.Row.Attributes.Add("onclick", "onGridViewRowSelected('" + m_iRowIdx.ToString() + "')");<br />
}<br />
m_iRowIdx++;<br />
}
http://www.netomatix.com/Development/GridViewRowSelectedStyle.aspx[^][^]
|
|
|
|
|
Hi,
I want to use a search criteria within my datagrid. I am havin a textbox within my application wen i m entering some data into it it give me the respective result but i want in such a way that it should show all the records first then after entering some data it will search the record within the datagrid.
Thanking You!
Rock Star
|
|
|
|
|
It's usually a better idea to send your search criteria to your data source and let it do the filtering for you, and your code just handles binding to the data returned
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
This is a good Idea for searching I rectnly complete it into my project
the steps are follows....
1.Fill a DataTable and Bind ur grid at first time with this DataTable
2. Set a DefaultView for the above DataTable.
3. And filter this DefaultView with with ur Search Text Box Value...
4. At last Bind ur grid with above DeafaultView in a Search Button Click or any other event...
Hope this we'll help u...
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|