|
How to use SAML in Classic ASP and ASP.Net? I would appreciate if someone give example.
thanks
Vijay
|
|
|
|
|
Hi,
I'm facing an big issue. i have created an small project which is working good in normal environment.
but when it is going in cloud computing, events are not working properly.i have used datalist and itemcommand is used. but its not working.
Please help me as soon as possible. Its very urgent.
I'm waiting for reply.
krishna veer singh
|
|
|
|
|
What issues you are getting ?
Please mention if you are getting any error...
|
|
|
|
|
I have no idea about it. But I would like to share my experience with Computing Conference. Its a Cloud Computing Virtual Conference 2009,Which is the global cloud computing event, covering latest trends and innovations in the world of cloud computing. It is the Annual Virtual Conference on Cloud Computing! It is hosted online March 23-25, 2009.
http://cloudslam09.com
|
|
|
|
|
Excellent Post. I too have heard much about cloud Computing Conference. I gathered much information about it too. Here by I would like to say that, I am going to attend the 2nd Annual Virtual Conference which is going to be hosted online March 23-25, 2010 by http://cloudslam10.com
|
|
|
|
|
Hi..
I m implementing credit card processing in my website.
The provider has given something like this.
It works fine as pasting it on simple .htm page.
When u run this page a button appears, when u click it one by one pages appear for credit card processing.
asks for input data of customers, bla.. bla..bla..
I have one button in my customer registration say "Finish"... I want the above process.cgi to run after clicking this button ( from codebehind).
And could u tell me How to accomodate the above screens in my iframes or something like this, so that customer can interact with process.cgi and still can view my website...
Thanks in advance.,
You can even give some clues...
Hemant
By:
Hemant Thaker
|
|
|
|
|
|
\\Create A Class
using System;
using System.Collections.Generic;
using System.Text;
namespace Shivam
{
public class RemotePost
{
private System.Collections.Specialized.NameValueCollection Inputs = new System.Collections.Specialized.NameValueCollection();
public string Url = "";
public string Method = "post";
public string FormName = "form1";
public void Add(string name, string value)
{
Inputs.Add(name, value);
}
public void Post()
{
System.Web.HttpContext.Current.Response.Clear();
System.Web.HttpContext.Current.Response.Write("<html><head>");
System.Web.HttpContext.Current.Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", FormName));
System.Web.HttpContext.Current.Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", FormName, Method, Url));
for (int i = 0; i < Inputs.Keys.Count; i++)
{
System.Web.HttpContext.Current.Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", Inputs.Keys[i], Inputs[Inputs.Keys[i]]));
}
System.Web.HttpContext.Current.Response.Write("</form>");
System.Web.HttpContext.Current.Response.Write("</body></html>");
System.Web.HttpContext.Current.Response.End();
}
}
}
//Class End
\\On Button Click Write Following Line of Code
\\Change Key Value as well as payment provider Based on ur field
RemotePost myremotepost = new RemotePost();
myremotepost.Url = "https://www.myvirtualmerchant.com/VirtualMerchant/process.do";
myremotepost.Add("ssl_amount",ssl_amount.Value);
myremotepost.Add("ssl_merchant_id",ssl_merchant_id.Value);
myremotepost.Add("ssl_pin",ssl_pin.Value);
myremotepost.Add("ssl_show_form",ssl_show_form.Value);
myremotepost.Add("ssl_transaction_type", ssl_transaction_type.Value);
myremotepost.Add("ssl_result_format", ssl_result_format.Value);
myremotepost.Add("ssl_receipt_decl_method", ssl_receipt_decl_method.Value);
myremotepost.Add("ssl_receipt_decl_get_url", ssl_receipt_decl_get_url.Value);
myremotepost.Add("ssl_receipt_apprvl_method", ssl_receipt_apprvl_method.Value);
myremotepost.Add("ssl_receipt_apprvl_get_url", ssl_receipt_apprvl_get_url.Value);
myremotepost.Post();
|
|
|
|
|
Hi
Need to hide the Repeated District name only in SSRS
I am getting Query output like this
District Name Date count
-------------------------------------
VSP TL 01/01/2009 20
VSP AM 01/06/2009 10
VSP TM 01/08/2009 100
Hyd TL 01/01/2009 20
Hyd AM 01/09/2009 10
TPT TL 01/01/2009 20
TPT TM 01/06/2009 190
Expected Output
I need out put like this in SSRS
District Name Date count
-------------------------------------
VSP TL 01/01/2009 20
AM 01/06/2009 10
TM 01/08/2009 100
Hyd TL 01/01/2009 20
AM 01/09/2009 10
TPT TL 01/01/2009 20
TM 01/06/2009 190
|
|
|
|
|
Why dont you modify the query for that ... .
Distinct keyword is what you need I think...
Does this question belongs to ASP.NET ?
|
|
|
|
|
I have done through SSRS Grouping. Question is not related to ASP.NET
But I could not find the SSRS Questions here?
So Where can I post SSRS Related Queries?
|
|
|
|
|
|
How can i add empty row in Grid View in ASP dot net using VB Dot net.
All fields are bound but i want to count TOTAL manually.
e.g
Type Col1 col2 col3
1 10 20 30
2 5 1 5
3 1 5 2
Total 16 26 37
Help please
|
|
|
|
|
You can add your code on GridView databound event ..
Vinod Kumar Prajapati
Software Engineer
EBC Publishing Pvt. Ltd.
|
|
|
|
|
Send me source code please
|
|
|
|
|
You can use ItemTemplate og GridView for inserting rows.
Use Label controls in that.
When you want to add empty row, add empty labels to it and later you can assign text to that row.
|
|
|
|
|
Yes .. You can do this. Just follow these simple steps mentioned here :
Add New Row in DataGrid[^]
Hope you like my solution.
|
|
|
|
|
Hi,
for that you can add footer template in your grid view and take rowdatbound event of the gridview at server side. in the rowdatbound event you can check each row this way
protected void GVLeavelist_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// Fetch each row here and calculate the data
ViewState["Total"] = 'Your Value';
}
else if((e.Row.RowType == DataControlRowType.Footer)
{
// then used viewstate value to display the total
}
}
|
|
|
|
|
|
How the filter by tag feature on codeproject is done. As a similar feature I would like to do on my project too. Can somebody help me in providing direction for the same. Thanks
Regards
PN
|
|
|
|
|
Hi Friends,
I have to import .cer certificate into .pfx , actually i converted jks(java keystore file) into pfx by using a tool , the jks file have both public key and private key but while converting to pfx i got only one key i.e., private key in pfx file, now i need to import public key(.cer) into pfx file. kindly help me friends.
Thanks in Advance
-----------
Siva kumar.
|
|
|
|
|
Hi,
I am working with the treeview control and binding it dynamically using the treeview_TreeNodePopulate method.
The code works perfectly fine and treeview behaves as it has to.
However, I am facing one annoying issue in the display of the treeview, the last node and its child do not align properly with the top nodes. Check the image below for better understanding,
http://dotnetspider.com/attachments/Forums/235454-281550-tree.GIF[^]
Note: I have blocked the text of options deliberately.
So as you can notice that the child nodes of Level 3 are not getting aligned with that of Level 1 and 2.
Following is my asp code,
<asp:TreeView ID="tvMaster" runat="server" RootNodeStyle-CssClass="rootNode" NodeStyle-HorizontalPadding="2px"<br />
NodeStyle-VerticalPadding="2px" NodeIndent="1" NodeWrap="true" ShowLines="true"<br />
CssClass="tree"><br />
<Nodes><br />
<asp:TreeNode Text="School Level" PopulateOnDemand="true" SelectAction="Expand"><br />
</asp:TreeNode><br />
</Nodes><br />
</asp:TreeView>
In the code behind, PopulateNode event fires for every node and I bind the child nodes for that node dependant on the Business logic.
Any inputs on this issue are appreciated.
Thanks,
Pranil
|
|
|
|
|
This is resolved.
It happens since
NodeIndent="1"
Thanks,
Pranil
|
|
|
|
|
Hi,
I have tried to construct a user control named EventCategory, that holds 2 dropdownlists
to select an event category. Depending on the selection in the first dropdownlist, the second
dropdownlist must be repopulated with items corresponding with the first dropdownlist selection.
Here is my control :
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EventCategory.ascx.cs" Inherits="EventCategory" %>
<table border="0">
<tr>
<td style="width: 65px"><asp:Label ID="CategoryLabel" runat="server" Text="Category:" AssociatedControlID="CategoryList" /></td>
<td>
<asp:DropDownList ID="CategoryList" runat="server" Width="130px" AutoPostBack="True"
OnSelectedIndexChanged="CategoryList_SelectedIndexChanged" />
</td>
<td style="width: 20px" />
<td style="width: 90px"><asp:Label ID="SubCategoryLabel" runat="server" Text="SubCategory:" AssociatedControlID="SubCategoryList" /></td>
<td>
<asp:DropDownList ID="SubCategoryList" runat="server" Width="130px" />
</td>
</tr>
</table>
When i enter the control in a web page, I can wite something like this :
<!-- The user control gets registered in web.config -->
....
<UC:EventCategory ID="EventCategory" runat="server" SelectText="«Select»" Category="Parties" />
Here I want the "Parties" item to be initial selected in the CategoryList control when the page comes up.
therefore I wrote the following in code behind :
public partial class EventCategory : System.Web.UI.UserControl
{
#region Private data members
private string m_strCategory = string.Empty;
private string m_strSubCategory = string.Empty;
#endregion
#region Public properties
[Category("Appearance"),
DefaultValue(""),
Description("The event category associated with the user control.")]
public string Category
{
get { return ((CategoryList.SelectedItem != null) && (CategoryList.SelectedItem.Value != "0") ? CategoryList.SelectedItem.Text : string.Empty).Trim(); }
set { m_strCategory = value.Trim(); }
}
[Category("Appearance"),
DefaultValue(""),
Description("The event subcategory associated with the user control.")]
public string SubCategory
{
get { return ((SubCategoryList.SelectedItem != null) && (SubCategoryList.SelectedItem.Value != "0") ? SubCategoryList.SelectedItem.Text : string.Empty).Trim(); }
set { m_strSubCategory = value.Trim(); }
}
[Category("Appearance"),
DefaultValue(""),
Description("The selection text shown as first item in the user control's lists.")]
public string SelectText
{
get
{
object obj = ViewState["EventCat_SelectText"];
if (obj == null)
return string.Empty;
else
return (string)obj;
}
set { ViewState["EventCat_SelectText"] = value; }
}
#endregion
#region Public functions
public void Initialize()
{
PopulateCategoryList();
SubCategoryLabel.Enabled = false;
SubCategoryList.Enabled = false;
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
Initialize();
}
protected void CategoryList_SelectedIndexChanged(object sender, EventArgs e)
{
int nCatId = Int32.Parse(CategoryList.SelectedValue);
if (nCatId > 0)
PopulateSubCategoryList(nCatId);
else
{
SubCategoryList.Items.Clear();
SubCategoryLabel.Enabled = false;
SubCategoryList.Enabled = false;
}
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (!IsPostBack)
{
if (m_strCategory != string.Empty)
ListControlHelper.SelectListText(CategoryList, m_strCategory);
int nCatId = Int32.Parse(CategoryList.SelectedValue);
if (m_strSubCategory != string.Empty)
{
PopulateSubCategoryListOnEmpty(nCatId);
ListControlHelper.SelectListText(SubCategoryList, m_strSubCategory);
}
}
}
#region Private helpers
private int PopulateCategoryList()
{
EventCatsTableAdapter Adapter = new EventCatsTableAdapter();
CategoryList.DataSource = Adapter.GetAllEventCats();
CategoryList.DataTextField = "CatName";
CategoryList.DataValueField = "CatId";
CategoryList.DataBind();
if (CategoryList.Items.Count > 0)
ListControlHelper.AddListItem(CategoryList, SelectText, "0");
else
throw new InvalidOperationException(string.Format("{0} in user control {1} is empty.", CategoryList.ID, ID));
return CategoryList.Items.Count;
}
private int PopulateSubCategoryListOnEmpty(int nCatId)
{
if (SubCategoryList.Items.Count > 0)
return SubCategoryList.Items.Count;
return PopulateSubCategoryList(nCatId);
}
private int PopulateSubCategoryList(int nCatId)
{
if (!SubCategoryLabel.Enabled)
SubCategoryLabel.Enabled = true;
if (!SubCategoryList.Enabled)
SubCategoryList.Enabled = true;
EventSubCatsTableAdapter Adapter = new EventSubCatsTableAdapter();
SubCategoryList.DataSource = Adapter.GetEventSubCatsByCatId(nCatId);
SubCategoryList.DataTextField = "SubCatName";
SubCategoryList.DataValueField = "SubCatId";
SubCategoryList.DataBind();
if (SubCategoryList.Items.Count > 0)
ListControlHelper.AddListItem(SubCategoryList, SelectText, "0");
else
throw new InvalidOperationException(string.Format("{0} in user control {1} is empty.", SubCategoryList.ID, ID));
return SubCategoryList.Items.Count;
}
#endregion
}
This works fine for a simple web page, but when i place the user control in a InsertItemTemplate of a FormView and I change the
mode of the FormView to FormViewMode.Insert by an ImageButton in the page where the FormView is located I can not initial select
a dropdownlist item through the Category property of the user control. I know it is because the formview is switched to insert mode during
a postback so the IsPostBack block of the OnPreRender override gets skipped. Is there a better way to wtite the user control so that I can
select an initail value in a dropdownlist that works also in a template of a FormView.
TIA
|
|
|
|
|
I want to use the Face book and organize the FaceBook data (Friends,Comments,Posts) into my application. so how do i get it any samples regrding it.. Please let me know i will g0 through it.... Thanks
|
|
|
|