|
|
[]
May this link helps you....
|
|
|
|
|
Can we use AutoCompleteExtender inside ModalPopupExtender?
|
|
|
|
|
The auto complete list of the AutoCompleteExtender won't appear because it has a z-index value less than the modal popup for the ModalPopupExtender. You can fix this by setting the value of the z-index to a greater value just when the list is shown.
<ajax:AutoCompleteExtender ID="ace" runat="server" OnClientShown="ShowOptions">
</ajax:AutoCompleteExtender>
<script language="javascript" type="text/javascript">
function ShowOptions(sentder, args) {
sender._completionListElement.style.zIndex = 10003; // or greater than modal popup
}
</script>
Help people,so poeple can help you.
|
|
|
|
|
hi
I have a problem who put data from SqlDataSource in dropdownlist
|
|
|
|
|
It was the Tinkleberry Fairy
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun
|
|
|
|
|
It could have been anybody.
Who has access to your system?
Was it that guy from the greengrocers?
Seriously, how can we possibly answer that, we don't have 24 hour global surveillance (Although the hamsters seem to know far more than they should).
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
I fell off the chair laughing at this one........ OP would have certainly got the answer..
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|
|
Hello,
I have 2 Windows servers on LAN with Win2k and win2k3 server respectively.
When using Win2k with IIS 5.0 I am able to develope new Websites with Visual Studio 2008 and 2010 and put the files on the server directly, by using the http option when creating a new solution.
This is unfortunately not the case when using Win2k3 with IIS 6.0. The message I receive is something like "Front Page extensions are not installed on IIS". But this is not true, they are installed as I see on Windows Components under "Add/Remove Programmes"
Any hint I found on the Internet, in MS's website, googling etc. didn't help. Maybe someone here has an advice for me?
Thanks in advance.
|
|
|
|
|
I am data binding to many FormView controls using EF entity instances, but I have to resort to this ridiculous kludge in order to achieve what I want without using EntityDataSource controls:
propertyHeaderSection.DataSource = new List<PropertyDetailsModel> { _propertyDetails }
I suspect I will have to derive my own control from FormView and enable it to accept an almost POCO as a data source. Where do I start?
|
|
|
|
|
Hi
I have a repeater control and I used array list as the data source.
This array has only one field and it's a number to be used as the identification.
how can i format the image server control url in my data repeater to show the right image with right Id!
thank you so much
Here is my source code:
List<int> lstID = new List<int>();
var query2 = context.Offers.Select(p => new { itemId = p.OfferId }).Skip(1).Take(6).ToList();
foreach (var item in query2)
{
lstID.Add(item.itemId);
}
RepeaterOthers.DataSource = lstID;
RepeaterOthers.DataBind();
and here is where i'd like to use that offerId:
<asp:Repeater ID="RepeaterOthers" runat="server">
<ItemTemplate>
<asp:Image ID="ImageFront" runat="server" ImageUrl="~/images/{0}.jpg" />
</ItemTemplate>
</asp:Repeater>
|
|
|
|
|
<asp:Image ID="ImageFront" runat="server" ImageUrl='<%# String.Format("~/images/{0}.jpg", Container.DataItem) %>' />
I haven't tested but this should be work. If doesn't work the let me know.
Thanks
Parwej Ahamad
|
|
|
|
|
thank u so much man! it worked!
recently i lost my old projects files that i programmed before now i know nothing without it! lol
|
|
|
|
|
Your Welcome!
Parwej Ahamad
|
|
|
|
|
Hi....
I am working on modalpopup on master page and i am trying to call it from a content page.
On master page i hv used a modal popup on master page as--
<asp:modalpopupextender id="mpePattern" runat="server" okcontrolid="btnOkay" cancelcontrolid="btnCancel"
="" popupcontrolid="pnlPopup" targetcontrolid="hiddenTargetControlForModalPopup" backgroundcssclass="modal" behaviorid="programmaticModalPopupBehavior" popupdraghandlecontrolid="PopupHeader" drag="true" dropshadow="true">
The issue is that when i try to find out the id or make object of this modal popup in Javascript ..it says null..
i have tried $find('mpePattern').show() as well as
documen.getElementById('mpePattern') but nothing working out....please help...
Gourav Kaila
|
|
|
|
|
Because your Modal Popup control is inside the master page control. So first you have to find Masterpage control then Modal Popup control. OR just go to page view source see the actual rendered Madalpopup control id.
Parwej Ahamad
|
|
|
|
|
Hi Gourav,
If you want to open ModalPopupExtender from the content pages using javascript, Use BehaviourID in place of ID.
Like that
<asp:ModalPopupExtender ID="mpePattern" runat="server" OkControlID="btnOkay" CancelControlID="btnCancel"
PopupControlID="pnlPopup" TargetControlID="hiddenTargetControlForModalPopup"
BackgroundCssClass="modal" BehaviorID="programmaticModalPopupBehavior" PopupDragHandleControlID="PopupHeader" Drag="true" DropShadow="true">
Javascript call:
$find('programmaticModalPopupBehavior').show();
I hope it will work.
|
|
|
|
|
Hi,
When I tried to implement the code from this forum to display data in the excel from a webpage, I am getting weird results. I am wondering if you could direct me to correct the problem? I thank you for your help.
The code is :
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.Charset = "";
//MAKE THE CONTENT TYPE TO EXCEL FORMAT.
response.ContentType = "application/vnd.ms-excel";
response.AddHeader("Content-Disposition", "attachment;filename=\"" + filename + ".xls\"");
// CREATE A STRING WRITER.
using (StringWriter sw = new StringWriter())
{
using (HtmlTextWriter htw = new HtmlTextWriter(sw))
{
// INSTANTIATE A DATAGRID.
GridView dg = new GridView();
dg.DataSource = ds.Tables[0];
dg.DataBind();
dg.RenderControl(htw);
//STYLE TO FORMAT NUMBERS TO STRING.
string style1 = @" .textmode { mso-number-format:\@; } ";
response.Write(sw.ToString());
response.Write(style1);
//response.Flush();
HttpContext.Current.ApplicationInstance.CompleteRequest();
}
}
}
catch (Exception ex)
{
throw ex;
}
}
ds:is the dataset
and filename is the name of the filename.
However, the file contains data as below:
"
"
MonthYearUSERIDApplicationNumOfReturns"
"
08/2011userid12010"
"
08/2011userid22010"
"
08/2011userid32009"
"
08/2011userid42010"
"
"
.textmode { mso-number-format:\@; }
<title>
" Untitled Page"
I am wondering what wrong with my code. Any help is greatly appreciated. Thank you.
|
|
|
|
|
|
|
I am having an issue understanding how to send data back from my view to my controller. I want to filter the results of a query based on search criteria. So the view looks something like this:
@model IEnumerable<CloutWeb.Models.Observation>
<h2>@ViewBag.Title</h2>
<p>
@Html.ActionLink("Create New", "Create")
</p>
<table>
<tr>
<th>
Claim
</th>
<th>
Location
</th>
<th>
Category
</th>
<th>
Defect
</th>
@foreach (var item in Model.Observations) {
var imageName = Path.Combine("/Content/", item.fileName);
<tr>
<td>
@Html.DisplayFor(modelItem => item.Claim.description)
</td>
<td>
@Html.ActionLink(item.Location.name, "Search", new { id = item.locationId, searchType = 1 })
</td>
<td>
@Html.ActionLink(item.Defect.Category.name, "Search", new { id = item.Defect.categoryId, searchType = 2 })
</td>
<td>
@Html.ActionLink(item.Defect.name, "Search", new { id = item.defectId, searchType = 3 })
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.id }) |
@Html.ActionLink("Details", "Details", new { id=item.id }) |
@Html.ActionLink("Delete", "Delete", new { id=item.id })
</td>
</tr>
}
</table>
My issue is that I want 4 dropdown lists at the top that can be used to filter the information below. Any help would be appreciated. I have read that a viewmodel should be used here, but I can't find a good example relevant to what I need. Neither the Music Store app or the Nerd Diner app has this particular kind of functionality. I read tons of posts on Stackoverflow, but was unable to gleen an answer. Also, not sure of the difference between html.dropdownlist and html.dropdownlistfor, if anyone could point me in the right direction I would be much obliged.
Cheers, --EA
|
|
|
|
|
I am trying to decide the best way to develop and add some new web forms to an existing C# asp.net 2010 webform application. Basically my new webpages need to be kept separate from the other developer since his new pages are due sooner than mine are. I am basically going to have the user select my pages from the 'main' selection menu.
I am, thinking of using one of the following options:
1. I am thinking of using a version of the general webforms solution file and add my code to it in a new aspx file. This way I will use the same master pages, site navigation, and user login credentials. Thus when my code is ready, i will add the new aspx file to the general webforms solution. Is this possbile? How would i accomplish this task? Would i setup a user control?
2. I would create the new webforms in a solution file separate from the general webforms solution file. I would not put the 'master' pages logic into my individual web forms. When I am finished, i will add by code to the general webforms solution file.
Note: I am in a small company and we use subversion as our version control software.
What mehtod would you use and do you have any recommendations that I should follow? Would you accomplish this task differently? if so, would you tell me how to accomplish this task in a different manner?
|
|
|
|
|
How to set focus to a item of the checkboxlist in asp.net..
Dinesh.S
|
|
|
|
|
|
In your form load complete(it's mean after all process has been done), you can set which checkbox that you want to focus.
For example:
Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles LoadComplete
If (your condition) Then
chkExample.Focus()
ElseIf (your condition) Then
chkExample2.Focus()
End If
Good Luck..=)
|
|
|
|