|
thanks to all.
i got the solution for this problem.
protected void grdCountry_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
try
{
grdCountry.PageIndex = e.NewPageIndex;
LoadCountryGrid();
}
catch (Exception ex)
{
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "HOSPMS", "alert('" + ex.Message + "!')", true);
}
}
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
hi,
using AjaxToolkit, AutoCompleteExtender in my project its working fine in normal case. The webmethod is taking two arguments string prefixtext and int count.
Ex. getcountrylist(string prefixText,int count)
I need to send another value to this method. i tried through session it's not working any other way for this. very urgent help to me.
Thanks in advance!
Have A Nice Day!
Murali.M
Blog
modified 24-Mar-12 9:45am.
|
|
|
|
|
hi,
if u need to send another string. use contextkey.
Thanks
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
I am developing a website in asp.net for university in which students can see their profile,attendance percentage and offered courses of current semester. Can anyone tell me the code of offered courses to particular student.
|
|
|
|
|
Try something and post problems you run into here, someone will try and help you.
|
|
|
|
|
Hi Shazia Nawaz,
What you want to do. Please explain in detail. I have experience in developing application for an university. So tell me what you want to achieve. What i have understand is, you need to maintain the advised course to a student. Am i correct. If not put some with detail.
|
|
|
|
|
Actually I want to develop a website for students of my university.Through this website students could easily view their profile, attendance percentage, gpa/cgpa and list of all those courses for which they are enrolled. In this website students could chat, discuss course material and upload course material. This website could also contain a page for teachers where teachers could upload lectures,quizzes and assignments etc.This is the detail of project. Kindly help me in this regard.
I would be very thankful to you for your gratitude
|
|
|
|
|
Write down your requirements. Break them down into screens and design the navigation using HTML. Show it to your potential users and get feedback from them. This will allow you to understand what you require to do. So far, no coding is involved.
Once this is done, then take ONE screen to develop. Attempt to do it on your own, use Google. If you get stuck in something technical, find out the appropriate forum and post the technical question there.
Shreekar
|
|
|
|
|
Hi,
I’ve got a problem that I have 1 master page and 2 content page a master page contain a textbox for search and in first content page contain a login control and in second content page contain a change password control when in firefox browser I select remember password in login page and go to the second page the password is clearly type on the textbox(master page) and the focus of curser is default on this text box so how can I remove this focus and resolve my problem?
Thanks
Listen and learn,remain silent and be safe
|
|
|
|
|
Me and you both brother!
---------------------------------
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[ ^]
English League Tables - Live
|
|
|
|
|
|
I think I responded to the wrong message, apologies!
---------------------------------
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[ ^]
English League Tables - Live
|
|
|
|
|
Unable to understand
|
|
|
|
|
It's a bit difficult to explain my problem,I have a text box in master page, in one of my content page I use login control, in firefox if I chose remember me and login in another of my content page I use change password control, then if I load this page in to change password, the password was written in text box of master page Why?please help me it's very necessary
Thanks.
|
|
|
|
|
I have a webpage Here[^].
It is just a holding page until I sort out a proper design.
However...
Clicking on the links merely gives an error.
Within the FTP site I have a sub directory called httpdocs, wherein I dump my stuff.
My site consists of several directories and several pages.
In the Shared folder I have my Layout.cshtml page that looks like this:
<!DOCTYPE html>
<html>
<head>
<link href="Shared/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<ul id="menu">
<li><a href="default.cshtml">Home</a></li>
<li><a href="About.cshtml">About Us</a></li>
<li><a href="Gallery.cshtml">Gallery</a></li>
<li><a href="ForSale.cshtml">For Sale</a></li>
<li><a href="Contact.html">Contact</a></li>
</ul>
<div width=1200px align="center" bgcolor="#5C7E99"> <img src="/Images/bellcrossheaderimage.jpg"/> </div>
<div id="main" bgcolor="#000066">
<div class="mainbody">
@RenderBody()
<div class="copyright"><p>© 2012 Bellcross Homes.</p></div>
</div>
</div>
</body>
</html>
In the main part I have my default.cshtml page that looks like this:
@{Layout="Shared/Layout.cshtml";}
<h1>Welcome to Bellcross Homes Website</h1>
<h2>Web Site Main Ingredients</h2>
<p>A Home Page (Default.cshtml)</p>
<p>A Layout File (Layout.cshtml)</p>
<p>A Style Sheet (Site.css)</p>
As you see, on load it goes to the defau;t page and loads it, pulling the layout from a secondary page.
This works fine.
However, the links don't work.
If you go to the actual web page online and look at the source code it appears different, as it has been interperated.
(Incidentally, there is a rather amusing message when you look at the source code of the error page).
Are my paths correct?
Am I dim?
Have I missed the bleedin' obvious?
---------------------------------
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[ ^]
English League Tables - Live
|
|
|
|
|
Dalek Dave wrote: Incidentally, there is a rather amusing message when you look at the source code of the error page
Nice trick to get us to look
I'm not clear on your problem though. Is it the Not Found errors or the the Home and About not being displayed with the layout as in the default page?
Failure is not an option; it's the default selection.
|
|
|
|
|
Apologies.
Not a trick.
There was a message and the view source came up with a whole load of padding explaining that short error message were not shown and that padding was needed.
It went on for 20 odd lines!
However, the problem has no changed.
I can navigate, finally.
However the Layout.cshtml is not rendering the required result.
So now you see the content, but only as bare bones except for a little html (font size).
It should hold the same as when you first visit the site ie blue with pics etc.
I am not sure what is going wrong/
---------------------------------
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[ ^]
English League Tables - Live
|
|
|
|
|
Although having the layouts in a shared folder they should be picked up, but since the pages are in a sub-folder there may be an issue. Try moving one of the pages to the same location as your default and try. Unfortunately I'm not as familiar with Razor as with MVC.
Failure is not an option; it's the default selection.
|
|
|
|
|
Thanks Mark, I shall give it a go.
(Although not now, I am out of here for the weekend!)
---------------------------------
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[ ^]
English League Tables - Live
|
|
|
|
|
I am developing a project in ASP.Net and i want add a button by which a message can be played. i am using c# how is this done please tell me?????
|
|
|
|
|
Start here[^].
"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
|
|
|
|
|
Use These Methods
public static void CreateMessageAlert(System.Web.UI.Page senderpage, string alertMsg)
{
string alertKey = "alertKey";
string strScript;
strScript = "<script language=JavaScript>alert('" + alertMsg + "')</script>";
if (!senderpage.IsStartupScriptRegistered(alertKey))
{
senderpage.RegisterStartupScript(alertKey, strScript);
}
}
public static void AlertOnAjaxPage(System.Web.UI.Page SenderPageName, string PanelName, string Message)
{
System.Web.UI.UpdatePanel u = (UpdatePanel)((ContentPlaceHolder)((MasterPage)SenderPageName.Master).FindControl("ContentPlaceHolder1")).FindControl(PanelName);
System.Web.UI.ScriptManager.RegisterClientScriptBlock(u, u.GetType(), "Alert", "alert('" + Message + "') ", true);
}
|
|
|
|
|
I want to store session value in my own database how can store whenever user click on seach button the value will be store in database can u tell me anybody its urgent
|
|
|
|
|
What session value? Any session value? Just write code to stores Session["whatever"] into the db.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
how to create a full mail application in asp.net (vb)
|
|
|
|