|
Are you accessing this on a client machine? do they have javascript enabled?
|
|
|
|
|
I am trying to execute on another server. Javascript enabled in that machine.
Thanks,
bhasker
|
|
|
|
|
I found the solution. this might be helpful for someone in future.....
In WebUIValidation.js, just add this to ValidatorCommonOnSubmit.
function ValidatorCommonOnSubmit()
{
var result = !Page_BlockSubmit;
Page_BlockSubmit = false;
event.returnValue = result;
return result;
}
Thanks,
Bhasker P
|
|
|
|
|
I whant to redirect the all values of listbox from one page to another
will u pls explain the thing alog with demo code in ASP.Net(vb)
pls this is urgent
|
|
|
|
|
If you want to go in session way, it's very simple. Store items collection in session object:
Session["MyKey"] = MyList.Items;
And on another page retrieve them from session:
ListItemCollection items = Session["MyKey"];
After that you can go thought collection of the items again and retrieve values...
|
|
|
|
|
I don't understand I want to create session of entirelistbox as well as items in repeaters so pls give the brif code for demonstration
|
|
|
|
|
Dear All,
My problem is that I've made an ActiveX component in C#. This component uses .NET Remoting to load an Excel File from the server. To view the excel file I've used AxSpreadSheet. Besides the AxSpreadSheet component the ActiveX control has two buttons as well.
When I try to load it on the webform it gets loaded successfully only if I remove the AxSpreadSheet from the ActiveX component. With it, the webform doesn't load it.
To load it on the WebForm I am using the following code in HTML
<object id="activex123" classid="ActiveXComponent.dll#NamespaceName.ClassName"
="" viewastext="">
|
|
|
|
|
I whant to redirect the all values of listbox from one page to another
will u pls explain the thing alog with demo code in ASP.Net(vb)
and also
i manage to add values of dropdownlist into listbox by using
ListBox1.Items.Add(DropDownList1.SelectedValue)
but it gives multiple values in listbox
i tried
Dim i As Integer
Dim occurance As Integer
occurance = 0
Response.Write(ListBox1.Items.Count)
If ListBox1.Items.Count > 0 Then
For i = 0 To ListBox1.Items.Count
If ListBox1.Items(i).Text = DropDownList1.SelectedValue Then
occurance = 1
End If
Next
End If
If occurance = 0 Then
ListBox1.Items.Add(DropDownList1.SelectedValue)
End If
but it is not working pls give the appropriate solution
and also i want to print the values of listbox.
using "response.write" how to do that
pls this is urgent and thanks in advance
|
|
|
|
|
Hi,
I am developing an application using ASP.Net 2.0; When I run the application from Visual Studio .Net, it works fine but when i run it through browser(IE) by writing "http://localhost/AB/Login.aspx".
Following Error occured:
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.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
I have also given the rights to the user by running aspnet_regiis –ga
but the problem still remains the same.
Could anyone guide me in resolving this issue.
Thanks
Regards
|
|
|
|
|
i write asp.net page with arabic languge
when i test it in my localhost it work very good
but when i upload it to hosting company
i dont see any arabic word
u can see this link
http://www.palsoq.com/soq//ti.aspx[^]
Palestine
|
|
|
|
|
this is the code
<%@ Page Language="C#"%>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Imaging" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.Security" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Web.UI.HtmlControls" %>
protected void Page_Load(object sender, EventArgs e)
{
//String path = "C:\\sites\\Single11\\abuzuhri\\webroot\\blocket\\newupload"; //"C:\\Documents and Settings\\Builder\\Desktop\\testim";
//c:\sites\Single11\abuzuhri
// String newPath = "C:\\sites\\Single11\\abuzuhri\\webroot\\blocket\\upload\\"; //"C:\\Documents and Settings\\Builder\\Desktop\\testim\\newPasth\\";
String path = Server.MapPath("newupload");
String newPath = Server.MapPath("upload")+"\\";
int sW = 72;
int sH = 63;
int bW = 640;
int bh = 480;
float factor1 = float.Parse("1.0");
float factor2 = float.Parse("1.0");
// Create The new directory with the name specified in the textbox
string[] images = Directory.GetFiles(path);// this array contain ALL files in the specified directory
int couter = 0; // this will count the number of images in the folder
for (int i = 0; i < images.Length; i++)
{
// select only the image format in the folder
string fileExtention = images[i].Substring(images[i].Length - 3, 3);
if (fileExtention == "bmp" || fileExtention == "jpg" || fileExtention == "JPG" || fileExtention == "BMP" || fileExtention == "gif" || fileExtention == "Gif")
{
couter++;
System.Drawing.Image currentImage = System.Drawing.Image.FromFile(images[i]);
int h = currentImage.Height;
int w = currentImage.Width;
if (w > h)
{
factor1 = sW / (float)w;
factor2 = bW / (float)w;
}
else
{
factor1 = sH / (float)h;
factor2 = bh / (float)h;
}
if (factor1 > 1)
factor1 = (float)1.0;
if (factor2 > 1)
factor2 = (float)1.0;
// calculate the new dimensions according to the resizing factor
int newH1 = (int)((double)h * factor1);
int newW1 = (int)((double)w * factor1);
int newH2 = (int)((double)h * factor2);
int newW2 = (int)((double)w * factor2);
// get the Image name from the path
string imageName = images[i].Substring(path.Length + 1, images[i].Length - path.Length - 5);
// create the new bitmap with the specified size
//Bitmap ss=new Bitmap(
Bitmap newBitmap1 = new Bitmap(currentImage, newW1, newH1);
Bitmap newBitmap2 = new Bitmap(currentImage, newW2, newH2);
// according to type of the file we will save the new image
if (fileExtention == "bmp" || fileExtention == "BMP")
{
newBitmap1.Save(newPath + "PalSoq.com" + imageName + ".bmp", ImageFormat.Bmp);
newBitmap2.Save(newPath + "PalSoq.comB" + imageName + ".bmp", ImageFormat.Bmp);
}
else if (fileExtention == "JPG" || fileExtention == "jpg")
{
newBitmap1.Save(newPath + "PalSoq.com" + imageName + ".jpg", ImageFormat.Jpeg);
newBitmap2.Save(newPath + "PalSoq.comB" + imageName + ".jpg", ImageFormat.Jpeg);
}
else if (fileExtention == "gif" || fileExtention == "GIF")
{
newBitmap1.Save(newPath + "PalSoq.com" + imageName + ".gif", ImageFormat.Gif);
newBitmap2.Save(newPath + "PalSoq.comB" + imageName + ".gif", ImageFormat.Gif);
}
newBitmap1.Dispose();
newBitmap2.Dispose();
currentImage.Dispose();
}
File.Delete(images[i]);
}
lbl1.Text = couter.ToString();
}
<title>سوق بيع و شراء المستعمل
|
| |
| |
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
="" id="NewFlash" width="210" height="28" align="">
<param name="movie" value="images/buttons11.swf" /> <param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#FFFFFF" />
<embed src="images/buttons11.swf" wmode="transparent" quality="high" bgcolor="#FFFFFF"
="" swliveconnect="FALSE" width="210" height="28" name="menu" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
|
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
="" id="OBJECT1" width="474" height="19" align="">
<param name="movie" value="images/menu.swf" /> <param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#FFFFFF" />
<embed src="images/menu.swf" wmode="transparent" quality="high" bgcolor="#FFFFFF"
="" swliveconnect="FALSE" width="474" height="19" name="menu" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
|
|
|
| |
| |
| تم تعديل
الصور بنجاح |
<asp:label id="lbl1" runat="server" text="Label"> صورة تم تعديلها
| |
| |
| |
| |
|
|
| |
|
جميع حقوق الطبع محفوظة 2006 © |
|
| | | |
|
|
Palestine
|
|
|
|
|
Hi,
I want to transfer string value from C# to javascript in asp.net.
For that, I am trying in two ways one is hidden variable and other is label tag but both are getting an error message.
Here the code:
Using hidden:
<script language = "C#" runat="server">
string img_name = "image1.jpg#image2.jpg#image3.jpg";
hide_imgname.value = img_name; // error: hide_imgname is not defined
</script>
<script language = "javascript">
string js_imgname = hide_imgname.value; // error: hide_imgname is not defined
</script>
.
.
.
<input type="hidden" name="hide_imgname"/>
Using label:
<script language = "C#" runat="server">
string img_name = "image1.jpg#image2.jpg#image3.jpg";
Message.Text = img_name; // Now here no error.
</script>
<script language = "javascript">
string js_imgname = Message.Text; // error: Message is not defined
</script>
.
.
.
.<asp:label id="Message" visible="false" runat="server"/>.
Please help me to sort out this problem.
Thanks
-- modified at 6:16 Monday 8th May, 2006
|
|
|
|
|
string js_imgname = Message.Text; // error: Message is not defined
change to :
string js_imgname = document.form1.Message.Text; // error: Message is not defined
form1=your form name
Thanks
Bhasker P
|
|
|
|
|
Sir,
I want develop a web application that uploads the image file and save to the virtual directory.Can you please send me any link.I am in urgent need of it.
Thanks
|
|
|
|
|
Dear All,
Now I am providing a solution to a web based(asp.net) application. Almost all the work completed. But the thing is that web application is working fine in my local machine. If i put that application into client's Developement server, the buttons(like submit, update) are not working on that server. If i click any button in that applcation on Dev, no event is fired. Nothing happened.
What is the solution for this? what are the steps should I do to wake up that buttons?
I need this ASAP........
Thanks,
Bhasker P
|
|
|
|
|
I have filled my dataset and binded with datagrid.
while viewing the second page, the database gets changed.
How to incorporate this change into the dataset?
Keep Learning,
juju
|
|
|
|
|
use caching of pages, make the caches expire after certain time or manually to get the desired features, basically its known as cache invalidation
sameer sood
|
|
|
|
|
i want to display the pictures in datalist
The problem is i don't wnat to store the fullpath of the file.
i am storing only filename so what should i write into the html view .
please help me
I am using the following code in html view
<%#DataBinder.Eval(container.DataItem , "photo_file")%>
photo_file is name of attribute in database for storing filename in database.
Thanks
-- modified at 4:56 Monday 8th May, 2006
|
|
|
|
|
Hello,
I have an asp.net web application with an insertion form. I want to automatically fill in the rest of the textbox as an item in the dropdownlist is selected.
My problem is that, when I select an item on the list, it fill the rest of the textbox but when I change my list selection, it still maintains the same value for all the textboxes. I know the problem. The problem is that, I have 2 keys on that database table and the possibilities in asp.net allows only 1 value key for this selection. So can any one help me with how I can use both keys on the TextValue property of the dropdownlist?
Thanks alot
Commickey
|
|
|
|
|
haveu turned on the auto postback for ur dropdownlist
sameer sood
|
|
|
|
|
Yes... the autopostback is set to TRUE
|
|
|
|
|
Hi
How i can do dinamic show of price and sum of this price of some product using java script pleas give me some example???
Best regards
thank you
|
|
|
|
|
I think that you have to provide some more information for someone to be able to help you. In what way should it be dynamic?
---
b { font-weight: normal; }
|
|
|
|
|
ok i need to get information from xml file or ...???.I knwo that why is to use javascript but my skills there are very poor.(((.For example i have product in dropdownlist and if i change index of this price shout be update too.
|
|
|
|
|
Hi,
why when the log out link is clicked, the page does not get redirected to the login page and it remains on the page where it was before?
May be this is to do with the fact that when the logout is clicked, there is a postback to one of the pages.
This is what I have at present:
<asp:loginstatus id="LoginStatus1" runat="server" cssclass="UserInfoLink" logoutaction="RedirectToLoginPage">
Thanks
-- modified at 4:49 Monday 8th May, 2006
|
|
|
|