|
make sure that u give reference proper and one more thing is that u have to register in top of the page
where u want to use ajax control.
i.e.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
Regards
Keyur Satyadev
Always be happey, Live Life Long
|
|
|
|
|
Hi,
I added the register line. now I can see the ajax controls in the source of the page ONLY.
It means I see auto complete of them in the source mode, but the toolbox tab is still empty
It may help: I tried now to build my solution(I used some ajax controls) and I got the following error:
Assembly 'AjaxControlToolkit, Version=3.0.30512.20315, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
modified on Saturday, August 1, 2009 9:25 AM
|
|
|
|
|
Hi. I have one record in database. I have to display it vertically in the form. How can I do that? Which is the control i have to use? Although i can do this with datalist. But i am not able to give the border between every cell. Please help me.
|
|
|
|
|
give the border dyanamically from back end (i.e. CS file) using for loop with data list.
Regards
Keyur Satyadev
|
|
|
|
|
hiii
m using a literal control.when i use this literal control in coding.it gives error tht it does not exist in current contest...
wat is prob.plz reply...
|
|
|
|
|
Have u set the runat property?
|
|
|
|
|
please put your code here? so that we can get exact problem.
Regards
Keyur Satyadev
|
|
|
|
|
If you don't understand that we can't help based on this, then you probably should not be writing code. You need to tell us the EXACT error and post some code. Especially the line that gives you the error, and the code to show us the context, and the aspx code with the control in it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how can we use debug.assert in web projects . I don t knowits value and how I can take advantage of it.
Any specific example pls
Thanks
|
|
|
|
|
Hi all,
Im using java script for alert message. Im saving a record into Db. A flag will be set for existance of the record. If it returns "already exist" the script would be invoked. But the compiler moves into the script but it wont raise any event.But i checked a script on page load its works fine. I dont know why the script is not raise. Please help me..
flag = adminDAL.InsertAdminEvnt(adminBO);
if (flag == "Inserted")
{
Response.Redirect("Events.aspx");
}
else
{
Page.RegisterStartupScript("Error", "<script>alert('a')</script>");
}
|
|
|
|
|
Just put the javascript code in a div with visibility false.
Now depending on the condition make the visibility of that particular div true.
Please mark it as answer if it helps.
|
|
|
|
|
Hi All,
Can anyone tell me the basic use of partial view in asp.net MVC
thanx.
|
|
|
|
|
Hi guys,
In my string i have value like "picture.jpeg"...,
now this string i want to assign in to fileupload control after it want to save in to my server url...,
means using fileupload control i assign the file.., but not uploading the file in that page itself...,
just passing the filename in to another page there i am uploading the file...,
how to achive this...,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
You can't change the text in the file upload control, and you cannot pass that text to another form, or get another form to read the file.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
set your file name in session and when u click on upload button in next page use
session value(i.e. filename).
Regards
Keyur Satyadev
|
|
|
|
|
You can't change the text in the file upload control, and you cannot pass that text to another form, or get another form to read the file.
But you can send the file as Stream. Here is an example. I used two page test-file-upload1.aspx ( from where user chhose the file to upload) and test-file-upload2.aspx( where the actual upload happens).
test-file-upload.aspx.cs:
-------------------------
protected void Button1_Click(object sender, EventArgs e)
{
Stream s = FileUpload1.FileContent;
Session["test"] = s;
Response.Redirect("test-file-upload2.aspx");
}
test-file-upload.aspx.cs:
-------------------------
string strPhysicalPath = "";
protected void Page_Load(object sender, EventArgs e)
{
strPhysicalPath = Server.MapPath("~/test-image/");
Stream fsInput = (Stream)(Session["test"]);
byte[] bufferInput = new byte[fsInput.Length];
fsInput.Read(bufferInput, 0, bufferInput.Length);
fsInput.Close();
//------------You can change the extension as original by sending the original extension in session
FileStream fsOutput = File.Create(strPhysicalPath + "test.jpg");
fsOutput.Write(bufferInput, 0, bufferInput.Length);
fsOutput.Close();
fsOutput.Dispose();
Response.Write("OK ");
}
I hope it solves your problem.
Please mark it as answer if helps.
|
|
|
|
|
HI all,
Can any one tell me the regular expression for Email address which accepts at least one alphabet.Please help me..
|
|
|
|
|
Hi All,
Can anybody tell me,how to read images from a html file and transfer it into sum other location.
Waiting for quick response.
Regards
Pulak
|
|
|
|
|
What does this have to do with ASP.NET ? Where are the images coming from ? Where do you want to move them to ? How is this a web development question ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
AS in my last question the tabing is working great for the first row.
the last object in the row is an event button, that causes the fields to be added to a total field on the row.
The problem is when it comes back from the Command Event it is starting the cursor at the top of the page and not at the next row in the datalist.
Is there a way to solve the cursor positioning problem?
If so, could you supply a suggestion..
Thanks...
|
|
|
|
|
for this u have to set focus property of the control in second row....
|
|
|
|
|
|
Write javascript that gets a reference to the row you want, and calls focus on it. This involves making sure your rows have id attributes that you can use to select them with document.getElementById
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
This sounds like a really cool way to accomplish this except I don't have a clue about how to create unique id attributes or each row. I acutally have a sample of seting the cursor on an object in Javascript is that is not a problem. the problem now is "How to create these ID's for each row?"
Code sample please...
thanks...
|
|
|
|
|
I am actually not sure, if you're using a datagrid or gridview. I've done it in the past using a repeater, which gave me complete freedom over the HTML that was generated. You may be able to get the actual row tag in an itemdatabound event and modify it from there, that seems the most likely way to do it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|