|
Sun Rays wrote: But if I am not putting any debug point and running application then its updating all row's cell format as per last Css
Have you tried to break for all the items in GridView ? Is your code inside a try,catch block ? If yes comment it and check once.
|
|
|
|
|
Hi,
ya I have checked with all possibilities.
If I am debugging line by line my code then its not giving any error, And giving desired output.
But if I am not putting any debug point then its not updating CSS.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
I am working on one web application in asp.net 1.0. where I want to send alert to perticular employee in company after submmiting form. This application will be used inhouse severmeans on local server only.
But I got the error as--------
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
Can any one help me
|
|
|
|
|
Do you have SMTP server in your LAN?? Your error message seems like you don't have that server.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
swami samarth wrote: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
Check this out http://www.systemwebmail.com/faq/4.2.9.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 need to set the date format of item template column in grid view 2.0 to dd/MM/yyyy. i need this format to appear always dispite what the user put the system date. i have used the following code in global.asax, but still is changing when the user changes the system date format.
<br />
Protected Sub Application_Start(ByVal sender As Object, ByVal e As System.EventArgs)<br />
Dim ci As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture.Clone()<br />
ci.DateTimeFormat.LongTimePattern = "dd/MM/yyyy"<br />
ci.DateTimeFormat.FullDateTimePattern = "dd/MM/yyyy"<br />
ci.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy"<br />
System.Threading.Thread.CurrentThread.CurrentCulture = ci<br />
End Sub<br />
Also in item template i have put the format :
Text='<%# Bind("cCloseDate"), "{0 }" %>'
Any ideas why????
-- modified at 1:15 Friday 23rd November, 2007
|
|
|
|
|
|
I have tried your solution before and put
Text='<%# Bind("cCloseDate", "{0:dd/MM/yyyy}") %>'
it solved half of my problem since it returned dd-MM-yyyy while i need the seperator / and not -. it returned seperator as - since my system date seperator is -. What i need is to return dd/MM/yyyy dispite of what the system date or seperator is!
Thanks
|
|
|
|
|
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>
|
|
|
|