|
How to upload the asp.net
application in web host and how to set the connectivity
my sql server 2005
|
|
|
|
|
|
Hi,
I am using dx:ASPxNewsControl. here is the code:
<dx:ASPxNewsControl ID="newsPosts" runat="server" Width="100%" HeaderTextField="member_post_title" DateField="created_date" NavigateUrlFormatString="~/Post/{0}" NavigateUrlField="member_post_guid">
I want to know how can I use multiple NavigationField to show the url as Post/GUID/ID?
|
|
|
|
|
Did you look at their: ASPxNewsControl DevExpress Documentation[^]
Further, look at their forum (they have a good one!) if something similar was asked earlier. Posting your question can get you more quicker and accurate reply.
|
|
|
|
|
hi ,
my code is this :
Response.Write("<script>window.open('TespPage.aspx','Test', 'width=545px,height=350px,scrollbars=false,toolbar =false,resizable=false,menubar=false',false)</script>");
Q1)
now i wanna do this:
when the popup windows load the user cannot access to parent Page unit he/she close that popup page.
Q2)
after the popup is closed i dont wanna the parent page Refresh or Postback!(wanna to have the other values that been inserted in other controls)
Q3)
how to pass values fist from parent Page then get the changed value from child page.
<br />
Attention :<br />
I have editor in my child Page!
|
|
|
|
|
|
thanks for and!
I need more help!
Cannot give TextBox.Text(in parenPage) to TextBox2.Text (SecondPage).
and take the TextBox2.Text into TextBox.Text (in page One).
|
|
|
|
|
Either use QueryStrings or Session to pass on the values.
|
|
|
|
|
Thanks for Solution!
My Code is like this but the Problem is that i dont need that child form be open once more.(in other word : after i click OK the child form to be closed and only parent should be appear!)
<br />
<script type = "text/javascript"><br />
function Open()<br />
{<br />
var Return;<br />
Return = window.showModalDialog("ChildForm.aspx", "", "dialogWidth:670px;dialogHeight:600px;")<br />
document.getElementById("txtFirstName").value = Return.firstname;<br />
document.getElementById("txtLastName").value = Return.lastname;<br />
}<br />
</script><br />
<br />
where Open() will invoke, upon onclick event of a button, like,<br />
<br />
btnOpen.Attributes.Add("onclick", "Open()");<br />
<br />
and what will you do in your Child page, is:<br />
<br />
<script type = "text/javascript"><br />
function Close()<br />
{<br />
window.close();<br />
}<br />
function OK()<br />
{<br />
var vReturnValue = new Object();<br />
vReturnValue.firstname = document.getElementById("txtFirstName").value;<br />
vReturnValue.lastname = document.getElementById("txtLastName").value;<br />
window.returnValue = vReturnValue;<br />
window.close();<br />
} <br />
</script><br />
<br />
which also will work on click event of buttons(in my case, i have used two buttons, OK and CANCEL), like,<br />
<br />
btnOK.Attributes.Add("onclick", "OK()");<br />
btnCancel.Attributes.Add("onclick", "Close()");<br />
<br />
this code open the cildform once more.
BUt if i write call OK() in onunload child form it works ok!
modified 21-Oct-12 6:24am.
|
|
|
|
|
jojoba2011 wrote: i dont need that child form be open once more.(in other word : after i click OK the child form to be closed and only parent should be appear!)
Hide the link on click of which child form opens. You can hide it on close of child window first time.
|
|
|
|
|
Can anyone explain different overloads of TryUpdateModel method? with examples, as it should bind only mapped properties and all unmapped properties values should be same as previous values, that means it should update the mapped properties only but i dont know why it is creating new object and updating the values and returning that object.
And i have to update only few properties how can i do this?
And how to bind complex objects?
what is the use of "prefix" parameter? and all
Shashi kanth K
Working as Software professional
|
|
|
|
|
|
Create a Event at run time in asp .net with out refresh a page
|
|
|
|
|
Incomplete/Unclear!
For now, based on what you asked, use AJAX to do your stuff with partial rendering of the page.
|
|
|
|
|
Hello Everyone
I have a scenario of restricting the user not to close the browser without logging out properly.If anyone have done this before please help me out with this.
Thanks in advance.
|
|
|
|
|
There is no defined/fixed way to completely handle the scenario. There are various ways one can exit an application without logging out.
On your side, do make sure session timeouts are set to logout users. Handle page unload event and try to send an AJAX request to server to logout - not a 100% accurate rate it will work.
|
|
|
|
|
|
Hello,
Think that your web site gets thousands of users, everyday, like social platforms. Which structure do you think answers your requests? Web security, speed etc.
MVC, Entity Framework, Asp.Net sqlconnections , Linq to SQL?
Thanks four your ideas,
Have a nice day.
|
|
|
|
|
MVC is cleaner than Web Forms, and with a social platform you'd be doing lots of AJAX, which you can do very well with MVC. So for your base framework, I'd go with MVC.
Your data layer is another story. You can achieve good performance with pretty much any data connection technique. However, as far as maintainability and good design, I'd go with LINQ to Entities.
alexalexalex1907 wrote: web site gets thousands of users, everyday
Facebook probably gets millions to billions of users every day. Thousands every second or minute. Just FYI.
As far as scaling goes, MVC on a cloud platform (e.g., Azure) should work very well. A database that can scale well is also a good idea (e.g., SQL Azure, which can do sharding).
|
|
|
|
|
|
|
Web Forms and EF works pretty well.
Really, just pick the one you either (a) have the time to learn because you don't know it/not used it yet or (b) use it because you're familiar with it and the manager says it's urgent. (It never really is).
There is an ongoing debate as to which is better; Web Forms or MVC. The real answer is neither - they both have good and bad points; you just have to decide which is best for you to use.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I get the following error while trying to access an msacccess database ,i cant seem to figure it out,the error is
IErrorInfo.GetDescription failed with E_FAIL(0x80004005).
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.OleDb.OleDbException: IErrorInfo.GetDescription failed with E_FAIL(0x80004005).
Source Error:
Line 20: SQLString = "SELECT DISTINCT Position FROM applicant ORDER BY position"
Line 21: DBCommand = New OleDbCommand(SQLString, DBConnection)
Line 22: DBReader = DBCommand.ExecuteReader()
Line 23:
Line 24: While DBReader.Read()
the source code that generate d error is as follows
<%@ Page Language="vb" Debug="true" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Drawing" %>
<SCRIPT Runat="Server">
Sub Page_Load
Dim DBConnection As OleDbConnection
Dim DBCommand As OleDbCommand
Dim DBReader As OleDbDataReader
Dim SQLString As String
Dim Counter As Integer = 0
DBConnection = New OleDbConnection( _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("miraflash.mdb"))
DBConnection.Open()
SQLString = "SELECT DISTINCT Position FROM applicant ORDER BY position"
DBCommand = New OleDbCommand(SQLString, DBConnection)
DBReader = DBCommand.ExecuteReader()
While DBReader.Read()
Dim MyButton as New Button
MyButton.Text = DBReader("position")
MyButton.CommandName = DBReader("position")
MyButton.Width = Unit.Parse("100px")
MyButton.Font.Size = FontUnit.Parse("8pt")
AddHandler MyButton.Command, AddressOf Get_Books
ButtonArea.Controls.Add(MyButton)
Dim MyBlank As New Literal
MyBlank.Text = " "
ButtonArea.Controls.Add(MyBlank)
Counter += 1
If Counter Mod 3 = 0 Then
Dim MyBreak As New Literal
MyBreak.Text = "<br/>"
ButtonArea.Controls.Add(MyBreak)
End If
End While
DBReader.Close()
DBConnection.Close()
End Sub
Sub Get_Books (Src as Object, Args As CommandEventArgs)
Dim SQLString As String
SQLString = "SELECT ID, Surname, Firstname, middlename FROM applicant " & _
"WHERE position = '" & Args.CommandName & "' " & _
"ORDER BY ID"
BookSource.SelectCommand = SQLString
End Sub
</SCRIPT>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body><form Runat="Server">
<h3>Display Job Types</h3>
<asp:PlaceHolder id="ButtonArea" Runat="Server"/>
<asp:AccessDataSource id="BookSource" Runat="Server"
DataFile="miraflash.mdb"
SelectCommand="SELECT ID, surname, firstname, middlename, email,qualification FROM applicant
WHERE position = 'salesrepresentative' ORDER BY ID"/>
<br/><br/>
<asp:GridView id="BookGrid" DataSourceID="BookSource" Runat="Server"/>
</form>
</body>
</html>
can sombody help out with d solution
abiola
|
|
|
|
|
I read somewhere else that this error could be caused by using reserved words in your query. Try adding square brackets around your table and field names:
e.g. SELECT DISTINCT [Position] FROM [applicant] ORDER BY [position]
|
|
|
|
|
Hi,
I wanna have your opinion on these web stats, which one you'll recommend for advanced web stats:
1. Smarter Stats
2. AWstats
3. webalizer
|
|
|
|