|
Does this download give step-by-step instructions on how to add the codes to a website.
|
|
|
|
|
|
could u till me a free gateway for sending sms from different free sms providers please could any body tell me
|
|
|
|
|
DO NOT repost.
You have already asking this exact question four times in this forum, and received several helpful answers, none of which you have replied to.
Reposting the same question over and over again will only serve to annoy the people who would otherwise be trying to help you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
hi MVC4 Razor <a href="/Members/model">@model</a> - what's equivalent in ASPX view engine?
Here's how it's done with Razor - how to do the same in ASPX?
<a href="/Members/model">@model</a> IEnumerable<XYZ.Product>
@{
ViewBag.Title = "Downloads";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div>
<table>
<tr>
<th>Name</th>
<th>Description</th>
<th></th>
</tr>
<a href="/Members/foreach">@foreach</a> (var Package in Model) {
<tr>
<td>
<a href="/Members/html">@Html</a>.DisplayFor(modelItem => Package.Name)
</td>
<td>
<a href="/Members/html">@Html</a>.DisplayFor(modelItem => Package.Description)
</td>
<td>
<a href="/Members/html">@Html</a>.ActionLink("Download", "ProductDownload", Package)
</td>
</tr>
}
</table>
|
|
|
|
|
|
Thankyou Thatraja!
Question, with ASPX you declare your "Model" as such:
<% Inherits="IList<xyz.Product>" %>
Do you still use "Model" keyword when enumerating items from server side script, from "foreach"?
<ul>
<%foreach (var Product in Model)
{ %>
<li><%=Product.Price%></li>
<%} %>
</ul>
|
|
|
|
|
Sorry to disappoint you, I don't use ASPX view as I'm happy with Razor & don't like ASPX view. What happened when you tried that? Always include error message in your message.
Again I'm telling you, go with Razor. It has many advantages, see my previous message.
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
no worries Thatraja, thanks for your help!
|
|
|
|
|
i have Person table and i want access PersonId in complain table.
DataTable dt = PersonBLL.Select(new Person() { ??????? });
I create select code in BLL.
But what write in place of ????? I don't know.
plz help me...
|
|
|
|
|
Dear All,
I have scenario to encrypt the Password in client side and decrypt it in server side (C# code), this is required for a Online website.
Can any one help me on this task.
- Febin R
-
|
|
|
|
|
For using and saving passwords, you really should not be using encryption, you should really hash your passwords using a salt to be saved in the database. Here[^] is an excellent article that goes through password hashing, and goes into some depth.
Hope it helps
Everyone dies - but not everyone lives
|
|
|
|
|
Just use SSL[^]; that way, the whole request and response will be encrypted for you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
hello, I'm basically following steps as described here[^], building a new MVC4 app with my custom MembershipProvider extending from "WebMatrix.WebData.SimpleMembershipProvider".
Question is, what if I don't want to persists my users in database at all? With SimpleMembershipProvider, you must call "WebSecurity.InitializeDatabaseConnection" from "InitializeSimpleMembershipAttribute \ LazyInitializer.EnsureInitialized" at least once during startup.
Thank you!
|
|
|
|
|
I am reading a file into datatable.
In file I have 3 column but in my datatable 4.
Column 4 in datatable needs to be populated at run time before or after full file is loaded into dt.
how do I do this?
Dim lines = File.ReadAllLines(FileName)
For Each line As String In lines
dt.Rows.Add(line.Split("|"))
Next
|
|
|
|
|
What file you are trying to read from..??
|
|
|
|
|
could you share the information about exceptions.
Exp: in one class i am using more then on exception and also null bull exception.
|
|
|
|
|
One google[^] search will give you lots of results for your query..
|
|
|
|
|
Your question is not clear. Can you be more specific?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
is it possible to create a small application (asp.net) for the managers in the company to search for desired extension and call the extension directly from the application using his/her extension .
thanks in advance
|
|
|
|
|
You can refer this and proceed according to your requirement
Phone Book in C#[^]
else go through google[^]
Hope it will help..
|
|
|
|
|
how Can I Use My Web User Control When I Click On Radio Button Using Java Script? Code Is Given Below Please Help Me
See more: ASP.NETJavascript
Hi i have a web user control LoginControl.ascx, and a userinfo page on which I have two radio button "yes" and "no" for choice for complete your profile now or later
if user select "yes" then a panel be visible for fill the detail and all other things be unvisible using java script when user click on submit ,all information saved in database and this panel does hide and panel of logincontrol(in this panel my logincontrol.ascx is exist) is visible when user log in then it is working but when user click on " no " radio button then use control not working means it's "login" button or "new user" button is not firing any event.
please help me .. i am sharing my code
This is source of web user controlgt;
<asp:panel id="panellogin" runat="server" width="324px">
Please Login here | Email Address | <asp:textbox id="txtlogin" runat="server"> | Password | <asp:textbox id="txtpswrd" runat="server"> | | <asp:button id="btnlogin"
runat="server" text="Login" onclick="btnlogin_Click">
<asp:button id="btnnewuser" runat="server" onclick="btnnewuser_Click"
text="New User">
|
this is code behind of LoginControl(user control)
Collapse | Copy Code
protected void btnlogin_Click(object sender, EventArgs e)
{
dbManager.ConnectionString = ConfigurationSettings.AppSettings["Connectionstring"].ToString();
dbManager.Open();
dbManager.CreateParameters(2);
dbManager.AddParameters(0, "@email", txtlogin.Text);
dbManager.AddParameters(1, "@pass", txtpswrd.Text);
DataSet ds= dbManager.ExecuteDataSet(CommandType.Text, "select * from UserAccount where Email=@email and Password=@pass");
if (ds.Tables[0].Rows.Count == 0)
{
Response.Write("please enter valid email or passwor");
}
else
{
Response.Redirect("Trainer/TProfile.aspx");
}
}
protected void btnnewuser_Click(object sender, EventArgs e)
{
Response.Redirect("Register.aspx");
}
}
Now this code is for userinfo.aspx page
<%@ Page Title="" Language="C#" MasterPageFile="~/Completeprofile.master" AutoEventWireup="true" CodeFile="userinfo.aspx.cs" Inherits="userinfo" %>
<%@ Register TagPrefix="uc" TagName="Spinner"
Src="~/LoginControl.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
function showhidepanel(rad) {
if (document.getElementById(rad.id + '_0').checked) {
document.getElementById('ContentPlaceHolder1_profilepanel').style.display = 'inline';
document.getElementById('ContentPlaceHolder1_panellogin').style.display = 'none'
}
if (document.getElementById(rad.id + '_1').checked) {
document.getElementById('rowprofile').style.display = 'none';
document.getElementById('ContentPlaceHolder1_profilepanel').style.display = 'none';
document.getElementById('ContentPlaceHolder1_panellogin').style.display = 'inline';
}
}
function showlogin() {
// document.getElementById('ContentPlaceHolder1_profilepanel').style.display = 'none'
document.getElementById('tbll').style.display = 'none';
document.getElementById('ContentPlaceHolder1_panellogin').style.display = 'inline';
}
family
Dear
<asp:label id="username" runat="server" text="Label">
Please Complete your profile<asp:label id="lblmsg" runat="server" forecolor="Red"
text="Label" visible="False">
Would you like to complete your profile now ? <asp:radiobuttonlist id="rbl1" repeatdirection="Horizontal" runat="server" onclick="showhidepanel(this);">
<asp:listitem value="Yes">Yes
<asp:listitem value="No">No
<asp:panel id="profilepanel" runat="server" style="display:none">
style="border-style: outset; width: 100%">
Education <asp:textbox id="txteducatn" runat="server"
ontextchanged="txteducatn_TextChanged">
<asp:requiredfieldvalidator id="reqedu" runat="server"
controltovalidate="txteducatn" errormessage="Education req" font-size="Smaller"
forecolor="Red">
<ajaxtoolkit:validatorcalloutextender id="ValidatorCalloutExtender1"
runat="server" targetcontrolid="reqedu">
Certification <asp:textbox id="txtcertification" runat="server">
Experience <asp:textbox id="txtexprnc" runat="server">
Second Email <asp:textbox id="txtscndemail" runat="server">
Other Contact <asp:textbox id="txtcntact" runat="server">
DOB
<asp:textbox id="TXTDOB" runat="server">
<ajaxtoolkit:calendarextender id="clndrdob" runat="server" targetcontrolid="TXTDOB">
<asp:requiredfieldvalidator id="dobreq" runat="server"
errormessage="DOB Req" controltovalidate="TXTDOB"
font-size="Smaller" forecolor="Red">
<ajaxtoolkit:validatorcalloutextender id="ValidatorCalloutExtender2" runat="server" targetcontrolid="dobreq">
<%-- <ajaxtoolkit:calendarextender id="CalendarExtender1" runat="server" targetcontrolid="txtdate" popupbuttonid="image1">
--%>
Upload your profile pic <asp:fileupload id="prflupload" runat="server">
<asp:button id="submit" text="Submit" onclick="submit_Click" runat="server">
<asp:panel id="panel2" runat="server" style="display:none">
<asp:panel id="panellogin" runat="server">
<uc:spinner id="Spinner1"
runat="server"
minvalue="1"
maxvalue="10">
Please help me Thanks to all of you in ad
|
|
|
|
|
DO NOT cross-post. You've already posted this question in QA[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am trying to add breadcrumbs on my web pages for easy navigation. For this I am using SiteMapPath Control of Asp.Net and along with this I have also made a breadcrumb.Sitemap file which list all the pages. But While implementing the sitemappath in my master page, I am getting a generic error. I am not able to understand why is this happening?
This is the basic structure of my aspx page-
<div id="menu-pt">
<div class="hm"><a href="Page1.aspx" class="active">Home</a></div>
<div id="nav">
<ul id="nav" name="nav">
<li><a href="Page2.aspx">Page2</a></li>
<div class="saparation"></div>
<li><a href="Page3.aspx">Page3</a></li>
<div class="saparation"></div>
<li> <a href="Page4.aspx">Page4</a></li>
<div class="saparation"></div>
<li><a href="#">Pages</a>
<div id ="Ul2" runat="server">
<ul id="sub-nav" >
<li><a href="Page5.aspx">Page5</a></li>
<li><a href="Page6.aspx">Page6</a></li>
<li><a href="Page7.aspx">Page7</a></li>
<li><a href="Page8.aspx">Page8</a></li>
</ul>
</div>
<div id ="Ul1" runat="server">
<ul id="sub-nav" >
<li><a href="Page9.aspx">Page9</a></li>
<li><a href="Page10.aspx">Page10</a></li>
<li><a href="Page11.aspx">Page11</a></li>
<li><a href="Page12.aspx">Page12</a></li>
<li><a href="Page13.aspx">Page13</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
<li>Page5,6,7,8.aspx pages is for all users. And <li>Page9,10,11,12,13.aspx pages are for logged in user.
And My breadcrumb.sitemap file is-
="1.0"="utf-8"
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Page1.aspx" title="Home" description="Page1">
<siteMapNode url="Page2.aspx" title="Page2" description="Page2" />
<siteMapNode url="Page3.aspx" title="Page3" description="Page3" />
<siteMapNode url="Page4.aspx" title="Page4" description="Page4" />
<siteMapNode url="" title="Pages" description="">
<siteMapNode url="Page5.aspx" title="Page5" description="Page5" />
<siteMapNode url="Page6.aspx" title="Page6" description="Page6" />
<siteMapNode url="Page7.aspx" title="Page7" description="Page7" />
<siteMapNode url="Page8.aspx" title="Page8" description="Page8" />
<siteMapNode url="Page9.aspx" title="Page9" description="Page9" />
<siteMapNode url="Page10.aspx" title="Page10" description="Page10" />
<siteMapNode url="Page11.aspx" title="Page11" description="Page11" />
<siteMapNode url="Page12.aspx" title="Page12" description="Page12" />
<siteMapNode url="Page13.aspx" title="Page13" description="Page13" />
</siteMapNode>
</siteMapNode>
</siteMap>
Also I have placed a sitemappath control on my aspx page-
<asp:SiteMapPath ID="SiteMapPath1" runat="server"></asp:SiteMapPath>
Please guide me where I am doing wrong. I read few articles and it says that this much of step is enough for adding breadcrumbs on every pages of a web site.
Please Guide me where I am doing Wrong?
AshOmi
|
|
|
|
|
Cross-posting is never a good idea! So of the big guys may pis of...
You already asked your question in QA - be patient...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|