|
take a varaible in viewstate.increase it one by one and check from the actual value like
object temp = DataBinder.Eval(e.Row.DataItem, "empid");
and check it temp from the viewstate's value if flase register an javascript alert.
Cheers!!
Brij
|
|
|
|
|
sajan ss wrote: ASP.NET,C#.NET Programmer
This appears increasingly unlikely to me.
If you're telling the user that the data they entered is invalid, you can use a custom validator, or you can use an alert. If you're checking the data in the DB, you can just use a label. Is the user entering data ? If so, just reject data that doesn't follow your rules. Hell, it's fundamentally broken that you have such a rule and you don't just auto generate the ids according to the rule set.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i wont to no ho ican insert image into database sqlserver and retrive in my page
thank you
|
|
|
|
|
If you try to search in Google you will get at least 100 articles written on the same.
Apurva Kaushal
|
|
|
|
|
There is two way, you can store image path on database, or can store image directly in DB.
But How ? Just Try google. You will find lots of codes
|
|
|
|
|
arnds20078 wrote: wont to no ho ican insert image
I guess it's because you can't spell that you can't use google. Try 'SQL Server store bitmap ASP.NET'
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Better if you use imagepath in DB which won't increase the size of database.Check feasibilty according to number of images
Cheers!!
Brij
|
|
|
|
|
i think this link help u
http://adventures-in-csharp.blogspot.com/2008/03/using-sql-database-images-in-aspnet.html
|
|
|
|
|
scroll bar moves up as the image changes in the addrotator.what should be done to keep scroll wherever I want.The images are filled dynamically by XML file.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
This is because when the image changes, the page postback and your browser window is refreshed.
so to avoid that you should use the AJAX Update Panel Control. and set the trigger of Update Panel. and after that your scroll bar will be not affected by image changes in addrotator.
you can find the video tutorial on ajax.asp.net website.
|
|
|
|
|
How can i get the functionality of IE browsers Previous and Next Button in Asp.net button.I used Javascripts History.back() but it works only for the same page.If the page chages it does not work.So How can I get this functionality.
|
|
|
|
|
You have to do it manually. One way is that you can use breadcrumbs for this.
Apurva Kaushal
|
|
|
|
|
Well, you can only use javascipt, unless you only want to move between pages in your own site, and history.back() should always work. Creating your own breadcrumbs works better, you can avoid going back to a postback on the same page that way, for example.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i m selecting data from database now while adding these datas to a dropdown list i want to add some alias of it.Eg-database returns 2 values
'STS' and 'CAT' now insteade of adding these to values to the dropdownlist i want to add 'STATUS' for 'STS' and 'CATAGORY' for 'CAT' in the dropdownlist. how can i have to write the code in the databinding event or databound event of the dropdown list.
|
|
|
|
|
Don't you have these values (Status and Category) defined there in your database? Get these values from there itself.
Apurva Kaushal
|
|
|
|
|
From where u are geeting these Values 'Status' and 'CATAGORY' for
'STS' and 'CAT'
you have to assign these values to Text Field of ListItems of DropDownList
|
|
|
|
|
Hi
I'm using vs2008, if anyone can please help me
I want to open the print dialog of the crystalreportviewer programmatically if possible??
so in other words , fire the print button on the viewer
Thanks in advance..
|
|
|
|
|
I have used httpd.ini file for ISAPIs in Classic asp which dynamically get the url for .asp file. How I can use this file with asp.net.
|
|
|
|
|
You can't. What does it do ? You can write HTTP handlers in ASP.NET.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
These are html url for asp files when the name of the asp page match with the html url it get that url and the viewer doesn't see the original url. SEO also use prefer it in search point of view.
Example :
Rewrite /www.websitename/sitemap.html /sitemap.asp [I]
sitemap.asp is the original url while it will display sitemap.html.
|
|
|
|
|
You can use a http handler for that, I believe. You sure can't use an ini file from ASP.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
AFAIK, ASP.NET don't have that. There are commercial libraries available which does IIS ISAPI rewriting. But easy way would be to use HttpModule and rewrite the URL. There are free libraries available like Urlrewriter.net. Try that
|
|
|
|
|
can you help me for this i am trying for it but dont understand where to start . is any css implementation can work through in it,also can i show my datagrid search with links like orkut scrap book pls help;
anything code snipptes,examples , tutorial or your valuable advice can help me in it.
|
|
|
|
|
Usually when people ask this sort of stuff, they are pointing to a site that is using a java applet to do stuff that HTML, and therefore, ASP.NET cannot do.
It would help if you could explain exactly what you want to do. I don't have time to browser Orkut to try to work out what you're asking.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Design the datagrid with template columns. But I'd use a repeater control here which is more appropriate than datagrid.
|
|
|
|