|
Little problem involving ASP.NET, C#, ImageButtons and events
I have a list of many items. These are displayed as imagebuttons, and their NavigateUrl property is set to 'page.aspx?productID=' + item.productID . This works just fine, but the problem is that this actually results in a redirect, when a simple postback is enough.
The list of items is still displayed, and when redirect happens, it has to be retrieved again from the DB, whereas with postback it can just stay the same, and the new information is added to it.
How can I fix this? Is there a way to add some data (like productID) to a button, give all the dynamic buttons the same event, so that when it is pressed, you can get the information from the object sender parameter in the event?
Thank you
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
If you are using ImageButton, you can use PostbackUrl Property of the ImageButton. It does same as the NavigateUrl , but with a IsPostback = True . Check it out... I have used it long time before.
|
|
|
|
|
hi frenz,
i am new to asp.net feild, plz say me how to connect compare validator with the database and to use server.transfer. wath is the code to close the window(like unload me in vb6.0)?
mvj_asp
-- modified at 2:57 Wednesday 4th April, 2007
|
|
|
|
|
u r ! on IM || SMS. Try writing clearly. Try Search box at the top of the page.
only two letters away from being an asset
|
|
|
|
|
i want to open new browser window by cliking on button
pop-up should be open whether pop-up blocker if on or off in browser
|
|
|
|
|
If the pop-up blocker is on you will not be able to open a new window. You have to use javascript to open a new window and the pop up blocker can't tell the difference. All you can do is ask your users to turn off pop up blocker for your site.
Ben
|
|
|
|
|
|
Hi all,
We would like to implement/integrate digital signature solution with third party document management solution(which has Rich API). We looked at commercial digital signature solutions and it looked like they are not affordable at all for Non-Profit org in India.I'm lead developer on this module.
Reuirement-
- Web signing: Sign documents(Doc,XLS,PDF,Tiff) online from ASP.NET DMS solution), they have viewer
- Offline verifiablity : When documents are sent via email to someone outside organisation, how they can verify that document is from outside source.
My Findings-
- We can use Crypto API / CAPICOM to get certificate and sign it and put signature embedded in Doc,Xls,PDF file.
- For offline verifiablity who does not have DMS solution, some thick app could be given who looks for signature in Doc,Xls,PDF file and tells signer, CA, Sign date.
Problems-
Embedded signature : Client need to have Office installed to sign document, even though he does not need to edit document.
Detached signature : Document can not be verified outside Organisation or DMS solution.
It looks like I'm missing something, please shad some light or just share your views on it.
Thanks,
Maulik.
"We are all angles with only one wing, only way we can fly is cooperation"
|
|
|
|
|
Hi here am using two tables so i used join query for relation...Now i want to use this join query in update sql command...Is it possible to use it in Update...if yes, please send me a sql query for that
With Regards,
Samson
|
|
|
|
|
update a
set a.value = "value" from
TableA a join TableB b on
a.id = b.id
where b.id = 1
|
|
|
|
|
I would suggest write a SP and put the updates in transaction and perform the task
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
|
|
|
|
|
|
[ASP.NET1.1,C#]
how to provide Forms Authentication to a solution with more than one project.
How can i provide Forms Authentication common to entire solution when all projects have their own web.config files.
|
|
|
|
|
I want the store Values in XML file like as Database and Search/Modify/Delete the Data From that File.
and Display it in website as Tabular Format.
If you have the Code Please send Me soon
Thanks
Mohan Balal
|
|
|
|
|
What u have done so far?
What error you got, tell we are here to solve your Problem?
Dont post it simply please Send me Code Soon.
Regards,
Satips.
|
|
|
|
|
Hi All,
Please send me Interview Questions on ObjectOriented Programming
Thanks inAdvance.
|
|
|
|
|
Get it from our Best Friend Google.
Regards,
Satips.
|
|
|
|
|
hi,
once visit this site
www.geekinterview.com
u can find interview questions
|
|
|
|
|
Could anyone help me 'wat is digital certificate'. and send me details about how to use digital certificate in ASP.NET...?
Thanking YOU...
|
|
|
|
|
|
I am trying to prevent from cross script attacks on my site. Trouble is that it is a shared database and I can't garuntee the data coming back is not dangerous. So I am trying to HtmlEncode all data coming from the database.
I am using a data access class to fetch all data. This class has a few methods to do this in different forms. Encoding a dataset is easy because you can simple loop through every item and encode it.
The problem is with a DataReader. All items are read only so how i can I encode them before they are passed to other classes as a DataReader? Any Ideas?
Also is there a better way to encode all data? Like when it is rendering? because nearly everything needs to be encoded.
|
|
|
|
|
If it is written in document that use Datareader then You have to search lil more... or else just don;t use Datareader.... because u can then also work fine...
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
ummmm... okay thanks.
Anyone else any ideas?
|
|
|
|
|
You could extend the DataReader class with and override the ToString method to HTMLEncode everything.
|
|
|
|
|
Hi All,
Iam using VS 2005 and i want to be able to see emails in my oulook 2007 inbox inside a web page. Is this doable? Can i send and receive also, see contacts,...
I am googling but i dont know where to start.
Any ideas/links to related topics
Thanks in advance
|
|
|
|