|
but my project is actually a web service and not a windows service.
how can i do the attachments thing in a web service?
|
|
|
|
|
|
I have two <asp:buttonfield> in gridview in which i am using one for datakeynames and another for display name. so when i click on name button i want get the text of that button control in gridview_rowcommand
<asp:GridView ID="gvAlRecord" runat="server" AutoGenerateColumns="False"
DataKeyNames="ARGSequenceNumber" Height="200px"
onrowcommand="gvAlRecord_RowCommand" Width="100%"
onrowdatabound="gvAlRecord_RowDataBound"
onrowcreated="gvAlRecord_RowCreated">
<Columns>
<asp:ButtonField ButtonType="Link" CommandName="Sequence_No"
DataTextField="ARGSequenceNumber" HeaderText="Sequence No"
SortExpression="ARGSequenceNumber" />
<asp:ButtonField ButtonType="Link" CommandName="Provider"
DataTextField="ARGProviderName" HeaderText="Provider"
SortExpression="ARGProviderName" />
</Columns>
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#0099FF" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
|
|
|
|
|
Please format the code or markup you post using the pre tags. (look a the code block item above the textbox where you entered you post)
Are you asking a question? I must have missed it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Do you want to effect the Row when clicking on one of the buttons ?
mydevbank.com
|
|
|
|
|
Hi,
I have created a Authentication Class which implements IHttpModule. When it comes to checking to see if the user is authenticated, this class works fine. However, there are some pages that do not require authentication. These are the files that I have:
SecurePage.cs - Inherits from Page with a 'IsSecure' property
secure.aspx - can only be accessed by authenticated user
public.aspx - can be viewed by anyone
login.aspx - page where users are redirected to if they try to access secure.aspx and they are not logged in
Is it possible to find out what type of page is being accessed via the Custom HttpModule?
Thanks in advance.
|
|
|
|
|
I found that the HttpApplicaion.Context.Handler (type of IHttpHandler) is created before the AcquireRequestState event. The Handler contains all the info that I require. So by subscribing to this event allows you to access the page which is calling the Authentication class.
Hopefully this helps someone in the future.
|
|
|
|
|
hi all.....
i have databound the gridview using configure data source wizard....and its working properly the problem is that if i perform any updation in the data base through any databound control database gets updated but the data being displayed in the control is not updated till i restart the application.....is it possible to refresh the data source control through that wizard.....or the only solution is to write the code in .cs file..???
|
|
|
|
|
Try re-binding the data to the control again. Actually you have to do that if you want to have your control updated.
|
|
|
|
|
but how can we rebind it using configure datasource wizard.....can you give ma an example....i'm unable to rebind it using wizard...???
|
|
|
|
|
hi iam using asp.net with c# with sql server
in my grid there is checkbox in the 1st column, then product,price,quantity,total columns available
when user enters the value in quantity field i should get the value in total field (ie) price* quantity
and finally i should get the grandtotal value in the footer
can you give me a example which helps me
|
|
|
|
|
It depends how you want to do this, on the client-side or server-side.
On client-side you need to add some JavaScript to to handle the onblur event for the quantity textbox that will update the other fields. On the server-side you need to handle the postback and bind the other other columns.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
you can use a javascript function and add onchange event for the textbox.
|
|
|
|
|
I have a ASP.NET WebForm on which I have placed a Infragistics WebTab control
The tabs on the control are generated at as the page is rendered. No problem there.
I have then created a UserControl consisting on a standard WebPanel in which I have placed a standard GridView control.
The idea is to add the UserControl to the Tab pane, when the user selects a tab and a PostBack is actioned, at which point the Gridview is populated with data depending on the tab selected.
What I am trying to do is obtain the Height of the parent container and tried the following:-
Dim myParent As Infragistics.WebUI.UltraWebTab.Tab
myParent = Me.Parent
The problem is Me.Parent returns a System.Web.UI.Control where I need to cast the parent as a Infragistics.WebUI.UltraWebTab.Tab
Any help, greatly appreciated
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Did you try casting the control to tab type? Did you get any errors?
If Third party controls are .NET compatible then you must be able to cast that 'control' to tab control.
Above all, if you contact Infragistics forum directly did you get any problem out there as they must be in better position to help you out as they have provided the dll. Isn't it?
Thanks,
Arindam D Tewary
|
|
|
|
|
im having 4 textboxs in repeater if all the text boxes are empty validation is disabled and if the 1st text box is empty and any of other text boxs are filled then error msg should display...
how can i do that...
|
|
|
|
|
It doesn’t seem to be possible with the available validation control we are having in ASP.NET.
You can do this as following.
Client Side:
On the form submit/ or submit button click call a javascript function and check the value of each textboxes.
<form onsubmit="return Validate();" method="post">
And check the values of all the textboxex, if the validation passes then return true so that form can post otherwise show an error message.
Server Side:
Loop through the repeater and find each textbox control and check the validation.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
|
Hello all,
When I want to add a new forms element in system.web like this:
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="Login.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
cookieless="UseDeviceProfile" />
</authentication>
</system.web>
it says that :
" Unrecognized configuration section system.web/forms. C:\Users\Tamash\Documents\Visual Studio 2008\WebSites\WebMembership\web.config ".
If someone knows how to solve this issue please help me!
|
|
|
|
|
|
|
I have one gridview. In that gridview i have one button control, when i click on that button i have to copy that button text in clipboard where i can paste some other place.
my code is:
function CopyProvider(id) {
debugger;
var new_data = window.clipboardData.getData("Text");
return new_data;
}
<asp:TemplateField HeaderText="Provider" SortExpression="ARGProviderName"
Visible="true">
<ItemTemplate>
<asp:Button id="BtnProvider" Text='<%# Bind("ARGProviderName") %>' runat="server" OnClientClick="return CopyProvider(this)" />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
</asp:TemplateField>
Kindly help me.
Thanks in Advance...
|
|
|
|
|
|
|
The images are far too indistinct to make out.
A wild guess: have you used IsPostBack when binding data?
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|