|
program give me?
i requierd this program
|
|
|
|
|
That was a joke in response to the previous comment. That is what means.
[EDIT]BTW we still cannot understand your question.[/EDIT]
|
|
|
|
|
azamt wrote: i want a function for asp.net to district access file and spoil possible eleminition phisical file for shift and delete?
I'm sorry, but this makes no sense. Perhaps you need to rephrase it ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i cant file delete by client.i can file like my document in window clint cant delete .help me?????
|
|
|
|
|
Hi all,
i have created a user control inherting webcontrol base class and also added text changed event to it.
but the autopostback is not firing .
(i have used .IPostBackDataHandler interface )
please tell how to make autopostback working which would trigger textchanged event.
Thanks in advance.
sriharsha
|
|
|
|
|
Did you add autopostback="true" property to your textbox?
|
|
|
|
|
no , i tried some things but failed .
could you please tell me how to add the autopostback property which makes it working.
(but i have used RaisePostDataChangedEvent and LoadPostData to checkh if its fired.)
thanks and regards,
sriharsha
|
|
|
|
|
Are you developing a custom control by inheriting WebControl class? If yes you may write code to emit an "input" tag with type "text". Normally input html tag can't post back. To do so you have to call form submit using javascript.
|
|
|
|
|
yes , its a custom created textbox inherting Webcontrol.
but i want to add textchange event which is not working .
while in submit button it works fine .
is there any way i could make the textchange event work , or autopostback work without javascript.
Thanks and regards,
sriharsha
|
|
|
|
|
Without javascript, it is probably impossible.
|
|
|
|
|
I am facing a peculiar problem in my page. I have two gridviews in my page. For both I have enabled paging. The paging is appearing in the first grid, but for the second one it is not displaying. Any idea?
Following is my html code for two grids:
<asp:GridView ID="PartsListGridView" Width="100%" runat="server" AutoGenerateColumns="false" GridLines="Both" AllowPaging="true"
CssClass="GridView" OnPageIndexChanging="PartsListGridView_PageIndexChanging">
<HeaderStyle CssClass="GridViewHeader" />
<AlternatingRowStyle CssClass="GridViewAltRow" />
<PagerStyle CssClass="GridViewPager" HorizontalAlign="Center" />
<PagerSettings Mode="NumericFirstLast" Position="Bottom" />
<RowStyle CssClass="GridViewRow" />
<Columns>
<asp:TemplateField HeaderText="<%$ Resources:PartNumberHeader.Text %>">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"PartNumber") %>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:GridView ID="BusinessUnitPartsGrid" Width="100%" runat="server" OnRowDataBound="BusinessUnitPartsGrid_OnRowDataBound"
AutoGenerateColumns="True" GridLines="Both" AllowPaging="true" CssClass="GridView"
OnPageIndexChanging="BusinessUnitPartsGrid_PageIndexChanging" >
<HeaderStyle CssClass="GridViewHeader" />
<AlternatingRowStyle CssClass="GridViewAltRow" />
<PagerStyle CssClass="GridViewPager" HorizontalAlign="Center" />
<PagerSettings Mode="NumericFirstLast" Position="Bottom" />
<RowStyle CssClass="GridViewRow" />
</asp:GridView>
When I checked the view source of the page, I couldn't find the Gridviewpage for the second grid.
For first grid:
<tr class="GridViewPager" align="center">
<td><table border="0">
<tr>
<td><span>1</span></td><td><a href="javascript:__doPostBack('ctl00$PCMSMainContent$CreateDocumentWizard$PartsListGridView','Page$2')">2</a></td><td><a href="javascript:__doPostBack('ctl00$PCMSMainContent$CreateDocumentWizard$PartsListGridView','Page$3')">3</a></td>
</tr>
For second grid, I can see only the below:
<tr class="GridViewPager" align="center">
</tr>
Any idea why it is so? How can I make the paging as in First grid? Please help.
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hi there,
You have to handle the paging . In the GridView selectedindexchanged event you have to set the pageindex to the selected index.Otherwise it will not work.
Thanks,
Thanigainathan.S
India is Mythical and so we are
|
|
|
|
|
Issue is selectedindex is not displaying in the grid. The numbers 1,2,3 etc... not displaying in the bottom of the grid.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
are you changing page index and then again databinding in PartsListGridView_PageIndexChanging ?
i.e.
PartsListGridView.PageIndex = e.NewPageIndex;
PartsListGridView.Databind();
|
|
|
|
|
Hi,
How can I terminate iteration in a Repeater?
protected void rptSample_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
myRowCount++;
if (myRowCount > 200)
{
// cancel the iteration ... but how?
}
}
|
|
|
|
|
The right way is to request 200 records to begin with.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for your response...Can u just tell me is it possible to cancel the iteration..if yes, how?
|
|
|
|
|
I am not aware of a way, but that's because I'd never try to write such horrible code. I'd fix the problem at the source.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi I have five pages.
A B C D E;
A calls B calls C. (via buttons on respective pages)
also
A calls D calls E. (via buttons on respective pages)
A shows 2 values B1 & C1 (Both empty at start)
A shows 2 more values D1 & E1 (Both empty at start)
Notes.
To get to C the user first presses Bbutton then when in B presses the CButton.
When In C a user enters some data in text box C1 and returns to B.
When In B C1 should be displayed. Also the user enters some more information B1 and returns to A
When back at A, when page B returns A should update and show B1 & C1
To get to E the user first presses Dbutton then when in D presses the EButton.
When In E a user enters some data in text box E1 and returns to D.
When In D E1 should be displayed. Also the user enters some more information D1 and returns to A
When back at A, when page D returns A should update and show B1 & C1
Could any seasoned professional please suggest how they would approach this.
How do you exit a page and return to the calling page ?
My preferred approach is using properties set/get. However how do you refresh relevent fields when a page returns?
G.
|
|
|
|
|
The right way, is to make pages 1-5 all controls, put them all on the same page, and then you can use viewstate to store values and pass them between 'pages'
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Are you a winforms programmer? Designing web pages like this will be a burden to the end user. You can use session variables, query strings or cross page posting to pass data one form to another.
|
|
|
|
|
Can anybody guide me how to use Ajax Shopping Cart in ASP.NET.............
|
|
|
|
|
Do you mean you've bought or found a component ? Read the manual. Do you mean you want to write one ? Get to work, no-one is going to write it for you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
There are some text boxes , one "back" and one "reset" button on screen.
One text box is employee id. After entering employee id, it populates the rest details in other text boxes. This code is written in text_changed event. it works fine.
Issue is with following scenario:
Suppose I enter emp id in text box and directly jump to Back button and click it. Now text_changed event take place, rest of details will be populated, we will not go to back page. We will have to reclick back button to go back. Same holds true for reset.
So how to avoid this i.e. data should not be populated when we directly jump from text box to back button, should go to back page. same for reset button.
|
|
|
|
|
What are you doing to go back to previous page?
Could you please provide the code.
|
|
|
|