 |

|
Just a theory
Sounds like the autocomplete is trapped inside the bounderies of the gridview.
You may have to play with css overflow for the gridview, or if the gridview is inside div tags, play with it there.
Something is trapping or moving the autocomplete.
|
|
|
|

|
Using a default MVC 4 template I would like to figure out how to use various jquery fucntions etc. but this is new territory for me.
http://jqueryui.com/draggable/[^]
Could someone explain how I can put this on the landing page for the default MVC 4 template? That should get me going.
Thank you.
[Edit]
Figured out why nothing I was doing was working.
http://stackoverflow.com/questions/12445134/why-wont-my-jquery-ui-tabs-control-render-correctly[^]
Why in the heck does the template put @Scripts.Render("~/bundles/jquery") after everything has been rendered?
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
modified 29-Jan-13 12:48pm.
|
|
|
|

|
Hi,
In my application, i have a webservice, where i am doing some update operation.
I have a scenario here, like i want to display an message box to the user, based on the user input in messagebox(yes/no) i have to perform some operation in the webservice.
FYI : I tried MessageBox.Show() , it will work fine during debugging, if i deploy the same code on the server, MessageBox wont be displayed.
And i am calling this webservice from .aspx file using jquery.
sample code :
[WebMethod]
public string Save(BusinessException exception, BusinessException oldexception)
{
UserContext userContext = GetCurrentUserDataContext();
IList<string> lineExtIds = exception.LineExtIds;
IList<string> ListExtIds = exception.ListExtId;
string username = null;
{
Presenter.Save(lineExtIds,userContext.Login,userContext.Profile);
}
{
return;
}
return "succeed";
}
Could any one tell me how to display an alert message box in this scenario, where the code should be written inside asp.net webservice file.?
|
|
|
|

|
Rocky23 wrote: i want to display an message box to the user, based on the user input in messagebox(yes/no) i have to perform some operation in the webservice.
Show/Ask for yes-no confirmation on UI side before making the Webservice call. Post which, take action. It's a web application where you have client-server model and thus you cannot raise a confirm to client in between server method implementation.
Modify your implementation to handle the confirm before invoking service.
|
|
|
|

|
Sir;
you may be interested with a control like Message Box Control[^]
Help people,so poeple can help you.
|
|
|
|

|
Hi Ali,
Thank you for your suggestion.
But,I can't use MessageBox here, because it is a ASP.NET application.
If i use MessageBox in asp.net, this MessageBox will appear only in debugging mode, but it will not appear once the code is deployed in server.
And i can't even use alert() or confirm() directly, because i have to do this change inside ASP.NET webservice file.
Appreciate any more suggestion/help from your side..
|
|
|
|

|
First the control I suggested is for web applications it is similar to jquery dialog.
Second in web applications you should confirm user request before making the request,
but if the job generated another decision in the server side -like coping example in my article- you should send back a response asking the user for making the decision and make another request complete the job.
Lastly the message box you see on debugging mode is displayed on the server interface and wont be sent to the client.
or use this javascript code.
if (confirm('Are you sure?')){
}
Help people,so poeple can help you.
|
|
|
|

|
JQuery has a message box for web applications that can handle a yes no dialog, but the previous posts are correct, such as using confirm(); on the client side;
|
|
|
|

|
Hello,
In my web application i want to change the color of menu font dynamically.
I am using external css for menu that id is #buttons
the menu font color resides in #buttons a{color:red;}
I want to change it through javaScript dynamically.I have created a session(control value assigned to session) and session value is assigned to hiddenfield.
I have used following code but it's not working proper.
function SetValue()
{
menufontcolor = document.getElementById('buttons');
menufontcolor.style.color =
document.getElementById('HiddenField8').value;
}
I have called SetValue() at body section OnLoad Event.
Please help me..
Thanks
Regards
Sunil Sharma
modified 28-Jan-13 6:32am.
|
|
|
|

|
1. SetValue() & setValue() are two different method names. See it this is the issue.
2. Why hidden field and all? Just switch the css at runtime.
Debug and share what is happening and if you get any error.
|
|
|
|

|
capture the signature from signature pad in Web App.I am using TOPAZ syStems INC Pad Model T-LBK462-KAHSB-R
|
|
|
|

|
Based on the little information shared and not a good framed question, for now all I can share is, probably you can achieve it using ActiveX, but that will be IE only. You have to look into it.
Further, there are paid products for the same, not sure if anything free. Example: http://www.websignaturecapture.com/[^]
|
|
|
|

