|
hi anybody have the solution how to check the other sesion or how to check which one is online using session.
|
|
|
|
|
VISUAL STUDIO 2005
I HAD ADDED THE XML FILE & IMAGES INTO THE PROJECT BUT WHEN THE IMAGES WERE CHANGING ONLY WHEN I WAS CLICKING REFRESH BUTTON... WHAT CAN I DO FOR CHANGING IMAGES FREQUENTLY.. PLS HELP ME
|
|
|
|
|
Thats how that control works. You need to roll your own and use AJAX
don't shout.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Use Ajax controls, put your adrotator controls in those Ajax containers and remainig is same. Probably you can get what you want.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
i upload the default.aspx file along with web.config and default.cs files after uploading ......default.aspx page show the below error
Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
Runtime Error <br />
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. <br />
<br />
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<br />
<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customErrors mode="Off"/><br />
</system.web><br />
</configuration><br />
<br />
<br />
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<br />
<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/><br />
</system.web><br />
</configuration><br />
-----------------------------------
how i launch the .aspx files on my webpage without any error
|
|
|
|
|
Turn CustomErrors off. You will get the error message.
|
|
|
|
|
hi,
but.....where and how can i turn CustomErrors off.....
may you explain me........THANKS
|
|
|
|
|
The error message you got is very friendly. Don't you able to understand from that ?
|
|
|
|
|
yes........i don't know that what happened ....therefore i
ask....please give some hints ...so that i able to understand the problem
|
|
|
|
|
zeeShan anSari wrote: please give some hints ...so that i able to understand the problem
Strange ! This <customErrors> tag should then have its "mode" attribute set to "Off".. Are you able to see the above in your error message ?
|
|
|
|
|
You may try running the application form local host. This will give you the exact error and the stach trace.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hello to all..............
actually i want to show data in datalist in table...
i have not predefined table row in Datalist... its also create in runtime. and you can check
http://www.magicbricks.com/property/faces/jsp/indexc.jsp[^][^] in featured project...
In this article they show City name on runtime and then city's Content.it's not predefined how much City can have and how much content of city can add.
and i havenot predefined city. and city's content.
so how can i display this type of data in datalist at runtime..
|
|
|
|
|
|
The fact that so many people ask this question here is the reason I wrote this[^].
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hey People how are you?
I've got an ASP.NET (Built in VB.NET) web system and I need to talk to a program called IBM MQ. IBM MQ is sort of like BizTalk but I've been unable to find anyone that has been able to find out how to talk to MQ directly. To talk to MQ in general you can do it through the DOS Command Prompt by typing in commands and that works really well.
My problem is that I don't know how to get my VB.NET web system to talk to Command Prompt and pass it arguments that I'll use to talk to MQ.
If anyone has any code for opening and passing arguments into a command prompt that would be very much appreciated.
Thank you very much in advance.
Michael
|
|
|
|
|
Michael101 wrote: My problem is that I don't know how to get my VB.NET web system to talk to Command Prompt and pass it arguments that I'll use to talk to MQ.
Write a .bat file which contains all your command to be executed. Use Process.Start() to execute this .bat file. But doing this through ASP.NET doesn't make any sense, also bat file will be executing on server, not client machine.
|
|
|
|
|
Hi, i'm trying to save preset images of type jpeg in a SQL table. My code below
will be executed within a method every time i add a picture in the table.
The table is called ITEM and the column with the type image is called item_picture.
And the application root is ~/images/ where i have stored all the images.
try
{
byte[] image = new byte[4];
string qry = "insert into ITEM(item_picture) values(@OriginalPath)";
command = new SqlCommand(qry,connection);
command.Parameters.Add(new SqlParameter("@OriginalPath","~/images/app1.jpg"));
}
finally
{
connection.Open();
command.ExecuteNonQuery();
connection.Close();
}
I get the following error:
Operand type clash: nvarchar is incompatible with image
How can i get this right?
Thanks!
|
|
|
|
|
Your SQL parameter should be of type SqlDbType.Image
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
yes but, where should i include the path of the image?
|
|
|
|
|
If you're uploading the image to the database, why do you need the path?
only two letters away from being an asset
|
|
|
|
|
i need the images contained in a relative folder to be all uploaded
in the database to be used later in my application. I will not use
an upload tool to be used manually from the user so there has to be
a path!
|
|
|
|
|
Ok, so you didn't understand. If the images are in your database and your application will use those images, you don't need a path. The path is irrelevant, the image is stored in the database. If, however, you need to the image to be at the path, then you don't need to store the image in the database, only the path.
only two letters away from being an asset
|
|
|
|
|
The images are not in the database yet. They are stored in the path mentioned, so far,
and i'm trying to figure out a way to store them in the database. The code i posted
in my first post does not work and i couldn't debug it. I'm looking for the appropriate
corrections to make on my code so that my application will store the images in the database
or write new code from scratch if there is a better way to do this.
Thanks!
|
|
|
|
|
|
Hi!
I have used Editable Gridview control in which I have put Add category button,On the above of control
The first column of grid view is primary key ProductId and sec. is productname. On the Product name I have replace Hyperlink in place of bound contol. so on the click i can navigate on some other page the problem is that when I click on add button the Hyperlink can not change in the bound control so i cant got the Textbox and so its give the following error.
"Unable to cast object of type 'System.Web.UI.WebControls.HyperLink' to type 'System.Web.UI.WebControls.TextBox'."
<br />
<br />
if (((LinkButton)GridView1.Rows[0].Cells[2].Controls[0]).Text == "Insert")<br />
{<br />
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["MYConnectionString"].ConnectionString);<br />
SqlCommand cmd = new SqlCommand();<br />
cmd.CommandText = "INSERT INTO Products(cat_name) VALUES(@cat_name)";<br />
cmd.Parameters.Add("@cat_name", SqlDbType.VarChar).Value = ((TextBox)GridView1.Rows[0].Cells[1].Controls[0]).Text;<br />
cmd.Connection = con;<br />
con.Open();<br />
cmd.ExecuteNonQuery();<br />
con.Close();<br />
}<br />
modified on Tuesday, March 18, 2008 4:13 PM
|
|
|
|