|
I have solved this issue by
going to Programs and Features / Turn Windows Features on or off / Internet Information Service / Web Management Tools / IIS6 Management Compatibility.
No my problem is when i install from setup it also install codefile(.aspx.cs) along with .aspx pages
also I have used asp menu in a page which is not displayed when i run from the IIS. while it got displayed when i run from visual studio.
Please help.
|
|
|
|
|
When i installed aspx pages from web setup the menu bar is missing.
while it is shown when i run from visual studio.
am I missing something?
Please help.
|
|
|
|
|
i want to make pdf file with its red shape appear in my website and when i click it i can see its contents
|
|
|
|
|
How can i put .pdf files on my website
|
|
|
|
|
|
Hello
My database has lots of german data stored. While I read it and display in the gridview, everthing works fine. The Grdview displays the german characters perfectly in the browser.
After the display phase, I read a data from the gridview cells as gridview1.rows[1].cells[2].text, it returns special characters. For eg, 1st row, 2nd column in gridview has ä which is displayed in the browser properly, when I read the same from codebehind, it shows ä
How to set it right? any help is deeply appreciated.
thanks
Kit
modified on Monday, May 3, 2010 5:19 AM
|
|
|
|
|
That's another representation of the same character; similar to decimal or binary being another representation of a number.
It should display correctly as "A umlaut" when you display it again in the browser, or when you save it to a file. Conversely, you could try to check the string using a Debug.WriteLine statement.
I are Troll
|
|
|
|
|
Well, I am acutally exporting the datatable to Excel. And I dont see ä in excel, instead I see the numbers and special characters. How to make the excel display ä?
|
|
|
|
|
KittyKit wrote: Well, I am acutally exporting the datatable to Excel. And I dont see ä in excel, instead I see the numbers and special characters. How to make the excel display ä?
You can reverse the HTML-coding using the HtmlDecode[^] method
I are Troll
|
|
|
|
|
Oh my goodness! This is what I was looking for since noon Thanks a ton!
PS: Will it be a performance hit if I decode it in a loop which has -say - a 100 iterations?
|
|
|
|
|
You're welcome
KittyKit wrote: Will it be a performance hit if I decode it in a loop which has -say - a 100 iterations?
Not much, it's a fast string-operation. You should be allright
I are Troll
|
|
|
|
|
Sounds great. Thanks a lot.
|
|
|
|
|
i want to enable my website to have .pdf file
|
|
|
|
|
Mennat_Allah wrote: i want to enable my website to have .pdf file
What do you mean by this ? Do want to allow users to download pdf file from your site ?
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
can you elaborate litle more? your question is not clear.
|
|
|
|
|
Stop asking the same question. Remove the other two before someone responds.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi guys,
I have 3 submit buttons on a single page. Each submit button is linked to its controls via a "ValidationGroup". One of the groups even has a Custom Validator. The problem I am having is that the validation is not even firing. I have no idea why. I hope the answer is not silly
Here is the HTML for ONE of the groups:
<div id="dvRegistrationValidation" runat="server">
<asp:RequiredFieldValidator ID="rfvRegistrationCode" ControlToValidate="txtRegistrationCode"
Display="None" ValidationGroup="RegistrationProcess" ErrorMessage="Registration Code"
runat="server"></asp:RequiredFieldValidator>
<asp:CustomValidator ID="cstTarget" runat="server" ErrorMessage="Either Head Office or Farm Site/Unit"
ValidationGroup="RegistrationProcess" OnServerValidate="cstTarget_ServerValidate"
Display="None"></asp:CustomValidator>
<asp:ValidationSummary ID="vsRegistration" runat="server" DisplayMode="BulletList"
ShowSummary="true" HeaderText="The following fields are mandatory:" ValidationGroup="RegistrationProcess" />
</div>
And here is the OnServerValidate Sub Routine:
Sub cstTarget_ServerValidate(ByVal source As Object, ByVal e As ServerValidateEventArgs) Handles cstTarget.ServerValidate
If Me.chkTarget1.Checked = True And Me.chkTarget2.Checked = True Then
e.IsValid = False
ElseIf Me.chkTarget1.Checked = False And Me.chkTarget2.Checked = False Then
e.IsValid = False
ElseIf Me.chkTarget1.Checked = True And Me.chkTarget2.Checked = False Then
e.IsValid = True
ElseIf Me.chkTarget1.Checked = False And Me.chkTarget2.Checked = True Then
e.IsValid = True
End If
End Sub
I appreciate any help given. Thanks!
|
|
|
|
|
Oh dear!
I solved it. just for others to know my silly mistake...
I need to make the "ValidationGroup" for each button of the each group the same as what was applied in the controls of that group.
e.g.
<asp:Textbox id="txt1" runat="server" ValidationGroup="Validation1"></asp:TextBox>
<asp:RequiredFieldValidator id="rfv1" runat="server" ValidationGroup="Validation1"></asp:RequiredFieldValidator>
<asp:Button id="btn1" runat="server" ValidationGroup="Validation1"></asp:Button>
<asp:ValidationSummary id="vs1" runat="server" ValidationGroup="Validation1"></asp:ValidationSummary>
|
|
|
|
|
... and you could reduce the validate method to a simple
e.IsValid = Me.chkTarget1.Checked <> Me.chkTarget2.Checked
|
|
|
|
|
Thanks for that
|
|
|
|
|
you're welcome.
|
|
|
|
|
hi, iam using asp.net with c#;
iam having 5 textboxes
textbox1==username
textbox2=how many images on top of the page
textbox3=how many images on bottom of the page
textbox4=how many images on left of the page
textbox5=how many images on right of the page
and a button to create
when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left and with there events
then user can upload the images with browse upload control .
how to do this can you give me example which helps me
|
|
|
|
|
you can create a user control contain 5 textboxes and a button
and write a function to deal with under the event of Button_click
|
|
|
|
|
hi iam using asp.net with c#
i have two images imgnew and imagold when i click on browse button i will upload the image and put in imgnew image and the previous image will be in imgold image control it is going fine but when iam closing the application .then again old images are there swap images are not present
can you correct my code where iam going wrong .which helps me
protected void Button1_Click(object sender, EventArgs e)
{ImgOld.Src=ImgNew.Src;
if (FileUpload1.HasFile)
{
FileUpload1.SaveAs(MapPath("~/images/" + FileUpload1.FileName));
ImgNew.Src= "~/images/" + FileUpload1.FileName;
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="transfer.aspx.cs" Inherits="transfer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<img id="ImgNew" alt="ImgNew" src="PH02071U.BMP" style="z-index: 102; left: 144px;
width: 144px; position: absolute; top: 104px; height: 200px" runat="server" />
<img id="ImgOld" alt="ImgOld" src="" style="z-index: 103; left: 376px; width: 144px;
position: absolute; top: 112px; height: 184px" runat="server" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="z-index: 100;
left: 280px; position: absolute; top: 424px" Text="Save" />
<asp:FileUpload ID="FileUpload1" runat="server" Style="z-index: 104; left: 152px;
position: absolute; top: 328px" Width="160px" />
</div>
</form>
</body>
</html
i want what ever i have changed that shoul be present after closing appplication also
|
|
|
|
|
hello
i am new to asp.net i have created on small web project with one datagrid on page and when i drag and drop sql data adapter on page it shows error "Generated SELECT Statment"
and then i have managed to solve this issue but now it showing
"Generated CANCEL Statment"
"Generated UPDATE Statment"
"Generated DELETE Statment"
so i dont know what to do now so I have tried to run the project but it also showing error
Server Error in '/WebApplication3' Application.
--------------------------------------------------------------------------------
Login failed for user 'MACHINE NAME\ASPNET'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for use MACHINE NAME\ASPNET'.
Source Error:
Line 59: 'Put user code to initialize the page here
Line 60: If Not Page.IsPostBack Then
Line 61: SqlDataAdapter1.Fill(DataSet11)
Line 62: DataBind()
Line 63:
Source File: c:\inetpub\wwwroot\WebApplication3\WebForm1.aspx.vb Line: 61
Stack Trace:
[SqlException: Login failed for user 'DEEPAK-5WT558AI\ASPNET'.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
WebApplication3.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication3\WebForm1.aspx.vb:61
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2443
I AM USING VISUAL STUDIO 2003 WITH SQL SERVER 2008 PRO.
SO NOW I HAVE NO IDEA WHAT TO DO
WAITING FOR YOUR KIND HELP
THANKS
|
|
|
|