|
Thank you. But the code u have given is in DotNet 3.0
I am working in DotNet 2.0. Please give code which works in 2.0. Thank youG. Satish
|
|
|
|
|
You should have specified the version of the framework you are working with initially. You're on your own. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
based on the user type from data base i have to give permissions on menu control .how to give permissions can you give me example which helps me
|
|
|
|
|
to give access permission on menu control based on user type from database using asp.net
You should add session whene login user after login when he click on menu control u will check permission according to session for that user.
|
|
|
|
|
I'm assuming you mean filter the menu by user roles?
If so, [Click Here] oooo, the Jedi's will feel this one....
|
|
|
|
|
hello all
i want to scan document using twain controlx in asp.net with vb.net.
but i dont know what is dll file for twain controlx.
and also how to scan document in vb.net.
plzzzzzzzzzz...........help me its urgent.modified on Thursday, March 18, 2010 4:29 AM
|
|
|
|
|
Hi,
You can try Dynamic .NET TWAIN to acquire images from your scanner, cameras and other TWAIN compatible devices. Dynamic .NET TWAIN is a .NET component developed by Dynamsoft.
To learn more about Dynamic .NET TWAIN, please go to:
http://www.dynamsoft.com/Products/.Net-TWAIN-Scanner.aspx
www.dynamsoft.com
the leading developer of version control and issue tracking software
|
|
|
|
|
Hi everyone,
I have one textbox which needs to allows only values with >0. if it is 0 then, it should be return error msg.
Pls anyone help!!!Nothing is Impossible. Keep always Smiling...
|
|
|
|
|
|
You can use the following regular expression to validate it.
"^[0-9]*[1-9][0-9]*$"
modified 27-May-14 4:40am.
|
|
|
|
|
hi,
i'm in a trouble to download formview/Gridview as PDF. ie; i have a formview, which is filled with data including unicode & image. when i click a button, the formview should download as pdf. can any one help me to sortout this.
i tried iTextsharp, Pdfclown, etc.. But it will download only Enlgish, not unicode & images.
imp: i want to download the Entire Formview
its urgent my dear. please help me.
Thanks in advance.
|
|
|
|
|
Hello All:
I'm trying to stretch a background image (rather than have it tile repeatedly), but I'm not sure how to do this. I'm using the Style Builder in VS2005, and it has every option except stretching the image. Any advice you can offer is greatly appreciated.
Andre=======================
Every experience in life is a lesson to be learned
A. Stevens
B.S., Computer Science
|
|
|
|
|
Hi Guys
I'm afraid I'm fairly new to ASP.NET, so I'm struggling a bit with this.
I have a datalist which is getting driven by a datasource. All this works well, but I have a text field which I want to manipulate at runtime.
I currently have '<%# Eval("Body") %>' which is to display the field, but I want to replace all the New Line characters with 's so that it displays properly.
Can this be done?
Thank you in advance oooo, the Jedi's will feel this one....
|
|
|
|
|
What do you mean with...
replace all the New Line characters with 's
Be more especific!! Write at least an example or something
|
|
|
|
|
Sorry... I should have previewed that...
I meant "replace all the new line characters with the HTML line break < b r / >'s"
thanks... oooo, the Jedi's will feel this one....
|
|
|
|
|
I sorted it by performing the action in my SQL Stored Proc rather than trying to do it in the page...
Thanks anyway dudes... oooo, the Jedi's will feel this one....
|
|
|
|
|
I have 2 GridViews, the InnerGridView is nested inside a TemplateField of my OuterGridView.
Each GridView has an ObjectDataSource (ODS). I want the InnerGridView to display data that is unique
to the GroupName that is listed in the OuterGridView. I have been Googling this for weeks,
seeing various ideas based around RowDataBound and the ODS Selecting event.
I don't think RowDataBound is the answer, because the Selecting event for the InnerGridView ODS
has already been called when RowDataBound is called for the OuterGridView.
So, I need to send a parameter to the ODS for the InnerGridView:
protected void ProductDataSource_Selecting( object sender, ObjectDataSourceSelectingEventArgs e ) {
e.InputParameters["productGroup"] = <here I need to access the GroupName from the OuterGridView>;
}
Note: This method is assigned to the Selecting event of the InnerGridView ODS.
My question is: How do I access the GroupName from the OuterGridView... while I am processing the InnerGridView.
Here is an example of something that does not work: OuterGridView.SelectedRow.FindControl( "GroupName" ).ToString();
I have heard that one can find *any* control from inside the Selecting event by searching a certain hierarchy.
But I don't know how to access that hierarchy using the "e" or "sender" parms.
If I could find an explanation of the various objects and controls... and where they have a valid scope
and how they are accessed... that would be helpful.
Many thanks, Paul
|
|
|
|
|
string text1 = "";
string text2 = "";
private void insertfiles()
{
foreach (RepeaterItem item in Rptdescription.Items)
{
TextBox txt1 = (TextBox)item.FindControl("TextBox1");
TextBox txt2 = (TextBox)item.FindControl("TextBox3");
text1 += txt1.Text + "|";
text2 += txt2.Text + "|";
}
foreach (string split2 in text2.Split('|'))
{
stringList.Add(split2 + "<br/>");
SqlConnection SqlCnn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]);
SqlCommand SqlCmd = new SqlCommand();
SqlCmd.Connection = SqlCnn;
SqlCnn.Open();
SqlCmd.CommandText = "insert into test(test,id) values(@test,1)";
SqlParameter DataBaseID = new SqlParameter("@test", SqlDbType.NVarChar, 50);
DataBaseID.Value = stringList.Add(split2);
SqlCmd.Parameters.Add(DataBaseID);
SqlCmd.ExecuteNonQuery();
SqlCnn.Close();
Bindrepeater();
}
This is how im inserting values in textbox into db..
but im having two textboxes how i need to insert both values at a time.. into db...
thank you..
|
|
|
|
|
What do you mean "insert both values at a time"? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I am going to assume that you have the same number of each of the two text boxes.
First you should change your loop.
string[] box1values = text1.split('|')
string[] box3values = text1.split('|')
for (int i = 0; i < box1values.length; i++)
{
}
Then you can use the index to get the values of both strings.
SqlCmd.CommandText = "insert into test(test,test2,id) values(@test,@test2,1)";
SqlParameter test1Param= new SqlParameter("@test", SqlDbType.NVarChar, 50);
test1Param.Value = box1values[i];
SqlParameter test2Param = new SqlParameter("@test2", SqlDbType.NVarChar, 50);
test2param.Value = box3values[i];
SqlCmd.Parameters.Add(test1Param);
SqlCmd.Parameters.Add(test2param);
I wouldn't call the test1 param DataBaseID since it isn't the column named ID.
|
|
|
|
|
Hey guys,
I have a webcontrol containing a WebResource (javascript). Now the control has a few custom properties. Depending on these properties I would like to change values in the javascript. For example, the javascript by default calls a function called show(). But when the user changes a property, I would like javascript to call the fadeIn() function. Is this possible?
Cheers!
|
|
|
|
|
Dear All,
I am adding an ascx file into a content page and always I receive an unknown element error. Somehow In content page eventhough I register the ascx file, the control seems to be not known or recognized. Why do you think it happens? Here is my html code - do I miss something?
<%@ Page Language="C#" MasterPageFile="~/MAIN.Master" AutoEventWireup="true" CodeBehind="Urunler.aspx.cs" Inherits="cicektablo.Urunler" Title="flowerbox® Türkiye" %>
<%@ Register src="WebMessageBox.ascx" tagname="WebMessageBox" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
<uc1:WebMessageBox ID="WebMessageBox1" runat="server" />
</asp:Content>
ps: I also checked the msdn and it is explianed in excatly my way. I do not understand.
|
|
|
|
|
If you need help with a specific error you should always give the exact text of the error message.
Is the user control in the same folder as the page? Did you try adding the user control by dragging and dropping into the design of the page or did you add it manually through in the aspx?
|
|
|
|
|
Thanks a lot for the answer it says webmessagebox(web user control) is not a known element... yes I tried dragging and dropping it... even so it gives the same error.
|
|
|
|
|
Here are a few things to try in whatever order you choose:
Make sure your control is in the same namespace as your pages or specify namespace in references.
Under the Build menu, Clean Solution, then rebuild.
Remove the control from the project completely, build, add it back and build again.
Create a new project file and add the pages and controls into it.
|
|
|
|