|
On the login button click handler...
protected void LoginButton_Click ( object sender, EventArgs e ) {
bool bValid = AuthenticateLoginIdentity( );
if( bValid ) {
FormsAuthentication.RedirectFromLoginPage( );
}
}
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hi, I have a small table generated by a detailsview I would like to format:
there has to be a small white area between the cells in the table. I've tried a dozen things but no matter what I do,
I can't change the size or the color of the borders. They always stay at default border size and in black color.
I have pasted my code below. Please help.
<style>
#content_DetailsView{
position:absolute;
left:360px;
top:155px;
border-collapse:collapse;
margin-top:20px;
border-spacing:100px;
border-color:white;
border-style:solid;
border-width:50px;
}
content_GridView
{
margin-top:20px;
}
.gridviewheader th{background-color:blue;}
.gridviewheader th a{color:white;}
.gridviewrow{background-color:lightgray;}
.gridviewaltrow{background-color:darkgray;}
.gridviewselrow{background-color:blue;}
.detailsviewrow{background-color:grey;border-collapse:separate}
.detailsviewrow td{padding:0px;}
.gridviewpagerrow{background-color:blue;}
.gridviewpagerrow a{color:white;}
</style>
<table border="1" cellspacing="20" style="border-color:White;height:50px;width:125px;" id="content_DetailsView" rules="all">
<tbody><tr class="detailsviewrow">
<td>name</td><td>Alexandro Alexis</td>
</tr><tr class="detailsviewrow">
<td>address</td><td>3711 W Franklin</td>
</tr><tr class="detailsviewrow">
<td>email</td><td>alal@mma.yaleindustries.com</td>
</tr><tr class="detailsviewrow">
<td>phone</td><td>(559) 555-2993</td>
</tr><tr class="detailsviewrow">
<td>zipcode</td><td>93706</td>
</tr><tr class="detailsviewrow">
<td>city</td><td>Fresno</td>
</tr><tr class="detailsviewrow">
<td>customerid</td><td>1019</td>
</tr><tr class="detailsviewrow">
<td>statecode</td><td>
<span id="content_DetailsView_Label1">CA</span>
</td>
</tr><tr class="detailsviewrow">
<td colspan="2"><input type="button" onclick="javascript:__doPostBack('ctl00$content$DetailsView','Edit$0')" value="Bewerken"> <input type="button" onclick="javascript:__doPostBack('ctl00$content$DetailsView','Delete$0')" value="Verwijderen"> <input type="button" onclick="javascript:__doPostBack('ctl00$content$DetailsView','New$0')" value="Nieuw"></td>
</tr>
</tbody></table>
|
|
|
|
|
Nico Haegens wrote: #content_DetailsView{
border-collapse:collapse;
}
That's the line that's causing the problem. Change it to border-collapse:separate; , and your borders should appear.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
That fixed halve the problem: there is indeed white space between the cells now, but the borders are still black, can you help me make them white? Already set border-color to white but that didn't help at all.
|
|
|
|
|
Try:
.detailsviewrow td{ padding:0px; border-color:white; }
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks so much, that did the trick! Much appreciated for quick responses.
|
|
|
|
|
Hi,
can you please check this webpage:
http://www.drmariagloria.com/[^]
if you resize the browser to smaller size then the hear will look like a half screen with the lighcyan color where it should be full width?
where is my mistake?
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
You have to show us the css code for anyone to troubleshoot for you. I looked at source and there is 3 css files that may be affecting the way the elements are acting. If you use your browser's console you may be able to highlight an element that is acting up and see how it changes when resized. Try that.
vbmike
|
|
|
|
|
I am down to the last major task of my project and it is giving me griefs.
This block of code below allows me to load jquery datatable with data from a php file called getUsers.php filtered by userID.
$(document).ready(function() {
$("#example").dataTable( {
"sProcessing" : true,
"sDom":'T<"clear">',
"sJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>',
"sAjaxSource" : "getUsers.php?loginName=<?php echo $user; ?>",
"sAjaxDataProp" : "",
"sDestroy" : false,
"sScrollXInner": "110%",
"fnServerData" : function(sSource, aoData, fnCallback) {
request = $.ajax({
"dataType" : "json",
"type" : "GET",
"url" : sSource,
"data" : aoData,
"success" : fnCallback
});
},
"aoColumns" : [
{ "mDataProp": "RequestID", "sWidth": "50px", sSortable: true,
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj)
{
return "<a target='tab' data-tab-name='#RequestDetails' data-tab-index='2' href='phpservices/details.php?requestID="
+ oObj.aData["RequestID"] + "'> " + oObj.aData["RequestID"] + " </a>";
}
},
],
})
Further down the code above is this line which adds hyperlink to the fieldname called RequestID:
questID"] + " ";
return "<a target='tab' data-tab-name='#RequestDetails' data-tab-index='2' href='phpservices/details.php?requestID="
+ oObj.aData["RequestID"] + "'> " + oObj.aData["RequestID"] + " </a>";
Finally, the code below allows us to display the details of user's selection in another tab:
$("#example").on("click", "a[target='tab']", function(){
var me = $(this);
var url = me.attr("href");
var tabName = me.data("tabName");
var tabIndex = parseInt(me.data("tabIndex"), 10);
$.get(url, function(data) {
var table = $( '<table cellpadding="4" cellspacing="0" border="1"/>' ),
tr = $( '<tr/>' ),
td = $( '<td/>' ),
th = $( '<th/>' );
tr.clone().html( th.text( 'ID' ) )
.append(th.clone().text( 'Date' ) )
.append(th.clone().text( 'Status' ) )
.append(th.clone().text( 'Assigned To' ) )
.appendTo(table );
$.each(data.aaData, function(i,v) {
tr.clone().html( td.clone().html(v[0]))
.append(td.clone().html(v[1]))
.append(td.clone().html(v[2]))
.append(td.clone().html(v[3]))
.appendTo(table);
});
$(tabName).html(table);
$("#tabs").tabs("option", "active", tabIndex);
}, 'json');
return false;
});
All of these work fine except one major problem.
When you click the requestID link, the hope is that the contents of details.php is displayed in requestdetails tab but it doesn't. It displays blank screen.
Does anyone know how to extract the contents of details.php file into a variable called aaData?
I will to be able to reference it and use it to load data into that other tab using:
$.each(data.aaData, function(i,v) {
...
...
Sorry if this is confusing, I can provide some clarity.
I am really desparate.
Thanks a lot in advance
|
|
|
|
|
What is new in Owin The Last few months.
Not owin it self but cool new componts
|
|
|
|
|
I just have one month for preparation,
1-what to prepare most part in asp.net and php to cover in one month.I have basic knowledge of asp php and c#.sql server 2005/08 ..quick way to prepare
2.what type of demo project should i make to show them ......
3-how to show my 2 years Gap in 12th , what to say to interviewer .. what should be the positive answer...
4- What should i prepare first PHP or ASP.NET
|
|
|
|
|
Akash Tripathi wrote: 3-how to show my 2 years Gap in 12th , what to say to interviewer .. what should be the positive answer...
How about the truth?
If you tell them a lie because you think it sounds better, then you've just lost any chance of getting the job.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello
I am working as Software Developer having 2 years of Experience in web based products Development, i done 6 projects on PHP, Mysql and 2 projects on ASP.NET,C# and i am not use any framework for web Development.
any one can suggest me What I do?
i am more interested to learn and do projects on ASP.
Which is best for my carrier ASP.NET/PHP framework learn? php having more Framework and Asp having only one. i am getting some confusion.
please suggest me
thank you
|
|
|
|
|
It depends. Based on own experience,
For .NET - MVC
For PHP - I don't know(never worked). But based on release dates .... CakePHP, Nette, Joomla, Ayoola,.,
Check this to choose any one/more from list
Comparison of web application frameworks[^]
|
|
|
|
|
ok but i ask which is easy
to learn and getting well job
|
|
|
|
|
Well, again it depends.
If you're gonna choose .NET, pick MVC. Do learn regularly. Education Needed[^]
|
|
|
|
|
Hi again Experts,
I have another problem that is stumping me.
The code below loads in a jQuery tab called ExistingRequests.
"aoColumns" : [
{ "mDataProp": "RequestID", "sWidth": "50px", sSortable: true,
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj)
{
return "<a target='tab' data-tab-name='#RequestDetails' data-tab-index='2' href='viewdetails.php?requestID="
+ oObj.aData["RequestID"] + "'> " + oObj.aData["RequestID"] + " </a>";
}
},
{ mDataProp: "RequestDate", "sWidth": "100px", sSortable: true },
{ mDataProp: "RequestorFullName", "sWidth": "150px", sSortable: true },
{ mDataProp: "PrimarySiteContactDisplay", "sWidth": "250px", sSortable: true },
{ mDataProp: "RequestLocation", "sWidth": "150px", sSortable: true },
{ mDataProp: "RequestDescription", "sWidth": "200px", sSortable: true },
{ mDataProp: "RequestStatus", "sWidth": "100px", sSortable: true },
],
This is of course relevant code.
The code above also has a RequestID that is hyperlinked.
When a user clicks that link, detailed records associated with that link is displayed on another tab called RequestDetails. (Thanks in large part to Richard Deeming).
The problem is that when the data loads into RequestDetails tab, it loads as json data.
We wanted to it load as html form fields with values.
The code below is supposed to help resolve this problem but it doesn't work.
When you click the link, nothing happens.
Can someone please tell what I and doing wrong?
The code below was originally written by Richard Deeming and it would open in RequestDetails tab as stated but after the changes, it longer loads data in RequestDetails tab when clicked.
Your assistance is greatly appreciated.
$("#exmple").on("click", "a[target='tab']", function(){
var me = $(this);
var url = me.attr("href");
var tabName = me.data("tabName");
var tabIndex = parseInt(me.data("tabIndex"), 10);
$.get( url, function( data ) {
var table = $( '<table cellpadding="4" cellspacing="0" border="1"/>' ),
tr = $( '<tr/>' ),
td = $( '<td/>' ),
th = $( '<th/>' );
tr.clone().html( th.text( 'Time' ) )
.append( th.clone().text( 'Room' ) )
.append( th.clone().text( '???' ) )
.append( th.clone().text( '???' ) )
.appendTo( table );
$.each( data.aaData, function(i,v) {
tr.clone().html( td.clone().html( v[0] ) )
.append( td.clone().html( v[1] ) )
.append( td.clone().html( v[2] ) )
.append( td.clone().html( v[3] ) )
.appendTo( table );
});
$( tabName ).html( table );
$("#tabs").tabs("option", "active", tabIndex);
}, 'json' );
return false;
});
|
|
|
|
|
Dear All,
I have a big problem to solve now.
My website is integrated with payment gateway and while I submitted payment to their server, their back-end server did not reply the StatusURL to my front-end at all.
When I asked them to check then they said that it got error as below:
java.io.IOException: Server returned HTTP response code: 403 for URL: http://example.com/...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at TestMerchantStatusURL.sendHttpRequestByPost(TestMerchantStatusURL.java:48)
at TestMerchantStatusURL.main(TestMerchantStatusURL.java:23)
how to fix this problem?
Best Regards,
|
|
|
|
|
403 means that you have no access right to the provided URL. It may be due some security or that you are pointing to some folder with no browse access or many many other things...
The best is to the company runs the payment system to help you out...
More about 403: http://en.wikipedia.org/wiki/HTTP_403[^]
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I'm designing a web application to for users to input and retrieve data. The data is stored in a sql database. I need help coding the search button to retrieve the data and display in grid view based on search criteria. I can't get the data to display with my current code. PLEASE HELP!!
Here is my code:
Imports System.Windows.Forms
Partial Class ExisitingApplication
Inherits System.Web.UI.Page
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
If Me.txtLastN.Text = "" Then
Dim erMsg As Windows.Forms.DialogResult = MessageBox.Show("Must enter Last Name.", "Search", MessageBoxButtons.OK)
End If
Dim str As String = ConfigurationManager.ConnectionStrings("SqlDataSource1").ToString
Dim strUSRACCESS As String = "SELECT FirstName, LastName, SSN from tblMAGIapplications where (FirstName = @FirstName and LastName = @LastName) or (SSN = @SSN) "
Dim USRconn1 As New Data.SqlClient.SqlConnection(str)
Dim CMD As New Data.SqlClient.SqlCommand(strUSRACCESS, USRconn1)
Dim drUSR As Data.SqlClient.SqlDataReader = (0)
USRconn1.Open()
CMD.Parameters.AddWithValue("@FirstName", Me.txtFirstN.Text)
CMD.Parameters.AddWithValue("@LastName", Me.txtLastN.Text)
GridView1.DataSourceID = String.Empty
GridView1.DataBind()
USRconn1.Close()
End Sub
End Class
|
|
|
|
|
You say you "can't get the data to display," but you haven't described what the problem is. And you haven't asked a specific question about that problem.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
With the code I post I'm not necessarily getting an error message. For example, when I enter the last name as a search option it's just not returning any data. There is data in the database, and the connection is there.
|
|
|
|
|
vanburenp wrote: my current code
Well you are not executing your query.
If you did execute the query, you would get an exception, because you commented out that part of the code.
And you are not doing anything with the resultset, if any, that would have been returned by your query.
That's all I got unless you can provide more information about your problem.
|
|
|
|
|
The only problem is not getting the data to display in the a grid view after search button is selected. Please tell me what other information I can provide you with that will help.
|
|
|
|
|
vanburenp wrote: only problem is not getting the data
No that is not your only problem. Did you go fix the 3 problems you was already told about?
|
|
|
|
|