|
I want to read a file which has configuration related data, currently we are doing it through XML but now i want to read it from file which .properties extension for example i want to read log_level="Error" from properties file
|
|
|
|
|
I have an option to upload image files in my website.But after uploading the website I am getting some problems.Whenever I am trying to upload an image,all the time it is asking the FTP username and password.What is the solution to this problem?
ARINDAM
|
|
|
|
|
Where did my answer to this go ?
How are you uploading the files ? If you get asked for FTP details, I assume you're using FTP and need to provide them.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hey there,
i would like to code a WebChart with Office Web Components 2003 in Visual Studio 2005 on a ASP.Net Site with C#.
To get my data, i'm using a SQL Server 2005 from which i get my values. That's not a problem.. The trouble is, how to start with a WebChart? Could anybody give me an example how to write one?
I searched the web for nearly 2 days, but on every site i found another example, which is completely different from the other one before...
But i found out, that i'll have to install the setup "OWC11.exe" from Microsoft. After this, i got a new reference in Visual Studio 2005. Now it is possible to choose a COM reference named "Microsoft Office Web Components 11.0". And until then i can use the namespace "using Microsoft.Office.Interop.Owc11;". Further i have 5 .dlls, called "Interop.mce.dll", "Interop.VBRUN.dll", "Microsoft.StdFormat.dll", "MSDATASRC.dll" and "stdole.dll" in my project Bin folder. Is it correct?
And how i'll have to go on?
Thanks for your help!
|
|
|
|
|
I have a grid view and I have an Item Template which contains a button which when clicked directs to another page. I want to be able to pass the value in the first field of the row in the GridView which i am clicking the button.
In asp.net 1.0 I was able to do the following:
Sub View(ByVal objSender As Object, ByVal objArgs As DataGridCommandEventArgs)
If objArgs.CommandSource.CommandName = "Update" Then
Response.Redirect("NewPage.aspx?OrderNum=" & objArgs.Item.Cells(1).Text)
End If
End Sub
I could then get the value of Cell(1) in the New Page. This does not work in asp.net 2.0.
Does anyone have any idea how to do this in .net 2.0
Thanks,
macca
|
|
|
|
|
U will have to use datakeys for this as in 2005 u will not get the value of hidden column...
|
|
|
|
|
have you any examples of doing this?
|
|
|
|
|
try this on item datacommand event:
Try
Dim oGridViewRow As GridViewRow
oGridViewRow = CType(CType(e.CommandSource, Control).NamingContainer, GridViewRow)
ID = CInt(GridView1.DataKeys(oGridViewRow.RowIndex).Value)
If e.CommandName = "DeleteTrans" Then
DeleteRecord()
BindGridView()
ElseIf e.CommandName = "Edit" Then
Response.Redirect("frmLoanPayOffView.aspx?id=" & ID & "&info=" & e.CommandName)
End If
Catch ex As Exception
End Try
Hope it helps u??
|
|
|
|
|
U have to use javascript.... try this
<br />
<script type="text/javascript" language="javascript"><br />
function fupdate(id)<br />
{<br />
location.href='NewPage.aspx?Id=' +id;<br />
}<br />
|
|
|
|
|
And in Template Field...
<br />
<asp:TemplateField><br />
<ItemTemplate><br />
<a href="javascript:fupdate('<%# DataBinder.Eval(Container.DataItem, "Id") %>')">Edit</a><br />
</ItemTemplate><br />
</asp:TemplateField><br />
|
|
|
|
|
Got this working.
Thanks for the help.
|
|
|
|
|
How can we return a url from one form to another form?
|
|
|
|
|
Can you please elaborate a little?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Instead of using response.redirect we can use return url method....but i dint know abt return url....so i cant give enough info abt it...
|
|
|
|
|
Kasi Viswanathan wrote: How can we return a url from one form to another form?
Passing values from one form to another ? Use Querystring
|
|
|
|
|
Can u send me one example for tat.... if possible?
|
|
|
|
|
What difference between and ?
and
What difference between 'paddin' and margin?
|
|
|
|
|
Its better to check yourself i think by creating a new web applciation
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
padding is on the inside whereas margin is on the outside of a box:
padding: distance between content and border of container.
margin: distance of an object to its neighbours.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
HI,
I have been facing the problem since some days.....
When i am Binding a gridView to a List<myclass> the column orders in the gridView comes in Alphabetical order... But I want the column orders as I have Added to the List<myclass>.....
How can I do this......
Any idea....
heartly welcomed
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
Hi,
Is there any free msi file creator utility for asp.net web applications available, could you provide information on such tools?
I tried using VS.NET deployment project, but its confusing when adding dlls. Our application fetches dlls from a directory, which is placed with the aspx files. While adding these to the deployment project, it gives lots of dependency errors and most of the dlls are duplicated, while building. And it takes around 30 minutes for the build to finish.
Regards,
Blumen
|
|
|
|
|
Hi All,
Can any one tell me what is the problem here? I am using ASP.NET 2005 and on menu click event I need to open page which is nothing but a div tab and it contains few combo and a textbox with ok and cancel button.
Everything works fine but I need a proper GUI as it contains Country, Select Sector, select sub industry and select company this should all come in proper way as show below:
Country combo
Select Sector combo
Select Sub Industry combo
Select Company combo
textbox
But it shows something like this:
Country combo
Select
Sector combo
Select Sub
Industry combo
Select
Company combo
textbox
I want left column in one line is Select Sector should in one line.
Please help me...
Following is the code:
<div id="p1" style="display: none; background-color:#FBFBFB ;border:1px solid Blue">
<table width="40%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" width="250px">
Country</td>
<td>
</td>
<td align="left">
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="ddlcountry"
Category="Country" PromptText="Select a Country" ServicePath="AutoComplete.asmx"
ServiceMethod="GetCountry" />
<asp:DropDownList ID="ddlcountry" CssClass="text" runat="server" Width="250px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="left" class="text">
Sector</td>
<td>
</td>
<td >
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="ddlSector"
ParentControlID="ddlcountry" Category="Sector" PromptText="Select a Sector" ServicePath="AutoComplete.asmx"
ServiceMethod="GetSector" />
<asp:DropDownList ID="ddlSector" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left" class="text">
Sub Industry
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown3" runat="server" TargetControlID="ddlSubIndustry"
ParentControlID="ddlSector" Category="Sector" PromptText="Select a SubIndustry"
ServicePath="AutoComplete.asmx" ServiceMethod="GetSubIndustry" />
<asp:DropDownList ID="ddlSubIndustry" runat="server" CssClass="text" Width="250px"> </asp:DropDownList></td>
</tr>
<tr>
<td align="left" class="text">
Company Name
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown4" runat="server" TargetControlID="ddlCompany"
ParentControlID="ddlSubIndustry" Category="Company" PromptText="Select Company"
ServicePath="AutoComplete.asmx" ServiceMethod="GetTicker" />
<asp:DropDownList ID="ddlCompany" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left"> </td>
<td>
</td>
<td>
<asp:TextBox ID="myTextBox" runat="server" autocomplete="off"
CssClass="text" Height="14px" Width="249px">
</asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox"
ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList2" MinimumPrefixLength="0"
CompletionInterval="1000" CompletionSetCount="12" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td align="left">
</td>
<td></td>
<td align="right">
<input type="button" class="button" id="btnOk" onclick="myfunct1();" value="OK" />
<input type="button" id="btnCancel" class="button" value="Cancel" runat="server" onclick="myfunct();" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td align="left">
</td>
</tr>
</table>
</div>
|
|
|
|
|
For the left column (first one) give the width in percentage not in pixals and try to give in every row first column then check i think thats the problem
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for the reply sandeep, but I have tried that also. Actually I am using it as a PopupControlExtender of Ajax..
|
|
|
|
|
Are you writing any javscript to hide and show that div tag
the div tag's style should be like this
(when you are showing)
style="Display:'';visibility:visible;"
(when you are hiding)
style="Display:none;visibility:hidden;"
try this
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|