|
Here is a question[^] for the same.
The OP posts the comment of question as a answer and then Accepts it.
Lunch Time,Check the bad solution.and distribute prizes to good solutions.
|
|
|
|

|
Anyone know about login object in asp.net?
Plz tell me Nature is Simple but Conceptual
|
|
|
|
|

|
Perhaps this article could be of some help for you:
Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^]
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.
|
|
|
|

|
Hi all,
has anyone of you guys ever worked with Boot Metro[^]?
If yes - is it well supported by older browsers?
Any special advices, tipps or tweaks?
cheers,
Marco Alessandro Bertschi
|
|
|
|
|

|
signature capture from signature pad in wep application(in VB.Net)
Thanks
|
|
|
|

|
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Edit" link to edit your question and provide better information.
|
|
|
|
|

|
I am using MVC 4 and I can not get the selected value. I have no idea what I am doing wrong. It seems this should be straight forward but I have pounded my brain on my keyboard for hours now.
I have an EntityController and on its construction it builds up a view model for the view. In other words:
private AppDBContext _db = new AppDBContext();
private Entities _viewModel = new Entities();
public EntityController()
{
_viewModel.ActiveEntities = _db.Entities.ToList();
var platformQry = _db.Platforms.AsEnumerable();
_viewModel.Platforms = new List<Platform>(platformQry.Distinct());
}
Platform is just a simple 2 column item that has an ID and a name. i.e. :
public class Platform
{
public int ID { get; set; }
[Required]
public string Name { get; set; }
}
The view model is quite simple. It is maintaining the available Platform items, has a value to track the ID of the selected item, and contains a collection of the POCOs (Entity). i.e.:
public class Entities
{
public IEnumerable<Entity> ActiveEntities { get; set; }
public IEnumerable<Platform> Platforms { get; set; }
public int PlatformFilterId { get; set; }
}
Now my intention is to use this value (the ID) in a callback to the controller to filter down the ActiveEntities. So here is the Action method (it is just the Index of the controller).
public ActionResult Index()
{
_viewModel.ActiveEntities = _db.Entities.AsEnumerable();
if (_viewModel.PlatformFilterId != 0)
{
_viewModel.ActiveEntities = _viewModel.ActiveEntities.Where(e => e.Platform == _viewModel.PlatformFilterId);
}
_viewModel.ActiveEntities = _viewModel.ActiveEntities.ToList();
return View(_viewModel);
}
Seems simple enough but maybe this is already wrong.... And here is the view:
@model AppName.ViewModels.Entities
@{
ViewBag.Title = "Entity Overview";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Create New", "Create")
@using (Html.BeginForm("Index", "Entity", FormMethod.Get))
{
<p>
@Html.DropDownListFor(x => x.PlatformFilterId , new SelectList(Model.Platforms, "ID", "Name"), "-- Filter by Platform--")
<input type="submit" value="Filter" />
</p>
}
</p>
<table>
<tr>
<th>
@Html.DisplayNameFor(model => model.ActiveEntities.First().Name)
</th>
<th>
@Html.DisplayNameFor(model => model.ActiveEntities.First().Name)
</th>
<th></th>
</tr>
@foreach (var item in Model.ActiveEntities) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.CreatedDate)
</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>
The outcome is that I get my dropdown populated correctly, but on the postback (i.e. the Index action method firing after I click "Filter") the PlatformFilterId is always 0 so of course I can never filter. What am I doing wrong?
Any help is appreciated.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
|
|
|
|

|
I have Created textbox, dropDownList Dynamically at run time.Now how do i get the textbox value and dropDown value in ButtonClick.
|
|
|
|

|
Can you give your sample code, for us its logic flow analysis,
or you did not make his code..??
|
|
|
|

|
TextBox txt = new TextBox();
txt.ID = ID;
txt.Text = DateTime.Now.ToString();
PlcHolder.Controls.Add(txt);
DropDownList ddl = new DropDownList();
ddl.ID = ID;
string strSql = "SELECT Code,[Name] FROM SDTS_GSTYPE";
DataTable dtBranch = getDataTable(strSql);
ddl.DataSource = dtBranch;
ddl.AutoPostBack = true;
ddl.DataTextField = "Name";
ddl.DataValueField = "Code";
ddl.SelectedIndex = 0;
ddl.DataBind();
PlcHolder.Controls.Add(ddl);
This is the code i have written to create a textbox.Now how do i get the textbox value and selected value of dropDownlist in my buttonClick event.
|
|
|
|
 |