|
You say you have SQL Server 2008 enterprise, yet your connection string is for SQLEXPRESS. Is your SQL Server 2008 a named instance, named SQLEXPRESS ?
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
This is code can run before time on Windows Server 2008, SQLServer 2008.
battulga
|
|
|
|
|
I have 2 user controls:
-1 contains my collapsiblepanel control.
-My other contains a button I want to click to expand my collapsiblepanel
How can I pass the value of my button click in my 2nd user control over to my collapsiblepanel in my 1st user control?
Can this even be done?
Thanks.
|
|
|
|
|
In your designer.cs file (if it is a webapplication) you can change the protected global:: into public global:: for you button.
In that case the OnClick Event can be reached from your second control.
In your second control you add
Control1.fromOhterControl.OnClick += new EventHandler(fromOhterControl_OnClick);
and you create the method
protected void fromOhterControl_OnClick(object sender, EventArgs e)
{
}
That should work
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Hello everyone! I have an asp:menu item in which the background color changes during a static and dynamic hover style. Everything looks great, however I have noticed that many of my users are mislead into thinking the whole area is clickable when in reality the anchor will only work if the mouse is over the text of the link. Is there a trick to changing the clickable area to take up the whole "background" that is changing rather than just the text? I've googled around but can't seem to find what I'm looking for.
Thanks in advance!
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
It sounds like you need a CSS fix for this. Here's some code I have for a CSS button. I'm not a css expert, but I believe it's the "display:block;" that does what you're looking for:
ASPX:
<asp:Hyperlink ID="lnkDefaultButton" runat="server" CssClass="defaultButton" Text="Button" Width="200" Height="20"/>
CSS:
a.defaultButton { background-color:white; width:200px; height:20px; display: block;outline: none;}
a.defaultButton:hover { background-color:black; width:200px; height:20px; display: block;outline: none;}
Does this work?
-Goalie35
|
|
|
|
|
Hi Goalie35,
no, that didn't seem to do the trick. I'm wonder if there's something within the asp:menu item that's overriding the css class?
<pre> <asp:Menu ID="Menu1" runat="server" DataSourceID="siteMapDataSource"
DynamicHorizontalOffset="2" Font-Names="Tahoma" Font-Size="11px"
StaticSubMenuIndent="10px" style="background-color: transparent;
font-weight: bold; vertical-align: top; margin-bottom:30px;
background-image: url(/designElements/interfaceImages/menubkg_new.jpg);"
Width="152px" ForeColor="#666666" DynamicEnableDefaultPopOutImage="False"
DynamicPopOutImageUrl="~/designElements/interfaceImages/menuarrow.gif"
StaticPopOutImageUrl="~/designElements/interfaceImages/menuarrow.gif" Height="275px"
CssClass="pointer" EnableTheming="False">
<DynamicHoverStyle BackColor="#8E8E8E" ForeColor="White" />
<DynamicMenuStyle CssClass="adjustedZIndex" BackColor="#D1D1D1" />
<DynamicSelectedStyle BackColor="#D1D1D1" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="5px" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="3px" ItemSpacing="1px" />
<StaticMenuStyle BackColor="#D1D1D1" />
<StaticHoverStyle BackColor="#8E8E8E" ForeColor="White" CssClass="pointer" />
</asp:Menu>
the pointer cssclass just has cursor: default; in it, but that's where I was adding the display:block and then creating a.pointer{ display:block;} but still not doing the trick.
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
Hi,
I created a Virtual directory for my web site. Now I want to publish it at http;//localhost/test2. How can I do that.
|
|
|
|
|
|
Yes, I created the virtual folder. e.g my website is in the folder C:\project\NyWebSite
Now I treated virtual folder in C:\Project and named it as test2. But when I go to window explorer C:\project my test2 is not there. So,. How can I publish it. I have no idea where I am doing wrong
|
|
|
|
|
hahii wrote: I have no idea where I am doing wrong
It should be "I have no idea what I am doing".
hahii wrote: Now I treated virtual folder in C:\Project and named it as test2. But when I go to window explorer C:\project my test2 is not there
test2 is virtual directory name. It will not exist physically. It is referring to location C:\project and that will be the root of your website. Copy/publish all your files to this location.
If you are using ASP.NET 2.0 or above, just copying all files to this virtual directory will work. VS provides several publish options which can also be used. Refer to MSDN for using the publish feature.
|
|
|
|
|
hahii wrote: Yes, I created the virtual folder. e.g my website is in the folder C:\project\NyWebSite
Now I treated virtual folder in C:\Project and named it as test2. But when I go to window explorer C:\project my test2 is not there. So,. How can I publish it. I have no idea where I am doing wrong
I don't understand what are your doing? If you have published your Web sites from VS, then Open IIS and Create the Virtual Directory and Give the Path Reference of your Published Folder, that all. Now you can access from you web site from Localhost or IP address.
For more details, Please look into this article, Deploying Web Sites in IIS
|
|
|
|
|
I am developing an install package for the web application (ASP.NET, VS 2008, C#) using "Setup and Deployment" project in VS 2008.
When the user is upgrading the application (by installing the next release), I need to save the web.config file to restore some settings from the previous install.
How do I do this ?
|
|
|
|
|
Well, you need to write some logic for this. You may take a look at Custom Actions and use an installer class to read the previous web.config before it is overwritten by the new file.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Well I am using Installer class : OnBeforeInstall event, but that fires after the old web.config file has been replaced by the new install !
|
|
|
|
|
Hey everybody...
Does anybody know where I can obtain a downloadable version of the ASP or ASP.NET Documentation? I don't care what format it's in. I've not been able to find it anywhere on MSDN or Google. I've been searching for weeks.
Also, I have Visual Web Developer, But it doesn't seem to want to position elements properly. One second they're where they're supposed to be, then I click "..Sync view thing" and then the controls on the page are in a slightly different position... Any ideas, anyone?
Thanks
jase
|
|
|
|
|
|
Thank you sir much appreciated.
regards
jason
|
|
|
|
|
Hi,
Im using a stroed procedure to update records in a SQL2005 DB. To send info to the procedure i run something similar to this:
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@email", tbxUsername.Text);
cmd.Parameters.AddWithValue("@password", tbxPass.Text);
cmd.ExecuteNonQuery();
Under certain circumstance i wont want to update the @password field. Is this possible, if so how? Or do i need to use a seperate stored procedure which doesnt mention the field(s) which shouldn't be updated?
Thanks.
|
|
|
|
|
The logic is entirely up to you, since I don't know the detail I can't guide you on what is the best course of action. I would say that if the code will do different things then it should be in a different sproc.
Does the current sproc do more than update the password? If so what? And what circumstances don't you want to sproc to update the password.
And this question belongs in the database forum.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
Hey...
you are not running a query. Just check the value of password, send DbNull.Value from here and check in the stored Proc :
If @password IS NULL
BEGIN
-- Update only the UserName
END
ELSE
BEGIN
-- UPDATE both username and password.
END
|
|
|
|
|
Hi, I have developed one webpage, in which it read data from database and process each record with some logic and the final output is set to excel file. If the table contains more than 100 thousand records, my aspx page get expired. But backend the process is done. How to avoid the expiration of page.
I reasearch some part and used below code. but no use.
private int timeOut;
private void Page_Init(object sender, System.EventArgs e)
{
timeOut = Server.ScriptTimeout;
// Give it 1 hour = 3600 seconds
Server.ScriptTimeout = 72000;
}
private void Page_Unload(object sender, System.EventArgs e)
{
Server.ScriptTimeout = timeOut;
}
G. Satish
|
|
|
|
|
If the process takes long enough that your page expires the first thing I'd look at is re-architecting the solution rather that trying to work around the issue.
From a UI perspective you should have some feedback for the use if there is a long running process. You could possibly use an AJAX call to refresh a progress bar.
only two letters away from being an asset
|
|
|
|
|
IIS would recycle the worker process after the specified timeout period. As suggested by the other member, you may like to review your architecture towards lessening (or rather balancing) the load.
There are tweaks like extending the runtime attributes in web.config/machine.config which might apply for your application only after a careful study of the same and its genuine need.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
the way you are doing currently is almost impossible and senseless to keep page alive for so long.
However you can make an asynchronous call to a function which will do all the required processing and after successful completion will sent back confirmation through ws_callback method. then you can show the "successfully done" message to confirm that processing has been done.
You can google for asynchronous calls
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|