|
What kind of custom code would I write for this? You you tell me and/or give me urls (links) that I can use as a reference? This is my first web form project that I am working with.
|
|
|
|
|
I am having the following problems with a C# asp.net 2010 checkboxlist control that I drag from the toolbox onto the designer or source view.
1. When I drag the checkbox list control to be embedded within an asp.net table in either the desginer or source view, I do not see all all the options for the smart tag like to connect to the datasource.
2. When I drag the checkbox list into the designer or source view and outside of a web table control, I do see the data source control. However, I have the following problems:
a. The wizard does not see the linq controls that are in the master page.Do you know of a way for the wizard to see the datasource in the master page? If so, how do you accomplish this task?
b.Thus I create a new datasource and select the appropriate datacontext object. However when I want to connect the checkbox list object with a textbox for a where statement, there is not an option to find the textbox I am looking for. The only selection option is the checkbox list itself. The textbox I want to obtain the value from is embedded within the asp.net table.
Thus basically can you make a suggestion how the checkbox list control can obtain the value in the textbox? Is the problem due to embedding the controls in an asp.net table?
The folllowing is the code I am referring to:
^<asp:Content ID="Content4" ContentPlaceHolderID="ReportForm" runat="server">
<ajx:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true">
</ajx:ToolkitScriptManager>
<asp:UpdatePanel ID="AttUploadUpdatePanel" runat="server">
<ContentTemplate>
<table style="width: 100%;">
<tr>
<td>
<table style="width: 50%;">
<tr>
<td width="100px" rowspan="5">
</td>
</tr>
</table>
</td>
<asp:Table ID="uploadAttb" runat="server" Height="35px" HorizontalAlign="Center"
Width="50%">
<asp:TableRow ID="trTitle" runat="server" HorizontalAlign="Center">
<asp:TableCell runat="server" RowSpan="2" ColumnSpan="4" VerticalAlign="Top" HorizontalAlign="Center">
<div>
<asp:RangeValidator ID="RangeValidator2" runat="server" Type="Date" CssClass="errorStyle"
ControlToValidate="txtReceiveDate" ErrorMessage="Receive Date must be in mm/dd/yyyy format and be a valid Date"
MaximumValue="12/31/2100" MinimumValue="01/01/1990" Display="Dynamic"></asp:RangeValidator>
</div>
<asp:Label ID="Label1" runat="server" CssClass="RptPageTitle" Text="Att View" />
</asp:TableCell></asp:TableRow>
<asp:TableRow runat="server" ColumnSpan="2">
<asp:TableCell runat="server">
<asp:Label ID="lblResultMsg" runat="server" CssClass="msgStyle" />
<asp:Label ID="lblErrorMsg" runat="server" CssClass="errorStyle" />
</asp:TableCell></asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell runat="server" HorizontalAlign="Right">
<asp:Label ID="Lable2" runat="server" Text="Organization Name" CssClass="RptFormLabel" />
</asp:TableCell><asp:TableCell runat="server" HorizontalAlign="Left">
<asp:TextBox ID="txtOrgID" Visible="false" Enabled="true" runat="server" Width="100"
MaxLength="10" />
<asp:TextBox ID="txtOrgName" runat="server" Width="250" CssClass="TextBoxStyle" OnTextChanged="FindOrg"
AutoPostBack="true" MaxLength="100" />
<ajx:AutoCompleteExtender ID="AutoCompleteAtt" runat="server" CompletionListCssClass="AjaxListStyle"
TargetControlID="txtOrgName" ServiceMethod="GetList" ServicePath="Att.aspx"
MinimumPrefixLength="1" CompletionInterval="200" CompletionSetCount="10">
</ajx:AutoCompleteExtender>
</asp:TableCell></asp:TableRow>
<asp:TableRow runat="server" Visible="true">
<asp:TableCell ID="TableCell4" runat="server" HorizontalAlign="Right">
<asp:CheckBoxList ID="CheckBoxList2" runat="server">
</asp:CheckBoxList>
</asp:TableCell></asp:TableRow>
<asp:TableRow ID="TableAttReceiveDate" runat="server" Visible="true">
<asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Right">
<asp:Label ID="Label3" runat="server" Text="Received Date" CssClass="RptFormLabel" />
</asp:TableCell><asp:TableCell ID="CellReceiveDate" runat="server" HorizontalAlign="Left">
<asp:TextBox ID="txtReceiveDate" CssClass="TextBoxStyle" Enabled="true" runat="server"
Width="150" MaxLength="100" AutoPostBack="true" />
<ajx:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" TargetControlID="txtReceiveDate">
</ajx:CalendarExtender>
</asp:TableCell></asp:TableRow>
<asp:TableRow ID="TableRowDisrpt" runat="server" Visible="true">
<asp:TableCell ID="TableCellDirRpt" runat="server" HorizontalAlign="Right">
<asp:Label ID="Label4" runat="server" Text="Reports Provided " CssClass="RptFormLabel" />
</asp:TableCell><asp:TableCell ID="TableCell2" runat="server" HorizontalAlign="Left">
<asp:DropDownList ID="ddlDisRpt" runat="server" CssClass="TextBoxStyle" Width="155">
<asp:ListItem Text="NO" Value="N" Selected="True" />
<asp:ListItem Text="YES" Value="Y" />
</asp:DropDownList>
</asp:TableCell></asp:TableRow>
</asp:Table>
</td></table>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>^
|
|
|
|
|
Hello All,
I need to open atleast 8 pdfs, in one HTML page. I can use the embed tag,
<embed src="http://test1.pdf" width="500" height="500" /> to open one pdf.
Is there a way, I can open more pdfs in this one html page? Also, I am getting the names of the pdfs from database, so pretty much to have <embed /> tag on the server side page, c# code.
<embed src="http://test<variable>.pdf" width="500" height="500"></embed>
|
|
|
|
|
though I answered a question like this yesterday but I can't find it anywhere...
your best bet is probably going to be through the use of iframe . I think I even mentioned using them in a gridview that you populate programmaticaly. I would also recommend using a lightbox or a jQuery dialog unless you want them open all at the same time.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
Dennis E White wrote: though I answered a question like this yesterday but I can't find it anywhere...
That's easy: go to your member page, there click "Messages", and you will see it after a short search.
|
|
|
|
|
Hello All,
I want to open PDF file in new window on button click event from code behind through JavaSctipt.
I am using below mentioned code for opening PDF file in new window.
string PopUpWindowPage = @"E:\\\Prism4.pdf";
string Script = "";
Script += "<script id='PopupWindow'>";
Script += "confirmWin = window.open(' " + PopUpWindowPage + "','" + 1 + "','scrollbars=yes,resizable=1, width=960,height=500,left=50,top=130,status');";
Script += "</script>";
if (!Page.IsClientScriptBlockRegistered("PopupWindow"))
Page.RegisterClientScriptBlock("PopupWindow", Script);
I get below mentioned error message while opening the PDF file in new window.
Microsoft JScript runtime error: Access is denied.
Can Anyone tell me whats the issue with above code or any other settings have to do?
Thanks in Adv...
|
|
|
|
|
1) Check the file path is correct and accessible using normal window.open() method
2) try not using depricated method.
There are general reasons for this error
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
You need a client script manager first. cs = clientscript manager
Dim cs As ClientScriptManager = Me.Page.ClientScript
Dim rsType As Type = Me.GetType()
If (Not cs.IsClientScriptIncludeRegistered(rsType, "jquery")) Then
cs.RegisterClientScriptInclude("jquery", cs.GetWebResourceUrl(rsType, "SC_Standard.jquery.js"))
End If
|
|
|
|
|
When we open a Web Application Project in Visual Studio we get an option to convert an .aspx or .ascx file to Web Application which actually replace the 'CodeFile' with 'CodeBehind' in aspx file and generate the designer.cs file also.
I want to perform this dynamically by using the command line. I have this requirement in new Project template generation.
Can anyone please let me know what is the command line for 'Convert to Web Application'
Thanks in Advance
Ravi Shankar
ravidhari@gmail.com
Ravi
|
|
|
|
|
Hello,
I've been requested to implement single sign on. The customer has 2 web applications. One has been developed in ASP/VB6 and the other one in ASP.Net.
Can anyone help where to start?
Any links for a proper tutorial will be appreciated.
Cheers
|
|
|
|
|
|
any one can tell how get confirmation on the given email after user registration in asp.net c#
rizvan sivally
|
|
|
|
|
I'm in the middle of doing something very similar.
Here is what I want to do:
1) Allow someone to register for my site using their email address as their account ID
2) Send them a confirmation email which they will have 5 days to respond to in order to activate their account.
A few concepts to use:
1) Create the account and set the MembershipUser.IsApproved to false
2) Send an email with a link and query string parameter of a GUID. This GUID will be a key in a table, "Confirm Account Creation". The table will consist of the GUID, email and an expiration date.
3) When the user clicks on the embedded link, the corresponsding web page will verify the GUID and set the user account with the appropriate email to IsApproved = True and delete the row from the "Confirm Account Creation" table.
4) Also, the table will be scanned for any accounts that have past their expiration dates and delete those accounts.
That's my idea so far ...
Good luck.
|
|
|
|
|
Hi ,
Here you have to implement send Mail functionality using System.Net namespace.
below i mention code :-
protected void Btn_SendMail_Click(object sender, EventArgs e)
{
MailMessage mailObj = new MailMessage(
"sender mail id", "to mail id ", "Subject header", "Mail body");
SmtpClient SMTPServer = new SmtpClient("Host name like smtp.gmail.com"," port number like= 587");
SMTPServer.EnableSsl = true;
SMTPServer.Credentials = new System.Net.NetworkCredential("your sender mail id", "mailId password");
try
{
SMTPServer.Send(mailObj);
}
catch (Exception ex)
{
Label1.Text = ex.ToString();
}
}
|
|
|
|
|
Some web page is rigt action only in IE7 or 8.
So i want to force webpage to Compability mode.
I cod blow but it doesn't work.
How can i do that?
<head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"/>
<link rel="stylesheet" type="text/css" href="../style/company.css" />
<script type="text/javascript" src="../../common/script/ui.js"></script>
<title></title>
</head>
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="X-UA-Compatible" content="IE=7">
and here is the link you can read about meta tags Link For Meta Tags[^]
ANuj
|
|
|
|
|
I am developing a web application in ASP.NET, using Visual Studio 2010 - Framework 4.0, that is to be run under IE 8 only. To establish horizontal scrollbars with the GridView when the contents of a grid will be wider than the established page width (1280), I am placing the grid inside a tag that has its style set to style="-ms-overflow-x:scroll;width:100%;". Below is a shorthand/skeleton code example of the HTML being used. The horizontal scrollbar works for most of the users, but some users do not get the scrollbar at all and, therefore, cannot see the entire contents of the grid. They are all using the same browser so I suspect a simple configuration issue but I have not determined the issue. Does anyone know why the scrollbar would not show up in the browser for some users?
Thanks...
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<div id="GridViewContainer" style="-ms-overflow-x:scroll;width:100%;">
<asp:GridView ID="grdTest" runat="server" AutoGenerateColumns="False" Width="200%">
......
</asp:GridView>
</div>
</td>
</tr>
</table>
|
|
|
|
|
You are saying browser for all is same but the resolution may be different.
Check with the different resolutions.
ANuj
|
|
|
|
|
Thanks for the reply. I expect the issue is related to a configuration difference but it is not the resolution as the resolution on the 'failing' PCs is the same as that on the successful PCs.
Thanks Again...
|
|
|
|
|
Please tell me what is the problem with this code???
function VeriYaz(id) {
$.ajax({
type: 'GET',
url: 'VeriAl.aspx',
data: 'id=' + id,
async: false,
success: function (data) {
var isim = data;
this.form.elements["TextBox1"].value = isim.toString();
}
});
}
It doesnt even go to the given url... Yes it gets id succesfully but no data turning back...
Thanks all...
|
|
|
|
|
So nobody knows why???
Would it be just because of the starting tag of asynx page?? :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VeriAl.aspx.cs" Inherits="Ads4WebClient.VeriAl" %>
Cause it gives an error when I try to change CodeFile into CodeBehind??? And, I tried to open a new project to apply the code and see what happens, the asynx pages starting tag was like this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VeriAl.aspx.cs" Inherits="WebApplication2.VeriAl" %>
|
|
|
|
|
You have to post to a webservice .asmx or something similar
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "ws_SavedItems.asmx/update_SavedItems_ItemQty",
data: "{\"qty_Value\" : " + secure_Qty + ", \"secure_CartID\" : " + secure_CartID + ", \"part_Number\" : \"" + part_Number + "\", \"secure_Token\" : \"" + secure_Token + "\"}",
dataType: "json",
success: function (responseText) {
eval('(' + responseText.d + ')');
var obj = jQuery.parseJSON(responseText.d);
result_Value = obj.result_value;
qty_value = obj.qty_value;
price_value = obj.price_value;
totalPrice_value = obj.totalPrice_value;
instantSavings_value = obj.instantSavings_value;
masterImage_value = obj.masterImage_value;
description_value = obj.description_value;
|
|
|
|
|
Thanks for your responde jkirkerx it is quite useful...
|
|
|
|
|
Hello all,
I use .NET 2.0 (still) and I have an urgent requirement to build a Calendar + Scheduler like in Hotmail.
Which approach is better? .NET Ajax Control or a HTML + Ajax page?
I am inclined towards writing a .NET Ajax control. But don't really know where and how to start. I am lost, totally. Can someone guide me please?
Thanks in advance,
Venkat Renuka Prasad.
|
|
|
|
|
I am creating ical file in which i want to set alldayevent.
I tried everything Value=Date:, 120000 time but nothing is working.
When the files is downloaded and then i open it in outlook and save alldayevent from there then it is saved but not from the code.
below is the output which creates the file with AllDayEvent. This is the same in my code but doesnot work till i save it from outlook.
BEGIN:VCALENDAR
PRODID:-//RECGroup.com/REC
VERSION:2.0
BEGIN:VEVENT
DTEND;VALUE=DATE:20111019
DTSTART;VALUE=DATE:20111018
SUMMARY:REC EVENT
END:VEVENT
END:VCALENDAR
|
|
|
|