|
Make the property EnablePaging = true of the GridView .
|
|
|
|
|
Hi friends
I am integrating google checkout in my application.
I have one problem here.
One of Google API methods return XMLNode[] and i have one element in this node
called orderId
like as
<merchant-private-item-data>
<Order_Id>30</Order_Id>
</merchant-private-item-data>
Now I want to get OrderId
so how to read Xmlnode value?
I have coded following code
XmlNode[] PrivateData = N1.shoppingcart.merchantprivatedata.Any;
foreach (XmlNode DataNode in PrivateData)
{
string node = DataNode.Value;
}
Is this right way?
Thanks in advance
pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
What happens when you try it?
If it works, there's your answer.
Paul Marfleet
|
|
|
|
|
why is it so hard to get the dropdownlist box inside a gridview to work? I using the control to build this. I continue to get the same old error message that states "'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items" I just dont understand what is needed inorder to get what seems so simple to work.
|
|
|
|
|
The error message is self-explanatory. You are setting the SelectedValue property of the control, but the value you are trying to select isn't in the list. I can't help you further because yu haven't posted your code. However, you should step through your code using the debugger and check whether the control has been populated with the values you expect at the point that you try and select one of those values.
Paul Marfleet
|
|
|
|
|
hi,
goods links related asp.net faqs.
http://www.asp.net/forum
http://aspnet35.blogspot.com
http://aspnetfaq.net
http://msvs2008.blogspot.com
if find any good sites related to asp.net please reply.
ganesh
|
|
|
|
|
|
http://www.codeproject.com
/// -------------------------
Braulio Díez
tipsdotnet.com
/// -------------------------
|
|
|
|
|
Two websites:
1) http://www.codeproject.com/
2) http://www.thecodeproject.com/
|
|
|
|
|
Vasudevan Deepak Kumar wrote: 1) http://www.codeproject.com/
2) http://www.thecodeproject.com/
Don't forget http://codeproject.com and http://thecodeproject.com.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
hi
i want to get current month in three letter format .Like my string value return 'Oct'
Jintal Patel
|
|
|
|
|
u can use..select cast(Datename(month,getdate(),varchar(3)) from tablename..it will work.
Rajendran
|
|
|
|
|
Try this it help u
select cast(Datename(month,getdate()) as varchar(3))
|
|
|
|
|
str = Format(Date.Today, ("MMM"))
Regards - J O H N -
|
|
|
|
|
This will get the current month for you. The important bit is the ToString("MMM") which formats the month. Create a label control and name it Label1 then add this code:
Label1.Text = DateTime.Today.ToString("MMM");
Enjoy.
|
|
|
|
|
This sounds like the answer of an Eagles/Clapton fan. High 5 for you sir.;)
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi
this gives me the some other language text...
Jintal Patel
|
|
|
|
|
System.DateTime.Now.ToString("MMM");
i think it will work.
and u can apply it to any other DateTime object
regards
|
|
|
|
|
Hi,
I have a serious problem while using required field validator..
in my page i have one dropdown and one textbox for the textbox i used requiredfiled validator .when loading the page first time i can see the validation control and everything works properly..but in the second time i can't see the validation control even if the the validation is failed ie, textbox is empty.....how can i show that validator to the clients..pls anybody give me a help..
regards
alex.
|
|
|
|
|
Alex,
if you dont bother can you please show a portion of the code. Validations are always fired when a postback happens.
Many thanks,
Balamurugan
|
|
|
|
|
yes ok..but the problem is that validation is taken place in the background..but can't see the message
|
|
|
|
|
can you tell me what is Display property of validator control?
bEst Regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I mean error message can't see..if the validation fails ..
|
|
|
|
|
my code like
<asp:textbox runat="server" textmode="MultiLine" maxlength="4000" id="txtComments"
="" width="450px">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" controltovalidate="txtComments"
="" runat="server" errormessage="*">*
|
|
|
|
|
Your Code Like Following?
<asp:DropDownList ID="test" runat ="server" >
</asp:DropDownList>
<asp:TextBox ID="Test1" runat ="server" >
</asp:TextBox>
<asp:RequiredFieldValidator ID="Validator1" runat ="Server" ControlToValidate ="Test1" SetFocusOnError ="true" Display ="None"
ErrorMessage ="Enter the value" ValidationGroup ="Testing"></asp:RequiredFieldValidator>
<asp:Button ID="btn" runat ="server" Text ="Enter" />
<asp:ValidationSummary ID="valide" runat ="server" ShowMessageBox ="True" ShowSummary ="false" ValidationGroup ="Testing" />
|
|
|
|