|
|
I am using the visual studio designer and creating table adapters and strongly typed datasets. The question I have is how to override the InitConnection() method the designer creates for you.
I have two connection strings I would want to use (say local and remote). So I want to extend/enhance this method to determine which one it should be using. Any thoughts?
|
|
|
|
|
No need to override it if you use ASP.NET 2.0, there should be a ConnectionString setting in web.config. Change that and you can either use your local or remote database. In ASP.NET 1.1 you will need to set the ConnectionString property of the connection that is used by the commands of the DataAdapter.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
I was going to do that, but I was also looking for a programmatic way to do it. Previously, I had made my own custom data layer and included logic for it to determine which environment it was in, local or remote. This way I wouldn't have to update the web.config when I published.
I tried to use a partial class, either I didn't do it correctly, or it just didnt work.
|
|
|
|
|
I am showing a description field with 2000 Chars to a grid view. i want to display in the grid view the only first 20 or 30 characters only and not all the characters in this field. At the END of the 20/ 30 chars I wish to display More.. Hyperlink. When the user explicitly click the link, then I wish to display all the 2000 chars. Help me get start with. Thanks
Jey
|
|
|
|
|
Hope this[^] will give an idea.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Satips wrote: Hope this[^] will give an idea.
Satips,
This article talks about some other concept not related to the original question. I am not getting why you are passing links and doing googling for them .
|
|
|
|
|
Use substring function either in your query or in GridView itemdatabound event. More link also can be added from ItemDataBound event
|
|
|
|
|
Navneeth, Thanks for your reply.
Actaully I would like to Bind data in gridview. I have been used Export to Excel functionality also.
I have been used below piece of style to show only one line... ; Export Excel also works fine & displays whole text.
text-overflow:ellipsis; overflow:hidden
I will try with your idea and let you know.
Jey
|
|
|
|
|
Hello Sir,
How to develop a search engine using C# in ASP.NET. Plz consider....
sandeephs
|
|
|
|
|
You question is too broad. These forums are for posting code you are having trouble with. If you search Code Project (and the internet in general) there are lots of articles about creating a search engine.
Also,
Please do not use text speak (plz) and do not address the forum as 'Sir' as we have both men and women here.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
I have run in to a repetitive issue with Visual Studio where my solution will succesfully build but for some reason won't publish. It just says Build Failed.
I have two projects within the solution. One class and one website.
Any ideas??
|
|
|
|
|
When the build fails, are there any error codes? I had a similar problem with VS05 and it was related to duplicate class names. To find it, set your projects build output verbosity to "Diagnostic". This can be found here:
Tools > Options
In the dialog window, expand "Projects and Solutions"
Select "Build and Run"
It's the last option, its label is "MSBuild project build output verbosity"
When you build afterwards, take a look through the results in the output window, you may be able to find something there.
Hope it helps.
|
|
|
|
|
Hii Guys
I wonna make a circle radchart in a web Appl and i wonna fill it from a column in table in database using sql server 2000 i wonna fill the circle part with %Value
plss help me i am still new in asp.net uing vb
Developer
|
|
|
|
|
Hello,
How can I generate control from a code (C#) ?
for example: I Have a Wizard with 2 steps, In first I select a number from DropDown menu and click next and I want to have same quantity TextBoxes in Step 2 what I've selected in Step 1.
Thanks.
|
|
|
|
|
<br />
for (int iCount = 0; iCount < numOfTextboxes; iCount++)<br />
{<br />
TextBox tb = new Textbox();<br />
tb.Name = "tb"+iCount.ToString();<br />
wizardStep.Controls.Add(tb);<br />
}<br />
Or for example yank a placeholder on the spot you want to add the textboxes and than call placeholder.Controls.Add(tb);
|
|
|
|
|
Hello totocaster,
You can see the below code to create Textbox control dynamically in C#.
I hope this gives small idea.
TextBox t = new TextBox();
t.Text = "Hello";
Response.Write(t.Text);
Regards,
Niranjan
|
|
|
|
|
Thank you all for response,
And what about some HTML things? I mean what if I want it to be Placed i HTML Table? I just add table runat="server" and then manipulate with it's cells?
Thanks
|
|
|
|
|
Where do I download a grid box control with check boxes embedded in it
Similar to a checked Combo Box
|
|
|
|
|
you can use gridview in VS2005.
it contains checkbox control
All The Best
Sathesh Pandian
|
|
|
|
|
How do you mean ?
Wat exactly should i choose , since the gridbox control only appears in rows and colums and not Check boxes.
|
|
|
|
|
In the properties,
Columns-->collections-->select checkbox field..
All The Best
Sathesh Pandian
|
|
|
|
|
Hi,
can i bind a third party exe with my one click deployment application. i would like to install(silent installation) the third party s/w in to client computer while client installs the applicaton. It is a smart client application ; in .net 2.0.
Thanks in advance
Sebastian
|
|
|
|
|
in desuging a website how the size of the page is set width and lengthwise, in the property bar there is no option for setting the size of page
|
|
|
|
|
Ive just discovered the ~ sign and how it can be used to reference the root path of your application when building .Net web apps and am overjoyed at how much easier things have become while using it. Thing is I now find myself using it everywhere.
Is this causing the server to do more work than it needs to though. Each page uses it at last 40 times in the header and footer and some pages can almost equal this.
Any opions?
|
|
|
|