|
Keep a RegularExpression Validator for your TextBox .
For Eg:Add the following line below your text Box in the source View.
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Enter Only characters" ControlToValidate="YourTextBoxID" ValidationExpression="^[\w]$" />
Koushik
|
|
|
|
|
I have three update panels with conditional updatemode. First paneld containt navigation buttons and dropdownlist for paging. Second panel contains sortable datagrid with and edit/view button in last column and triggers fired by the nagavtion buttons. The third panel contains a form to show the details on clicking the edit/view button in datagrid.
Most of the times all these are working fine. But some time onclicking the navigation buttons (first panel) the whole page flickers. Can someone tell me why?
Secondly whenever I edit any record by clicking on edit/view button, it shows me details fine. But right after that if I sort the grid, the whole page flickers instead of the second panel only. And it happens everytime I sort the grid after clicking on edit button. Second sort works fine?
Thanks in advance.
WELL: I just tested in firefox and it is working just fine in firefox. So I quess it is IE stupid stuff..
-- modified at 11:58 Monday 12th March, 2007
-----
|
|
|
|
|
My guess would be a) your using IE which has some horrible page flicker bugs in it and b) it occurs because most of the page is being updated (ie more than one panel), for smaller page updates you probably won't notice it. Does sorting the grid also update the third panel? I would of thought so...
|
|
|
|
|
I think your first guess might be true.
Your second is wrong because it is not updating all panels, it only updates the panel which I call panel.update or which have triggers. So updating is working fine only flickering of page is a problem that happens randomly. Most of the time it is working just as expected.
Thanx for your response.
WELL: I just tested in firefox and it is working just fine in firefox. So I quess it is IE stupid stuff..
-----
|
|
|
|
|
Hi
I downloaded the code of 'Switching Between HTTP and HTTPS Automatically '
from code project and trying to run it but it is giving me error
as
File or assembly name WebPageSecurity, or one of its dependencies, was not found.
in
<add name="SecureWebPage" type="Hyper.Web.Security.SecureWebPageModule, WebPageSecurity">
in web.config
If it is require a change in code,please let me know.
Swapnil Bhavsar
|
|
|
|
|
Hi
I have a simple asp.net page that contains link and open reports in pdf file on browser. I do have authentication to check user window log in for access to diff reports. But how do i avoid user to physically type in the path to view the report on browser?
Thanks
Nancy
|
|
|
|
|
i am using modalpopup control in ajax when panle pops up how to disable back page???
in my case it is enabled
|
|
|
|
|
I want to change the location or position of the control at runtime.
Mohinder Singh
|
|
|
|
|
use panels or divs or table and then use
panel1.Controls.Add(panel2.FindControl(controlID))
-----
|
|
|
|
|
Hello
I started a little web project, where the users can register and make their own sites.
Now i want, that the User can access his personal site directly over the path http://xy/[Username] like many other sites. For example http://www.myspace.com/userX
But I don't know how to make that dynamic? Sure there is a possibility without create a directory, create a virtual directory and put a index file into it, for each user.
Probably it has not a lot to do with c# (I program into ASP.NET with c#). I'm sure someone here can help me?
Thanks for your help
Yours sincerely
|
|
|
|
|
try googling 'URL Rewriting'. i think this is exactly what you need.
- walter
|
|
|
|
|
Hi there
I want to use a session variable to store the user_id, and then redirect to another page. the problem is, that when i get to the redirected page, in the page load event, the session variable is not there (when put onto a textbox). only when the page is refresed (F5), can i view the user_ID on the textbox.
Can anyone help me with this problem?
Thanks
|
|
|
|
|
I havnt got ur problem.
What u want to do?
Please specify with code
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
Are you sure your code is running on the intial hit of the page?
|
|
|
|
|
hi,
i have a javascript function which performs some operation. on completion i want to return an array and this array should be assigned to a session!!!
lets say iam calling this javascript function by using the onclick event of a html button how shall i proceed???
this func1 should return an array and this shld be assigned to a session is this possible???
Gautham
|
|
|
|
|
It's simpe to return an array from a js function, just use the return keyword!
Unfortunately, it's impossible to directly set session using client scripting - you'd have to implement some custom code to do so
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi folks
This is my first ever question on this site! Hope I get an answer.
Visual Studio 2005. ASP.Net web application (VB).
I have 2 Web User controls on a page. The top control has an AjaxCalendarExtender on it. When the page is displayed (run-time) and I click on the image to display the calendar, only part of the calendar is displayed. The bottom half is hidden / cut off by the web user control underneath it. i.e. the calendar doesn’t overlap the bottom control.
I also have a drop down on the top control, and this overlaps the bottom control no problem.
I have no Divs or Spans in either of my web user controls' HTML.
Any ideas? Obviously I could make the top control larger so it fits, but that leaves an unacceptably ugly gap between the 2 controls.
Any thoughts appreciated…
Jools
ANSWER: -
.ajax__calendar_container { z-index : 1000 ; }
-- modified at 9:07 Monday 12th March, 2007
|
|
|
|
|
You could try giving your calendar div/calendar control a larger z-index in the sytles.
The drop down list overlaps because it doesn't use z-index in it's display...
|
|
|
|
|
That's done the trick. I added this to the control & it seems to have worked.
.ajax__calendar_container { z-index : 1000 ; }
Thank you..
Jools
|
|
|
|
|
Some code would help, and what browser this problem appears in. I've have had this same problem with IE and it came down to an animation extender with an OpacityAction. This was setting a filter: CSS property, check you don't have that in the parent elements style anywhere. Could also be caused by the overflow property, or with position:absolute or fixed. Where the elements appear in the markup and their z-index properties can also have an effect on how they are painted in the browser.
Theres been a myriad of bugs found in the Calendar extender, most of them still not 100% fixed. Try the latest control toolkit version and see if that helps.
|
|
|
|
|
USING SESSION STATEMENT,CAN YOU HELP ME WITH THE CODE TO DISPLY THE NAME OF THE PERSON LOG ON TO THE SYSTEM,BE DISPLYED IN THE DROPDOWNLIST,AND GIVE THE ANOTHE USER AN OPTION TO CHOOSE THEIR NAME IF NOT LOG-IN TO THE SYSTEM.
THANK YOU IN ADVANCE
Oga M
|
|
|
|
|
Hello,
We have created activex for reading emails from MS outlook and send as function output to aspx web base application. Its working fine for most of the users but for few users we are getting problem.
Issue is as below mentioned
We are reading from email id. For few users its coming right e.g. xyz@yourdomain.com but for few users its putting some long path /O=xyz corporation/ou=conway/cn=RECIPIENTS/CN=NENZMI
Can anyone know what is the wrong and how we can rectify.
Thanks & Regards,
Kumar
|
|
|
|
|
hi all
i m working into GridView and DetailView. In my GridView there r two Command Button at [0]index is Delete and [1]index is Edit. whn i click the Edit Button thn My DetailView Move on to Update mode and detail view controls are fill by the GridView Data. after tht i press the Enter key in my text box the Delete button Message pop up which is "Are u sure to delete this record?" i m using the objectdatasourc to bind the both of gridview and detailview.
so i want to prevent abut to show this Message popup in UpdateMode. The message Box is generted thru following code at gridview_rowCreated
ImageButton btn = e.Row.Cells[0].Controls[0] as ImageButton;
btn.OnClientClick = "if (confirm('Are you sure to delete this Package?') == false) return false;";
im using Asp.Net2005 with C#.
so any one can give some help and idea abut this scnerio.
thnx in advance
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Write code in rowcommand Event of gridview and give condition
if(e.commandname=="Delete")
{
ImageButton btn = e.Row.Cells[0].Controls[0] as ImageButton;
btn.removed = "if (confirm('Are you sure to delete this Package?') == false) return false;";
}
in html page set commandname property
<asp:Button ID="BtnRemove" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="Delete" CssClass="textfield" Width="76" Height="21" text="remove"/>
GOD HELP THOSE WHO HELP THEMSELF
-- modified at 7:45 Monday 12th March, 2007
|
|
|
|
|
If I understand well, your delete button is getting the focus automatically after clicking the edit button. So when you press enter its onclick function is get fired. You can do two things:
1. disable the delete button in updat mode.
2. catch the key press event (document.onkeypress), check the event.keyCode (13 is for enter key), set the flag (if(event.keyCode == 13) {enterPressed=true}else{enterPressed=false}), now in onclick of delete button check if enterpressed then return false, otherwise show the confirm message.
-----
|
|
|
|