|
+ Use the ImageField[^]
+ Use the Image control with the TemplateField.
|
|
|
|
|
Hi
How you determin which button was clicked on the webform.
I have 3 buttons on the form, each cause postback. I want to determin which button was clicked in the Page_Load method.
Problem is that validation is fired in every postback, but I want validation to be fired only when button "save" in clicked. So I have to enable validation control in Page_Load method but I dont know which button was clicked
Any sugestion ?
Thanks
Jerry
|
|
|
|
|
I'm not sure what you mean excatly, so I'll just throw around some suggestions here.
By validation, do you mean by using asp.net validators? Because then you can set the property "CausesValidation" to false on the buttons you don't wish to trigger validation.
Otherwise if the validation happens "manually" - serverside, could you not do it in the "save buttons" clicked-event instead of page-load?
Thirdly - could the validation be handled via JavaScript, in which case you can do it prior to post-back?.
Lastly if none of the above suggestions work, you can do it the old fashion way. If you request.form on your unique id of your button and it returns a value, it has been triggered.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Thanks... someButton.CausesValidation = False on other buttons will solve the problem.
Best Regards
Jerry
|
|
|
|
|
Hello,
I have a problem with the dotnet framework... my application was built with version 1.1 and the server is 2.0. My application is not showing currently when displayed on the internet... I think it has to do with the different versions....
Can someone help me on this?
Thanks alot,
Commickey
|
|
|
|
|
Did you see my reply to your earlier post? Have you checked the IIS settings?
|
|
|
|
|
Hello,
Thanks for the reply, now I see it....
Thanks alot,
Commickey
|
|
|
|
|
I think that you will have to install FW 1.1on the server.
Then in IIS right click your application and go on the tab ASP.NET (last tab usualy). You have to use 1.1.xxxx ASP.NET version.
Regards
Jerry
|
|
|
|
|
I have made a new project that shows all records in the datagrid and the datagrid takes up the whole page. What I want to do, is when it is printed, no rows are cut off and are instead pushed to the next page and also to have the header of the datagrid repeated on each page.
Seems simple enough... but I can't quite get it any ideas?
Thanks in advance guys
Dev
|
|
|
|
|
|
|
First of all thanks Tirthadip for repling
Actually u got it wrong, I wasnt asking for paging but for printing a datagrid.
Let me explain it again, suppose we have a datagrid which contains around 2000 records. If we gonna print all these records it would take many pages. now What I want to do, is when it is printed, no rows are cut off and are instead pushed to the next page and also to have the header of the datagrid repeated on each page.
I hope you will get it this time
Regards
Dev
|
|
|
|
|
Hi,
I have two ASP .Net pages, one page has buttons for different report types, another page draws a report from SQL Server using Crystal Viewer. To draw a report you click on a button on the first page and the second page will pop-up displaying the report. When I test this on my machine it works fine, but someone using a different machine from a different location complained that it does not work.
When they click on a button to draw a report, both the pages shut down. The pop-ups are enabled on their machine. What might be the problem? please help
|
|
|
|
|
hi all,
anyone know about URL Rewriter.. basacily my mostly pages show like www.abc.com/mypage?id=3432&no=1212 and i wanna show like, www.abc.com/mypage
so anyidea about that....
thanx in advance
Sajjad
|
|
|
|
|
Many references can be found by doing a fast search.
http://www.codeproject.com/aspnet/URLRewriter.asp would be one.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
thanx for reply....
but it not help full or in other words i can't understand
so .... any other idea ???
|
|
|
|
|
Can anyone give a code to his page by digit number
................
|
|
|
|
|
I have problem with java
I want user click link and show table if click agian table hide.
................
|
|
|
|
|
put the table in a div, write some javascript behind the link to hide the div...
|
|
|
|
|
|
I don't know how to write java
................
|
|
|
|
|
did you click on the link??
You might not know how to write javascript, but i'm sure you can copy and paste...
|
|
|
|
|
Thank for ur answer
................
|
|
|
|
|
No problem. Apologies for being a bit snappy, not quite awake this morning yet...
|
|
|
|
|
I want to retirve record as codeprobject foum page also, but i don't how to getting star, i can only get subject, author, datetime
................
|
|
|
|