|
Hi All,
Can any one tell me whts difference between ASP.NET 1.x and ASP.NET 2.x.
Thanks in Advance.
|
|
|
|
|
Respected All,
I have created 4-5 reports in asp.net with c#.
this all reprots r working fine on local host,.
but wn i have uploded tht reports some error is there in repot and its not working..
Error Reports r like:
---------------------------------------------------------------------------------
Server Error in '/fotoAlumamit/bk' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
-------------------------------------------------------------------------------
sp please can anyone help me tht how can i fix tht error
or wt settings hv to be made in report viwer to mk thm enable online..
waiting for reply.
Thanx in advance.
Jigar Badgujar.
BeBadgujar
|
|
|
|
|
Hi all,
1. Is there any benefit in using login control when we are using our own database to store login creadentials.
2. Can we use our own database to implement roles
Thanks in advance...
|
|
|
|
|
hi all
In my application there several web pages the last page is payment page(credit card) which is a secure page that is its url is https. but when i click on any link to return to other pages its still shows https.
although all links accept the payment page is http. Then also it shows https once i visit the payment page and try to click a link for other pages.
so how to remove that https to http for other pages.
Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Prakash_Mishra wrote: but when i click on any link to return to other pages its still shows https.
Append http to the links present in that secure page instead of redirecting like /page.aspx
|
|
|
|
|
Thanks a lot
Prakash Mishra(Banglore,India)
|
|
|
|
|
You are using relative url i.e. "..\otherpages.asp" so after you visit the https page other consequent pages will be assumed to be of the same protocol will be used last (https).
Use absolute url (e.g. "http://www.codeproject.com/otherpage.asp" ) on the links of other pages.
Cheers
Raz
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
Thanks a lot
Prakash Mishra(Banglore,India)
|
|
|
|
|
hi friends
i have two columns in datagrid
now i need to set width of the second column..
how can i set width second column..
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Give second column width using
<asp:BoundField HeaderStyle-Width ="6%" ></asp:BoundField>
|
|
|
|
|
DataGrid1.Columns[1].Width ?
|
|
|
|
|
Hi,
U can use following methode.
e.Row.Cells[2].Width = Unit.Pixel(100);
Hope this wil help u
Regrds
Lijo
|
|
|
|
|
hi friends
this is my code:
<asp:datagrid id="DataGrid1" runat="server"
="" height="210px" width="276px" backcolor="White" bordercolor="White" gridlines="None">
<columns>
<asp:templatecolumn>
<itemtemplate>
<asp:templatecolumn headertext="">
<itemtemplate>
<%# DataBinder.Eval(Container.DataItem,"comment")%>'
string ConStr = ConfigurationManager.AppSettings["ConnectionString"].ToString();
SqlConnection conn = new SqlConnection(ConStr);
conn.Open();
//SqlDataAdapter adap = new SqlDataAdapter("select rowid,Fromname,Toname,Comments,Imagename,mailid,Type,sflag,Datess from tbl_bday ",con);
SqlDataAdapter adap = new SqlDataAdapter("select image,comment from tbl_registration", conn);
DataSet ds = new DataSet();
adap.Fill(ds);
//DataGrid1.Columns[1].ItemStyle.Width = 10;
DataGrid1.Columns[0].ItemStyle.Width= 12;
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
i tried but not working
can u help me?
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
hi,
u can write the code which i gave u previously in rowdatabound event of ur grid.it wil work fine.
Regrds
Lijo
|
|
|
|
|
I wanted to know what kind of database would help me around for building a website which includes search. I will be using ASP.NET for my website and i am not sure what are the parameters which needs consideration before selecting a database.
Thanks n Regards
Nitin Goel
|
|
|
|
|
SQL Server is Microsoft's Database solution to medium to large and Enterprise level project's. I suggest anyone to use this for a ASP.NET website.
niting85 wrote: what are the parameters which needs consideration before selecting a database.
I guess this depends on the size of the project, Project requirement's, resource availability, cost and other technical factor's such as Whether Database server provides a GUI tool for Database Designing, Does it provides high Security System, and Does it provides extensive sql library functions, Referential Integrity, Triggers, Cursors, Views....
Regards - J O H N -
|
|
|
|
|
SQL Server works pretty well, a good point is that you can perform search as well on embedded Word / PDF documents.
Mmm... do you want a search on your DB, or a search in your site? If it's a search in your site you can think about using msn or google search (you can customize to search in your site), if it's an intranet another possibility is to use Sharepoint 2007 indexing capabilities (don't need to develop your site using sharepoint ), take a look at:
http://msdn.microsoft.com/msdnmag/issues/07/09/WebSearch/default.aspx?loc=en[^]
HTH
Braulio
/// -------------------------
Braulio Díez
tipsdotnet.com
/// -------------------------
|
|
|
|
|
Hi,
I have a combobox in my application on which i want to validate A-Z character entry on combo_itemsRequested Event
I dragged a regular Expresion Validator and set its property as
<asp:RegularExpressionValidator ID="revTxtdep" ValidationExpression="^(\w[a-zA-Z]+)$" Display="None" ControlToValidate="txtDeparture" runat="server" ErrorMessage="Invalid Characters Entered" SetFocusOnError="true" ValidationGroup="Search"></asp:RegularExpressionValidator>
But the probkem is that it doesnt work and i get a error stating
A potentially dangerous Request.QueryString value was detected from the client (text="aa
|
|
|
|
|
Hai all,
In my application i am using System.Net.Mail for sending mail.
for that i have used the code as given below.
MailMessage mail = new MailMessage();
MailAddress To = new MailAddress("lijorajan2004@gmail.com");
mail.To.Add(To);
mail.Body = "Hai";
MailAddress From = new MailAddress("lijo@ourdomain.com");
mail.From = From;
SmtpClient client = new SmtpClient("smtp.myserver.com");
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.Host = "hostname";//host name is our remote ip address
client.UseDefaultCredentials = false;
client.Send(mail);
here the problem is i am able to send mail to my lijo@mydomain.com(it is our own domain).but i am not able to send mail to other domain(lijorajan2004@gmail.com);
here i am getting error like "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for lijorajan2004@gmail.com"
plse help me.
Thanks in advance.
Regds
Lijo
|
|
|
|
|
Your server is not allowed to relay messages that are not (either from one of it's users or to one of it's user's inbox)
So to send the message either the sender or the receiver has to be from the server's (i.e. me@myserver.com)
Nothing wrong with your code. Just the test email addresses need to be reviewed.
Cheers
Raz
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
Hi,
Thank u verymuch for ur reply.If u dont mind could u plse tell me in detail how i can solve this problem?
this is my webconfig file
<system.net>
<mailSettings>
<smtp>
<network host="what i need to give here?" port="25" userName="" password="" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
plse help me.
regrds
Lijo
|
|
|
|
|
|
I second Braulio's openion.
As amatter of fact about 9-10 years ago a list of servers that allows relaying was published as ablack list. This was to prevent and fight spamming.
Many email servers rejected any messages comming from servers on the list.
So how can you do that: you need to be able to find the MX record of the DNS entry for each recepient, or have an account at the server you are using and then use that account to send your messages.
It is not a coding issue. It is a protocol limitation.
Cheers
Raz
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
Hi
This is the first time i am using Layers in My project,but still i need to whether i am using the three layers correctly or not. Please check my code and tell where i am getting lacked or wrong. I hope your support will lead me in a right way.
In My Presentation Layer i Have following
<br />
<br />
Private Sub btnSave_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.ServerClick<br />
Dim myBLL As New NitemBLL<br />
myBLL.Group = CInt(Me.txtBG.Value)<br />
dgFilter.DataSource = myBLL.Getrecords()<br />
dgFilter.DataBind()<br />
End Sub<br />
<br />
In My Bussiness Logic Layer i Have following
<br />
Public Class NitemBLL<br />
Private _groupID As Integer<br />
Private _rhID As String = String.Empty<br />
Private _unitNo As String = String.Empty<br />
Public Property Group() As Integer<br />
Get<br />
Return _groupID<br />
End Get<br />
Set(ByVal Value As Integer)<br />
_groupID = Value<br />
End Set<br />
End Property<br />
Public Property RH() As String<br />
Get<br />
Return _rhID<br />
End Get<br />
Set(ByVal value As String)<br />
_rhID = value<br />
End Set<br />
End Property<br />
Public Property Unit() As String<br />
Get<br />
Return _unitNo<br />
End Get<br />
Set(ByVal value As String)<br />
_unitNo = value<br />
End Set<br />
End Property<br />
Public Function Getrecords() As DataSet<br />
Dim nn As New NitemDAL<br />
Return nn.Getrecord(Group)<br />
End Function<br />
In My Data Access Layer i Have following
<br />
Public Class NitemDAL<br />
<br />
Public Function Getrecord(ByVal groupid As Integer) As DataSet<br />
Dim oMyDataset As New DataSet<br />
Dim oMyAdapter As New SqlDataAdapter<br />
Dim oMyConn As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("BBM_CONSTR"))<br />
Dim oMyCommand As SqlCommand = New SqlCommand("select cBB_Unit_No,convert(varchar(10),dBB_Donate_dt,105)[date] from blood_donate where iBloodgroup_id=" & groupid)<br />
oMyCommand.Connection = oMyConn<br />
oMyCommand.CommandType = CommandType.Text<br />
Try<br />
oMyConn.Open()<br />
oMyAdapter.SelectCommand = oMyCommand<br />
oMyAdapter.Fill(oMyDataset)<br />
oMyCommand.ExecuteNonQuery()<br />
oMyConn.Close()<br />
Catch ex As Exception<br />
ex.Message.ToString()<br />
End Try<br />
If oMyDataset.Tables(0).Rows.Count > 0 Then<br />
Return oMyDataset<br />
End If<br />
End Function<br />
<br />
I am not getting any errors. i am getting the Data Grid filled with correct values.
sathimailin
|
|
|
|
|
Your presentation and business logic layers looks fine. But I felt some problem with data layer. Data layer can be more generic and reusable. So it should contains functions that can be used in all the pages from all business logic layers.
I data layer contains functions like GetDataSet() , ExecuteNonQuery() etc.. which takes the query and type as parameters and do the operation. You should do the query formation in your business logic layer. Your query formation is very near to SQL injection attacks. You'd to prefer writing parameterized queries or stored procedures.
Hope this helps
|
|
|
|