|
regimol wrote: how can i do that?
Reloading value ?
you need to install Microsoft AJAX development kit and search for some tutorials on how to program with them. Or you can do this by writing XMLHttpRequest using javascript.
|
|
|
|
|
However, you can also reload the entire page by :
Response.Redirect("yourpage.aspx");
however doing this makes all controls lose their values...
|
|
|
|
|
actually i want make a message board like this...for that only i need to popup pr popout the particular question that i click..
|
|
|
|
|
regimol wrote: actually i want make a message board like this...for that only i need to popup pr popout the particular question that i click..
Then why don't you tell this before.. This can be done using a simple javascript. Goto view source of this page and check
|
|
|
|
|
Hi Everybody,
So I'm using LoginView on my web application and I have little problem with Permissions and Groups. I have only 2 Groups and want to load different menus (Standard Menu Control) for different roles, but because i have LoginView on almost whole master page I cant do this using <rolegroups> and <asp:rolegroup roles="Administrator"> tags.
Is There any othet solution? Please Help to solve this problem.
Thnaks,
Toto
|
|
|
|
|
Or is ther any way to get User's Group/Role?
|
|
|
|
|
hi all,
I have created an Application level connection string variable in my Global.asax
Like:
Application("glbConnection") = con.getDBConnection()
I accessed that variable in My Business class like,
con As IDbConnection = Application("glbConnection")
But i Got the Error as ,
System.NullReferenceException
{"Object reference not set to an instance of an object."}
Message : "Object reference not set to an instance of an object."
I need to access my application variable in my Class file.
can anyone help me out to solve this problem
Thanks in advance.
Regards
senthilraj K
|
|
|
|
|
|
To solve your current problem : I guess con.getDBConnection() returns a null value
To solve your next problem, I don't think you want to connect to your database throughout your website this way.
You say you have a business class. The business class should be in a separate project (your business project) which contains all db functionality and stuff and returns the required information to your user interface (in this case a website). In theory, you're website shouldn't be able to 'know' your connection string.
|
|
|
|
|
i am getting the connection string in my code behind file when i use the appliaction variable (webform1.aspx.vb)
When i try this with my class i am getting the error.
Do i need to import any namespace in my class file to access this application variable in my class??
thanks,
Senthilraj K
|
|
|
|
|
|
hi navaneeth,
i tried with your option.but, when i try to type the Context.Application i am getting the error as 'Context' is not accessible.
I have imported the 'System.Web.HttpContext' in my class.but still getting the error....
do you have any sample code to do this????
thanks,
Senthilraj K
|
|
|
|
|
Erhm, in this case, you can better create a function which connects to the database for you in your businessfile
public void ConnectDb(object ConnectionString)<br />
{<br />
if (ConnectionString == null)<br />
return;<br />
<br />
con = new con(ConnectionString.ToString());<br />
<br />
}<br />
and call that function from your webpage
ConnectDb(Application["yourvariable"]);
|
|
|
|
|
For security reasons you should define your connection strings in web.Config, and access then using the ConfigurationManager.ConnectionStrings[^] properties
Cheers,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
But using web.config for only a connectionstring isn't really the neat way, because handling a web.config is relatively pretty time consuming...
|
|
|
|
|
Hi friends,
I have one query, in my project i will show the details about particular product when hover the mouse the relavent product image. All the details come from DB so it will do only in Ajax. so anybody have sample code for that one? If anybody please give nad help me. Thanks in advance....
Praveen Kumar.R
|
|
|
|
|
Do you mean using AJAX in ASP.NET, or using the ASP.NET AJAX framework ? How many images are there, that you need to make an AJAX call ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I mean using AJAX in ASP.NET. Nearly 10 images are there.
Do u have any sample code?
Praveen Kumar.R
|
|
|
|
|
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
on code above i get an error like that but not often, why?
Socheat
|
|
|
|
|
Because you failed to provide a value for one or more parameters ? This is the ASP.NET forum, classic ASP belongs in the web dev forum.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a requirement in my web application where in I have to display an image on ASP button. I cannot use an image button. Is it possible to diaplay an image on asp button?
------------------------------
If u think u can, u can.
If u think u can't, u r right.
|
|
|
|
|
hi,
you can use image tag and give the option to handle the clicked event.
That will help u.
All The Best
Sathesh Pandian
|
|
|
|
|
Thanks for the reply sathesh. But in my application, we have customized buttons. We must use those buttons. any alternative?
------------------------------
If u think u can, u can.
If u think u can't, u r right.
|
|
|
|
|
mareers wrote: But in my application, we have customized buttons. We must use those buttons
Then what is the use of asking question without placing sample code of that customized button.
|
|
|
|
|
Let me get this. Your asking us how to use some custom controls we don't have access to, and we cannot see the code for?!
That's smart.
Stop for a moment and think about it.
Cheers,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|