|
the only change you have to do is i think in datasource..You can give the remote server name here and check it.
suchitamanandhar@hotmail.com
|
|
|
|
|
I'm busy developing a control that provides simple paging functionality and would like some input on some final finesses for the control. The control takes a DataTable and a PagingKey parameter, and creates a set of page buttons showing alphabetic groupings of the PagingKey values. E.g. in my test project I use a table of Employee records, with surname as the PagingKey. On calling DataBind() on my control, it populates a Repeater with a series of buttons, with texts of 'Aa - An', 'Ao - Az', etc. I'd like some input on the following:
1. The range of keys for each button is determined by my page size, so with large data sets my collection of buttons can easily exceed the height of my page. Currently I use a scrolling div as container for the buttons, but this is hardly ideal if the user had to scroll through their page index. I am thinking of nesting my page sets, so if too many buttons are created, the large set of buttons is itself passed to another paging engine, which produces a page index for the first set. I would welcome suggestions for other means of doing this.
2. I currently create my page index by iterating all items in the employee data table, 'slicing' off a new button every time my item counter reaches my max page size. The range descriptor starts with a default length of 3 characters, but increases if the From and To values are the same, until the are different, so if on my first button I get 'Aa - Aa', I make it 'Aat - Aaz'. The problem, however, remains when my first button ends with 'Am' and my second button starts with 'Am'. I would then have to iterate the whole set of buttons again, checking for this. This will not cause a huge performance hit, but it seems slightly inelegant as well.
I do not believe they are right who say that the defects of famous men should be ignored. I think it is better that we should know them. Then, though we are conscious of having faults as glaring as theirs, we can believe that that is no hindrance to our achieving also something of their virtues. - W. Somerset Maugham
My New Blog
|
|
|
|
|
iam working with login page .how can i write code for remember my login id chekbox
|
|
|
|
|
u can do it by using cookies...store cookies in the client machine and if cookie exists take the username and password from it...
Koushik
|
|
|
|
|
how to use strong names to escape dll hell?
|
|
|
|
|
|
when the user click the close window button , a message box is appearing , are u sure to close the window,if i click yes , i want to do some code i the code behind file.
how should i do it.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Have you ever heard about the 'onunload' event of body tag?
Thomas
|
|
|
|
|
write a java script function that stores "yes" or "No" in a hidden field based on the confirm or alert box (alert box always returns the bool value of true or false) response.
func getConfirm()
{
///
}
now do the following
closeButton.attributes.add("OnClick","javascript:getConfirm());
Now access the hidden field using Request.Form["hiddenField"]
u will get the value "Yes" or "No"
Koushik
|
|
|
|
|
what is closebutton
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
alert function in java script has only one button called OK
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
hey close button here is an example..i.e the button click on which u r showing the alert box. Also in u'r case use window.prompt to display Ok and Cancel buttons
-- modified at 8:36 Tuesday 9th October, 2007
Koushik
|
|
|
|
|
Hi
I am using a Microsoft Treeview control in my application. It works fine with IE.
The problem is that it is not working for Mozilla/Firefox browser. The problem I found was that on javascript events like onexpand and oncollapse,it does a postback.It is not able to attach javascript event handlers to these events.
Neither can it attach events in TreeView.htc file.I made the changes in treeview.htc file for preventing the postback.But was of no help.
Cn somebody plz give a possible fix for this ... .. . ???
Thnx in advance
|
|
|
|
|
i am calling one confirmation message written in javascript when clicking on a button.at the same time i am using one required field validater to check whether user has entered value on one textbox.but it is not fireing the validation control.if i remove the client side script then the validation control is wroking correctly on button click .how can i solve it?......
|
|
|
|
|
There's probably an error in your client-script script. You haven't posted your script, so I can't tell you what the problem is.
Paul Marfleet
|
|
|
|
|
Onclient click of button i have written
return confirm('Stock is going to update.Do you want to continue?');
|
|
|
|
|
Hi,
I assume that your javascript validation function may be return a false value or may be it makes any error which prevent the further processing.
Thomas
|
|
|
|
|
if any error with javascript function it wouldn't be worked according to the selection.it is working correctly when i click ok and cancel
|
|
|
|
|
Ok can you post that javascript function?
Thomas
|
|
|
|
|
Button
<asp:button id="btnProcess" runat="server" font-names="Verdana" font-size="Small"
="" onclick="btnProcess_Click" onclientclick="return SubmitForm();" text="PROCESS DATE" width="126px" validationgroup="PROCESS" font-bold="False" height="21px">
JavascriptFunction
function SubmitForm()
{
var msg= confirm('Stock is going to update.Do you want to continue?');
if(msg==true)
{
return true;
}
else
{
return false;
}
}
TextBox
<asp:textbox id="txtDate" runat="server" borderstyle="None" width="151px" causesvalidation="True" validationgroup="PROCESS">
Validation Control
<asp:requiredfieldvalidator
id="RequiredFieldValidator4" runat="server" controltovalidate="txtDate"
="" errormessage="*" validationgroup="PROCESS" width="15px" setfocusonerror="True">
|
|
|
|
|
Ok can you comment that 'return false' statement and check your validator is working or not
Thomas
|
|
|
|
|
then it is working correctly
|
|
|
|
|
I think javascript function has a priority than validation controls. So if the function returns false, it will causes to stop all the other processing
You have to change your logic
Thomas
|
|
|
|
|
Hi,
Functionality is to generate excel report, which i have done.
Requirement is ,office should not be install on server.
can anybody resolve this issue ?????????
Regards
Tarun Singh
Sr. Software Engineer.
mailto:tksingh@zenta.com
|
|
|
|
|
Use the Jet OleDb driver to programmatically connect and write to an Excel file. There are plenty of resources on Google that will show you how to do this.
Paul Marfleet
|
|
|
|