|
try this code
DateTime fileDate;<br />
if(DateTime.TryParse(Path.GetFileName(filename),out fileDate))<br />
{<br />
if(fileDate==DateTime.Now)<br />
{<br />
}<br />
}<br />
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Imran Khan Pathan wrote: DateTime.Now
You may wish to change that to DateTime.Today because the OP only posted about dates, his files names are not to millisecond accuracy which is what your code requires.
|
|
|
|
|
Html Side
--------
asp:DropDownList ID="ddlSecurityQues" AutoPostBack="false" runat="server" Width="279px" OnSelectedIndexChanged="javascript:showownques();">
script
------
<script language=javascript><br />
function showownques(value)<br />
{<br />
if(value==9)<br />
{<br />
txtOwnQues.Visible = true;<br />
SetFocus(txtOwnQues);<br />
}<br />
else<br />
{<br />
txtOwnQues.Visible = false;<br />
SetFocus(txtAnswer);<br />
}<br />
}<br />
}</script>
PROBLEM: not calling the function showonques(ddlSecurityQues.SelectedIndex)
Thanks in advance,
Priya.
|
|
|
|
|
Priya Cool wrote: OnSelectedIndexChanged="javascript:showownques();">
where is the parameter?
Priya Cool wrote: PROBLEM: not calling the function showonques(ddlSecurityQues.SelectedIndex)
pass the parameter on the function call...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
i hv passed it.
sorry fr not mentioning
but still not working
Thanks in advance,
Priya.
|
|
|
|
|
showonques(ddlSecurityQues.SelectedIndex)-- This is wrong. This (ddlSecurityQues.SelectedIndex) doesn't work on the client-side. try the below function without passing the parameter. It may work.
<script language=javascript><br />
function showownques()<br />
{<br />
var value = document.getElementById("ddlSecurityQues")[document.getElementById("ddlSecurityQues").selectedIndex].value;<br />
if(value==9)<br />
{<br />
txtOwnQues.Visible = true;<br />
SetFocus(txtOwnQues);<br />
}<br />
else<br />
{<br />
txtOwnQues.Visible = false;<br />
SetFocus(txtAnswer);<br />
}<br />
}<br />
}</script>
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Did you do a View Source so see if the js call was added to your DDL?
Try adding the Javascript in your code behind (like the pageload event) rather than in the aspx or ascx file. Using Atttributes.Add like this:
ddlSecurityQues.Attributes.Add("onchange" , "showonques(this);")
Then in your js function you can can get the selected index from the combo box passed into the function.
|
|
|
|
|
Can i use the Dock Property for the label control in asp.net.
I could not find the dock property.
VanithaVasu
|
|
|
|
|
No. Label Control in ASP.NET Doesn't have Dock Property. You can do the Alignment and Formating by applying styles on the HTML Part.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
I am not sure whether this question has been answered already or not. If yes could you please send me the link.
I have an internet application with form authentication. Now I have added a new folder. What I want to do now is when the user tries to access web page(s) under this folder I want to display pop up window asking them to enter user id and password. If the user belong to the organisation and if they enter the correct details then they can see the content of that web page(s)otherwise not. Any info is really appreciated.
GKN
|
|
|
|
|
Please could any one suggest the solution. It is now very urgetn. Thanks
|
|
|
|
|
hi...
When running my Web project I have a busy browser window for a full minute
and then receive an error reporting dialog that says, "WebDev.WebServer.exe
has encountered a problem and needs to close. We are sorry for the
inconvenience." My default.aspx page never loads. This just started
happening yesterday while I was working on my Web project. Before that, it
run okay.When i run this project on some one else computer it runs correctly with out error. I also refresh my Window nd VS.
how can i fix that??
thank you...
|
|
|
|
|
Windows Authenticationit can be used only for an intranet application.the administrator has full control over the network users.The application can be designed in such a way that, it can display all the ‘Active Directory’ users, so that the administrator of the application can configure the users authenticated for the application
ow my problem is
1.I am not getting the meaning of Active Directory’
2.i want to implement the window authentication, can somebody refer me any link ? which help to undersstand the basic concept about the window Authentication
Soniagupta1@yahoo.co.in
|
|
|
|
|
Sonia Gupta wrote: Windows Authenticationit can be used only for an intranet application
Not sure
Sonia Gupta wrote: the administrator has full control over the network users
yes
Sonia Gupta wrote: The application can be designed in such a way that, it can display all the ‘Active Directory’ users, so that the administrator of the application can configure the users authenticated for the application
May be
Sonia Gupta wrote: 1.I am not getting the meaning of Active Directory’
Active Directory - Click Here[^]
Sonia Gupta wrote: 2.i want to implement the window authentication, can somebody refer me any link ? which help to undersstand the basic concept about the window Authentication
Windows Authentication in ASP.NET 2.0[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hello Everyone,
I've created my own emailEditor through which i can generate formatted text like bold, italic and etc..........I'm able to send this mail as well. But still there is a problem as i'm sending the bold text like name or paragraph at my mail i'm not receiving the text as bold.... I'm getting it like
"Strong then text closing Strong. like text or paragraph not as formatted text".........................
Wht should i do now to get the formatted text as i'm sending at my mail or recipient
|
|
|
|
|
Are you missing this line:
message.IsBodyHtml = true;
|
|
|
|
|
yes you may missing that line and if not then use
<br />
server.encodeHTML(mailbody);<br />
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
Hi,
Hope every one is doing fine. I am developing website in VS.NET 2005 and using Crystal Reports. Is it possible to pass user defined parameters to report to display user difined results...? i am new to crystal reports and dont have any idea about it, so plz guide me in detail. Thanks,
Regards,
Affan Ahamd Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
i hv set of ques in DDL
while finding "write ur own ques" it should make a textbox visible
i hv placed both DDL & TxtBox inside updatepanel
placed code under selectindexchanged,
but wat happens is, while checking questions thro keyboard keys,
for every indexchange it verifies,
wat i want is,user shud be able to scroll easily
is there any option
Thanks in advance,
Priya.
|
|
|
|
|
Priya Cool wrote: DDL
I'm not quite sure about which control you are refering to..
Did Microsoft officially declared any 3-letter Identifier or Abbreviated Code for any HTML or Server Control?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
DDL- DropDownList
Thanks in advance,
Priya.
|
|
|
|
|
try to implement it using javascript that is one of the options and i think which is recommened also
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
what are the arguments i can provide for child controls...
pavan...
|
|
|
|
|
Please elaborate a liitle more What are you trying to do ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi, I'm using Edit,update,cancel command button to edit a row in gridview. the row updating event is being fired. but the rowupdated event is not being fired. Can anybody help me out. i want to cancell edit mode in row edit mode in row updated event.
protected void gvPOD_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
e.KeepInEditMode = false;
}
|
|
|
|