|
It turns out we had our FooterTemplate innpropriately formatted. (Ok, it was missing altogether).
By adding the FooterTemplate and a tag, it works properly now.
Thanks for your responses.
|
|
|
|
|
Hi to all
system.io.directory.createdirectory(Physicalpath) which crate directory in our local system.
when i host my code into server ,i want to create a folder in my local system directory.
i don't want to create directory in the server, i want to create file in local system. please understand my question and give good response
This is haneef.............................................................
|
|
|
|
|
You have a basic problem of understanding. Your C#/VB.NET code only ever runs on the server. For this reason, and many others, it's not possible to create a folder on the client side.
If you mean you want to create folders on the server, you cannot ever create them above the application root, that's another issue of security.
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
I have an image which is 800px wide
however some users view this image on a screen which is 1024px wide
is there a way t stretch the image across the screen, to fit to screen?
thanks in advance
|
|
|
|
|
You just need to get your fingers under the edge and pull.
What kind of image? Is it one colour (cause if it isn't then stretching it will make it look rather odd)?
|
|
|
|
|
Set the img width to 100%.
|
|
|
|
|
Hi,
When we applied the class to skin object in .Net Nuke is not working in
Internet Explorer. Can anybody help me.
Thanks in advance
Bejoy
|
|
|
|
|
bejoy12345 wrote: When we applied the class to skin object in .Net Nuke is not working in
Internet Explorer
Something wrong in your Skin file or CssClass.
|
|
|
|
|
Hi All,
Can anyone tell me how to refresh the grid on the page, without the refreshing the whole page, but not by using the update panel of ajax or any third party tool, it should be by the xmlhttp object of javascript.
Mohammad Nasar
|
|
|
|
|
Hi,
you can try this...
link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hello Friens,
Can anyone tell me how to insert the value(s) in the database through DetailsView's ItemInsert command...............
|
|
|
|
|
Hi all
i was working on asp.net 2005.now for some project purpose i have shifted to Asp.net 2003.i am new to asp.net 2003....
how can we set focus to a particular textbox in asp.net 2003 ?
in asp.net 2005 we have an option like :-
TextBox1.focus()
|
|
|
|
|
Check you have,
Page.SetFocus(MY_CONTROL)
|
|
|
|
|
no setfocus for page......is there any namespaces to be added?
|
|
|
|
|
Hi
On body onload u can set focus to text box.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Hi,
You must have namespace System.Web.UI...
In page load event put this code.
Page.SetFocus(TextBox4);
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Might be .NET 1.1 does not supports Page.SetFocus().
Try using JavaScript to set the focus on page onload event.
|
|
|
|
|
function onfocuscontrol()
{
document.getElementById('<%=textbox4.ClientID%>').focus();
}
This is haneef.............................................................
|
|
|
|
|
hello... i have made windows app before and now am making my first web app in asp.net and cant figure out why my database connection won't open for the executenonquery method whereas it works fine with executereader method... i have tried debuggin it and the only error that i find is that in the connection object ... there is an exception of invalid server version... (wat is it or why is it.. i have no idea)...
the code for the execute query method is
public static int ExecuteNonQueryCommand(string sqlProcName, params IDataParameter[] procParameters)
{
SqlCommand command = null;
try
{
command = new SqlCommand();
command.CommandType = CommandType.StoredProcedure;
command.CommandText = sqlProcName;
if (procParameters != null)
for (int index = 0; index < procParameters.Length; index++)
command.Parameters.Add(procParameters[index]);
Connection.Open(); // a getter property that returns //connection made from the web.config connectionstring property
//the connection doesnt' open...some error with the server version
command.Connection = Connection;
return command.ExecuteNonQuery();
}
catch
{ return 0; }
finally {
if (command != null)
command.Dispose();
procParameters = null;
Connection.Close(); }
I have made a property that returns a connection as
return new sqlConnection(configurationmanager....)) /// if this is a bad approach .. plz lemme know why it is so and what should i do.. .
i call this method by passing the procedure name and parameters..
Plz help
haseeb
|
|
|
|
|
Every time you call the property, it will return a new SqlConnection object, so your call to Open() here is on one connection object, but the object you pass to the command is a different one.
|
|
|
|
|
thanx...
That was really stupid of me .. right?
i dont know how i missed on this point... Thankyou very much...
haseeb
|
|
|
|
|
SqlConnection Connection= new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["yourconnection"].ToString());
Connection.open();
you forgot to add this line, even though u declare connection string in web.config u need to call the connection form web.config System.Configuration.ConfigurationManager.AppSettings["yourconnection"].ToString() by using this line;
yourconnection replace with your connection string name
Regards,
Shaik Haneef
for more doubts conttact :
sk.haneef@gmail.com
This is haneef.............................................................
|
|
|
|
|
Hi. i have created a web site on localhost. database is also on the localhost. now i want create a setup that
1. create database on the localhost server.
2. create website in iis with precompiled code.
i am using visual studio 2005.
please help me in this regards.
|
|
|
|
|
Hi I have 3 fields based on i like to show chart diagram in my site,
I dont know2 how to create chart based on 3 fields,
Those fields i am getting from my table:
My table format is:
Source |-| Destination|-| Distance
Chennai |-| Delhi |-| 2000
Chennai |-| Assam |-| 6000
Assam |-| Chennai |-| 5500
Gaziabad|-| Mundka |-| 7000
Like this i have datas
The Source Field have to come X Axis
Destination Field have to come on Y Axis
Based on the distance the Size have to be show,
How to do that?,
Plz any one guide me
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
I want to know whether it's possible in asp.net to move list items of a Listbox within the same Listbox with mouse without using javascript and Ajax....For eg if there are 6 list items in the Listbox.I want to move item at 6th index to 2nd or 3rd index but with mouse only.....Please tell me whether it's possible or not..Thank you
|
|
|
|