|
Imran Khan Pathan wrote: I want to know how to make collapsible property
Do you want to make a collapsible control ? Check out[^] my article
|
|
|
|
|
thanks navneeth.
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
|
hi,
i have developed one web application,in
this application i have used excel template
for reports,
i can access this excel template on my system,
if u run this application from another system,
every thing is working fine but excel template
is not opening on another system,
can anybody knows how can i do this,
plz reply if u know
thanks in advance
Afreen
|
|
|
|
|
afreen taj wrote: excel template
is not opening on another system,
Where it is stored ?
|
|
|
|
|
in my system,
i.e "C:\Inetpub\wwwroot\sts_project\dispatchtemp.xls"
where sts_project is application name and
dispatchtemp.xls is excel template,
i wnt to open dis template on another machine,
wht path is have specify,if u know
plz reply me
thnks
Afreen
|
|
|
|
|
How you are trying to open it ? Through ASP.NET ? Just redirect to the file path, browser will ask for the save dialog box, and save the file in any location.
|
|
|
|
|
hi,
i m new to developing,
plz can u tell me how i
have to do dis
(if possible send code)
thanks
Afreen
|
|
|
|
|
afreen taj wrote: i m new to developing,
Buy a good book and learn the basics. These all are basics, and I don't think that you will get help by posting to forums.
|
|
|
|
|
hi,
Thanks alot for ur suggestions sir
Afreen.
|
|
|
|
|
Hello friends
I want to show some text value in drop down list box(like textbox1.text="hi").
how to show the value?
-- modified at 1:08 Tuesday 6th November, 2007
|
|
|
|
|
ps.srinivasan wrote: I dont want to add new value,just show the value
ps.srinivasan wrote: how to show the value
How can you show the value if that value not exist in dropdownlist.
Can you tell me what is your actual requirement?
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I couldnt understand your question...Plz explain correctly..
|
|
|
|
|
ps.srinivasan wrote: I want to show some text value in drop down list box(like textbox1.text="hi").
how to show the value?(I dont want to add new value,just show the value)
Christian Graus Said[^],
This is like saying 'I want to drive a car without using petrol.'
Why you don't want to use something that is necessary to achieve what you needed ?
|
|
|
|
|
What you need?
Something like "Select" as the index in the dropdownlist?.
God is always with you.
|
|
|
|
|
how i get the html page in the iframe using java script.i want to get the html pages wat ever html page path i give .i should get on the iframe ...using java scripti want the code plz
|
|
|
|
|
document.getElementById("<iframeid>").src ="location path"
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
sir it is getting an error that object required
|
|
|
|
|
Hello all,
We have to design an application which will run on client PC and can get the latest updates from the server(Publisher) automatically.
Please share if you have any idea.
Thanks much.
Regards
|
|
|
|
|
Obviously not an ASP.NET question then ?
Just as obvious, you need to write code to check a server and download an update if necessary. Doesn't clickonce do that ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to produce a graph using figures from a database and display it onto my site. I want this to be done automatically after a specified amount of time.
can anyone help me please?
|
|
|
|
|
There's free and commercial libraries for generating images of graphs. The big question is, how do you want it to be automatic, on the server end, or automatic display on the client side ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I meant automatically on the client-side. i think i can do this with a javascript to reload the page after a specified amount of time. Can you recomend any of the free libraries for me??
|
|
|
|
|
Hi,
I have two problems formatting my gridview:
1) In IE7 the gridview doesn't show underlines for the headertext in the gridview - in Firefox it is shown.
2) In Firefox the gridlines for Columns are shown. In IE7 they are gone.
I need it so, that I get the underlines for the headertext in IE7 and that the gridlines for the columns are not shown in Firefox.
I cann't figure out, wich settings I need to make, to make this happens.
I hope somebody can help me.
My code for the gridview are:
<asp:GridView SkinID="GeneralView" ID="grdEmployeeList" runat="server" DataKeyNames="employeeId" OnRowCommand="grdEmployeeList_RowCommand" OnPageIndexChanging="grdEmployeeList_PageIndexChanging" OnRowDataBound="grdEmployeeList_RowDataBound" OnSorting="grdEmployeeList_Sorting" AutoGenerateColumns="False" Width="850px" AllowPaging="True" PageSize="3" AllowSorting="True"><br />
<Columns><br />
<asp:BoundField DataField="employeeId" HeaderText="Bruger id" SortExpression="employeeId"><br />
<HeaderStyle Width="70px" BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
<ItemStyle BorderStyle="None" BorderWidth="0" BorderColor="Transparent" /><br />
</asp:BoundField><br />
<asp:BoundField DataField="employeeName" HeaderText="Brugernavn" SortExpression="employeeName"><br />
<HeaderStyle Width="150px" BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
<ItemStyle BorderStyle="None" BorderWidth="0" BorderColor="Transparent" /><br />
</asp:BoundField><br />
<asp:BoundField DataField="employeeType" HeaderText="Brugertype" SortExpression="employeeType"><br />
<HeaderStyle Width="200px" BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
<ItemStyle BorderStyle="None" BorderWidth="0" /><br />
</asp:BoundField><br />
<asp:TemplateField><br />
<ItemTemplate><br />
<asp:ImageButton ID="ibtnDeleteEmployee" runat="server" CommandArgument='<%# Eval("employeeId")%>' CommandName="DeleteEmployee" ImageUrl="../Images/Delete.gif" OnClientClick="return confirm('Er du sikker på, du vil slette produktet?');" /><br />
</ItemTemplate><br />
<HeaderStyle Width="80px" BorderStyle="None" ForeColor="#2F5673" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
<ItemStyle HorizontalAlign="Center" BorderStyle="None" BorderWidth="0" /><br />
</asp:TemplateField><br />
<asp:TemplateField><br />
<ItemTemplate><br />
<asp:ImageButton ID="ibtnShowEmployee" runat="server" CommandArgument='<%# Eval("employeeId")%>' CommandName="ShowEmployee" ImageUrl="../Images/Vis.gif" /><br />
</ItemTemplate><br />
<HeaderStyle Width="80px" BorderStyle="None" ForeColor="#2F5673" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /><br />
<ItemStyle HorizontalAlign="Center" BorderStyle="None" BorderWidth="0" /><br />
</asp:TemplateField><br />
</Columns><br />
<PagerTemplate><br />
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%"><br />
<tr><br />
<td id="firstcell" runat="server" colspan="4" style="text-align: right; border-top-style: none; border-top-width: 0px;"><br />
<asp:Label ID="Label2" runat="server" CssClass="pagingtext" Text="Viser"></asp:Label> <asp:Label ID="LabelStartRowNo" runat="server" CssClass="pagingtext" Text=""></asp:Label><asp:Label ID="Label3" runat="server" CssClass="pagingtext" Text="-"></asp:Label><asp:Label ID="LabelEndRowNo" runat="server" CssClass="pagingtext" Text=""></asp:Label> <asp:Label ID="Label4" runat="server" CssClass="pagingtext" Text="af"></asp:Label> <asp:Label ID="LabelRowCount" runat="server" CssClass="pagingtext" Text=""></asp:Label> <asp:Label ID="Label5" runat="server" CssClass="pagingtext" Text="brugere"></asp:Label><br />
</td><br />
</tr><br />
<tr style="height: 4px;"><br />
<td colspan="3"><br />
</td><br />
</tr><br />
<tr><br />
<td style="width: 700px"></td><br />
<td id="lastcell" runat="server" style="text-align: right; border-top-style: none; border-top-width: 0px;"><br />
<asp:LinkButton ID="LinkButtonPreviousPage" ForeColor="#FFFFFF" runat="server" CssClass="pagingtext" CommandName="ChangePage" Text="Forrige"></asp:LinkButton> <br />
</td><br />
<td id="paginglinks" runat="server" style="text-align: right"></td><br />
<td id="lastcel2" runat="server" style="text-align: right;"><asp:LinkButton ID="LinkButtonNextPage" ForeColor="#FFFFFF" CssClass="pagingtext" runat="server" CommandName="ChangePage" Text="Næste"></asp:LinkButton> </td><br />
</tr><br />
</table> <br />
</PagerTemplate><br />
<HeaderStyle /><br />
<PagerStyle /><br />
<AlternatingRowStyle /> <br />
<RowStyle /><br />
</asp:GridView>
My Code in the skin file is:
<asp:GridView SkinID="GeneralView" runat="server"><br />
<br />
<PagerStyle BackColor="#2F5673" ForeColor="#FFFFFF" HorizontalAlign="Center" Height="15px" /><br />
<RowStyle BackColor="#FFFFFF" BorderStyle="None" /><br />
<AlternatingRowStyle BackColor="#F3F7FA" /><br />
<HeaderStyle BorderStyle="None" ForeColor="#FFFFFF" Font-Underline="true" BorderWidth="0px" BorderColor="#2F5673" Font-Bold="true" HorizontalAlign="Left" Height="25px" BackColor="#2F5673" /> <br />
<br />
</asp:GridView>
Kind regards,
simsen
|
|
|
|
|
Three days and 100 google searches later and I still can't find any resolution to this Gridview problem I'm having.
I've got a Gridview that is tied to a Sqldatasource. The delete command for the Sqldatasource is:
DeleteCommand="UPDATE tblIPAddress SET SubnetID = 0 WHERE SubnetID = @SubnetID;DELETE FROM tblSubnet WHERE SubnetID = @SubnetID"For reference, "SubnetID" in "tblIPAddress" is an integer field that allows nulls. It's not a primary key. The command executes smoothly (at least it appears to)- the correct record is deleted from "tblSubnet" and all appropriate records in "tblIPAddress" have their SubnetID value set to "0".
However... after the row is deleted from the Gridview, an exception is thrown:
"Specified argument was out of the range of valid values. Parameter name: value"
And a stack trace of:
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value]
System.Web.UI.WebControls.GridView.set_SelectedIndex(Int32 value) +1500503
System.Web.UI.WebControls.GridView.HandleDeleteCallback(Int32 affectedRows, Exception ex) +354
System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +123
System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +927
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +1155
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +199
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
From what little I can read of the stack trace, it would appear that the Gridview is having problems setting its SelectedIndex, but I've tried setting the SelectedIndex of the gridview to everything under the sun and nothing seems to make any difference. I've tried setting it to 0, -1, null (which doesn't work anyway), etc. I've tried setting it in the PageLoad even (using IsPostBack), the Gridview's row deleted event, row deleting, updated, updating, you name it.
The -one- thing I found on Google was someone mentioning that turning on paging in the gridview seemed to stop the problem. Oddly enough, it does. I enabled paging, set the page count to something really high so that more than one page is never created, and voila, the error goes away. That's a sloppy fix, though.
I've also found that adding GridView1.SelectedIndex = -1; AND GridView1.DataBind(); to the RowDeleted event of the Gridview causes the error NOT to be thrown if there's only one record in the Gridview and I delete it. If there's more than one record, the error gets thrown every time until there's only one record in the GridView.
Does anyone have any idea what could be going on here?
Thanks in advance.
|
|
|
|