|
the problem is I don't know what I have to pass as second parameter.does anyone know?
|
|
|
|
|
Can someone tell me the difference between <%: and <%#. I'm guessing this is a new feature in .NET 4 (or MVC2?) but I can't google it because of the special characters.
I'm aware this is probably a very simple question but I can't work out how to search for the answer myself. 
|
|
|
|
|
|
How to refresh the grid using jquery,
my jquery calling the server function on clicking the button.
on this event i want to refresh my grid also.
how can i refresh grid?
|
|
|
|
|
You Need to give more information.
From your question, what i think is : you can call your grid binding function in that server function which you are calling from your jquery.
|
|
|
|
|
Why do you want to use JQuery? It is much easier to just but the grid and the button in an UpdatePanel and be done with it.
|
|
|
|
|
T M Gray wrote: It is much easier to just but the grid and the button in an UpdatePanel and be done with it.
I am also support UpdatePanel Method. you can update Update Panel via Javascript
__doPostBack('UpdatePanelID','');
|
|
|
|
|
Hi
I have a website application, which runs on an Intranet, and I have a problem. My problem is that one of the pages occasionally loads very slowly. Obviously when IIS is first used all pages take some time to load, and then loads quickly there are, but occasionally it can take a while to load even though IIS is up and running. Other pages in the application do not suffer this problem.
Does anyone know why this is could be happening? There is nothing complicated going on in the page. Is there any solution I could use, such as pre-caching the page on IIS so it can be loaded quickly to the client?
Any suggestions would be helpful!
|
|
|
|
|
Find the performance bottleneck. Just doing random IIS config changes won't help if IIS isn't the problem. Since you give no indication of what the page does there is no way to guess what might be the likely culprit. You day "nothing complicated", but if it is just this one page then it is obviously more complicated than you think. And even if it were more than one page it is more complicated than you think. That is one of the standards the internet is based on.
Just as HTTP is defined by RFC1945 and RFC2616 the lesser known but just as valid RFC 1925[^], particularly section 8, applies.
|
|
|
|
|
Hi,
Have you implemented applicable website performance improvement steps?. Firstly check them as they are fundamentals.
|
|
|
|
|
i try putting certain server controls (i.e. gridview) or even an html table inside this ajax control toolkit control but i'm having an issue with the contained controls not showing inside the cpe. anyone been this scenario? how did you resolve?
gratche
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
The extender shouldn't contain anything. The controls should go in the panel (or other control) that you put in the TargetControlID property of the extender.
|
|
|
|
|
Hi experts,
I am retriving few values which is stored in database like,
-----------------------------------------------
Hi,
This is the format of Username and Password
UserName : xyz
Password : ***
Regards,
------------------------------------------------
but when email is sent it comes as,
------------------------------------------------
Hi,This is the format of Username and Password UserName : xyzPassword : ***
Regards,
------------------------------------------------
how to send mail like the original format. i can't include or because this content is changable. i have also tried "mailMsg.BodyFormat = MailFormat.Html; "
Please guide me......
|
|
|
|
|
have you tried HTMLEncode on the string you get back?
|
|
|
|
|
string message ="";
message=""+
"" +
"UserName: | your username text | Password: | your password | ";
Try like this .............
|
|
|
|
|
actually i too have formatted but the values are editable by the end user. They can give any type of words.......
|
|
|
|
|
If you are using HTMLFormat you need to supply HTML format, you know, like in a webpage.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
thanks for your reply, actually i too have formatted but the values are editable by the end user. They can give any type of words.......
|
|
|
|
|
Then you'll need to come up with a parsing engine to format the input appropriately.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
can you just explain in detail
|
|
|
|
|
If you want me to do the work, then contact me and we'll discuss rates
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
string msgBody = string.Format(@"Hi,
This is the format of Username and Password
UserName : {0}
Password : {1}
",yourUserNameVariable, yourPasswordVariable);
If you are saying the users can change the entire message (probably a bad idea) then you need to come up with some formatting engine somewhat like these forums where you can insert certain codes to get smileys or other formatting things.
|
|
|
|
|
padmanabhan N wrote: i have also tried "mailMsg.BodyFormat = MailFormat.Html; "
You may have tried this, but did you include some HTML tags in your code as well? Because just saying it should be HTML doesn't make it HTML in a flash, you'll need to code your text in HTML. IE: Let's say you username variable is a string _username, and you password is a string _password. Then try the following (in asp.net/c#):
On top of your page:
using System.Net.Mail
then in your SendMail method:
private void SendMail(string _username, string _password)
{
string MailBody = "Hi,<br /><br />This is the format of Username and Password<br /><br />UserName : " + _username + "<br />";
MailBody += "Password : " + _password + "<br /><br />Regards,";
MailMessage MMsg = new MailMessage();
MMsg.From = new MailAddress("youmailadress@youmailprovider.com");
MMsg.To.Add(new MailAddress("therecievingadress@therecievingdomain.com"));
MMsg.Subject = "Your subject";
MMsg.IsBodyHtml = true;
MMsg.Body = MailBody;
SmtpClient SMTPSender = new SmtpClient();
SMTPSender.Host = "your mailhost";
SMTPSender.Send(MMsg);
}
Hope this helps.
"My personality is not represented by my hometown."
|
|
|
|
|
Problem Statement:
Connection with server takes a long time and provides "No message either <big>it is timeout or someother thing other than time out</big>". The state of the mouse during that time will be in <big>"cursor: wait (an hourglass)" state</big>.
This problem is being faced occationationly, but now a days it become frequent.
Description:
The website is working properly as per the design flow.
We are having 3 types of users - one is for data entering people, one for maintaining database, one is endusers.
An enduser who is the customer of the website, should login with the main page of the website.
The enduser who is either the people entering data or the people maintaining database, should have to give login through the different page exists in the website. These two users comes under the catagory "admin".
According with the user as data maintaining or the user for entering data who have logged in, the co-ordinate page get opened for viewing & editing the customer details of the website for the user of data maintaining and the page through which the datas uploaded in the server, opened when the user is the people of entering data.
The problem facing is that when the user of the catagory "admin" logged-in, the coordinate pages is not getting opened according with the type of user logged-in. There is no error message occurs. After entering the username, password and when submit button is clicked, the mouse will be in "cursor: wait (an hourglass)" state until we closes the window forcibly.
Meantime, during the other period of time other than the period of problem, it is working fine with the same code. Now-a-days the problem is occuring frequent.
Also during this problem, only the users under the "admin" catagory faces this problem. The endusers who are the customers of the website, are able to login and there is no problem for them since they are log-in with different page.
What will be the problem? If it is with code, then it should stop working permenently. Now it is working partially which makes me get confused. Kindly help me regard this.
M.Sworna Vidhya
|
|
|
|
|
I don't think "coordinate" is the right word. Perhaps you meant "appropriate".
Does your app do any logging? Does the login process use the exact same code for all user types? Does this happen on multiple computers with multiple browsers? Have you been checking performance logs for the server and see if there are any memory, CPU or I/O bottlenecks during the problem times? What about your database? Have you been profiling and looking for deadlocks?
There are lots of problems with code that can show up only some of the time.
|
|
|
|