|
OK, so there is a setting different between the server and the client.
Why are you performing this operation at all ? Why are you asking for DD/MM/YYYY and then converting to MM/DD/YYYY ? Why not have seperate text boxes to make it clear which is which, then build a datetime from that instead of relying on the server settings ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
But bro something the server work but sometime the server don't very weird right?
KaKaShi HaTaKe
|
|
|
|
|
Not at all. The date 12/12/2008 and any dates with lower numbers, will work regardless of the format on the machine. It will just get the wrong result, unless DD and MM are actually the same, as per my example.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
No that's not what i mean bro..... Sometime my value in ths textbox right is this 31/08/2008
and when i Convert.toDatetime(Textbox1.Text).toString("MM/dd/yyyy") it works and then sometime it don't. When it work it works but it don't , it don't is like there's a schedule for it to work and not to work... Thta' weird man
KaKaShi HaTaKe
|
|
|
|
|
Are you *sure* the correct value is hitting the textbox in this instance ? Have you tried a try/catch that sets the value you're using into a label so you can avoid the crash and see what the string was ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: it's urgent
Geeze, another one....
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Sorry Bros Will take not next time
KaKaShi HaTaKe
|
|
|
|
|
Don't use words like urgent in your subject line or in a post. People help when they can, not when you are under some deadline.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Yup sorry man.... will take note...... so you have any solution regarding my problem?
KaKaShi HaTaKe
|
|
|
|
|
Can anyone help me use the RateWS.wsdl webservice in ASP.net
How can I resolve this error message?
The remote name could not be resolved: 'wwwcie.ups.com'
Trace Tack....
57:[return: System.Xml.Serialization.XmlElementAttribute("RateResponse",
Namespace="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1")]
58:public RateResponse ProcessRate([System.Xml.Serialization.
XmlElementAttribute(Namespace="http://www.ups.com/
XMLSchema/XOLTWS/Rate/v1.1")] RateRequest RateRequest) {
Line 59:object[] results = this.Invoke("ProcessRate", new object[] {
Line 60: RateRequest});
Line 61: return ((RateResponse)(results[0]));
changed or added......
I added a reference to the RateWS.dll
I add this to the config file
add key="AccessLicenseNumber" value="xxxxxxxxx"
add key="Password" value="xxxxxx"
add key="UserId" value="xxxxxxxx"
add key="RateWSs.RateWS"
value="https://wwwcie.ups.com:8080/webservices/Rate"/
I changed these two elements in the wsdl file
<soap:operation soapaction="http://wwwcie.ups.com/ <br mode=" hold=" /> webservices/RateBinding/v1.1" style="document" xmlns:soap="#unknown">;
<soap:address location="https://wwwcie.ups.com/webservices/Rate" xmlns:soap="#unknown">;
xxx
modified on Friday, August 15, 2008 9:07 AM
|
|
|
|
|
Can't you wait for some time. You have just posted the same question.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
No, he probably expects someone to drop what they are doing and figure it out for him.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
repost.
Blog link to be reinstated at a later date.
|
|
|
|
|
|
lindell1st wrote: Can anyone help me use the RateWS.wsdl webservice in ASP.net
Dll as webservice?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Impatient and posted twice.
Blog link to be reinstated at a later date.
|
|
|
|
|
Yep, and a retarded question as well. Pretty obvious what the problem is. Not going to say what it is for the sake of it needing to be an exercise for the OP to get a clue
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Anyone can tell me how to set up TypeName of objectDataSource in a single-file model ASPX page? Since there is no class file in single-file model, how can I set up the TypeName???
|
|
|
|
|
JimFeng wrote: single-file model ASPX page
What is it?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
What is what? Do you mean single-file model? Do you know there are two models (code-behind and sigle-file or inline) that you can use to develope asp.net application?
|
|
|
|
|
I have a gridview with a file upload:
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical" DataKeyNames="Program_ID" Width="387px">
<Columns>
<asp:BoundField DataField="Program_ID" HeaderText="Program ID" SortExpression="Program_ID" />
<asp:TemplateField HeaderText="Image Files for Program">
<ItemTemplate>
<asp:FileUpload ID="fileUpload" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCCCC" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#CCCCCC" />
</asp:GridView>
For some reason, on postback, I am not getting any value from the file upload control:
foreach (GridViewRow row in GridView2.Rows)
{
FileUpload fileUpload = (FileUpload)row.FindControl("fileUpload");
if (!String.IsNullOrEmpty(fileUpload.FileName.Trim()))
{
if (chkImageFile.Checked)
{
if (String.IsNullOrEmpty(tempFileName))
{
tempFileName = fileUpload.FileName;
fileUpload.SaveAs(Server.MapPath("~/"));
}
}
else
tempFileName = fileUpload.FileName;
}
}
Any idea whats going on?
P.S. I am using ajax but for this task a i am doing a complete postback. None of the controls listed here are inside an update panel.
|
|
|
|
|
Could it be that the control be getting updated in another method being fired before the button click event?
I've never tried a fileupload in a gridview though.
I didn't get any requirements for the signature
|
|
|
|
|
I wud like to hav stunning menus for my project, and i really feel unpleasant about the menu within .Net, Plz Help?
|
|
|
|
|
Write your own or look on the web for an alternative.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
to hav stunning English in your questions, and a specific question.
Blog link to be reinstated at a later date.
|
|
|
|