Click here to Skip to main content
15,888,527 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: OpenId, face book connect login with RPX API [modified] Pin
molson126-May-09 15:32
molson126-May-09 15:32 
QuestionGridview Pin
Rahad Rahman26-May-09 0:33
professionalRahad Rahman26-May-09 0:33 
AnswerRe: Gridview Pin
prateekfgiet26-May-09 0:37
prateekfgiet26-May-09 0:37 
AnswerRe: Gridview Pin
Ramesh Swaminathan26-May-09 0:45
Ramesh Swaminathan26-May-09 0:45 
AnswerRe: Gridview Pin
Baran M26-May-09 0:55
Baran M26-May-09 0:55 
QuestionI need your help Pin
Rahad Rahman26-May-09 0:28
professionalRahad Rahman26-May-09 0:28 
AnswerRe: I need your help Pin
Ramesh Swaminathan26-May-09 0:36
Ramesh Swaminathan26-May-09 0:36 
Questionconvert format DateTime in dd/MM/yyyy Pin
wertyk25-May-09 23:49
wertyk25-May-09 23:49 
Hi all!!!
I have a problem wich conversion format DateTime.
I create AjaxCalendar UserControl, an use it in my page, and I have a conversion format DateTime:
<br />
protected void AjaxCalendar_DataBinding(object sender, EventArgs e) {<br />
        try {<br />
            DateTime time = DateTime.Parse(TextDate.Text, new CultureInfo("en-GB"));<br />
        }<br />
        catch (Exception) {<br />
            TextDate.Text = string.Empty;<br />
            return;<br />
        }<br />
}<br />

and asp code of User Control:
<asp:TextBox ID="TextDate" runat="server" Width="70px" />
<Ajax:CalendarExtender ID="AjaxCalendar" runat="server" TargetControlID="TextDate" Format="dd/MM/yyyy" OnLoad="AjaxCalendar_DataBinding"/>

I load from database and add to database datatime from this control. When I use Visual Studio (I use Visual Studio 2008) this conversion work fine, but when i put my project page on IIS or on Server this conversion not work, and i obtain "String.Empty".
If I block this code I obtain data in format MM/dd/yyyy. In Regional Options i have selected format English and stat United Kingdom.
I write implicit conversion in this Mode ...ToString("dd/MM/yyyy") looks fine, but when i wont to add data in database with datetime i obtain error on dateTime.

Help me, PLEASE to create a conversion function or else, for work in IIS, or on Server.
Questionerror Must declare the variable '@pname'. Pin
prateekfgiet25-May-09 23:48
prateekfgiet25-May-09 23:48 
AnswerRe: error Must declare the variable '@pname'. Pin
adatapost26-May-09 1:09
adatapost26-May-09 1:09 
Questiongridview Pin
jainiraj25-May-09 22:44
jainiraj25-May-09 22:44 
AnswerRe: gridview Pin
Baran M25-May-09 22:51
Baran M25-May-09 22:51 
AnswerRe: gridview Pin
Tuwing.Sabado25-May-09 23:05
Tuwing.Sabado25-May-09 23:05 
AnswerRe: gridview Pin
ais0725-May-09 23:46
ais0725-May-09 23:46 
Questionediting problem in gridview Pin
prateekfgiet25-May-09 22:37
prateekfgiet25-May-09 22:37 
AnswerRe: editing problem in gridview Pin
Baran M25-May-09 23:43
Baran M25-May-09 23:43 
QuestionSecurity settings for single sign on web site Pin
samerh25-May-09 22:05
samerh25-May-09 22:05 
AnswerRe: Security settings for single sign on web site Pin
Manas Bhardwaj25-May-09 22:08
professionalManas Bhardwaj25-May-09 22:08 
GeneralRe: Security settings for single sign on web site Pin
samerh25-May-09 22:14
samerh25-May-09 22:14 
Questionibm language ware Pin
newmember2225-May-09 21:24
newmember2225-May-09 21:24 
AnswerRe: ibm language ware Pin
Manas Bhardwaj25-May-09 22:07
professionalManas Bhardwaj25-May-09 22:07 
GeneralRe: ibm language ware Pin
newmember2226-May-09 5:15
newmember2226-May-09 5:15 
QuestionVideo Pin
Robymon25-May-09 21:22
Robymon25-May-09 21:22 
AnswerRe: Video Pin
Eduard Keilholz25-May-09 21:27
Eduard Keilholz25-May-09 21:27 
GeneralRe: Video Pin
Robymon25-May-09 21:40
Robymon25-May-09 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.