|
Hello All,
I have a query,
In my page i have 2 usercontrols, i want to pass values from one usercontrol to another usercontrol. please help me how can i do it?
Thanks
Praveen Kumar.R
|
|
|
|
|
userControl1.MyProperty = userControl2.MyProperty
Or something like this...
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Paul,
Sorry i cant get you please explain some brief..
Praveen Kumar.R
|
|
|
|
|
praveenkumar_mca wrote: Sorry i cant get you please explain some brief..
He is telling you to create public properties in the user controls and get/set it.
|
|
|
|
|
Yes i created public property in usercontrol. i want to take that value in another user control not in page.
Praveen Kumar.R
|
|
|
|
|
You probably need to make use of sessions.
|
|
|
|
|
i did the publishing of website and compiling of website at dos prompt ,
is there any effeciency difference between them ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Between what? Publishing and compiling are two totally different things.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
publishing and compiling both create a web project , that don't have the
code files.
My question was based on this view.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Compiling does just that, compiles. Publishing compiles, and puts them on the server for you.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
i was asking compilation through aspnet_compiler.exe .that too create the aspx files .
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi all, thanks for looking
I need a form to retrieve rows from a table based on parameters from querystring
SelectCommand Example:
SELECT * FROM Users WHERE Name LIKE '%' + @str + '%'
This will return all rows that have the word @str in Name column
If i set the defaultvalue for the @str Parameter to %, it will return all the rows when no parameters are passed
I need the same but for an int column
SelectCommand Example:
SELECT * FROM Users WHERE UserID = @UserID
If i pass a number, it will return a row of the user with UserID = @UserID
But if no parameter is passed it wont work
My question is
Is there any way i can make this last query to return all the rows if no UsersID is passed
Im giving this examples, i know they might seem very easy, and you may say, make 2 different SelectCommands and set them in the code
But in fact, Ill have more than 5 diferent querystring parameters, all applied to the same table, and any combination of this parameters is valid (param 1 and param2, param 1 only, param 5 only, param 1 2 and 4, and so on), so if i implement this in separated SelectCommands ill end up having more than 20 almost equal SelectCommands
Any advice will be appeciated
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
AlexeiXX3 wrote: If i set the defaultvalue for the @str Parameter to %, it will return all the rows when no parameters are passed
You just showed an example of SQL Injection Attacks. I would do some research on how to keep that from happening. By doing this research you should find the answer to your question as well.
SQL Injection is nasty business, fix it now, before you have to deal with the consequences, like deleted tables...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Doesnt the use of parameters for SQlDatasources prevent SQl injection??
I know that sqlinjection is a big problem and i need to prevent it at al cost, i tought that one of the functions of parameteres was to prevent SQl injection
Alexei Rodriguez
|
|
|
|
|
hi
i need guidance and help regarding following scenario for a web app using asp.net 1.1(C#)
i am getting output of a web service that is xml but as a string now i want to put all the info in a table
i am putting that output stream to a dataset and then try to utilize that but there is a problem that when i give that xml to a dataset as source dataset create more then one tables while i want to store all as a one table column also there are no dependencies in those table all have unique values
so can some one guide me that if there is some better scenario or how i can merge dataset tables column in one table so that can be store able in a db table
regards
shezi
modified on Thursday, March 6, 2008 12:54 AM
|
|
|
|
|
Have you solved this?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I have developed a website and deployed it in a remote server.
When i access the site through http://localhost, the site works very well.
But when i give the ip address instead of localhost, i get a 404 page not found error message. The same site worked well when accessed through ip in my Testing environment.
I am using framework 2.0. Any ideas?
|
|
|
|
|
hi all..
iam developing a web application using asp.net/vb.net.
in my application i have some data to tbl_sample table.
now i want to convert the data in sample table to a text file..
so, can plz give me some links which helps me to solve this...
iam searching google but, i didn't find correct links.....
if it not the correct fourm for this kind of help ,
plz tel me where i have to post dis...
thank you,
siri
|
|
|
|
|
Your question has nothing to do with ASP.NET.
It is SQL-related, so it belongs in the SQL forum.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello all!
I've been folowing Scott Guthries MVC Blog[^] and I'm having some issues getting it to work.
I've implemented it using a SQL Server database, which is an asp.net roles/membership implementation with some other tables added in for Products, Categories etc.
My problem is on the View page and the Code behind. When I place a asp:ListView control (with ID="categoryList") on the page (by code not dragging and dropping in the Design pane) and then switch to the code behind page, I get no IntelliSense type ahead on the ListView control to do the databinding. If I type the control name and binding lines, ie
public void Page_Load()
{
categoryList.DataSource= ViewData;
categoryList.DataBind();
}
and attempt to build the project it tells me the categoryList control doesn't exist in the context.
I've tried removing the Page_Load() section, building the project and then re-entering but to no effect. I'm sure it's going to be a silly mistake I've made. Any suggestions?
Brian
|
|
|
|
|
Well i found the problem, or at least a fix for it. Have got tons of other issues now of course!
In the code behind I added
protected System.Web.UI.WebControls.ListView categoryList;
in the partial class and it fixed it.
|
|
|
|
|
hi guys i have a query, i have a website which is developed in html now i want to add some .aspx pages into it. is it possible, if so how to do it?
please reply if u know, i need it urgently.
jAgAdEeP.sUgGuLa
|
|
|
|
|
Member 4194906 wrote: please reply if u know, i need it urgently.
Of course you do.
Yes, it works.
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 all... i have been working on an idea that stems from my knowledge of application design and development. I have been developing an application which allows end-users use to drag & drop elements and set properties on a design canvas to create a diagram which will (once completed) be used to generate asp.net application code.
users can use my application to build simple forms or webbased applications and will eventually enable them to create quite complex systems by piecing together "sub-diagrams".
the elements are broken down into logical objects like: eshop, user, data (order, product, etc), country list, etc... and the user can connect them up (using fully rule based connections).
just imagine my application being similar to creating a visio diagram with elements having properties and wizards to define their use. then at the end it generates application code and compiles it to create a fully functional application. or alternatively the my application just creates source-code from the diagram so developers can further customize it.
anyway, my question is, now that i have created a very functional prototype which works pretty well, i need to ask all of you for your opionion on whether the concept is viable? would people use it? are there complexities i might have forgotten about? I plan to provide it for free as it will be more of a labour of love and hope to get other developers onboard for future enhancements.
|
|
|
|
|
Yes, people will use it, and people already do. Just the other day someone was posting about how they found out an old employee used code generators. I have used code generators for CSS. It isn't worth the manual labor required to do what can take seconds.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|