|
Thank You Sir.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi ,
I am dilip new to .net but worked little much.
From table extacting OR selecting any particular rows which has some common properties c an be done using SELECT statement of the SQL.
For your table, query is something like "SELECT myname FROM mttable WHERE mydate=@date"
It' so simple.
Thanks & Regards
Dilip
.Net Consulting
|
|
|
|
|
Hello ,
I am working with an WebService. The current webserivce returns the dataset. Now one of the column in datatable is Author and the author is comma separated.
Example
AuthorName | BookName | Price
Blaze-Tony,Ron-Moraldo| Basic C# | 20
Blaze-Con,Bob-Moraldo | ASP.NET | 20
I want the result of the webservice to be in below format:
The Author names are comma seprated and I will do the split part.
<Table diffgr:id="Table1" msdata:rowOrder="0">
<AUTHORLIST>
<AUTHOR>
<FIRSTNAME>blaze</FIRSTNAME>
<lASTNAME>tony</lASTNAME>
</AUTHOR>
<AUTHOR>
<FIRSTNAME>RON</FIRSTNAME>
<lASTNAME>Moraldo</lASTNAME>
</AUTHOR>
</AUTHORLIST>
<BOOKNAME>Basic C#</BOOKNAME>
<Price>20</Price>
</Table>
<Table diffgr:id="Table2" msdata:rowOrder="1">
<AUTHORLIST>
<AUTHOR>
<FIRSTNAME>Con</FIRSTNAME>
<lASTNAME>Blaze</lASTNAME>
</AUTHOR>
<AUTHOR>
<FIRSTNAME>Bob</FIRSTNAME>
<lASTNAME>Moraldo</lASTNAME>
</AUTHOR>
</AUTHORLIST>
<BOOKNAME>ASP.NET </BOOKNAME>
<Price>20</Price>
</Table>
How shall I achive the same in above XML format. Check the <AUTHORLIST> tag?
Please tell me the approch?
Regards,
Pavas
|
|
|
|
|
Hi all,
How can I maintain the state of checkbox in a gridiview during postpack(VS2003)
Thanks in Advance
Dana
|
|
|
|
|
danasegaranea wrote: gridiview during postpack(VS2003)
ASP.NET 1.1 don't have a GridView control. Do you mean DataGrid ? DataGrid can maintain it's controls state if viewstate is turned on. It will do this automatically. Make sure you are binding the grid in not ispostback block.
|
|
|
|
|
Yes it is a Datagrid only. If I do in the Binding in the Not isPostBack event, then the Paging is not working
|
|
|
|
|
You need to bind the grid again after changing the page number
|
|
|
|
|
I do like this
Private Sub dgResources_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles dgResources.PageIndexChanged
dgResources.CurrentPageIndex = e.NewPageIndex
dgResources.DataBind()
End Sub
But is not maintaing its state.
Bye the way I am using this code to check whether the check box is checke / uncheked.Even the checkbox is check it is giving the value Checked = False always
For i = 0 To dgResources.Items.Count - 1
chk = (dgResources.Items(i).Cells(0).FindControl("chkResource_First"))
If Not chk Is Nothing Then
If chk.Checked = True Then ' Always false.
'Do some thing
End If
Else
End If
Next
|
|
|
|
|
danasegaranea wrote: dgResources.CurrentPageIndex = e.NewPageIndex
dgResources.DataBind()
You are not setting the data source.
|
|
|
|
|
Hi all,
How can I get all the rows/columns of a datagridview in VS 2003.
Thanks
Dana
|
|
|
|
|
What is the problem you are having in looping through the rows or columns of the datagrid. You can always get the row or count of the datagrid and then loop through with that.
Apurva Kaushal
|
|
|
|
|
there are nearly 10 items in the dropdown list now how can i make the 2,4,6,8 items to disable not to view to the user
|
|
|
|
|
Isn't this the same as your previous question. Anyway, the answer is the same. It can't be done.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Why don't remove these items you want to disable ?
imagic
|
|
|
|
|
hi
can any one help me in creating website in hindi and english language it is reallly urgent
|
|
|
|
|
You might want to have a look at the use of resource files in asp.net.
|
|
|
|
|
iam having a dropdown list where iam having the items..but some items are to be hide so that user cannot select that list item...but the index of the item should not change
|
|
|
|
|
You can't hide dropdownlist items. You should only populate the control with items that the user has permission to select.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
i Got it!!
function OnClickHandler()
{
var anchors = document.getElementsByTagName('A');
for(var i=0;i<anchors.length;i++)>
{
var anchor = anchors[i];
}
}
|
|
|
|
|
hi friends Good Morning
how to open Dialog box in asp.net?
Piyush Vardhan Singh
|
|
|
|
|
You can do this in JavaScript. Use the window.alert() method.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
I want to be able to open a new e-mail message with the recipients filled in. Currently I'm doing this by using a "mailto:a;b;c;d;etc;" link which I build up dynamically. However, when this exceeds 4096 characters the link just stops, which is understandable since that is probably the maximum amount it can take. Building an entire mail form using the .NET mail object isn't an option though.
Basically the need I have is just a simple way to open up an empty e-mail in the user's standard e-mail client with recipients dynamically filled in (preferably BCC ofcourse). Is there any way to go about that without running into size restrictions when the amount of recipients is quite big?
Cheers,
-Manny
|
|
|
|
|
I know this should be possible
I have a dropdownlist. In it I have the name of multiple .aspx pages
I want my user to select a page and have that page open. I also would like to pass 2 variables to the page they opened to be used in a query statement eg CustID and dateofpurchase. These are located in the page with the dropdownlist (source Page) as text in 2 textboxes hidden. I am looking for a code in the dropdown selected event that could open the page and pass these into the target page. PLEASE I WOULD BE MOST GREAT FULL. I am using VB with asp.net. I have tried both response.redirect, server.transfare and even coded the source page into the target page with little success because I do not know the correct syntax.
modified on Wednesday, January 16, 2008 10:31:44 PM
|
|
|
|
|
Fine I will Just answer it myself. Make the dropdownlist, The id of your list item is the name of the page (ie .aspx). The text is the name you want to show in the list. Now since the page with the dropdownlist is the main page use all the other pages to obtain the controll that you want using the ctype(previouspage.find controll),textbox). There you have it when you select an item the correct page opens and has the controll info you need. As for me I use this to open each system to allow my users to change the systems using the information on two controlls in the main page. The controlls Identify the owner of those systems. Hope it helps someone else.
|
|
|
|