|
difference between server site and alient
|
|
|
|
|
|
i have project when i run the project in bin\debub\tespage.html one is creating and opening the that file only . its not showing localhost\aspx page.
its opening the entire root folder in the address bar of the browser
|
|
|
|
|
|
in solution explorer -> (right click) on the *.aspx page and click set as start page.
|
|
|
|
|
your are not select particular page to default, you should make your page default page simply right click on page in solution explorer and check make as default.
|
|
|
|
|
Could anyone suggest me where I can find free 3d Chart control for asp.net to draw a scatter plot.
|
|
|
|
|
|
|
Hi Experts,
I am not real sure why this code doesn't work any more.
When a user logs into the system, we perform a check based on his/her session Id to see if his/her profile is update to date.
If any field on his/her profile page is blank, display a message informing him/her to update his/her personal profile.
It stopped working.
I think the reason it stopped working is that when you query the database, no rows are returned. All are blank.
Does anyone know what I have to do to fix this?
If Not IsPostBack Then
Dim myConnectionString As [String] = ConfigurationManager.ConnectionStrings("DBConnectionString").ConnectionString
Dim myConnection As New SqlConnection(myConnectionString)
Dim nameTB As String
Dim AddressTB As String
Dim emailTB As String
Dim phoneTB As String
Dim PrecinctTB As String
Dim PositionTB As String
Try
myConnection.Open()
Dim cmd2 As New SqlCommand("Select l.FullName,l.address,l.Phone_nbr,l.email,l.precinct,p.position_title from Users l inner join Positions p on l.positionId = p.positionId and l.username = @username", myConnection)
cmd2.Parameters.AddWithValue("@username", Session("username"))
cmd2.Parameters.AddWithValue("@email", Session("UserId"))
Dim dr2 As SqlDataReader = cmd2.ExecuteReader()
If dr2.Read() Then
nameTB = dr2("FullName").ToString()
AddressTB = dr2("address").ToString()
phoneTB = dr2("phone_nbr").ToString()
emailTB = dr2("email").ToString()
PrecinctTB = dr2("precinct").ToString()
PositionTB = dr2("Position_title").ToString()
dr2.Close()
If nameTB = "" Or AddressTB = "" Or phoneTB = "" Or emailTB = "" Or PrecinctTB = "" Or PositionTB = "" Then
lblMessage.Text = "Please update your personal information"
Else
End If
lblMessage.Text = ""
End If
Catch ex As SqlException
Response.Write("<SCRIPT LANGUAGE='JavaScript'>alert('" + ex.Message + "')</SCRIPT>")
Finally
myConnection.Close()
End Try
End If
Thanks a lot in advance
|
|
|
|
|
Instead of politely show him a message of "Please update...", redirect him to the update page...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
You are using an INNER JOIN to join Positions table, it could be possible that there is no record of that user in the positions table and causing dr2.Read() to return no records at all, Try using a LEFT JOIN and see what happens.
|
|
|
|
|
Actually,that seemed to have worked.
From positions left join Users.
Thanks for that suggestions.
|
|
|
|
|
Hi All,
I am getting the following error, please help me in fixing the problem
Server Error in '/Internet/apps/CNPWeb4.5/ORFfvpProd' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'DIS.CnpWeb.ORFfvpProd.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="DIS.CnpWeb.ORFfvpProd.Global" %>
Source File: /Internet/apps/CNPWeb4.5/ORFfvpProd/global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
modified 1-Apr-14 17:14pm.
|
|
|
|
|
What is it about that message that is not clear? Where is the source for DIS.CnpWeb.ORFfvpProd.Global ?
|
|
|
|
|
It is in correct location means in the same folder and name space where global.asax is located.
The strange thing about it is, when I remove bin and obj folders, clean and rebuild the application, close the visual studio and reopen it again, and finally remove the application as application and then converting it back again as application. It runs good.
But I have to do all these steps whenever I change anything in the code. It is seeming mess for me all the time if I have to do it.
May be it something to do with its pdb files, is it because I have taken another web application changed its name and everything and then joined it into my solution. May be it is because of it? Please help me in making a permanent solution to it.
Every time doing the above steps may create more problems to my development time. Please any kind of help would help me a lot.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
indian143 wrote: May be it something to do with its pdb files Most unlikely, since they are the project debug files used only by Visual Studio. It is much more likely that a path has been lost during a reorganisation or build of your files. There are a number of other reports of the same issues found by Google[^], which may help you.
|
|
|
|
|
It has so many different answers and trails and which are unsure of fixing the problem trying them all is taking more time. If there is any one who has got the similar problem, it would help me a lot.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Thanks I have created whole ne project and added it to the solution. I think it is not being handled by IIS and Visual Studio properly. May be bug in either Visual Studio or IIS.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
I have done website in mvc3.in the form of controller and view. I want to use umbraco for content editing on my site.how i can achieve this.Can anybody help me.
|
|
|
|
|
|
I have a dynamically created grid view with a nested child grid view. On edit,I wanted to have different controls based on column data type so when I create template fields dynamically, I create user controls and add to grid view in edit Item template. grid view works fine with most of the data but with some special data when I want to edit a row, nothing happens and none of the buttons on the page works.
I used firebug to find out the error. I got the "Failed to load viewstate" error. Nothing is different with the other data that works fine but I don't know why some times edit doesn't work. I found out that if I remove a row from grid view edit works correctly!if the grid view row count is 16, I remove a row so with row count=15 it works. even when row count is 6 it works with 5. but as I said there isn't a rule and most of the time it works fine with any row count. Any one has idea what to do? Thank you.
|
|
|
|
|
could anyone please tell me how to implement radiobuttonlist with accordion style
|
|
|
|
|
Radiobuttonlist - consist of list of radiobuttons which can be used without creating a group name.
It may have many radiobutton but still it is a single control.so you cannot split it.
Try with RadioButton control
To learn all there is to know. I know I'll be disappointed one day, but I've made a good start, and the eventual disappointment is likely to be brief.
-Roger Wright
|
|
|
|
|
Dear All,
How can insert a data into SQL(MS SQL 2008 ) data base with apostrophe.
Please provide sample code to insert with a stored procedure from C#.Including all DB connectivity
Thanks,
Praveen Machat
|
|
|
|