|
excuse me : what is count???
|
|
|
|
|
Count is to hold the no of recs up to the current viewing page.
suppose we have 10 pages in the drid and 5 recs per page.
And i am in the 6 th page so
Count = (6-1) * 5 + corrent page records
|
|
|
|
|
Just wondering if anyone can shed some light on the following:
Been coding in ASP.NET 2.0 for a few months now and I like it although
combining it with a 3 teir OO system can be annoying at times as the
amount of online help is minimal.
I have an issue with an objectdatasource and how to use a milti select
listbox as a control parameter.
<asp:listbox id="lstKeywords" selectionmode="Multiple" runat="server"></asp:listbox>
<asp:objectdatasource id="odsSearch" runat="server"
typename="Business.BLL.learningObject" selectmethod="SearchLearningObjectsWrapper">
<!-- Note that the following parameter may be wrong I just put one here to try and explain -->
<selectparameters>
<asp:controlparameter controlid="lstKeywords" defaultvalue=""
name="sKeywords" propertyname="SelectedValue" type="String" />
</selectparameters>
</asp:objectdatasource>
The <asp:controlparameter controlid="lstKeywords" only takes
SelectedValue not "selected valueS".
I want to be able to select more than 1 item from my listbox then pass
this ideally as List<items> to my business layer.
Even if I have to pass a string array this would be ok.
I even tried writing a custom parameter but could not get it to work.
Thanks
Russ
|
|
|
|
|
Hi there,
Because the SelectedValue[^] property of the ListBox always returns the first item value or empty even the control supports multiple selection, so you cannot use the ControlParameter in this case to get all the selected values to pass to the Select method. There are two options which you can try:
+ Use the general Parameter instead of the ControlParameter , you then create an event handler for the Selecting event of the ObjectDataSource. In the handler, you can manage to get all the selected values from the ListBox control, then pass to the InputParameters collection.
+ Use the FormParameter instead of the ControlParameter , and specify the name of the ListBox in the FormField property. Basically, if the client selects multiple values, the submitted data will contain all the selected item values which are seperated by the comma.
|
|
|
|
|
I open the ASPX page using the "showModalDialog" function, but the problem I am having is that it does not run the Page_Load method of the contained ASPX when the modal form is closed. I need to this to run to refresh the datagrid on the webform.
Any opinions on this issue??
Buchi
|
|
|
|
|
You can wait for the return value of the showModalDialog[^] method on the main page, then refresh the page after the dialog is closed.
|
|
|
|
|
For this u need to submit parent window ...........
|
|
|
|
|
what is the difference between < INPUT type=hidden > and viewstate? 2. what is diffgram? 3. What are the constraints available on a SQL SERVER table. 4. What are the difference between typed and untyped datasets. 5. what is typed and untyped in c# 6. what are the disadvantages of web service. 7. How the searches are handled by Google 8. what is web 2.0 9. Based on which property a (sql) transaction works? 10. what are the difference between web service and remoting? In which scenarios u will go for webservice & remoting?
|
|
|
|
|
Can't believe that all got an answer...
|
|
|
|
|
what should i do that the page be not refresh when i click the button in asp.net(c#)
is it possible?????????
|
|
|
|
|
use the ISPostBack
Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon
INDIA
www.iap-online.com
"A winner is not the one who never fails,
But one who NEVER QUITS"
|
|
|
|
|
i can not use ispostback for function pageloade()
i want when i click the page not move when it refresh.
|
|
|
|
|
Can you explain the scenario please
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
You better to use HTMLButton if you dont want to execute any server side code on clicking the button
cheers.
Ramesh.Kanjinghat
|
|
|
|
|
Dear All,
In brief, actually i am running my site on OS 2003 enterprise edition. Whan i enter the url http://localhost/TP45 , it gives message
"Service Unavailable". i am running IIS on port 80. i am also having Apache server on my machine, but i have stopped the Apache server service.
KIndly provide me the solution asap.
Best Regards
Raju Sharma
Raju Sharma
|
|
|
|
|
Hi guies,
I am new to Asp.Net.
I want something about ispostback method in detail.
Thanks in advance
|
|
|
|
|
|
supose you have a function that its name is cuurent date. when you wite this code:
if (!Ispostback)
{
current date()
}
the current date() function just one time be debug and when ever your form refresh it is not debuge
|
|
|
|
|
ASP.NET Session expires quite earlier even after changing the Application pool in IIS to 2 hours
valluri
|
|
|
|
|
try it with by setting the sliding attribute for session
Chinna Srihari
Tech Lead, Capgemini
|
|
|
|
|
change the session timeout in the web.config file
Rizwan Afsar
Associate Member, Technical Team
IAP Company Ltd, Gurgaon
INDIA
www.iap-online.com
"A winner is not the one who never fails,
But one who NEVER QUITS"
|
|
|
|
|
Hi every one,
I am using magicAjax in my Asp.net application.It works fine for all normal purpose. I have set up four dropdownlists as filters in my webpage.The selection of a value will affects the values of other four dropdownlists.i.e:The selection filters values.
I did this by handling the selection changed event.
I put tried by putting all the dropdown filters in seperate AjaxPanel and also I tried by putting all of them in the same AjaxPanel.But it doesn't work properly.
When I take the controls out of ajaxpanel,it works fine.
Is there any problem ,in my implementing of ajaxPanel (it works fine for all other controls)
Thanks in advance.
|
|
|
|
|
Hi all,
I have developed a custom pager control, which has been inherited from WebControl, IPostBackDataHandler. Function of the control is to render a pager layout ( page numbers, next, prev, buttons ) and raise an event on the server when page change in UI.
Problem is what when i place any validator control which are validate on server only are raising validation on custom pager control's post back.
code preview
PreRender(){
}
Render(){
}
LoadPostData(){
}
RaisePostDataChangedEvent(){
}
if anybody has resolution of this problem, please guide me, i will be very thankful to all of you.
Confidence comes not from always being right, but from not fearing to be wrong.
Mihir..
|
|
|
|
|
Sir,
Can you tell me the basic differences b/w datalist and datagrid?
Thanks
|
|
|
|
|
one is a webcontrol that renders its contents as a list, the other is a web control that renders its contents as a grid. They are both bindable to a datasource.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|