|
Yes, and it is OK with reslut = ""<table><tr><td>This is a test</td></tr></table>"
|
|
|
|
|
Well then create a string variable and set it to the result.
If you have your html object such as a div tag. And a string that is your innerHTML or innerText there is no reason why that shouldn't work.
I didn't get any requirements for the signature
|
|
|
|
|
I have a gridview bound to an ObjectDataSource (DataTable).
DataKeyNames = "LocationId"
How can I find the row in my gridview with that LocationId?
I would like to have the row displayed (could be on a different page in the gridview) and selected after the postback.
Is there an easy way to do this?
I didn't get any requirements for the signature
|
|
|
|
|
Dont know is this the easy way or not, but its kind of old C Language way...
int SearchRowIndex = -1;
foreach (GridViewRow gvRow in GridView1.Rows)
if (gvRow.Cells[0].Text == LocationID)
{
SearchRowIndex = gvRow.RowIndex;
break;
}
if(SearchRowIndex >=0)
|
|
|
|
|
Thanks for the help. But I simply removed the paging and put the grid inside a div with a side scroller. Then I set rowstate to selected on rowdatabound if the row was the row I was looking for.
Thanks for the reply though. After thinking about it, I didn't like the paging anyway. It just makes it more difficult to find records.
I didn't get any requirements for the signature
|
|
|
|
|
Nice, This is more efficient way...
|
|
|
|
|
I am creating my own sessionid by implementing sessionidmanager class's createsessionid method.
In the validate method if i return false,it throws an error in the browser saying that session is invalid.
But i want to recreate a new sessionid, how do we call the createsessionid method again ?
explicitly calling createsessionid method from the validate method deosnt work.
Please help me
|
|
|
|
|
Hai,
Is there any way to bind a dropdownlist with a nested object collection without looping through the collection and adding as list item?
Regards,
Thomas.
|
|
|
|
|
Thomas Antony K wrote: bind a dropdownlist with a nested object collection without looping through the collection
can you please give me some more details on that ?
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
I have an User object and an Address object,the Address object is ebdded inside the User Object and I want to set the Datattext field as (User.UserName) and DataValueField as (User.Address.AddressId),hope you understood.
Thanks,
Thomas.
|
|
|
|
|
Why?
Just iterate through the array or generic list or whatever your object is. Actually, iterating through a datatable or anything else is always more efficient then calling a control's databind method.
I didn't get any requirements for the signature
|
|
|
|
|
Hai,thank you for your reply...
cheers...
Thomas
|
|
|
|
|
Hai,,
One more thing,why is iterating through a collection is more efficient than calling a databind method,this is just for my knowledge,what happens when an object is bound to a datasource?
|
|
|
|
|
Thomas Antony K wrote: why is iterating through a collection is more efficient than calling a databind method
Both does the same. But data binding is made to support a wide audience. So there will be extra checking before data is added. When you iterate the collection, you are directly adding data to the control. But this performance difference is not noticeable.
|
|
|
|
|
Hai...,
Thanks for the reply,
Cheers,
Thomas.
|
|
|
|
|
Hi,
I am creating a demo ASP.net web page application which will be installed on client place for 30 days.
I want my ASP.net application to stop working after 30 days.
I don't want to reply on system date because user can always trick the application by changing the system date of Web server.
I guess I will not have access to user system hard disk and registry because application will be running in IIS and it doesn't have access to them.
Do you think if there is any other way I can manage trial version of my application.
Thanks in Advance
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
You can store a timestamp each time the application is run.
Then by comparing the previous date to the current date you will know if the clock has been turned back (You could then lock up the application).
My 2 cents...
A dogged, arrogant belief in self and the childlike idealism that comes with not knowing my limits. This is my greatest blessing, my priceless attribute.
|
|
|
|
|
Restart WWW services all the Application variables are lost.
|
|
|
|
|
I meant Application as in Web Application and not Page.Application
You can always store them somewhere on the hard disk / registry... However setting up of read /write permissions might be tricky depending on how you wish to install the application.
A dogged, arrogant belief in self and the childlike idealism that comes with not knowing my limits. This is my greatest blessing, my priceless attribute.
|
|
|
|
|
My suggestions for you Problem:
1. Create A webservice on your Server that should accept some arguments(IP) from client. It should check on what date the IP was registed. Difference between the Current and Date Registed. Should send TRUE/FALSE to client based on this.
2. Create a DLL for client. Before it serve any request to client, it must contact your Service, get the Status and proceed.
3. If expiry date is over, stop the DLL from execution.
|
|
|
|
|
You beat me to the punch. Good answer.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks.....
|
|
|
|
|
Is there possible to do xml validation in asp.net,without using validation controls in toolbox..
if so,refer some links.
Thanx in advance..
|
|
|
|
|
jaraldumary wrote: Is there possible to do xml validation in asp.net
XML validation? Are you trying to validate a XML file?
|
|
|
|
|
yes,
if there is any link refer to me..
|
|
|
|