|
Hi,
I'm on a project which is near completion. I have this page, a student page that shows daily attendance reports and allows the student to search based on some criteria. When the search button (The LinkButton) is clicked it redirects to the default page instead. This is not acceptable. I'm sure of my code and I know nothing is wrong with it. But for some reason the event is not firing and it redirects me to the default page instead. I've also tried to debug the code by doing a step through. Unfortunately that one did not work either. That was where I knew that the code for the linkbutton is not being fired. Please does anybody have a clue as to what the problem might be because, it's actually driving me nuts. Many thanks in advance.
|
|
|
|
|
kaycey90 wrote: I'm sure of my code and I know nothing is wrong with it.
Are you really really sure about that?
kaycey90 wrote: When the search button (The LinkButton) is clicked it redirects to the default page instead.
Well something fired, and called an event handler, or else it would of stayed on the same page.
Maybe you should put a
response.write("<span style=:color:black;">I fired</span>")
in the event function to see if it fired.
After that, hard code your response.redirect link, to see if the page changes
response.redirect("~/somepage.aspx")
It's always the code
|
|
|
|
|
how can set master page form and content page contain place holder in asp.net bez i execute my web application in IE but size set are different from i set size
|
|
|
|
|
|
dipen mistry wrote: in IE
You have to set the width in css style width: 100%. If you use a asp object like panel and set the width property to 100%, it will pick up as 100px.
Other than that, I have no clue why it's not the size you expect.
|
|
|
|
|
i try for create web setup(open-file-new-project-other project type-setup and deployment and select web setup project ) but i select project output from right click web application folder and select project output but not get any information in combo box of project so, plz guide me for create web setup in vs2008 step by step and indicate my problem
|
|
|
|
|
|
Hi all!
I am developing a web-based application mainly using the .NET stack, (ASP.net with C# in the code-behind, the AJAX toolkit...). What I need now is to provide some basic image edition functionalities. These are, to allow for basic zone definition directly over the image, and secondly to provide basic drag-and-drop (allowing to drag a previously defined item to a specific defined section on the image) capability.
¿Is there any valid solution based on the .Net/AJAX stack? ¿Any Javascript-based solution? ¿Must I use some RIA solution as Silverlight or Flash? ¿Must I explore HTML5 for a solution?
Thanks for your time.
|
|
|
|
|
I think html 5 supports drag and drop, and browsers that support html 5.
We were going to use uploadify with drag and drop, and found that only the html 5 version supported it.
You should do some research and double check your requirements
|
|
|
|
|
|
Thanks for your help to both!
|
|
|
|
|
i have published a website in VS 2010 and added it in ISS 5.1 using virtual directory now when i try to run it i get an error saying...
Failed to access IIS metabase
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
i tried changing the permissions but still get the same error
can someone pls help me out on this...
|
|
|
|
|
Please do not repost what is essentially the same query. If you have additional information then edit the original question and add it there.
|
|
|
|
|
In 5.1, the metabase stores the website parameters.
So you ran the setup you made, and the setup did not complete all the parameters, leaving you with a broken website.
So go back to the website installer you made and fix the code. And test it running in debug, or at least look at 5.1 IIS management, to see what your missing. Write down what your missing on a piece of paper, and make the adjustments to your installation program.
Use the process of elimination, until you narrow it down, and it works.
|
|
|
|
|
this question has been asked so many time and i have gone through almost all of those answers, but i still get the page not found error when i try to browse my published website...
this is what i have done
i have created a new website in VS 2010 then published and using ISS 5.1 i have created a virtual Directory for it, even after all this my pages have not been able to work...
am i missing something basic here, pls help me out...
|
|
|
|
|
|
thank you for the help, tried all of them dint work though
|
|
|
|
|
how to retrieve username and password from database while writing code for login page asp.net
|
|
|
|
|
|
It is a very regular stuff you just need to fire select query to the database table liek
Select * from [TableName] where [UserIdCol]=[UserId] and [PasswordCol]=[Password]
and get the output in the dataset or datatable
if you find any row in the dataset or datatable then allow the user to login and also you have the detail in the row as well
If your problem solve with the solution just coment and provide the rating
|
|
|
|
|
Hi All,
I am using below method to find the text in the word document and replace.
word.Selection.Find.Execute(ref findText,
ref matchCase, ref matchWholeWord,
ref matchWildCards, ref matchSoundsLike,
ref nmatchAllWordForms, ref forward,
ref wrap, ref format, ref replaceWithtext,
ref replace, ref matchkasdia,
ref matchDiacrities, ref matchAlefHamza,
ref matchcontrol);
However we had a new requirement like searching the text which starts with # and end with #
eg: #name# -- it will be in the word document
In c# we need to get the value "name"
How to achieve this.Please Advice.
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
I found my answer
http://stackoverflow.com/questions/2989194/select-range-by-string
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
I have an asp.net webform which has a div element named 'contents', and a textbox on it. The div is loaded with some html, which I've retrieved into a string in the codebehind file. Inside this html, I need to be able to mark up various bits of text so that when a user clicks them, it sends a message back to the server, which then populates the text box (which is on the same form) with some other data.
The problem I'm having is how best to communicat back to the server- so in the code below,
1) What should the line alert("You clicked " + x); be, so that it uses ajax to call back to the server, sending the parameter 'hello'
2) What method would be invoked on the server? Would it be Page_Load again?
3) After having called the server, what code would I need to popluate the text box without sending back the whole page again (i.e. still using ajax)? The problem is not retrieving the text on the server, let's just say I receive 'hello' as a parameter on the server, and want to send back 'goodbye' to the text box, again using ajax
So my source aspx file has this in it...
<div id="contents" runat="server"></div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
and in my codebehind file in form_load, I have..
System.IO.StreamReader rdr = System.IO.File.OpenText("c:\\myHtmlFile.html");
string s = rdr.ReadToEnd();
this.contents.InnerHtml = s;
the HTML I'm loading into the div element is this
<script type="text/javascript">
function myfunction(x)
{
alert("You clicked " + x);
}
</script>
<p onclick="myfunction('hello')">hello</p>
When the user clicks 'hello', I want TextBox1 to say 'goodbye'. Again, it's the server that has to handle things here, without reposting the webpage though..
Anyone have any ideas? The simpler the better please! thanks in advance!
|
|
|
|
|
|
Say for instance I'm having a table with columns:
Name
Sex
Age
Location
I need to bind this data to a gridview with Templatefield with dropdownlist as ItemTemplate for columns such as Name and Sex and with textbox as ItemTemplate, so that I would be capable of editing the records in the gridview.
Please help me with a sample source code.
Thanks and regards,
Ram
|
|
|
|