|
oops, forgot to tell that the program is an offline system which use asp.net with vb.... there is juz 1 user for that program, and the excel file is place in localhost.
thanks for help, any others recommend solution?
|
|
|
|
|
Tonight I copied an ASP 2.0 web site onto a client's machine, and lo! It did not work. It works perfectly on mine, under built in debugger and under IIS 7, and two weeks ago, it worked perfectly on his machine under IIS 6.
The only changes I have made are upgrading telerik RadGrid etc. to Q1 2009, and some refactoring. The application fails on two entry point web forms. Both have a RadGrid, which uses a User Control for its editing pop-up. Both forms fail to compile, with a 'Type or namespace JobEditControl not found" error, on a line like this:
var editControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as JobEditControl;
The control is not referenced in the markup, as it never appears on there, and as I understand it, it should be compiled into the same default namespace as the page is compiled into when first hot.
The machine is still serving user controls properly, i.e. the .ascx handler appears healthy, and a quick test page containing a quick test control I added worked fine.
Another developer was busy on the machine before me, also installing an ASP.NET application, but I can't think of anything he would have changed. Even being my competition...
|
|
|
|
|
i have some hyperlinks on a form.I have set the navigate url of all the hyperlinks to a single destination page("display.aspx")i.e.clicking on ne of the hyperlinks would take you to the same page "display.aspx"..
but based on which hyperlink i hav selected, accordingly values from database will be retrieved and will displayed in "display.aspx"..
for eg:
suppose i hav 3 hyperlinks say :
1)programmer
2)business analyst
3)software engineer
and if i click on programmer then accordingly query will be executed in the page load event of "display.aspx" and info abt programmer will be retrieved from database and displayed in a gridview.
plzz suggest some solution..
|
|
|
|
|
what you need is query string
display.aspx?user=programmer<br />
display.aspx?user=analyst<br />
display.aspx?user=engineer
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
You can use the hyperlink's command event to get the command arguments from which hyperlink you clicked.
|
|
|
|
|
hi yusuf thanx for the answer,but can u elaborate it a bit more..
where to write these querystring,in which event of hyperlink?
|
|
|
|
|
You have to just pass the selected values through
query string
Click Here
Vinod Kr.
|
|
|
|
|
hey vinodkrebc,
plzz paste the link...
|
|
|
|
|
Click Here
you can write any page instead of default.aspx and the data member instead of Id from datasource
|
|
|
|
|
thanx .mah problem is solved
i used the anchor tag instead of hyperlink control from the toolbox...
|
|
|
|
|
Hi,
I have an application in which I am trying to retrieve a user's password. The code is as follows:-
1 MembershipUser resetPass = MyUsers[UserInfo.Rows[e.NewSelectedIndex].Cells[0].Text];
2 string password = resetPass.GetPassword();
However on execution I am hit with the following error:-
This Membership Provider has not been configured to support password retrieval.
I have tried the following steps to resolve this issue but to no avail:-
In the WebConfig in I have modified the <Membership></Membership> tag to reflect the following:-
<membership>
<providers>
<clear/>
<add name=”AspNetSqlMembershipProvider”
connectionStringName=”247Db”
minRequiredPasswordLength=”4″
minRequiredNonalphanumericCharacters=”0″
type=”System.Web.Security.SqlMembershipProvider”
applicationName=”/247App”
enablePasswordRetrieval=”true”
requiresQuestionAndAnswer=”false”
passwordFormat=”Encrypted”
requiresUniqueEmail=”false” />
</providers>
</membership>
I also added a machineKey to support the setup above as follows:-
1 <machineKey validationKey="11D7D8362528F04266ACACDDEA7..."
2 decryptionKey=”4C0…”
3 validation=”SHA1″/>
However, now i get the following error:-
"Hashed passwords cannot be encoded".
I am guessing this is because the passwordFormat property in the web.config was "Hashed" befrore I changed it to Encrypted. Nevertheless, what should I do ?
Thanks
|
|
|
|
|
Dear sir, how can I send email to a particular email with attachment file? Can I check this program from localhost?
|
|
|
|
|
there are plenty articles here at CP to choose from. pick your choice[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yusuf, has already provided you lots of link. So I am answering to the next question
arif.ict87 wrote: Can I check this program from localhost?
If you have install SMTP server in your system or you can have valid SMTP server address in your network you can test.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
yes u can send as well as read by localhost
rizvan sivally
|
|
|
|
|
hai,
can we write code in the button click event to apply themes in asp.net 2.0
how to write..any body help..
Regards
Ramesh M
|
|
|
|
|
Detect back button of browser [^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hey,
im trying to encrypt my passwords before i send them to my sql server 2008 database, however when i try accessing the textboxs that are within a formview i just get the message does not exsist in the current context and im just wondering i would be able to get around this or perhaps an alternative way to encrypting my passwords.
thank you
behind code
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Security.Cryptography;
using System.Data.Sql;
using System.Data.Common;
public partial class AddMember : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
{
TextBox EncryptPassword = FormView1.FindControl("PasswordTextBox") as TextBox;
string hash = FormsAuthentication.HashPasswordForStoringInConfigFile(EncryptPassword.Text, "MD5");
((TextBox)FormView1.FindControl("PasswordTextBox")).Text = hash;
}
}
asp code
<asp:FormView ID="FormView1" runat="server" DataKeyNames="UserID"
DataSourceID="SqlDataSource1" Height="325px" style="text-align: left"
Width="584px"
onpageindexchanging="FormView1_PageIndexChanging">
<EditItemTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="UserID"
DataSourceID="SqlDataSource1" style="margin-bottom: 0px" Width="588px">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
<asp:BoundField DataField="UserID" HeaderText="UserID" ReadOnly="True"
SortExpression="UserID" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName"
SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="LastName"
SortExpression="LastName" />
<asp:BoundField DataField="Password" HeaderText="Password"
SortExpression="Password" />
<asp:BoundField DataField="ContractedHours" HeaderText="ContractedHours"
SortExpression="ContractedHours" />
</Columns>
</asp:GridView>
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
CommandName="Cancel" Text="Return" />
<br />
</EditItemTemplate>
<InsertItemTemplate>
<div class="style13">
<br />
UserID:
<asp:TextBox ID="UserIDTextBox" runat="server" style="margin-left: 20px"
Text='<%# Bind("UserID") %>' />
<asp:RequiredFieldValidator ID="UserIDValidator" runat="server"
ControlToValidate="UserIDTextBox" Display="Dynamic"
ErrorMessage="* User ID Required">* User ID Required</asp:RequiredFieldValidator>
<br />
<br />
FirstName:
<asp:TextBox ID="FirstNameTextBox" runat="server"
Text='<%# Bind("FirstName") %>' />
<asp:RequiredFieldValidator ID="FirstNameValidator" runat="server"
ControlToValidate="FirstNameTextBox" Display="Dynamic"
ErrorMessage="*Name Required">*Name Required</asp:RequiredFieldValidator>
<br />
<br />
LastName:
<asp:TextBox ID="LastNameTextBox" runat="server"
Text='<%# Bind("LastName") %>' />
<asp:RequiredFieldValidator ID="SurnameValidator" runat="server"
ControlToValidate="LastNameTextBox" Display="Dynamic"
ErrorMessage="*Name Required">*Name Required</asp:RequiredFieldValidator>
<br />
<br />
Password: <asp:TextBox ID="PasswordTextBox" runat="server"
Text='<%# Bind("Password") %>' />
<asp:RequiredFieldValidator ID="PasswordInputValidator" runat="server"
ControlToValidate="PasswordTextBox" ErrorMessage="*Password Required">*Password Required</asp:RequiredFieldValidator>
<br />
<br />
Confirm
<br />
Password:
<asp:TextBox ID="PasswordConfirmationTextBox" runat="server"></asp:TextBox>
<asp:CompareValidator ID="PasswordCompareValidator" runat="server"
ControlToCompare="PasswordTextBox"
ControlToValidate="PasswordConfirmationTextBox" Display="Dynamic"
ErrorMessage="*Password do not match">*Password do not match</asp:CompareValidator>
<br />
<br />
Contracted<br />
Hours:
<asp:TextBox ID="HoursTextBox" runat="server"
Text='<%# Bind("ContractedHours") %>' Width="34px" />
<asp:RequiredFieldValidator ID="HoursValidator" runat="server" ControlToValidate="HoursTextBox"
Display="Dynamic" ErrorMessage="*Hours Required">*Hours Required</asp:RequiredFieldValidator>
<asp:RangeValidator ID="HoursRangeValidator" runat="server" ControlToValidate="HoursTextBox"
Display="Dynamic" ErrorMessage="*not within range" MaximumValue="40"
MinimumValue="12">*not within range</asp:RangeValidator>
<br />
<br />
Admin:
<asp:CheckBox ID="AdminCheckBox" runat="server" />
<br />
<br />
<br />
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
CommandName="Insert" onclick="InsertButton_Click" Text="Insert" />
<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
CommandName="Cancel" Text="Cancel" />
<br />
<br />
</div>
</InsertItemTemplate>
|
|
|
|
|
hi,
i am making a photo album for my website, i was successful in inserting images in to sql server databse. bt i am stuck with how to retrieve the images in to a grid view, which when clicked should display the original image in a details view(jst as it happens in orkut). plz help me
|
|
|
|
|
If the images are in the database what I'd do is create a special page that has a query string parameter which is the ID of the image in the database. On that page, I'd override the Render method on the page and write out the byte array that's been retrieved from the database rather than issue an HTML stream.
|
|
|
|
|
can u plz expain it a bit more clearly.m new to asp.net nd i am using c#
|
|
|
|
|
|
i hav done it this way. bt i want to store it in database nd do it
|
|
|
|
|
One, store the image imgUrl in db.
Two, the images in your solution folder.
|
|
|
|
|
Hi u got any solution for your question.If yes please send the code to me. I did another way i posted in asp.net please check it out.But mine the same problem.
With Regards
Ch.Gayatri Subudhi
|
|
|
|