|
Good Answer, Matty.
100
Help people,so poeple can help you.
|
|
|
|
|
Hi,
I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ?
Please help.
suchita
|
|
|
|
|
Sir, set the TargetControlID to a hidden linkbutton id and in the gridview use javascript to open the popup
<a href="javascript:;" onclick="OpenDialog();" >Click me</a>
<script type="text/javascript" >
function OpenDialog() {
$find('<%= extender.ClientID %>').show();
}
</script>
100
Help people,so poeple can help you.
|
|
|
|
|
Place one button with visiblility off. And give that button Id as target Control ID.
|
|
|
|
|
Hi ,
i can not access to Gridview/ Ajax with Master Page.
When I place the Master page into Default.aspx and Try to bind to Gidview this give me error.
|
|
|
|
|
Honeyboy_20 wrote: i can not access to Gridview/ Ajax with Master Page.
Honeyboy_20 wrote: Try to bind to Gidview this give me error.
What error? There should not be any issue/error if your use or leave Master page. Maaster page is just a usercontrol and would not affect the binding of Grid.
|
|
|
|
|
I have 3 Pages
Default.aspx take from master page , till this point no problem.
but problem occur when I open pop up page to add course , the event of button not appear so i can not bind data to updated in Gridview.
|
|
|
|
|
Sir, if you are trying to access a control in master page from a content page using it, then use
Master.FindCntrol("ControlID") .
100
Help people,so poeple can help you.
|
|
|
|
|
Using EF Code First, I have implemented a dropdownlist on a create method everything works fine
however duplicate records are posted as the method is called twice.
Any idea what I have not implemented correcty.
Model(s)
public class Country
{
public int CountryId { get; set; }
public string Name { get; set; }
}
public class State
{
public int StateId { get; set; }
[Required(ErrorMessage = " Name is required")]
public string Name { get; set; }
[Required(ErrorMessage = " Code is required")]
public string Code { get; set; }
public virtual Country Country { get; set; }
[Required(ErrorMessage = " The Country is required")]
public int CountryId { get; set; }
}
Controller (partial)
[HttpPost]
public ActionResult Create(State newState)
{
ViewData["Countries"] = db.Countries.ToList();
try
{
// TODO: Add insert logic here
db.States.Add(newState);
db.SaveChanges();
return RedirectToAction("Index");
}
catch
{
return View(newState);
}
}
View (Partial)
<div class="editor-label">
@Html.LabelFor(model => model.CountryId)
</div>
<div class="editor-field">
@Html.DropDownListFor(model => model.CountryId, new SelectList(ViewBag.Countries, "CountryId", "Name"))
@Html.ValidationMessageFor(model => model.CountryId)
</div>
Regards
dotman1
|
|
|
|
|
1. Use PRE tags to format the code part. It makes the question readable.
2. Did you try to use VS Debugger and see how the execution is happening?
Based on what you have posted, it looks ok.
|
|
|
|
|
Thanks for the input.
Yes I did step through using VS debugger the create method is called and process the steps through to and including the call to db.SaveChanges(); return RedirectToAction("Index"); is not reached and the create method is called processing the second post this time after the call to db.SaveChanges(); return RedirectToAction("Index"); is returned. This is result is random in other instances the process flow is as expected but once again the create method is called twice.
dotman1
|
|
|
|
|
Hi
in file context menu on tree view:
I tried to add node to the tree and while adding it ,the value and text is set.
the new node is shown but the menu does not appear while Rclick.
plz tell me what is wrong?
protected void LinkButton1_Click1(object sender, EventArgs e)
{
setRightClickedNode();
if (rightClickedNode != null)
{
TreeNode nodeToAdd = new TreeNode();
nodeToAdd.Text = "&lt;div id='151' oncontextmenu='return showmenuie5(event,'151')' &gt; new node &lt;/div&gt;";
nodeToAdd.Value = "151";
rightClickedNode.ChildNodes.Add(nodeToAdd);
}
else
{
Label1.Text = "Oops, no right click node found. You have a problem";
}
}
|
|
|
|
|
Sir, is the string that you were trying to write like this:
nodeToAdd.Text = "<div id='151' oncontextmenu='return showmenuie5(event,'151')' > new node </div>";
|
|
|
|
|
Please i need assistance on how to stream uploaded documents in a database in asp.I am developing an e-learning system for my school and i need student to read uploaded lecture notes from lecturers and other faculty members.Please help!!!Please this is my email ransfordadjetey@rocketmail.com.Please any comment will be very welcome thanx
|
|
|
|
|
|
Hello code project community. My name is Wayne, I run a few sites in the ASP classic and I would like to find a forum to talk about it. For example I'm trying to do a facebook integration, and Found some stuff but its not active so much and I think if we had a proper dedicated to ASP Classic it could be popular and take a load off the ASP.net folks.
Thanks for consideration and feedback.
Wayne
|
|
|
|
|
Wayne,
This is ASP.NET Technical Forum. As you want to put this as a suggestion, I would request you to post it over here
Site Bugs / Suggestions[^]
FYI, There is an forum Web Developement [^] where you can ask your Classic ASP related question !
Thank You !
|
|
|
|
|
IIRC we had one a long while back, but I think it fell out of use. As Abhijit pointed out, this is a technical forum the one you need is Site Bugs and Suggestions[^]
|
|
|
|
|
I have a string in which I need to insert an ampersand (&) character.
I tried the below
if(strName == "AB")
{
strName = "A&B";
}
But my result is showing as A&B
Can you suggest me what is wrong that I am doing?
Thanks,
CodingRocks
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Check your question: you appear to be asking how to insert an ampersand into a string and then do it and then get the result you asked for so what's the problem?
Did you actually mean:
if (strName == "AB")
{
strName = "A& amp;B";
}
(remove the space between & and amp;)
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Any suggestion regarding ASP.net website hosting for free.I had googled and found this following link;
http://www.asphost4free.com/[^]
any other suggestions ?
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
hi..
Please refer ... http://somee.com/FreeAspNetHosting.aspx
!- F - R - I - E - N - D - S -!
|
|
|
|
|
Hi all
i wanna do this:
1- rightclick on EACH node of TreeView shows a menu with 3 menuItem (add/delete/rename)
and to get Id of the node that rightclick happend for it.
2- 3 btn(add/delete/rename) on each node of TreeView
tnx in advance
|
|
|
|
|
|
as u know every body uses web searching at first ...I found all u mentioned and lots of other codes
all of them have a kind of problem that i couldn't solve ..none of them where complete...
for example in this one :
Context Menu on the nodes of Microsoft ASP.NET TreeView control[^]
i tried to write a function for each of menueitems in jump.. function ( i know afew about javascript) with getelementbyId i got diferent in diferent browsers
...and i couldn't get witch menueitem is clicked
tnx for ur reply
|
|
|
|