|
Basically, GridView and other controls represent the view not data. Data is placed in your simple or complex variables (say objects). It is better practice to work on objects where data is available.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
Add a ASP.NET checkbox in a Template column as below:
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" oncheckedchanged="CheckBox1_CheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
You can get the reference to the GridView row pertaining to the CheckBox clicked using the NamingContainer property
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
CheckBox chk = sender as CheckBox;
GridViewRow gvRow = chk.NamingContainer as GridViewRow;
//You can get the cell values by gvRow.Cells[1].Text
}
|
|
|
|
|
Dear Experts,
I made crystal report which is displaying one main report and then more than ten sub reports.When i login particular user report displaying as proper.
When i login another user, report showing following error. Sp and tables and databases are all same. Sp also returns some data.when i manually run the crystal report in outside of the .net solution problem doesnt occured.
I had verified database also.
Failed to open a rowset.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException: Failed to open a rowset.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
How to resolve this issue. Any body known please help me.
Thanx & Regards
Mani
|
|
|
|
|
Check whether the solution given in this link [^] address your problem.
|
|
|
|
|
Hey all,
Me and a couple of friends are developing a browser game similar to Travian (as in, jobs are tackled in real-time not turn-based).
Now, we have been trying to see what's the best way to do this real-time thing online where the user can logout and whatever is queued will still be executed once the time passes.
The only way to solve this that we thought of is to:
- have a table with logs as to what is queued and what event to fire when the time ends
- every second have some software running on the server which will check if any logs have expired and execute their event then delete from the queue
The problem with this is that we need to have some software hitting the database every second, which doesn't make much sense.
What do you all think? Is there a different way of doing this which we're not seeing?!?!
Thanks a lot
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
I'm a bit sleepy after lunch, but... Could you not just hold a log of what a user has queued, and when they hit the server execute everything that they have queued that would have happened up to that point?
Providing that they're not interacting with others while they're offline...
|
|
|
|
|
What I would maybe do(hence, is probably wrong :-/ ), is execute all the jobs at the same time with threads and let them battle it out.
Or maybe im totally misunderstanding
|
|
|
|
|
hi everybody,
I have developed a simple web application in asp.net(sql 2005, and asp.net built-in role base security). there are some forms in this application where users enter their information, sql manipulate the information and send them back via email. it is working fine on laptop.
I'm wondering if I want to deploy it on Intranet or any local network what steps I have to follow.
if you guys send me link or any kind of related information that would be much appreciated. thanks in adv.
regards
learner
|
|
|
|
|
Like this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Install IIS to the machine which you need to make as a web server, deploy the application and make it available to your intranet users.
Google is the best answer. 
|
|
|
|
|
The Answer is Simple, mybe you are confused by the word Intranet.
What is Intranet ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Vuyiswa Maseko wrote: What is Intranet ?
Lets go to basics [^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You wrote before you understand the moral of the question. People tend to be confused by the terms. What he is requesting is very easy, but because the term Intranet was said to his ears, he tend to become confound.
So you thought i did not know what was intranet, come on man, go to google and google "vuyiswa maseko" instead then you would never think i dont know what is intranet.
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i'm try to keep tracking the items displayed in the data list , but data list doesn't have the paging property so is there any way of doing that ?
|
|
|
|
|
|
i want to enable or disable master page's component from its child page.How can it be done?
Thanx in advance
|
|
|
|
|
Declare a session variable, when you want to enable or disable the components of master page set the value of the session variable in child page and in page load of master page check for that session variable value and accordingly u can enable r disable the component.
|
|
|
|
|
|
What do you mean by enable or disable the master page from Child page. Do you want to empty the master page component's content ?
|
|
|
|
|
WebApp A is referencing WebApp B. Is there a way you can redirect the user from for example "testA.aspx" in WebApp A to "testB.aspx" in WebApp B
|
|
|
|
|
Hristiyan wrote: WebApp A is referencing WebApp B
How do you reference two web apps?
Hristiyan wrote: Is there a way you can redirect the user from for example "testA.aspx" in WebApp A to "testB.aspx" in WebApp B
Do a response.redirect
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You can achieve it after you host both the application, and then you can hardcore the url of the testb.aspx in testa.aspx page.
|
|
|
|
|
So there is no actual way to do that by hosting only one web app.
If i want to host 2 web apps, doest that mean i need a subdomain fr the other?
|
|
|
|
|
hi
i m using asp.net and sql server 2000
i enter some value in table and then bind this table to dropdown list
it sort automatically like
aaa
bbb
ccc
--select--
while i want, its should be like
--select--
aaa
bbb
ccc
pls help
thanks
|
|
|
|
|
You need to add each item using for loop. First you will add the "select" and then columns from your table
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|