|
this might help you
http://www.dotnetcurry.com/ShowArticle.aspx?ID=107
|
|
|
|
|
In my application there is a grid now i want to bind it with multiple dataset it is possible?
jeny
|
|
|
|
|
Don't understand your question.
|
|
|
|
|
If your data sets table[0], are similar you can Merge tables and create a data table that contain all tables[0] and set this data table as the gride view data source.
else dont even think about it
|
|
|
|
|
|
I get this error whenever I place this code on my inline script.
this.RegisterClientScriptBlock("keyClientBlock", "alert ('Javascript block of code executed')");
Please advice.
thanks
Dom
|
|
|
|
|
I dont think you can use content place holder in a master page and in a normal page below that, try removing the content place holder from master page
|
|
|
|
|
Morning All,
Just have a quick question regarding automatic page refreshing.
I am creating a page that display status of some services on a machine. I want the page to refresh every 30 seconds let's say and I know that when I used .ASP I used the meta tag as displayed below:
""
So my question is, in ASP.NET is there an alternative method to automatically refreshing a page or will this suffice?
Thanks in advance for any opinions and options.
|
|
|
|
|
ASP.NET runs on a server, a refresh is on the client so the only 2 ways you have available are
1) meta refresh tag on the client
2) Javascript on the client.
location.reload() or history.go(0) is the javascript
|
|
|
|
|
|
Hello,
i asked this question before but my problem not be solved because of my low programming information.
i have 2 dropdownlists one of them filter datalist content with subject and another filter it with price but my dropdownlist do tthis work together.
but i want when i select subject my second dropdownlist(price range) not be filtered with price it means i want when i select my subject, datalist shows all price then if user wants select a price range.
what can i do this work?
please help me.
thank you
Hoda
|
|
|
|
|
I think that the ASP.net AJAX toolkit has a set of dropdown lists that will do this job for you.
|
|
|
|
|
Hi,
How you fill your drop drown lists?
What is their datatext and datavalue fields?
Let me know exactly what is your problem.
Thanks,
sam
|
|
|
|
|
Hello!
We are going from Inproc to one of these methods for session management. Are there any obvious advantages/disadvantages with anyone of them over other?
/Regards
|
|
|
|
|
How to run multiple Setup in single setup deployment in .net
for Example one of my apllication Setup and another is any component setup.First component setup instal then my application Setup install.please help me.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I want to an Admin to view ,edit and delete Users but On the same form I want users to just view and edit only their info how do I do this
|
|
|
|
|
By setting up a permissions system and then enabling or showing options based on role.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Make use of Form Authentication and work according to your requirement.
.....
|
|
|
|
|
Hi,
I want to Bind Datalist Dynamically in Which depending upon the condition my table and it's fields are changing everytime.
Now I want to bind these records and display images dynamically.
e.g. I have table1 and table2 in which table1 contains 5 fields and table2 contains 3 fields. Now if condition is I want details from table1 then I want to bind the data to datalist.
Same as for if condition is table2.
How can I do?
Thanks
modified on Wednesday, April 23, 2008 6:44 AM
|
|
|
|
|
Your best bet is to manipulate your data source first, then bind to it.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Thanks for the information.
Though If I bind the datasource.
But the fields are not same. if table1 contains no,name,image,MRP,Price then table2 will contains No,Name,Image.
and this is not only 2 table. There are near about 6-7 tables.
Thanks you
|
|
|
|
|
.... or i'm just not clever enough to get it.
Hi
I struggle over the same problem all the time and i know there are different solutions to handle it, but non of them makes me happy.
Imagine the following aspx-page:
<br />
<asp:Panel ID="Panel1" runat="server"></asp:Panel><br />
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder><br />
with the code:
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
TextBox t = new TextBox();<br />
t.Text = DateTime.Now.ToString();<br />
addLinkButton(" value 0 ");<br />
}<br />
private void addLinkButton(string value)<br />
{<br />
LinkButton b = new LinkButton();<br />
b.Text = value;<br />
b.Click += new System.EventHandler(testClick);<br />
PlaceHolder1.Controls.Add(b);<br />
}<br />
protected void testClick(object sender, EventArgs e)<br />
{<br />
PlaceHolder1.Controls.Clear();<br />
addLinkButton(" value 1 ");<br />
Label l = new Label();<br />
l.ID = "thelabel";<br />
l.Text = "the text";<br />
Panel1.Controls.Add(l);<br />
}<br />
<br />
After clicking the linkButton the second time the handler won't be fired. i know that i could set the Test of the linkButton different (i could define the button globally and access it by the variable name in the handler.the thing is: this example is just very simplified. the LinkButton might be some very complex structure. Example: A list of Controls including Controls. So if i build up the complex list in page_load and in the handler i need to move Controls to other positions its NOT an option to remove list-items from controls to add it at different places. on the other sideI might want to update a database in the event-handler and re-read the structure, like i re-created the linkButton with a different Text.
so what i need is the example above to be solved.
i'm very desperate about this problem
thanks for every input (and if possible i would love to have an explanation why the example doesnt work).
if i look at the page life cycle i cant see any problem creating the event-handler in a handler since i can create controls there. and of course a handler is part of a control!
|
|
|
|
|
Once you start dynamically adding controls in PAge_load or after, their viewstate will not be restored, so their events will not fire. One easy way around this is to have them just redirect to the same page with something on the URL telling you which link was pressed.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 Christian
Thank you for the answer. so far i have 4 solutions (your hint is one of them) to avoid the problem i have, but still: the way i would like to do it seems to be the 'natural way'. all the 'hacks' (at least from my point of view) dont satisfy me (i can be very stubborn ).
you gave me the last hint i needed: why it doesnt work. since i call the addLinkButton-method twice, the second time the viewstate wont be restored.
Yves
|
|
|
|
|
Hi
I am trying to update a field in a database using a stored procedure.
The field in the database is type smallint
The value that I am inserting is from a textbox, so I have the following code:
cmdsqlcommandupdate.Parameters.Add(new SqlParameter("@Height", SqlDbType.SmallInt));
cmdsqlcommandupdate.Parameters["@Height"].Value = tbheight.Text;
However it is not updating the field, when I hard code the value in, it updates
So I'm wondering do I need to convert the textbox value to int before I enter?
any help would be great
cheers!
|
|
|
|