|
You can specify the culture in the call when you parse the date. You can also use ParseExact to parse a specific format.
---
b { font-weight: normal; }
|
|
|
|
|
You could also use a date chooser control instead of a regular text box.
One option is: Excentrics World[^]
But there are many others.
daniero
|
|
|
|
|
I am placing the table into the edititemtemplate of DataGrid Control.I want to find the table in the codebehind file programically.
i am placing in edititemtemplate as
<edititemtemplate>
<table id = "dynamic">
</table>
</edititemtemplate>
I am finding the table in the ItemDataBound function in this manner
dim c as control=e.item.findcontrol("dynamic")
But c comes out to be nothing
Please help
|
|
|
|
|
i think you need to make your table attribute runat=server in order to get it in code file
Nav.
|
|
|
|
|
It is still not working. Thanks
|
|
|
|
|
It will work Boss.
Make sure your aspx page is in the format
<Columns>
<asp:TemplateColumn HeaderText="Edit">
<ItemTemplate>
<table runat="server" id="tbl">
<tr>
<td>ok</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
---------------------------------------
and you have properly binding data to Datagrid
DataTable dt=new DataTable();
dt.Columns.Add(new DataColumn("One"));
DataRow drow=dt.NewRow();
drow[0]="okman";
dt.Rows.Add(drow);
DataGrid1.DataSource =dt;
DataGrid1.DataBind();
-------------In item databound event write below
if(e.Item.FindControl("tbl")!=null)
{
Response.Write("Found");
}
It will write "Found"
|
|
|
|
|
I believe that you'll need to add the attribute runat = "server" to your table:
...<br />
<br />
<edititemtemplate><br />
<table id = "dynamic" runat = "server"><br />
<br />
...
That should allow you to use FindControl to retrieve it. Hope that helps.
--Jesse
|
|
|
|
|
It is still not working Thanks
|
|
|
|
|
Man try this thing
dim c as control=e.item(index).findcontrol("dynamic")
You should mention the index of the datagrid row.
Do good and have good.
|
|
|
|
|
it is producing error sorry
|
|
|
|
|
What is the maximum duration of Cookie
thanx in advance
|
|
|
|
|
What's the max amount of time in seconds/minutes/hours you can have? Xactly, infinite. Technically, the client would eventually do a system shutdown or reboot, so you can even set the cookie to last for 10hrs -> nidheeCookie.Expires.Add.Minutes(600);
Figure it out buddy!
Live in fragments no longer. Only connect.
|
|
|
|
|
Yep, infinite:
here is one year:
Dim aCookie As New HttpCookie("myCookie")
aCookie.Expires = DateTime.Now.AddDays(365)
You can always keep extending the time by setting the cookie again each time they hit your site.
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
Hi,
Can anybody help me in suggesting, how can i play only a part of the song using a Window Media Player object on the web page(say from start of the song to 20 seconds of the song).
Thanks,
Sai.
|
|
|
|
|
Record 20 Seconds +- of the song using JetAudio.
Live in fragments no longer. Only connect.
|
|
|
|
|
|
Hey i have got an asp file with following code:
<%@LANGUAGE="JavaScript"%>
<%
var roomID = Request("RoomID");
%>
<title>Messages place
<%=formatAll(roomID)%>
Can someone please try to change this page code into asp.net
|
|
|
|
|
Change the file extenstion from asp to aspx
lehya wrote: Can someone please try to change this page code into asp.net
How about you volunteer to do this?
|
|
|
|
|
We'd be happy to help you through the transition from ASP to ASP.NET. If you have specific questions surrounding ASP.NET or a specific project, please post them. That being said, I don't believe you'll find much support with a post like this. It is considered very bad form to ask someone else to do your work for you without showing that you're making an effort to learn. Given the sheer volume of resources for a beginner trying to learn ASP.NET, there really is no excuse for not giving it a try. After all, none of us will be around to maintain the code for you after the translation is done.
To help get you started, here[^] is a Google search on learning ASP.NET, with plenty of hits to look through.
Besides all of that, due to the missing functions (formatAll, getMessageRefreshTime) and the missing include file (chatprocessing.asp), even if someone did translate this page for you, the benefit would be sketchy at best. There is no real functionality in the code sample that you posted. The missing parts do all of the work.
--Jesse
|
|
|
|
|
Hey Jesse...
Thanks for whatever u told me...I have been trying to learn the differences between ASP and ASP.NET , but your google search didnt really was of use to me..Theoretically it continued well for session state differences etc..but not into the depth of the code...
Anyways, chatprocessing.aspx and the rest was all fine Jesse and the rest i have done is going on well with other pages..But i had a small doubt which would make everyone get into chaos..So i just posted the coding and asked to change it into .aspx file...
The thing is when we are changing this type of file we are just changing a few tags only..but the statements like.... <%=formatAll(roomID)%>.....i had a doubt with them and so i asked the help...anyway thanks buddy..I found this site to be useful and so i just made it out a point to know it from a few professionals too about how can we do it...I hope u can solve some of our beginner level problems too...
|
|
|
|
|
I wouldn't bother trying to "learn the differences between ASP and ASP.NET". Instead, just learn .NET. Forget everything you know in asp and learn asp.net from the begining. Learning the differences won't help a bit, IMO. I think the biggest challenge in making the switch from asp to asp.net is that you have to get away from thinking about the page running from the top to the bottom. You have to think of .NET as event driven. When you click a button that is an event. So in your code behind, you have insert the code you want to happen when the button click event occurs. Most of your code will sit in the code behind, allowing separation between your HTML and your code. Have you ever written a VB windows application? (VB6, VBA, or .NET) Web development is similar to this, only you have some more concerns like the viewstate, session, and security.
Hope that helps a little bit!
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
Well this is the problem the validators work fine but i wanto change the label color when field that i want to validate is invalid. The problem is tha i donot want to do this in the server side but in the clientside.
Can anyone help me.
Thanks in advance
|
|
|
|
|
Maybe this is what you're looking for?
http://www.codeproject.com/aspnet/EnhanceASPNETDisplay.asp[^]
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
well i missed to say that i am using asp.net 2.0 well i puted the code in a small example page width that code but the problem is that i gives me a javascript error an o quote "'ValidatorUpdateDisplay' in undefined".
Thanks for the help
|
|
|
|
|
I need to execute FTP over SSL. I am using VB.Net 1.1 Technology. can any1 please suggest which class or namespace should i refer for it.
Thanks & Regards
Manish
|
|
|
|