|
hi friends
how to create rating system in asp.net,c#.net
regards
saravanan
|
|
|
|
|
The Five Star Rating System means look at the article in CP Rating System[^] By Andrey Butov.
This will help you to create the rating System.
Regards,
Satips.
|
|
|
|
|
|
In my grid view I want to show only date but it is showing date and time.
How can I show Date only
|
|
|
|
|
Check for DataFormatString property in your Columns.
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Thank you can you tell me how should I give inside the property column.
I had given like this{dd/mmm/yyyy} but it is showing eror(input string is not in correct format).
|
|
|
|
|
U can do this in query it self, use this:
SELECT Convert(nvarchar(11), Ur Date , 13) AS DateOnly
From Table.
Hope this helps u....
|
|
|
|
|
hi,
you can use split function, then it will solve.
thanks
|
|
|
|
|
A kamath wrote: I had given like this{dd/mmm/yyyy} but it is showing eror(input string is not in correct format).
give it as {dd/mm/yyyy} then it will not show Error.
Regards,
Satips.
|
|
|
|
|
|
Paste your code here we will check it out.
Regards,
Satips.
|
|
|
|
|
<asp:boundfield datafield="RECIEVEDDATE" headertext="RECIEVEDDATE" sortexpression="RECIEVEDDATE" dataformatstring="{dd/mm/yyyy}">
|
|
|
|
|
Regards,
Satips.
|
|
|
|
|
<asp:BoundField DataField="RECIEVEDDATE" HeaderText="RECIEVEDDATE" SortExpression="RECIEVEDDATE" DataFormatString="{dd/mm/yyyy}" />
|
|
|
|
|
In the BoundField event of the DataGrid, Place you code to convert the format.
private void dg_BoundField(object, e)
{
e.Items[3].Value = ((System.DateTime) e.Items[3]).ToString("dd/MM/yyyy",
System.Globalization.DateTimeFormatInfo.InvariantI nfo)
}
Try with this code this will solve your problem.
It will display only date.
Regards,
Satips.
|
|
|
|
|
|
Welcome.
Regards,
Satips.
|
|
|
|
|
Hi,
Better you check for the proper formatstring on the google.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi,
You can set
DataFormatString="{0 }" to your column in datagrid
hope it will work
|
|
|
|
|
Respected Gurus
I get the following error whenever i try to create or open a web application.
"A connection with the server could not be established."
I think this is the problem related to IIS
plz suggest some solution.......
|
|
|
|
|
Install IIS ? Make sure ASP.NET is installed ( run aspnet_regiis from your .NET directory, I think it's -i to install )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i cannot find aspnet_regiis
i tried the path C:\WINNT\Microsoft.NET\Framework\v1.1.4322
i had installed IIS version 5.1
what to do
|
|
|
|
|
I built the first few pages of a app and i think it's looking good (the last web app i built was in cold fusion just after IE 4 came out).
As seems to be the standard I've separated my javascript and css from the HTML and it all seemed to be looking nice and clean.
I decided to attach a master page so that i could have consistent menus across pages. I then had to change my javascript to reflect the new names that asp had given all my controls. Shortly after i realised i wanted a master above that because i want the look and feel available for my login screen but the menus shouldn't have loaded at that point. At this point i've realised that i need a more sensible approach then renaming again. All the MS docs suggest that i should emit my JS at runtime to get round this, for all sorts of reasons this is not a path i want to go down. Anything i've dreamt up seems to require my master pages knowing something about the content of their children.
How do other people get round these kinds of problems?
Russell
|
|
|
|
|
Usually, I have the controls I am trying to work with passed into the javascript functions. You just have to pass in the controlname.ClientId. Then inside of the javascript that variable is the object.
So in my code behind I have something like this:
ddlProgramCode.Attributes.Add("onchange", "OnChangeProgramDDL(" + ddlProgramCode.ClientID + "," +
ddlRPLine1.ClientID + "," + ddlRPLine2.ClientID + "," + ddlRPLine3.ClientID + "," + ddlRPLine4.ClientID + "," + ddlRPLine5.ClientID + ");");
Then the javascript function:
function OnChangeReadingProgramDDL(ddlRP, ddl1, ddl2, ddl3, ddl4, ddl5)
{
if (ddlRP.options[ddlRP.selectedIndex].text == "Accelerated Reader")
{
ddl1.selectedIndex = 1;
ddl2.selectedIndex = 2;
ddl3.selectedIndex = 3;
ddl4.selectedIndex = 0;
ddl5.selectedIndex = 0;
}
else if (ddlRP.options[ddlRP.selectedIndex].text == "Reading Counts")
{
ddl1.selectedIndex = 1;
ddl2.selectedIndex = 2;
ddl3.selectedIndex = 3;
ddl4.selectedIndex = 4;
ddl5.selectedIndex = 0;
}
}
Anyway, that is what I have been doing.
Hope that helps.
Ben
|
|
|
|
|
i'd thought of doing that, wasn't sure how well it would work in the long run, especially as i'm trying to keep my code clear of javascript and event attributes.
I've just tried to add a field to the top level master page but even that gets ctl00_ctl00 added to it. Is there anyway of getting a single field into the output that has a guaranteed name so that i can tell my javascript where to find the names of all the controls on the page? So far it seems that all the master page setups i've seen serve to make the code less tidy and bring alot of the script back into the html document.
Russell
|
|
|
|