|
Hi and thanks you for your reply,
yes i understand.. the exact SQL is :
"UpdateCommand="UPDATE TABLOU SET STADIU=77"
the field called STADIU is type number. I've tried also with integer but i get the same error
-- modified at 17:40 Saturday 6th May, 2006
|
|
|
|
|
I am developing an application for which I have to provide a hosted version for the client.Well the problem that is bugging me is as follows:
Different users from different companies will be connecting to the ASP.net application. I want to keep
each company's data and login information in a separate database and one ASP.net application in the
front. Now the problem is how to make this possible? In SQL Server Role and Membership provider, database connection string is in web.config. If I have to write a custome provider, then what should be the approch by keeping one ASP.net application in the front for multiple databases.
I would appreciate ideas and comments on the problem
Thanks,
Fahad
|
|
|
|
|
When a user logs in you could produce the connection string "<first part="">" + companyName + "<lastpart>" and store it in a Session variable, then everytime you use the connection string you do Session["ConnectionString"] rather than ConfigurationSettings.AppSettings["ConnectionString"].
If each company has their own login frontend then this should be easy.
|
|
|
|
|
The problem is the Membership provider has no interface to change the
underlying connection string, it is in the web.config file. Should i try to add connection string
property to the SQLMembership provider and try to use that. How that sounds?
|
|
|
|
|
<pre>
<asp:textbox id="txtUserName" Runat="server"></asp:textbox></td>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" ControlToValidate="txtUserName" ValidationExpression="[0-9]" ErrorMessage="Must be numeric" runat="server" EnableClientScript="False" Display="Dynamic"/>
</pre>
This code always display errormessage "Must be numeric", even though i enter only numbers.Can anyone please reply for this.
-- modified at 11:45 Friday 5th May, 2006
|
|
|
|
|
|
You have specified that the field may only contain one digit. If you try to enter a one digit number you will se that it passes.
You can use the \d code instead of [0-9]. Specify how many digits you allow, for an example unlimited: "\d+" or 1 to 5: "\d{1,5}".
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have one XmlFile, how to create a menu using that xml file
the xml file is like
<menu>
<file>
<new>
<open>
<add>
<edit>
<cut>
<copy>
<paste>
<debug>
<startdebug>
<exceptions>
the output is like
File Edit Debug
if i click File it will show all the childs of it
How can i achieve this in asp.net
|
|
|
|
|
Why don't you do this with javascript? (then you won't have any postbacks, think this is better to handle with).
Just add your elements to the screen, put'm all in span blocks and set the onClick javascript events (which can set the visibility on true by css). The ones you want not to be seen on load, make on the body tag an onLoad javascript event which sets the visibility by css on false.
|
|
|
|
|
Or .net 2.0, use the menu control.
|
|
|
|
|
Is it possible to access the Master Page in VS2005 and change the from GET to POST? Or can this only be done inside the Module?
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Hi,
How do i Access .aspx page attribute, in vb code file.
actually i want dynamicaly change value of href in link attribute
"<link id="link1" href="styleSheet3.css" rel="stylesheet" type="text/css" />"
Thanks
lakshya26@gmail.com
|
|
|
|
|
put it in a label and change the text value of it?
maybe not the best way but it could work ...
|
|
|
|
|
Or just use a Hyperlink control
|
|
|
|
|
A GridView has it's AutoGenerateColumn set to true
This is how the code is
grid.DataSource = dt
grid.databind()
dt is a datatable and there is definitly data in it.
The problem is that the grid does not get populated.
Thanks
|
|
|
|
|
hi there I am an asp.net virgin and really want to get to grips with some of the features of using asp.net I recently finished a course on asp.net and we learnt the basic templates to building a shopping basket. However when at home on my own computer...for some strange reason the internet browser doesn't display the web page, but displays all the code instead??? Before you ask, yes I have tried it in firefox also? I'm sure it is a ridiculously simpe thing, but in order for me to start messing around with the templates and customising them to features that I want, I'll need to be able to see it....what should I do?(P.S I'm using dreamweaver also)....Please be gentle...I am fragile!
|
|
|
|
|
What's the code in your page look like (feel free to shorten it if there's a lot...)
|
|
|
|
|
hi thanks for the reply, it is literally the source code for the web page. From some research I found that maybe I cant view these files locally as I have windows xp home, not professional so I can't install some ssi or something. Does that sound about right. Therefore does this mean I will only be able to view these pages remotely?
|
|
|
|
|
An .aspx file is processed by the server where all the asp stuff is "translated" into HTML and spit out to the browser. If you aren't running IIS with the .NET framework installed then its not being processed. You need to have XP Pro (or 2k pro, or anything in the Server family) or you download Visual Web Developer Express Edition for free from MS which comes with a development webserver.
|
|
|
|
|
hai everyone
i am ajay
i have a problem related to java script.i have to open a modal dialog box on
"onselectedindexchanged" event of my dropdownlist.further my dropdownlist is a template column of my datagrid.
so here i can not use
dropdownlist.attributes.add("onselectedindexchanged","JVfun();")
on page load event.
how i can do this.
plz help me.
its urgent
thanks in advance
ajay
|
|
|
|
|
Hi Ajay,
You can add the that code in the OnItemDataBound event of the datagrid. There in that event you can find the dropdownlist control and then add the attribute you want.
Hope this will solve your problem.
Best Regards,
Apurva Kaushal
|
|
|
|
|
you have to add the onselectedindexchanged at the datagrids itemcreated
<br />
private void InitializeComponent()<br />
{<br />
this.dgMyDataGrid.ItemCreated += new System.Web.UI.WebControls.DataGridItemEventHandler(this.dgMyDataGrid_ItemCreated);<br />
this.Load += new System.EventHandler(this.Page_Load);<br />
}<br />
<br />
private void dgMyDataGrid_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)<br />
{<br />
try <br />
{<br />
(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) <br />
{<br />
DropDownList ddl = (DropDownList)e.Item.FindControl("ddlMyDropDownList");<br />
ddl.SelectedIndexChanged +=new EventHandler(ddlChanged);<br />
ddl.Attributes.Add("onselectedindexchanged", "JVfun();"); <br />
} <br />
else if(e.Item.ItemType == ListItemType.Footer) <br />
{<br />
}<br />
} <br />
catch (Exception err) <br />
{<br />
}<br />
}<br />
Hope it helps
Thomas
|
|
|
|
|
hai everyone
i am ajay
i have a problem related to java script.i have to open a modal dialog box on
"onselectedindexchanged" event of my dropdownlist.further my dropdownlist is a template column of my datagrid.
so here i can not use
dropdownlist.attributes.add("onselectedindexchanged","JVfun();")
on page load event.
how i can do this.
plz help me.
its urgent
thanks in advance
ajay
thanks
thomas
u have send me the code
but it is in c#.i m using vb.net
can u revert back with this code in vb.net
|
|
|
|
|
thanks
thomas
u have send me the code
but it is in c#.i m using vb.net
can u revert back with this code in vb.net
|
|
|
|
|
Hi,
I'm not an expert of asp.net, so be patient with me ...
My web application includes some aspx pages and only one class with common functions and sub-routines.
Everything works correctly, but when I try to run my application from two machines, one of the client crashes; after the crash, if I reload the page everything works normally.
It looks that my pages cannot have a concurrent access to the class.
The class is normally istantiated with the "new" keyword each time I call its subs - after the call I destroy the istance.
I'm sure there's something wrong with my code or configuration, but what ?
Any suggestion is welcome
Thanks,
Giorgio
A CRAY is the only computer that runs an endless loop in just four hours
|
|
|
|