|
Do you not understand "string str is not initialized"
string str;<br />
string str = string.Empty;<br />
I didn't get any requirements for the signature
|
|
|
|
|
str=dr[0].ToString();
You have a Nice flaw in this method.
If your reader has > 1 lines then you always display the last value from the reader.object
|
|
|
|
|
deepaknigam11 wrote: string str;
string str="";
|
|
|
|
|
Hi,
I have 1 master page and 1 aspx page. in this aspx page there is one textbox called txtbox1
In master page, there is javascript function, from that JS function i want to access txtbox1.
but document.getElementById('txtbox1') getting null.
what i did wrong?
any sounds
Ramana
|
|
|
|
|
Add the javascript from you code behind page.
this.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), "key", "document.getElementById('" + txtbox1.clientId " + ');", true);
Otherwise you might not have the correct clientid in your javascript.
I didn't get any requirements for the signature
|
|
|
|
|
Hi all,
I am working with a team on a web project and every one of us is using internal documentation for all the classes and functions we are using by writting inside the following:
''' <summary><br />
''' Description of the class<br />
''' </summary><br />
''' <param name="ip"></param><br />
''' <param name="url"></param><br />
''' <param name="currentError"></param><br />
''' <param name="errorDate"></param><br />
''' <remarks></remarks><br />
Is there a way that i can extract all the documentation from the application and save it as a soft copy.
thanks
|
|
|
|
|
Yes,
You can , use XML Documention for that.
eg.
///<summary>
///This is A sample Example , Describe your function
///</Sumary>
Void MyFunction()
{
//Your Funmction
}
Now, From Project Property page -> Build
In XML Documentation file -> Give the XML File path
Build the Application.
Check in \bin\Relase file there is a XML file generated.
That's all.
Try to workout on XML Documentation , there are losts of material are available in .net, i have just give u the idea how to start.
Good luck
Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles
"Success is Journey it's not a destination"
|
|
|
|
|
Thanks for ur reply, however i have tried to use it but not working when iam creating a new web site. It is working only when iam using a new class library cause it has one dll file.
|
|
|
|
|
ok, there is an opensource tool Ndoc try it, using this you can do what you want for documention !!!
|
|
|
|
|
hi to all,
how to use datagrid paging in asp.net2.0.
jai
|
|
|
|
|
Enabled the paging section
|
|
|
|
|
hi,
for paging in asp 1.1 we will give like this
<asp:gridview id="datagrid" runat="server" pagesize="3" allowpaging="true" onpageindexchanged="page" autogeneratecolumns="false" width="177px">
public void mouseclick(object sender, DataGridPageChangedEventArgs e)
{
datagrid.CurrentPageIndex = e.NewPageIndex;
datagrid.DataBind();
}
in asp2.0, dont want to give like this
jai
|
|
|
|
|
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))
|
|
|
|